org.globus.net
Class WrappedSocket

java.lang.Object
  extended by java.net.Socket
      extended by org.globus.net.WrappedSocket
Direct Known Subclasses:
GssSocket

public class WrappedSocket
extends java.net.Socket


Field Summary
protected  java.net.Socket socket
           
 
Constructor Summary
protected WrappedSocket()
           
  WrappedSocket(java.net.Socket socket)
           
 
Method Summary
 void close()
           
 java.net.InetAddress getInetAddress()
           
 java.io.InputStream getInputStream()
           
 boolean getKeepAlive()
           
 java.net.InetAddress getLocalAddress()
           
 int getLocalPort()
           
 java.io.OutputStream getOutputStream()
           
 int getPort()
           
 int getReceiveBufferSize()
           
 int getSendBufferSize()
           
 int getSoLinger()
           
 int getSoTimeout()
           
 boolean getTcpNoDelay()
           
 java.net.Socket getWrappedSocket()
           
 void setKeepAlive(boolean on)
           
 void setReceiveBufferSize(int size)
           
 void setSendBufferSize(int size)
           
 void setSoLinger(boolean on, int linger)
           
 void setSoTimeout(int timeout)
           
 void setTcpNoDelay(boolean on)
           
 void shutdownInput()
           
 void shutdownOutput()
           
 java.lang.String toString()
           
 
Methods inherited from class java.net.Socket
bind, connect, connect, getChannel, getLocalSocketAddress, getOOBInline, getRemoteSocketAddress, getReuseAddress, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

socket

protected java.net.Socket socket
Constructor Detail

WrappedSocket

protected WrappedSocket()

WrappedSocket

public WrappedSocket(java.net.Socket socket)
Method Detail

getWrappedSocket

public java.net.Socket getWrappedSocket()

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Overrides:
getOutputStream in class java.net.Socket
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Overrides:
getInputStream in class java.net.Socket
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.net.Socket
Throws:
java.io.IOException

getInetAddress

public java.net.InetAddress getInetAddress()
Overrides:
getInetAddress in class java.net.Socket

getKeepAlive

public boolean getKeepAlive()
                     throws java.net.SocketException
Overrides:
getKeepAlive in class java.net.Socket
Throws:
java.net.SocketException

getLocalAddress

public java.net.InetAddress getLocalAddress()
Overrides:
getLocalAddress in class java.net.Socket

getLocalPort

public int getLocalPort()
Overrides:
getLocalPort in class java.net.Socket

getPort

public int getPort()
Overrides:
getPort in class java.net.Socket

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws java.net.SocketException
Overrides:
getReceiveBufferSize in class java.net.Socket
Throws:
java.net.SocketException

getSendBufferSize

public int getSendBufferSize()
                      throws java.net.SocketException
Overrides:
getSendBufferSize in class java.net.Socket
Throws:
java.net.SocketException

getSoLinger

public int getSoLinger()
                throws java.net.SocketException
Overrides:
getSoLinger in class java.net.Socket
Throws:
java.net.SocketException

getSoTimeout

public int getSoTimeout()
                 throws java.net.SocketException
Overrides:
getSoTimeout in class java.net.Socket
Throws:
java.net.SocketException

getTcpNoDelay

public boolean getTcpNoDelay()
                      throws java.net.SocketException
Overrides:
getTcpNoDelay in class java.net.Socket
Throws:
java.net.SocketException

setKeepAlive

public void setKeepAlive(boolean on)
                  throws java.net.SocketException
Overrides:
setKeepAlive in class java.net.Socket
Throws:
java.net.SocketException

setReceiveBufferSize

public void setReceiveBufferSize(int size)
                          throws java.net.SocketException
Overrides:
setReceiveBufferSize in class java.net.Socket
Throws:
java.net.SocketException

setSendBufferSize

public void setSendBufferSize(int size)
                       throws java.net.SocketException
Overrides:
setSendBufferSize in class java.net.Socket
Throws:
java.net.SocketException

setSoLinger

public void setSoLinger(boolean on,
                        int linger)
                 throws java.net.SocketException
Overrides:
setSoLinger in class java.net.Socket
Throws:
java.net.SocketException

setSoTimeout

public void setSoTimeout(int timeout)
                  throws java.net.SocketException
Overrides:
setSoTimeout in class java.net.Socket
Throws:
java.net.SocketException

setTcpNoDelay

public void setTcpNoDelay(boolean on)
                   throws java.net.SocketException
Overrides:
setTcpNoDelay in class java.net.Socket
Throws:
java.net.SocketException

shutdownInput

public void shutdownInput()
                   throws java.io.IOException
Overrides:
shutdownInput in class java.net.Socket
Throws:
java.io.IOException

shutdownOutput

public void shutdownOutput()
                    throws java.io.IOException
Overrides:
shutdownOutput in class java.net.Socket
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.net.Socket


Copyright © 2013. All Rights Reserved.