|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HL7v3ClientApplication
This interface represents the HL7v3 client application upon TCP/IP connection.
Field Summary | |
---|---|
static java.lang.String |
version
|
Method Summary | |
---|---|
void |
closeConnection()
Closes the existing connection physically (whether it is good or bad). |
HL7v3AppMessage |
getHL7Message()
Returns an object which is used as a HL7v3.0 specific message/function holder. |
HL7v3MessageInfoInterface |
getHL7v3MessageInfo()
Returns an object which represents the HL7v3.0 specific configuration information. |
int |
getMaxDataSize()
Returns the maxDataSize. |
java.net.Socket |
getSocket()
Returns the underlying java.net.Socket instance on which the eWay relys. |
java.lang.String |
getState()
Returns the State that is set by user. |
TCPIPClientConfigInfoInterface |
getTCPIPOutboundConfigInfo()
Returns an object which represents the base TCP/IP Outbound configuration information. |
boolean |
isClosed()
Checks to see if the connection is closed. |
byte[] |
receiveBytes()
Reads all available data on the TCP/IP connection. |
java.lang.String |
receiveString()
Reads all of the available data on TCP/IP connection. |
java.lang.String |
receiveString(java.lang.String encoding)
Reads all available data on the TCP/IP connection. |
void |
sendBytes(byte[] bytes)
Sends a byte array through the TCP/IP connection. |
void |
sendString(java.lang.String str)
Sends a String with JVM default encoding through the TCP/IP connection. |
void |
sendString(java.lang.String str,
java.lang.String encoding)
Sends a String with the specified encoding through the TCP/IP connection. |
void |
setMaxDataSize(int maxDataSize)
Sets the maxDataSize. |
void |
setState(java.lang.String stateValue)
Sets the State. |
Field Detail |
---|
static final java.lang.String version
Method Detail |
---|
HL7v3AppMessage getHL7Message() throws HL7ApplicationException
HL7v3AppMessage
- Object.
HL7ApplicationException
- Thrown upon error.
HL7ApplicationException
HL7v3MessageInfoInterface getHL7v3MessageInfo() throws HL7ApplicationException
HL7v3MessageInfo
- Object.
HL7ApplicationException
- Thrown upon error.
HL7ApplicationException
TCPIPClientConfigInfoInterface getTCPIPOutboundConfigInfo()
TCPIPClientConfigInfo
- Object.
boolean isClosed() throws TCPIPApplicationException, java.io.IOException
Boolean
- Represents the status of the connection.
TCPIPApplicationException
- Thrown upon error.
IOException
- Thrown upon i/o error.
TCPIPApplicationException
java.io.IOException
void closeConnection() throws TCPIPApplicationException, java.io.IOException
TCPIPApplicationException
- Thrown upon error.
IOException
- Thrown upon i/o error.
TCPIPApplicationException
java.io.IOException
java.net.Socket getSocket() throws TCPIPApplicationException, java.io.IOException
Socket
- The java.net.Socket instance.
TCPIPApplicationException
- Thrown upon error.
IOException
- Thrown upon i/o error.
TCPIPApplicationException
java.io.IOException
int getMaxDataSize()
int
- The max size of data that can be held.
void setMaxDataSize(int maxDataSize) throws TCPIPApplicationException
maxDataSize
- The maxDataSize to set.
TCPIPApplicationException
- Thrown upon error.
TCPIPApplicationException
java.lang.String getState() throws TCPIPApplicationException
String
- The state value.
TCPIPApplicationException
- Thrown upon error.
TCPIPApplicationException
void setState(java.lang.String stateValue) throws TCPIPApplicationException
stateValue
- The state value to set.
TCPIPApplicationException
- Thrown upon error.
TCPIPApplicationException
java.lang.String receiveString() throws TCPIPApplicationException, java.io.IOException
The following are the end conditions of the read operation:
Once one of the above conditions are in effect, the attempted reading gracefully stops and all data is returned. An empty string "" is returned if no data is received.
String
- Object.
TCPIPApplicationException
- Thrown upon error
IOException
- Thrown upon i/o error
TCPIPApplicationException
java.io.IOException
java.lang.String receiveString(java.lang.String encoding) throws TCPIPApplicationException, java.io.IOException
The following are the end conditions of the read operation:
Once one of the above conditions are in effect, the attempted reading gracefully stops and all data is returned. An empty string "" is returned if no data is received.
encoding
- The encoding charset name.
String
Object.
TCPIPApplicationException
- Thrown upon error.
IOException
- Thrown upon i/o error.
TCPIPApplicationException
java.io.IOException
byte[] receiveBytes() throws TCPIPApplicationException, java.io.IOException
The following are the end conditions of the read operation:
Once one of the above conditions are in effect, the attempted reading gracefully stops and all data is returned. A zero-length byte array is returned if no data is received.
byte[]
- A byte array.
TCPIPApplicationException
- Thrown upon error.
IOException
- Thrown upon i/o error.
TCPIPApplicationException
java.io.IOException
void sendString(java.lang.String str) throws TCPIPApplicationException, java.io.IOException
str
- A String to send.
TCPIPApplicationException
- Thrown upon error.
IOException
- Thrown upon i/o error.
TCPIPApplicationException
java.io.IOException
void sendString(java.lang.String str, java.lang.String encoding) throws TCPIPApplicationException, java.io.IOException
str
- A String to send.encoding
- The encoding charset name.
TCPIPApplicationException
- Thrown upon error.
IOException
- Thrown upon i/o error.
TCPIPApplicationException
java.io.IOException
void sendBytes(byte[] bytes) throws TCPIPApplicationException, java.io.IOException
bytes
- A byte array to send.
TCPIPApplicationException
- Thrown upon error.
IOException
- Thrown upon i/o error.
TCPIPApplicationException
java.io.IOException
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |