public class ProxyRequestImpl extends java.lang.Object implements ProxyRequest
| Constructor and Description | 
|---|
ProxyRequestImpl(io.vertx.core.http.HttpServerRequest outboundRequest)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
absoluteURI()  | 
ProxyRequest | 
bodyFilter(java.util.function.Function<io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>,io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>> filter)
Set a body filter. 
 | 
void | 
cancel()
Cancel both outbound response by closing its connection 
 | 
Body | 
getBody()  | 
io.vertx.core.http.HttpMethod | 
getMethod()  | 
java.lang.String | 
getURI()  | 
io.vertx.core.MultiMap | 
headers()  | 
io.vertx.core.http.HttpServerRequest | 
outboundRequest()  | 
ProxyRequest | 
putHeader(java.lang.CharSequence name,
         java.lang.CharSequence value)
Put an HTTP header 
 | 
ProxyRequest | 
release()
Release the proxy request. 
 | 
ProxyResponse | 
response()
Create and return the proxy response. 
 | 
io.vertx.core.Future<ProxyResponse> | 
send(io.vertx.core.http.HttpClientRequest inboundRequest)
Send this request to the origin server using the specified
 inbound request. 
 | 
ProxyRequest | 
setBody(Body body)
Set the request body to be sent to the origin server. 
 | 
ProxyRequest | 
setMethod(io.vertx.core.http.HttpMethod method)
Set the HTTP method to be sent to the origin server. 
 | 
ProxyRequest | 
setURI(java.lang.String uri)
Set the request URI to be sent to the origin server. 
 | 
io.vertx.core.http.HttpVersion | 
version()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitproxy, reverseProxypublic ProxyRequestImpl(io.vertx.core.http.HttpServerRequest outboundRequest)
public io.vertx.core.http.HttpVersion version()
version in interface ProxyRequestpublic java.lang.String getURI()
getURI in interface ProxyRequestpublic ProxyRequest setURI(java.lang.String uri)
ProxyRequestThe initial request URI value is the outbound request URI.
setURI in interface ProxyRequesturi - the new URIpublic Body getBody()
getBody in interface ProxyRequestpublic ProxyRequest setBody(Body body)
ProxyRequestThe initial request body value is the outbound request body.
setBody in interface ProxyRequestbody - the new bodypublic java.lang.String absoluteURI()
absoluteURI in interface ProxyRequestpublic io.vertx.core.http.HttpMethod getMethod()
getMethod in interface ProxyRequestpublic ProxyRequest setMethod(io.vertx.core.http.HttpMethod method)
ProxyRequestThe initial HTTP method value is the outbound request HTTP method.
setMethod in interface ProxyRequestmethod - the new HTTP methodpublic io.vertx.core.http.HttpServerRequest outboundRequest()
outboundRequest in interface ProxyRequestpublic ProxyRequest release()
ProxyRequestThe HTTP server request is resumed, no HTTP server response is sent.
release in interface ProxyRequestpublic ProxyResponse response()
ProxyRequestresponse in interface ProxyRequestpublic ProxyRequest putHeader(java.lang.CharSequence name, java.lang.CharSequence value)
ProxyRequestputHeader in interface ProxyRequestname - The header namevalue - The header valuepublic io.vertx.core.MultiMap headers()
headers in interface ProxyRequestpublic ProxyRequest bodyFilter(java.util.function.Function<io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>,io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>> filter)
ProxyRequestThe body filter can rewrite the request body sent to the origin server.
bodyFilter in interface ProxyRequestfilter - the filterpublic io.vertx.core.Future<ProxyResponse> send(io.vertx.core.http.HttpClientRequest inboundRequest)
ProxyRequest
 The completionHandler will be called with the proxy response sent by
 the origin.
send in interface ProxyRequestinboundRequest - the request connected to the origin
                       serverpublic void cancel()
ProxyRequestcancel in interface ProxyRequestCopyright © 2023. All Rights Reserved.