Class ProxyRequestImpl
- java.lang.Object
-
- io.gravitee.gateway.api.proxy.builder.ProxyRequestImpl
-
- All Implemented Interfaces:
ProxyRequest
- Direct Known Subclasses:
WebSocketProxyRequestImpl
public class ProxyRequestImpl extends Object implements ProxyRequest
- Author:
- David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProxyRequestImpl(Request request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxyRequestcloseHandler(Handler<Void> closeHandler)HttpHeadersheaders()io.gravitee.common.http.HttpMethodmethod()io.gravitee.reporter.api.http.Metricsmetrics()io.gravitee.common.util.MultiValueMap<String,String>parameters()io.gravitee.common.util.MultiValueMap<String,String>pathParameters()StringrawMethod()The raw method in case the method() returns HttpMethod.OTHERvoidsetHeaders(HttpHeaders headers)voidsetMethod(io.gravitee.common.http.HttpMethod method)voidsetParameters(io.gravitee.common.util.MultiValueMap<String,String> parameters)voidsetPathParameters(io.gravitee.common.util.MultiValueMap<String,String> pathParameters)voidsetRawMethod(String rawMethod)voidsetUri(String uri)Stringuri()
-
-
-
Constructor Detail
-
ProxyRequestImpl
protected ProxyRequestImpl(Request request)
-
-
Method Detail
-
setUri
public void setUri(String uri)
-
setParameters
public void setParameters(io.gravitee.common.util.MultiValueMap<String,String> parameters)
-
setPathParameters
public void setPathParameters(io.gravitee.common.util.MultiValueMap<String,String> pathParameters)
-
setMethod
public void setMethod(io.gravitee.common.http.HttpMethod method)
-
setHeaders
public void setHeaders(HttpHeaders headers)
-
setRawMethod
public void setRawMethod(String rawMethod)
-
uri
public String uri()
- Specified by:
uriin interfaceProxyRequest- Returns:
- the target URI of the request.
-
parameters
public io.gravitee.common.util.MultiValueMap<String,String> parameters()
- Specified by:
parametersin interfaceProxyRequest- Returns:
- the query parameters in the request
-
pathParameters
public io.gravitee.common.util.MultiValueMap<String,String> pathParameters()
- Specified by:
pathParametersin interfaceProxyRequest- Returns:
- the path parameters in the request
-
method
public io.gravitee.common.http.HttpMethod method()
- Specified by:
methodin interfaceProxyRequest- Returns:
- the HTTP method for the request.
-
rawMethod
public String rawMethod()
Description copied from interface:ProxyRequestThe raw method in case the method() returns HttpMethod.OTHER- Specified by:
rawMethodin interfaceProxyRequest- Returns:
-
headers
public HttpHeaders headers()
- Specified by:
headersin interfaceProxyRequest- Returns:
- the headers in the request.
-
metrics
public io.gravitee.reporter.api.http.Metrics metrics()
- Specified by:
metricsin interfaceProxyRequest- Returns:
- the metrics attached to the request.
-
closeHandler
public ProxyRequest closeHandler(Handler<Void> closeHandler)
- Specified by:
closeHandlerin interfaceProxyRequest
-
-