|
Sun Adapter for TCP/IP HL7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.net.Socket
com.stc.connector.tcpip.model.factory.TCPIPSocketFactoryImpl.TCPIPSocket
public class TCPIPSocketFactoryImpl.TCPIPSocket
It is observed that socket.getOutputStream() inside glassfish application server returns a different OutputStream everytime it is invoked. This class is written just to override getOutputStream() to return the same instance of OutputStream everytime it is invoked on this socket.
| Constructor Summary | |
|---|---|
TCPIPSocketFactoryImpl.TCPIPSocket()
Constructor |
|
TCPIPSocketFactoryImpl.TCPIPSocket(java.net.InetAddress address,
int port)
Constructor |
|
TCPIPSocketFactoryImpl.TCPIPSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort)
Constructor |
|
TCPIPSocketFactoryImpl.TCPIPSocket(java.lang.String host,
int port)
Constructor |
|
TCPIPSocketFactoryImpl.TCPIPSocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort)
Constructor |
|
| Method Summary | |
|---|---|
java.io.OutputStream |
getOutputStream()
This method is overridden to ensure that the same outputStream is returned everytime it is invoked on this socket |
| Methods inherited from class java.net.Socket |
|---|
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TCPIPSocketFactoryImpl.TCPIPSocket()
public TCPIPSocketFactoryImpl.TCPIPSocket(java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
host - remote host to connectport - remote port number to connect
java.net.UnknownHostException
java.io.IOException
public TCPIPSocketFactoryImpl.TCPIPSocket(java.net.InetAddress address,
int port)
throws java.io.IOException
address - remote address to connectport - remote port number to connect
java.io.IOException
public TCPIPSocketFactoryImpl.TCPIPSocket(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort)
throws java.io.IOException
host - remote host to connectport - remote port number to connectlocalAddr - local address the socket is bound tolocalPort - local port the socket is bound to
java.io.IOException
public TCPIPSocketFactoryImpl.TCPIPSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort)
throws java.io.IOException
address - remote address to connectport - remote port to connectlocalAddr - local InetAddress this socket is bound tolocalPort - local port this socket is bound to
java.io.IOException| Method Detail |
|---|
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.Socketjava.io.IOException
|
Sun Adapter for TCP/IP HL7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||