Class ProxyResponse

java.lang.Object
io.vertx.rxjava3.httpproxy.ProxyResponse
All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate

public class ProxyResponse extends Object implements io.vertx.lang.rx.RxDelegate
Handles the interoperability of the response between the origin and the user agent.

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<ProxyResponse> __TYPE_ARG
  • Constructor Details

    • ProxyResponse

      public ProxyResponse(ProxyResponse delegate)
    • ProxyResponse

      public ProxyResponse(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDelegate

      public ProxyResponse getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
    • request

      public ProxyRequest request()
      Return the corresponding ProxyRequest.
      Returns:
      the proxy request
    • getStatusCode

      public int getStatusCode()
      Get the status code.
      Returns:
      the status code to be sent to the user agent
    • setStatusCode

      public ProxyResponse setStatusCode(int sc)
      Set the status code to be sent to the user agent.

      The initial value is the proxied response status code.

      Parameters:
      sc - the status code
      Returns:
      a reference to this, so the API can be used fluently
    • getStatusMessage

      public String getStatusMessage()
      Get the status message.
      Returns:
      the status message to be sent to the user agent
    • setStatusMessage

      public ProxyResponse setStatusMessage(String statusMessage)
      Set the status message to be sent to the user agent.

      The initial value is the proxied response status message.

      Parameters:
      statusMessage - the status message
      Returns:
      a reference to this, so the API can be used fluently
    • headers

      public MultiMap headers()
      Returns:
      the headers that will be sent to the user agent, the returned headers can be modified. The headers map is populated with the proxied response headers
    • getBody

      public Body getBody()
      Get the body of the response.
      Returns:
      the response body to be sent to the user agent
    • setBody

      public ProxyResponse setBody(Body body)
      Set the request body to be sent to the user agent.

      The initial request body value is the proxied response body.

      Parameters:
      body - the new body
      Returns:
      a reference to this, so the API can be used fluently
    • proxiedResponse

      public HttpClientResponse proxiedResponse()
      Returns:
      the proxied HTTP server response
    • publicCacheControl

      public boolean publicCacheControl()
    • maxAge

      public long maxAge()
    • etag

      public String etag()
      Returns:
      the etag sent by the origin response
    • send

      public Completable send()
      Send the proxies response to the user agent.
      Returns:
    • rxSend

      public Completable rxSend()
      Send the proxies response to the user agent.
      Returns:
    • release

      public ProxyResponse release()
      Release the proxy response.

      The proxied response is resumed, no HTTP response is sent to the user-agent

      Returns:
    • newInstance

      public static ProxyResponse newInstance(ProxyResponse arg)