ca.uhn.hl7v2.protocol.impl
Class ClientSocketStreamSource

java.lang.Object
  extended by ca.uhn.hl7v2.protocol.impl.SocketStreamSource
      extended by ca.uhn.hl7v2.protocol.impl.ClientSocketStreamSource
All Implemented Interfaces:
StreamSource

public class ClientSocketStreamSource
extends SocketStreamSource

A client-side SocketStreamSource.

Version:
$Revision: 1.1 $ updated on $Date: 2007/02/19 02:24:26 $ by $Author: jamesagnew $
Author:
Bryan Tripp

Constructor Summary
ClientSocketStreamSource(java.net.SocketAddress theAddress)
           
 
Method Summary
 void connect()
          Gets fresh instances of sockets.
 java.net.Socket getSocket()
           
 
Methods inherited from class ca.uhn.hl7v2.protocol.impl.SocketStreamSource
disconnect, getInboundStream, getOutboundStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientSocketStreamSource

public ClientSocketStreamSource(java.net.SocketAddress theAddress)
                         throws TransportException
Parameters:
theSharedAddress - the address at which to connect sockets
Throws:
TransportException
Method Detail

getSocket

public java.net.Socket getSocket()
Specified by:
getSocket in class SocketStreamSource
Returns:
a socket from which input and output streams for message exchages are to be obtained
See Also:
SocketStreamSource.getSocket()

connect

public void connect()
             throws TransportException
Gets fresh instances of sockets.

Specified by:
connect in interface StreamSource
Specified by:
connect in class SocketStreamSource
Throws:
TransportException


Copyright © 2001-2011 University Health Network. All Rights Reserved.