Class Jdk7HttpProxySocket
- java.lang.Object
-
- java.net.Socket
-
- com.hierynomus.protocol.commons.backport.Jdk7HttpProxySocket
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class Jdk7HttpProxySocket extends java.net.SocketSocket wrapper that supports pre-Java8 HTTP CONNECT proxies
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.ProxyhttpProxy
-
Constructor Summary
Constructors Constructor Description Jdk7HttpProxySocket(java.net.Proxy proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckAndFlushProxyResponse()voidconnect(java.net.SocketAddress endpoint, int timeout)private voidconnectHttpProxy(java.net.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
-
-
-
-
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
-
connectHttpProxy
private void connectHttpProxy(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException- Throws:
java.io.IOException
-
checkAndFlushProxyResponse
private void checkAndFlushProxyResponse() throws java.io.IOException- Throws:
java.io.IOException
-
-