Class DelegateSocket
- java.lang.Object
- 
- java.net.Socket
- 
- software.amazon.awssdk.http.apache.internal.net.DelegateSocket
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 - Direct Known Subclasses:
- SdkSocket
 
 @SdkInternalApi public class DelegateSocket extends Socket Socket delegate class. Subclasses could extend this class, so that they only need to override methods they are interested in enhancing.
- 
- 
Constructor SummaryConstructors Constructor Description DelegateSocket(Socket sock)
 - 
Method Summary- 
Methods inherited from class java.net.SocketsetSocketImplFactory
 
- 
 
- 
- 
- 
Field Detail- 
sockprotected final Socket sock 
 
- 
 - 
Constructor Detail- 
DelegateSocketpublic DelegateSocket(Socket sock) 
 
- 
 - 
Method Detail- 
connectpublic void connect(SocketAddress endpoint) throws IOException - Overrides:
- connectin class- Socket
- Throws:
- IOException
 
 - 
connectpublic void connect(SocketAddress endpoint, int timeout) throws IOException - Overrides:
- connectin class- Socket
- Throws:
- IOException
 
 - 
bindpublic void bind(SocketAddress bindpoint) throws IOException - Overrides:
- bindin class- Socket
- Throws:
- IOException
 
 - 
getInetAddresspublic InetAddress getInetAddress() - Overrides:
- getInetAddressin class- Socket
 
 - 
getLocalAddresspublic InetAddress getLocalAddress() - Overrides:
- getLocalAddressin class- Socket
 
 - 
getLocalPortpublic int getLocalPort() - Overrides:
- getLocalPortin class- Socket
 
 - 
getRemoteSocketAddresspublic SocketAddress getRemoteSocketAddress() - Overrides:
- getRemoteSocketAddressin class- Socket
 
 - 
getLocalSocketAddresspublic SocketAddress getLocalSocketAddress() - Overrides:
- getLocalSocketAddressin class- Socket
 
 - 
getChannelpublic SocketChannel getChannel() - Overrides:
- getChannelin class- Socket
 
 - 
getInputStreampublic InputStream getInputStream() throws IOException - Overrides:
- getInputStreamin class- Socket
- Throws:
- IOException
 
 - 
getOutputStreampublic OutputStream getOutputStream() throws IOException - Overrides:
- getOutputStreamin class- Socket
- Throws:
- IOException
 
 - 
setTcpNoDelaypublic void setTcpNoDelay(boolean on) throws SocketException- Overrides:
- setTcpNoDelayin class- Socket
- Throws:
- SocketException
 
 - 
getTcpNoDelaypublic boolean getTcpNoDelay() throws SocketException- Overrides:
- getTcpNoDelayin class- Socket
- Throws:
- SocketException
 
 - 
setSoLingerpublic void setSoLinger(boolean on, int linger) throws SocketException- Overrides:
- setSoLingerin class- Socket
- Throws:
- SocketException
 
 - 
getSoLingerpublic int getSoLinger() throws SocketException- Overrides:
- getSoLingerin class- Socket
- Throws:
- SocketException
 
 - 
sendUrgentDatapublic void sendUrgentData(int data) throws IOException- Overrides:
- sendUrgentDatain class- Socket
- Throws:
- IOException
 
 - 
setOOBInlinepublic void setOOBInline(boolean on) throws SocketException- Overrides:
- setOOBInlinein class- Socket
- Throws:
- SocketException
 
 - 
getOOBInlinepublic boolean getOOBInline() throws SocketException- Overrides:
- getOOBInlinein class- Socket
- Throws:
- SocketException
 
 - 
setSoTimeoutpublic void setSoTimeout(int timeout) throws SocketException- Overrides:
- setSoTimeoutin class- Socket
- Throws:
- SocketException
 
 - 
getSoTimeoutpublic int getSoTimeout() throws SocketException- Overrides:
- getSoTimeoutin class- Socket
- Throws:
- SocketException
 
 - 
setSendBufferSizepublic void setSendBufferSize(int size) throws SocketException- Overrides:
- setSendBufferSizein class- Socket
- Throws:
- SocketException
 
 - 
getSendBufferSizepublic int getSendBufferSize() throws SocketException- Overrides:
- getSendBufferSizein class- Socket
- Throws:
- SocketException
 
 - 
setReceiveBufferSizepublic void setReceiveBufferSize(int size) throws SocketException- Overrides:
- setReceiveBufferSizein class- Socket
- Throws:
- SocketException
 
 - 
getReceiveBufferSizepublic int getReceiveBufferSize() throws SocketException- Overrides:
- getReceiveBufferSizein class- Socket
- Throws:
- SocketException
 
 - 
setKeepAlivepublic void setKeepAlive(boolean on) throws SocketException- Overrides:
- setKeepAlivein class- Socket
- Throws:
- SocketException
 
 - 
getKeepAlivepublic boolean getKeepAlive() throws SocketException- Overrides:
- getKeepAlivein class- Socket
- Throws:
- SocketException
 
 - 
setTrafficClasspublic void setTrafficClass(int tc) throws SocketException- Overrides:
- setTrafficClassin class- Socket
- Throws:
- SocketException
 
 - 
getTrafficClasspublic int getTrafficClass() throws SocketException- Overrides:
- getTrafficClassin class- Socket
- Throws:
- SocketException
 
 - 
setReuseAddresspublic void setReuseAddress(boolean on) throws SocketException- Overrides:
- setReuseAddressin class- Socket
- Throws:
- SocketException
 
 - 
getReuseAddresspublic boolean getReuseAddress() throws SocketException- Overrides:
- getReuseAddressin class- Socket
- Throws:
- SocketException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- Socket
- Throws:
- IOException
 
 - 
shutdownInputpublic void shutdownInput() throws IOException- Overrides:
- shutdownInputin class- Socket
- Throws:
- IOException
 
 - 
shutdownOutputpublic void shutdownOutput() throws IOException- Overrides:
- shutdownOutputin class- Socket
- Throws:
- IOException
 
 - 
isConnectedpublic boolean isConnected() - Overrides:
- isConnectedin class- Socket
 
 - 
isInputShutdownpublic boolean isInputShutdown() - Overrides:
- isInputShutdownin class- Socket
 
 - 
isOutputShutdownpublic boolean isOutputShutdown() - Overrides:
- isOutputShutdownin class- Socket
 
 - 
setPerformancePreferencespublic void setPerformancePreferences(int connectionTime, int latency, int bandwidth)- Overrides:
- setPerformancePreferencesin class- Socket
 
 
- 
 
-