com.multisoftgroup.jerry.server.net
Class BufferedSocket

java.lang.Object
  extended by java.net.Socket
      extended by com.multisoftgroup.jerry.server.net.BufferedSocket

public class BufferedSocket
extends Socket


Constructor Summary
BufferedSocket(Socket socket)
          Creates a new instance of BufferedSocket
 
Method Summary
 void addHandshakeCompletedListener(HandshakeCompletedListener handshakeCompletedListener)
           
 void bind(SocketAddress socketAddress)
           
 void close()
           
 void connect(SocketAddress socketAddress)
           
 void connect(SocketAddress socketAddress, int param)
           
 SocketChannel getChannel()
           
 String[] getEnabledCipherSuites()
           
 String[] getEnabledProtocols()
           
 boolean getEnableSessionCreation()
           
 InetAddress getInetAddress()
           
 InputStream getInputStream()
           
 boolean getKeepAlive()
           
 InetAddress getLocalAddress()
           
 int getLocalPort()
           
 SocketAddress getLocalSocketAddress()
           
 boolean getNeedClientAuth()
           
 boolean getOOBInline()
           
 OutputStream getOutputStream()
           
 int getPort()
           
 int getReceiveBufferSize()
           
 SocketAddress getRemoteSocketAddress()
           
 boolean getReuseAddress()
           
 int getSendBufferSize()
           
 SSLSession getSession()
           
 int getSoLinger()
           
 int getSoTimeout()
           
 String[] getSupportedCipherSuites()
           
 String[] getSupportedProtocols()
           
 boolean getTcpNoDelay()
           
 int getTrafficClass()
           
 boolean getUseClientMode()
           
 boolean getWantClientAuth()
           
 boolean isBound()
           
 boolean isClosed()
           
 boolean isConnected()
           
 boolean isInputShutdown()
           
 boolean isOutputShutdown()
           
 void removeHandshakeCompletedListener(HandshakeCompletedListener handshakeCompletedListener)
           
 void sendUrgentData(int param)
           
 void setEnabledCipherSuites(String[] stringArray)
           
 void setEnabledProtocols(String[] stringArray)
           
 void setEnableSessionCreation(boolean _boolean)
           
 void setKeepAlive(boolean param)
           
 void setNeedClientAuth(boolean _boolean)
           
 void setOOBInline(boolean param)
           
 void setPerformancePreferences(int param, int param1, int param2)
           
 void setReceiveBufferSize(int param)
           
 void setReuseAddress(boolean param)
           
 void setSendBufferSize(int param)
           
 void setSoLinger(boolean param, int param1)
           
 void setSoTimeout(int param)
           
 void setTcpNoDelay(boolean param)
           
 void setTrafficClass(int param)
           
 void setUseClientMode(boolean _boolean)
           
 void setWantClientAuth(boolean _boolean)
           
 void shutdownInput()
           
 void shutdownOutput()
           
 void startHandshake()
           
 String toString()
           
 
Methods inherited from class java.net.Socket
setSocketImplFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedSocket

public BufferedSocket(Socket socket)
               throws IOException
Creates a new instance of BufferedSocket

Throws:
IOException
Method Detail

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()