Class Jep380SocketChannelAdapter
java.lang.Object
java.net.Socket
org.apache.hc.client5.http.socket.Jep380SocketChannelAdapter
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Jep380SocketChannelImplAdapterprivate final SocketChannel -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)Jep380SocketChannelAdapter(SocketChannel channel) privateJep380SocketChannelAdapter(SocketChannel channel, Jep380SocketChannelImplAdapter adapter) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) intbooleanisClosed()booleanvoidsetSoTimeout(int timeout) Methods inherited from class 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 Details
-
channel
-
adapter
-
-
Constructor Details
-
Jep380SocketChannelAdapter
Jep380SocketChannelAdapter(SocketChannel channel) throws IOException - Throws:
IOException
-
Jep380SocketChannelAdapter
-
-
Method Details
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
isConnected
public boolean isConnected()- Overrides:
isConnectedin classSocket
-
getInputStream
- Overrides:
getInputStreamin classSocket- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStreamin classSocket- Throws:
IOException
-
isClosed
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
getSoTimeout
- Overrides:
getSoTimeoutin classSocket- Throws:
SocketException
-
setSoTimeout
- Overrides:
setSoTimeoutin classSocket- Throws:
SocketException
-