Package com.sshtools.j2ssh.net
Class HttpProxySocketProvider
java.lang.Object
java.net.Socket
com.sshtools.j2ssh.net.HttpProxySocketProvider
- All Implemented Interfaces:
TransportProvider,Closeable,AutoCloseable
- Version:
- $Revision: 1.13 $
- Author:
- $author$
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpProxySocketProviderconnectViaProxy(String host, int port, String proxyHost, int proxyPort, String username, String password, String userAgent) static HttpProxySocketProviderconnectViaProxy(String host, int port, String proxyHost, int proxyPort, String protocol, String username, String password, String userAgent) toString()Methods inherited from class java.net.Socket
bind, close, connect, 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, supportedOptionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sshtools.j2ssh.net.TransportProvider
close, getInputStream, getOutputStream
-
Method Details
-
connectViaProxy
public static HttpProxySocketProvider connectViaProxy(String host, int port, String proxyHost, int proxyPort, String username, String password, String userAgent) throws IOException, UnknownHostException - Parameters:
host-port-proxyHost-proxyPort-username-password-userAgent-- Returns:
- Throws:
IOExceptionUnknownHostException
-
connectViaProxy
public static HttpProxySocketProvider connectViaProxy(String host, int port, String proxyHost, int proxyPort, String protocol, String username, String password, String userAgent) throws IOException, UnknownHostException - Parameters:
host-port-proxyHost-proxyPort-protocol-username-password-userAgent-- Returns:
- Throws:
IOExceptionUnknownHostExceptionSocketException
-
toString
-
getResponseHeader
- Returns:
-
getProviderDetail
- Specified by:
getProviderDetailin interfaceTransportProvider- Returns:
-