Package io.vertx.rxjava3.httpproxy
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
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<ProxyResponse>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ProxyResponse(ProxyResponse delegate)ProxyResponse(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Stringetag()BodygetBody()Get the body of the response.ProxyResponsegetDelegate()intgetStatusCode()Get the status code.StringgetStatusMessage()Get the status message.inthashCode()MultiMapheaders()longmaxAge()static ProxyResponsenewInstance(ProxyResponse arg)HttpClientResponseproxiedResponse()booleanpublicCacheControl()ProxyResponserelease()Release the proxy response.ProxyRequestrequest()Return the correspondingProxyRequest.CompletablerxSend()Send the proxies response to the user agent.Completablesend()Send the proxies response to the user agent.ProxyResponsesetBody(Body body)Set the request body to be sent to the user agent.ProxyResponsesetStatusCode(int sc)Set the status code to be sent to the user agent.ProxyResponsesetStatusMessage(String statusMessage)Set the status message to be sent to the user agent.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<ProxyResponse> __TYPE_ARG
-
-
Constructor Detail
-
ProxyResponse
public ProxyResponse(ProxyResponse delegate)
-
ProxyResponse
public ProxyResponse(Object delegate)
-
-
Method Detail
-
getDelegate
public ProxyResponse getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
request
public ProxyRequest request()
Return the correspondingProxyRequest.- 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
etagsent 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)
-
-