|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HL7ServerApplication
This interface represents the HL7 server application upon TCP/IP connection.
Field Summary | |
---|---|
static java.lang.String |
version
|
Method Summary | |
---|---|
void |
closeConnection()
Closes the server application connection. |
boolean |
getDedicatedSessionMode()
Returns the dedicatedSessionMode. |
HL7AppMessage |
getHL7Message()
Returns an object used as an HL7 specific message/function holder. |
HL7MessageInfoInterface |
getHL7MessageInfo()
Returns an object which represents the HL7 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 which is set by user. |
TCPIPServerConfigInfoInterface |
getTCPIPInboundConfigInfo()
Returns an object that represents the base TCP/IP Inbound configuration information. |
boolean |
isClosed()
Checks whether the connection is closed. |
byte[] |
receiveBytes()
Reads all data available on the TCP/IP connection. |
java.lang.String |
receiveString()
Reads all data which is available on TCP/IP connection. |
java.lang.String |
receiveString(java.lang.String encoding)
Reads all data which is available on 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 the 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 |
setDedicatedSessionMode(boolean dedicatedSessionMode)
Sets the dedicatedSessionMode. |
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 |
---|
HL7AppMessage getHL7Message() throws HL7ApplicationException
HL7AppMessage
- Object.
HL7ApplicationException
- Thrown upon error.
HL7ApplicationException
HL7MessageInfoInterface getHL7MessageInfo() throws HL7ApplicationException
HL7MessageInfo
- Object.
HL7ApplicationException
- Thrown upon error.
HL7ApplicationException
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 is in effect, the reading attempt gracefully stops and all data is returned. An empty string "" is returned if no any 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 is in effect, the reading attempt gracefully stops and all data is returned. An empty string "" is returned if no any 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 reading attempt gracefully stops and all data is returned. A zero-length byte array will be returned if no any 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
boolean isClosed() throws TCPIPApplicationException
Boolean
- Represents the status of the connection.
TCPIPApplicationException
- Thrown upon error.
TCPIPApplicationException
void closeConnection() throws TCPIPApplicationException
TCPIPApplicationException
- Thrown upon error.
TCPIPApplicationException
boolean getDedicatedSessionMode()
Boolean
- Returns true or false.
void setDedicatedSessionMode(boolean dedicatedSessionMode)
dedicatedSessionMode
- The dedicatedSessionMode to set.TCPIPServerConfigInfoInterface getTCPIPInboundConfigInfo()
TCPIPServerConfigInfo
- Object.
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |