public.javadoc.org.spincast.plugins.httpclient.utils.SpincastHttpClientUtilsDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastHttpClientUtilsDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.httpclient.utils
Class SpincastHttpClientUtilsDefault
- java.lang.Object
-
- org.spincast.plugins.httpclient.utils.SpincastHttpClientUtilsDefault
-
- All Implemented Interfaces:
- SpincastHttpClientUtils
- Direct Known Subclasses:
- SpincastHttpClientWithWebsocketUtilsDefault
public class SpincastHttpClientUtilsDefault
extends Object
implements SpincastHttpClientUtils
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastHttpClientUtilsDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
String
apacheCookieToHttpHeaderValue(org.spincast.shaded.org.apache.http.cookie.Cookie cookie)
protected HttpCookie
convertApacheCookieToHttpCookie(org.spincast.shaded.org.apache.http.cookie.Cookie cookie)
String
generateExpectedWebsocketV13AcceptHeaderValue(String secWebSocketKey)
Generates the expected value of a "Sec-WebSocket-Accept"
header in the response for a Websocket upgrade request.
-
-
Method Detail
-
generateExpectedWebsocketV13AcceptHeaderValue
public String generateExpectedWebsocketV13AcceptHeaderValue(String secWebSocketKey)
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 interface SpincastHttpClientUtils
- 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 interface SpincastHttpClientUtils
-
convertApacheCookieToHttpCookie
protected HttpCookie convertApacheCookieToHttpCookie(org.spincast.shaded.org.apache.http.cookie.Cookie cookie)
Copyright © 2019. All rights reserved.