|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.uhn.hl7v2.protocol.impl.HL7Server
public class HL7Server
A TCP/IP based server.
| Constructor Summary | |
|---|---|
HL7Server(java.net.ServerSocket theServerSocket,
ApplicationRouter theRouter,
SafeStorage theStorage)
|
|
HL7Server(java.net.ServerSocket theLocallyDriven,
java.net.ServerSocket theRemotelyDriven,
ApplicationRouter theRouter,
SafeStorage theStorage)
|
|
| Method Summary | |
|---|---|
Processor |
accept(java.lang.String theAddress)
Accepts a single inbound connection if the same ServerSocket is used for all message exchanges, or a connection from each if two ServerSockets are being used. |
Processor[] |
getProcessors()
|
boolean |
isRunning()
|
static void |
main(java.lang.String[] args)
|
void |
start(java.lang.String theAddress)
Starts accepting connections in a new Thread. |
void |
stop()
Stops running after the next connection is made. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HL7Server(java.net.ServerSocket theServerSocket,
ApplicationRouter theRouter,
SafeStorage theStorage)
theServerSocket - a ServerSocket on which to listen for connections that will
be used for both locally-driven and remotely-driven message exchangestheRouter - used to send incoming messages to appropriate ApplicationstheStorage - used to commit incoming messages to safe storage before returning
an accept ACK
public HL7Server(java.net.ServerSocket theLocallyDriven,
java.net.ServerSocket theRemotelyDriven,
ApplicationRouter theRouter,
SafeStorage theStorage)
theLocallyDriven - a ServerSocket on which to listen for connections that will
be used for locally-initiated message exchangestheRemotelyDriven - a ServerSocket on which to listen for connections that will
be used for remotely-initiated message exchangestheRouter - used to send incoming messages to appropriate ApplicationstheStorage - used to commit incoming messages to safe storage before returning
an accept ACK| Method Detail |
|---|
public Processor accept(java.lang.String theAddress)
throws TransportException
theAddress - the IP address from which to accept connections (null means
accept from any address). Connection attempts from other addresses will
be ignored.
Processor connected to the given address
TransportExceptionpublic void start(java.lang.String theAddress)
theAddress - IP address from which connections are accepted (null
means any address is OK)public void stop()
public boolean isRunning()
public Processor[] getProcessors()
Processors arising from connections to this serverpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||