com.multisoftgroup.jerry.server.net
Class BufferedSocket
java.lang.Object
java.net.Socket
com.multisoftgroup.jerry.server.net.BufferedSocket
public class BufferedSocket
- extends Socket
BufferedSocket
public BufferedSocket(Socket socket)
throws IOException
- Creates a new instance of BufferedSocket
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- Overrides:
getInputStream in class Socket
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Overrides:
getOutputStream in class Socket
- Throws:
IOException
close
public void close()
throws IOException
- Overrides:
close in class Socket
- Throws:
IOException
setTcpNoDelay
public void setTcpNoDelay(boolean param)
throws SocketException
- Overrides:
setTcpNoDelay in class Socket
- Throws:
SocketException
setKeepAlive
public void setKeepAlive(boolean param)
throws SocketException
- Overrides:
setKeepAlive in class Socket
- Throws:
SocketException
setOOBInline
public void setOOBInline(boolean param)
throws SocketException
- Overrides:
setOOBInline in class Socket
- Throws:
SocketException
setReuseAddress
public void setReuseAddress(boolean param)
throws SocketException
- Overrides:
setReuseAddress in class Socket
- Throws:
SocketException
connect
public void connect(SocketAddress socketAddress)
throws IOException
- Overrides:
connect in class Socket
- Throws:
IOException
bind
public void bind(SocketAddress socketAddress)
throws IOException
- Overrides:
bind in class Socket
- Throws:
IOException
setTrafficClass
public void setTrafficClass(int param)
throws SocketException
- Overrides:
setTrafficClass in class Socket
- Throws:
SocketException
setSoTimeout
public void setSoTimeout(int param)
throws SocketException
- Overrides:
setSoTimeout in class Socket
- Throws:
SocketException
setSendBufferSize
public void setSendBufferSize(int param)
throws SocketException
- Overrides:
setSendBufferSize in class Socket
- Throws:
SocketException
sendUrgentData
public void sendUrgentData(int param)
throws IOException
- Overrides:
sendUrgentData in class Socket
- Throws:
IOException
setReceiveBufferSize
public void setReceiveBufferSize(int param)
throws SocketException
- Overrides:
setReceiveBufferSize in class Socket
- Throws:
SocketException
connect
public void connect(SocketAddress socketAddress,
int param)
throws IOException
- Overrides:
connect in class Socket
- Throws:
IOException
setSoLinger
public void setSoLinger(boolean param,
int param1)
throws SocketException
- Overrides:
setSoLinger in class Socket
- Throws:
SocketException
toString
public String toString()
- Overrides:
toString in class Socket
shutdownOutput
public void shutdownOutput()
throws IOException
- Overrides:
shutdownOutput in class Socket
- Throws:
IOException
shutdownInput
public void shutdownInput()
throws IOException
- Overrides:
shutdownInput in class Socket
- Throws:
IOException
isBound
public boolean isBound()
- Overrides:
isBound in class Socket
getSendBufferSize
public int getSendBufferSize()
throws SocketException
- Overrides:
getSendBufferSize in class Socket
- Throws:
SocketException
getPort
public int getPort()
- Overrides:
getPort in class Socket
getRemoteSocketAddress
public SocketAddress getRemoteSocketAddress()
- Overrides:
getRemoteSocketAddress in class Socket
getSoTimeout
public int getSoTimeout()
throws SocketException
- Overrides:
getSoTimeout in class Socket
- Throws:
SocketException
getTrafficClass
public int getTrafficClass()
throws SocketException
- Overrides:
getTrafficClass in class Socket
- Throws:
SocketException
getOOBInline
public boolean getOOBInline()
throws SocketException
- Overrides:
getOOBInline in class Socket
- Throws:
SocketException
getSoLinger
public int getSoLinger()
throws SocketException
- Overrides:
getSoLinger in class Socket
- Throws:
SocketException
setPerformancePreferences
public void setPerformancePreferences(int param,
int param1,
int param2)
- Overrides:
setPerformancePreferences in class Socket
getLocalPort
public int getLocalPort()
- Overrides:
getLocalPort in class Socket
getLocalAddress
public InetAddress getLocalAddress()
- Overrides:
getLocalAddress in class Socket
isOutputShutdown
public boolean isOutputShutdown()
- Overrides:
isOutputShutdown in class Socket
getReceiveBufferSize
public int getReceiveBufferSize()
throws SocketException
- Overrides:
getReceiveBufferSize in class Socket
- Throws:
SocketException
isClosed
public boolean isClosed()
- Overrides:
isClosed in class Socket
getInetAddress
public InetAddress getInetAddress()
- Overrides:
getInetAddress in class Socket
getChannel
public SocketChannel getChannel()
- Overrides:
getChannel in class Socket
isConnected
public boolean isConnected()
- Overrides:
isConnected in class Socket
isInputShutdown
public boolean isInputShutdown()
- Overrides:
isInputShutdown in class Socket
getReuseAddress
public boolean getReuseAddress()
throws SocketException
- Overrides:
getReuseAddress in class Socket
- Throws:
SocketException
getLocalSocketAddress
public SocketAddress getLocalSocketAddress()
- Overrides:
getLocalSocketAddress in class Socket
getKeepAlive
public boolean getKeepAlive()
throws SocketException
- Overrides:
getKeepAlive in class Socket
- Throws:
SocketException
getTcpNoDelay
public boolean getTcpNoDelay()
throws SocketException
- Overrides:
getTcpNoDelay in class Socket
- Throws:
SocketException
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
getEnabledCipherSuites
public String[] getEnabledCipherSuites()
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] stringArray)
getSupportedProtocols
public String[] getSupportedProtocols()
getEnabledProtocols
public String[] getEnabledProtocols()
setEnabledProtocols
public void setEnabledProtocols(String[] stringArray)
getSession
public SSLSession getSession()
addHandshakeCompletedListener
public void addHandshakeCompletedListener(HandshakeCompletedListener handshakeCompletedListener)
removeHandshakeCompletedListener
public void removeHandshakeCompletedListener(HandshakeCompletedListener handshakeCompletedListener)
startHandshake
public void startHandshake()
throws IOException
- Throws:
IOException
setUseClientMode
public void setUseClientMode(boolean _boolean)
getUseClientMode
public boolean getUseClientMode()
setNeedClientAuth
public void setNeedClientAuth(boolean _boolean)
getNeedClientAuth
public boolean getNeedClientAuth()
setWantClientAuth
public void setWantClientAuth(boolean _boolean)
getWantClientAuth
public boolean getWantClientAuth()
setEnableSessionCreation
public void setEnableSessionCreation(boolean _boolean)
getEnableSessionCreation
public boolean getEnableSessionCreation()