|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.connector.tcpip.model.client.TCPIPApplicationConnection
public class TCPIPApplicationConnection
This class implements the ApplicationConnection interface for the TCPIP Application Connection.
Field Summary | |
---|---|
static java.lang.String |
version
|
Constructor Summary | |
---|---|
TCPIPApplicationConnection(com.stc.connector.framework.eway.ManagedConnectionCallback mcCallback)
Creates a new instance of TCPIPApplicationConnection. |
Method Summary | |
---|---|
int |
available()
returns the length of the data if it is available to read |
boolean |
checkIfClosed()
Checks whether the Connection instance was already closed (if close was previously called). |
void |
close()
Closes the application connection handle. |
java.lang.Object |
createApplication(java.lang.String appName)
Creates an Application from the Application Connection. |
com.stc.connector.appconn.common.OutputHandler |
createOutputHandler()
Creates an OutputHandler for "sending" data to the EIS. |
void |
destroy()
Destroys the application connection handle and the associated physical connection. |
TCPIPEwayConnection |
getEwayConnection()
Gets the TCPIPEwayConnection associated with this application connection. |
byte[] |
getLeftOverFromLastRead()
returns the data left over from last read |
com.stc.connector.framework.eway.ManagedConnectionCallback |
getManagedConnectionCallback()
|
java.net.Socket |
getSocket()
Gets the Socket associated with this application connection. |
State |
getState()
|
void |
invalidateConnection()
This is called by the ManagedConnection to invalidate the connection handle. |
boolean |
isUsedByBPEL()
Returns the usedByBPEL. |
void |
reassociateConnection(com.stc.connector.framework.eway.ManagedConnectionCallback mc)
This is called by the ManagedConnection to associate the connection handle to the ManagedConnection. |
void |
setLeftOverFromLastRead(byte[] bs)
sets the data which is left over from last read |
void |
setManagedConnectionCallback(com.stc.connector.framework.eway.ManagedConnectionCallback mc)
|
void |
setState(State state)
|
void |
setUsedByBPEL(boolean usedByBPEL)
Sets the usedByBPEL. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String version
Constructor Detail |
---|
public TCPIPApplicationConnection(com.stc.connector.framework.eway.ManagedConnectionCallback mcCallback)
mcCallback
- The ManagedConnectionCallback for getting
services from ManagedConnection.Method Detail |
---|
public void close() throws TCPIPApplicationConnectionException
close
in interface com.stc.connector.appconn.common.ApplicationConnection
TCPIPApplicationConnectionException
- upon error.ApplicationConnection.close()
public void destroy() throws TCPIPApplicationConnectionException
TCPIPApplicationConnectionException
- upon error.public java.lang.Object createApplication(java.lang.String appName) throws TCPIPApplicationException
createApplication
in interface com.stc.connector.appconn.common.ApplicationConnection
appName
- The name of the application to create.
TCPIPApplicationException
- upon error.ApplicationConnection.createApplication(String)
public com.stc.connector.appconn.common.OutputHandler createOutputHandler() throws TCPIPApplicationException
createOutputHandler
in interface com.stc.connector.appconn.common.ApplicationConnection
TCPIPApplicationException
- upon error.ApplicationConnection.createOutputHandler()
public void invalidateConnection() throws javax.resource.ResourceException
invalidateConnection
in interface com.stc.connector.framework.client.AssociateableHandle
javax.resource.ResourceException
- upon error.AssociateableHandle.invalidateConnection()
public void reassociateConnection(com.stc.connector.framework.eway.ManagedConnectionCallback mc) throws javax.resource.ResourceException
reassociateConnection
in interface com.stc.connector.framework.client.AssociateableHandle
mc
- The ManagedConnection instance with which the connection
handle will associate.
javax.resource.ResourceException
- upon error.AssociateableHandle.reassociateConnection(ManagedConnectionCallback)
public boolean checkIfClosed()
public java.net.Socket getSocket()
public TCPIPEwayConnection getEwayConnection()
public boolean isUsedByBPEL()
public void setUsedByBPEL(boolean usedByBPEL)
usedByBPEL
- The usedByBPEL to setpublic State getState()
public void setState(State state)
state
- the state to be setpublic com.stc.connector.framework.eway.ManagedConnectionCallback getManagedConnectionCallback()
public void setManagedConnectionCallback(com.stc.connector.framework.eway.ManagedConnectionCallback mc)
mc
- ManagedConnectionCallback to be setpublic byte[] getLeftOverFromLastRead()
public void setLeftOverFromLastRead(byte[] bs)
bs
- data which is left over from last readpublic int available() throws TCPIPApplicationException, java.io.IOException
TCPIPApplicationException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |