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 Details

    • SpincastHttpClientUtilsDefault

      public SpincastHttpClientUtilsDefault()
  • Method Details

    • 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)