Class Jep380SocketChannelImplAdapter
- java.lang.Object
-
- java.net.SocketImpl
-
- org.apache.hc.client5.http.socket.Jep380SocketChannelImplAdapter
-
- All Implemented Interfaces:
java.net.SocketOptions
final class Jep380SocketChannelImplAdapter extends java.net.SocketImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classJep380SocketChannelImplAdapter.InputStreamAdapterprivate classJep380SocketChannelImplAdapter.OutputStreamAdapter
-
Field Summary
Fields Modifier and Type Field Description private java.nio.channels.SocketChannelchannel(package private) intsoTimeoutMs
-
Constructor Summary
Constructors Constructor Description Jep380SocketChannelImplAdapter(java.nio.channels.SocketChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept(java.net.SocketImpl s)protected intavailable()protected voidbind(java.net.InetAddress host, int port)protected voidclose()protected voidconnect(java.lang.String host, int port)protected voidconnect(java.net.InetAddress address, int port)protected voidconnect(java.net.SocketAddress address, int timeout)protected voidcreate(boolean stream)protected java.io.InputStreamgetInputStream()java.lang.ObjectgetOption(int optID)protected java.io.OutputStreamgetOutputStream()protected voidlisten(int backlog)protected voidsendUrgentData(int data)voidsetOption(int optID, java.lang.Object value)
-
-
-
Method Detail
-
close
protected void close() throws java.io.IOException- Specified by:
closein classjava.net.SocketImpl- Throws:
java.io.IOException
-
getInputStream
protected java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin classjava.net.SocketImpl- Throws:
java.io.IOException
-
getOutputStream
protected java.io.OutputStream getOutputStream() throws java.io.IOException- Specified by:
getOutputStreamin classjava.net.SocketImpl- Throws:
java.io.IOException
-
getOption
public java.lang.Object getOption(int optID) throws java.net.SocketException- Throws:
java.net.SocketException
-
setOption
public void setOption(int optID, java.lang.Object value) throws java.net.SocketException- Throws:
java.net.SocketException
-
accept
protected void accept(java.net.SocketImpl s) throws java.io.IOException- Specified by:
acceptin classjava.net.SocketImpl- Throws:
java.io.IOException
-
available
protected int available() throws java.io.IOException- Specified by:
availablein classjava.net.SocketImpl- Throws:
java.io.IOException
-
bind
protected void bind(java.net.InetAddress host, int port) throws java.io.IOException- Specified by:
bindin classjava.net.SocketImpl- Throws:
java.io.IOException
-
connect
protected void connect(java.lang.String host, int port) throws java.io.IOException- Specified by:
connectin classjava.net.SocketImpl- Throws:
java.io.IOException
-
connect
protected void connect(java.net.InetAddress address, int port) throws java.io.IOException- Specified by:
connectin classjava.net.SocketImpl- Throws:
java.io.IOException
-
connect
protected void connect(java.net.SocketAddress address, int timeout) throws java.io.IOException- Specified by:
connectin classjava.net.SocketImpl- Throws:
java.io.IOException
-
create
protected void create(boolean stream) throws java.io.IOException- Specified by:
createin classjava.net.SocketImpl- Throws:
java.io.IOException
-
listen
protected void listen(int backlog) throws java.io.IOException- Specified by:
listenin classjava.net.SocketImpl- Throws:
java.io.IOException
-
sendUrgentData
protected void sendUrgentData(int data) throws java.io.IOException- Specified by:
sendUrgentDatain classjava.net.SocketImpl- Throws:
java.io.IOException
-
-