Package com.neovisionaries.ws.client
Class ProxyHandshaker
java.lang.Object
com.neovisionaries.ws.client.ProxyHandshaker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addHeaders
(StringBuilder builder) private void
addProxyAuthorization
(StringBuilder builder) private String
(package private) String
To be able to verify the hostname of the certificate received if a connection is made to an https/wss endpoint, access to this hostname is required.void
private void
readStatusLine
(InputStream input) private void
receiveResponse
(Socket socket) private void
sendRequest
(Socket socket) private void
skipHeaders
(InputStream input)
-
Field Details
-
RN
- See Also:
-
mHost
-
mPort
private final int mPort -
mSettings
-
-
Constructor Details
-
ProxyHandshaker
-
-
Method Details
-
perform
- Throws:
IOException
-
sendRequest
- Throws:
IOException
-
buildRequest
-
addHeaders
-
addProxyAuthorization
-
receiveResponse
- Throws:
IOException
-
readStatusLine
- Throws:
IOException
-
skipHeaders
- Throws:
IOException
-
getProxiedHostname
String getProxiedHostname()To be able to verify the hostname of the certificate received if a connection is made to an https/wss endpoint, access to this hostname is required.- Returns:
- the hostname of the server the proxy is asked to connect to.
-