Package org.webpieces.httpclient11.impl
Class Proxy
- java.lang.Object
-
- org.webpieces.httpclient11.impl.Proxy
-
- All Implemented Interfaces:
ChannelProxy
public class Proxy extends java.lang.Object implements ChannelProxy
-
-
Constructor Summary
Constructors Constructor Description Proxy(org.webpieces.nio.api.channels.TCPChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Void>close()java.util.concurrent.CompletableFuture<java.lang.Void>connect(java.net.InetSocketAddress addr, org.webpieces.nio.api.handlers.DataListener dataListener)java.lang.StringgetId()booleanisSecure()java.util.concurrent.CompletableFuture<java.lang.Void>write(java.nio.ByteBuffer wrap)
-
-
-
Method Detail
-
connect
public java.util.concurrent.CompletableFuture<java.lang.Void> connect(java.net.InetSocketAddress addr, org.webpieces.nio.api.handlers.DataListener dataListener)- Specified by:
connectin interfaceChannelProxy
-
write
public java.util.concurrent.CompletableFuture<java.lang.Void> write(java.nio.ByteBuffer wrap)
- Specified by:
writein interfaceChannelProxy
-
close
public java.util.concurrent.CompletableFuture<java.lang.Void> close()
- Specified by:
closein interfaceChannelProxy
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceChannelProxy
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfaceChannelProxy
-
-