Class SpincastHttpRequestExecutor

java.lang.Object
org.spincast.shaded.org.apache.http.protocol.HttpRequestExecutor
org.spincast.plugins.httpclient.builders.SpincastHttpRequestExecutor

public class SpincastHttpRequestExecutor extends org.spincast.shaded.org.apache.http.protocol.HttpRequestExecutor
  • Field Summary

    Fields inherited from class org.spincast.shaded.org.apache.http.protocol.HttpRequestExecutor

    DEFAULT_WAIT_FOR_CONTINUE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.spincast.shaded.org.apache.http.HttpResponse
    doReceiveResponse(org.spincast.shaded.org.apache.http.HttpRequest request, org.spincast.shaded.org.apache.http.HttpClientConnection conn, org.spincast.shaded.org.apache.http.protocol.HttpContext context)
    We have to override thhis method since we want a Websocket upgrade response to be returned as is.
    protected boolean
    isWebsocketUpgrade(org.spincast.shaded.org.apache.http.HttpResponse response)
     

    Methods inherited from class org.spincast.shaded.org.apache.http.protocol.HttpRequestExecutor

    canResponseHaveBody, doSendRequest, execute, postProcess, preProcess

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpincastHttpRequestExecutor

      public SpincastHttpRequestExecutor()
  • Method Details

    • doReceiveResponse

      protected org.spincast.shaded.org.apache.http.HttpResponse doReceiveResponse(org.spincast.shaded.org.apache.http.HttpRequest request, org.spincast.shaded.org.apache.http.HttpClientConnection conn, org.spincast.shaded.org.apache.http.protocol.HttpContext context) throws org.spincast.shaded.org.apache.http.HttpException, IOException
      We have to override thhis method since we want a Websocket upgrade response to be returned as is. The Http Client doesn't manage Websocket upgrades by itself.
      Overrides:
      doReceiveResponse in class org.spincast.shaded.org.apache.http.protocol.HttpRequestExecutor
      Throws:
      org.spincast.shaded.org.apache.http.HttpException
      IOException
    • isWebsocketUpgrade

      protected boolean isWebsocketUpgrade(org.spincast.shaded.org.apache.http.HttpResponse response)