Class Jdk7HttpProxySocket
java.lang.Object
java.net.Socket
com.hierynomus.protocol.commons.backport.Jdk7HttpProxySocket
- All Implemented Interfaces:
Closeable
,AutoCloseable
Socket wrapper that supports pre-Java8 HTTP CONNECT proxies
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
connect
(SocketAddress endpoint, int timeout) private void
connectHttpProxy
(SocketAddress endpoint, int timeout) Methods inherited from class java.net.Socket
bind, close, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
-
Field Details
-
httpProxy
-
-
Constructor Details
-
Jdk7HttpProxySocket
-
-
Method Details
-
connect
- Overrides:
connect
in classSocket
- Throws:
IOException
-
connectHttpProxy
- Throws:
IOException
-
checkAndFlushProxyResponse
- Throws:
IOException
-