Class SpincastHttpClientUtilsDefault
java.lang.Object
org.spincast.plugins.httpclient.utils.SpincastHttpClientUtilsDefault
- All Implemented Interfaces:
SpincastHttpClientUtils
- Direct Known Subclasses:
SpincastHttpClientWithWebsocketUtilsDefault
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapacheCookieToHttpHeaderValue
(org.spincast.shaded.org.apache.http.cookie.Cookie cookie) protected HttpCookie
convertApacheCookieToHttpCookie
(org.spincast.shaded.org.apache.http.cookie.Cookie cookie) generateExpectedWebsocketV13AcceptHeaderValue
(String secWebSocketKey) Generates the expected value of a "Sec-WebSocket-Accept" header in the response for a Websocket upgrade request.
-
Constructor Details
-
SpincastHttpClientUtilsDefault
public SpincastHttpClientUtilsDefault()
-
-
Method Details
-
generateExpectedWebsocketV13AcceptHeaderValue
Description copied from interface:SpincastHttpClientUtils
Generates the expected value of a "Sec-WebSocket-Accept" header in the response for a Websocket upgrade request.- Specified by:
generateExpectedWebsocketV13AcceptHeaderValue
in interfaceSpincastHttpClientUtils
- Parameters:
secWebSocketKey
- The value of the "Sec-WebSocket-Key" header sent in the request.
-
apacheCookieToHttpHeaderValue
public String apacheCookieToHttpHeaderValue(org.spincast.shaded.org.apache.http.cookie.Cookie cookie) - Specified by:
apacheCookieToHttpHeaderValue
in interfaceSpincastHttpClientUtils
-
convertApacheCookieToHttpCookie
protected HttpCookie convertApacheCookieToHttpCookie(org.spincast.shaded.org.apache.http.cookie.Cookie cookie)
-