public class HttpProxySocket extends java.net.Socket implements StreamSocket
| Modifier and Type | Method and Description |
|---|---|
static HttpProxySocket |
connectViaProxy(java.lang.String host,
int port,
java.lang.String proxyHost,
int proxyPort,
java.lang.String username,
java.lang.String password,
int timeout,
java.lang.String userAgent) |
static HttpProxySocket |
connectViaProxy(java.lang.String host,
int port,
java.lang.String proxyHost,
int proxyPort,
java.lang.String protocol,
java.lang.String username,
java.lang.String password,
int timeout,
java.lang.String userAgent) |
java.lang.String |
getDetail()
Get details about the socket
|
java.lang.String |
getRemoteHost()
Get the actual hostname
|
HttpHeader |
getResponseHeader() |
boolean |
isSecureMode()
Is this socket in secure mode?
|
void |
setRemoteHost(java.lang.String remoteHost)
Set the remote hostname
|
java.lang.String |
toString() |
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutputclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getInetAddress, getInputStream, getLocalAddress, getLocalPort, getOutputStream, getReceiveBufferSize, getSendBufferSize, getSoTimeout, isConnected, setReceiveBufferSize, setSendBufferSize, setSoTimeoutpublic boolean isSecureMode()
isSecureMode in interface StreamSocketpublic java.lang.String getRemoteHost()
getRemoteHost in interface StreamSocketpublic void setRemoteHost(java.lang.String remoteHost)
setRemoteHost in interface StreamSocketremoteHost - remote hostnamepublic static HttpProxySocket connectViaProxy(java.lang.String host, int port, java.lang.String proxyHost, int proxyPort, java.lang.String username, java.lang.String password, int timeout, java.lang.String userAgent) throws java.io.IOException, java.net.UnknownHostException
host - port - proxyHost - proxyPort - username - password - userAgent - java.io.IOExceptionjava.net.UnknownHostExceptionpublic static HttpProxySocket connectViaProxy(java.lang.String host, int port, java.lang.String proxyHost, int proxyPort, java.lang.String protocol, java.lang.String username, java.lang.String password, int timeout, java.lang.String userAgent) throws java.io.IOException, java.net.UnknownHostException
host - port - proxyHost - proxyPort - protocol - username - password - userAgent - java.io.IOExceptionjava.net.UnknownHostExceptionjava.net.SocketExceptionpublic java.lang.String toString()
toString in class java.net.Socketpublic HttpHeader getResponseHeader()
public java.lang.String getDetail()
StreamSocketgetDetail in interface StreamSocketCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.