Class ProxyHandshaker
java.lang.Object
com.neovisionaries.ws.client.ProxyHandshaker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddHeaders(StringBuilder builder) private voidaddProxyAuthorization(StringBuilder builder) private String(package private) StringTo 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.voidprivate voidreadStatusLine(InputStream input) private voidreceiveResponse(Socket socket) private voidsendRequest(Socket socket) private voidskipHeaders(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.
-