Class Jep380SocketChannelAdapter
- java.lang.Object
-
- java.net.Socket
-
- org.apache.hc.client5.http.socket.Jep380SocketChannelAdapter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
final class Jep380SocketChannelAdapter extends java.net.Socket
-
-
Field Summary
Fields Modifier and Type Field Description private Jep380SocketChannelImplAdapteradapterprivate java.nio.channels.SocketChannelchannel
-
Constructor Summary
Constructors Modifier Constructor Description (package private)Jep380SocketChannelAdapter(java.nio.channels.SocketChannel channel)privateJep380SocketChannelAdapter(java.nio.channels.SocketChannel channel, Jep380SocketChannelImplAdapter adapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconnect(java.net.SocketAddress endpoint)voidconnect(java.net.SocketAddress endpoint, int timeout)java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()intgetSoTimeout()booleanisClosed()booleanisConnected()voidsetSoTimeout(int timeout)-
Methods inherited from class java.net.Socket
bind, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getTcpNoDelay, getTrafficClass, isBound, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
-
-
-
-
Field Detail
-
channel
private final java.nio.channels.SocketChannel channel
-
adapter
private final Jep380SocketChannelImplAdapter adapter
-
-
Constructor Detail
-
Jep380SocketChannelAdapter
Jep380SocketChannelAdapter(java.nio.channels.SocketChannel channel) throws java.io.IOException- Throws:
java.io.IOException
-
Jep380SocketChannelAdapter
private Jep380SocketChannelAdapter(java.nio.channels.SocketChannel channel, Jep380SocketChannelImplAdapter adapter)
-
-
Method Detail
-
connect
public void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException- Overrides:
connectin classjava.net.Socket- Throws:
java.io.IOException
-
connect
public void connect(java.net.SocketAddress endpoint) throws java.io.IOException- Overrides:
connectin classjava.net.Socket- Throws:
java.io.IOException
-
isConnected
public boolean isConnected()
- Overrides:
isConnectedin classjava.net.Socket
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Overrides:
getInputStreamin classjava.net.Socket- Throws:
java.io.IOException
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException- Overrides:
getOutputStreamin classjava.net.Socket- Throws:
java.io.IOException
-
isClosed
public boolean isClosed()
- Overrides:
isClosedin classjava.net.Socket
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.net.Socket- Throws:
java.io.IOException
-
getSoTimeout
public int getSoTimeout() throws java.net.SocketException- Overrides:
getSoTimeoutin classjava.net.Socket- Throws:
java.net.SocketException
-
setSoTimeout
public void setSoTimeout(int timeout) throws java.net.SocketException- Overrides:
setSoTimeoutin classjava.net.Socket- Throws:
java.net.SocketException
-
-