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 HttpProxySocketProvider
connectViaProxy
(String host, int port, String proxyHost, int proxyPort, String username, String password, String userAgent) static HttpProxySocketProvider
connectViaProxy
(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, supportedOptions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
IOException
UnknownHostException
-
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:
IOException
UnknownHostException
SocketException
-
toString
-
getResponseHeader
- Returns:
-
getProviderDetail
- Specified by:
getProviderDetail
in interfaceTransportProvider
- Returns:
-