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 protected
ProxyRequestImpl(Request request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxyRequest
closeHandler(Handler<Void> closeHandler)
HttpHeaders
headers()
io.gravitee.common.http.HttpMethod
method()
io.gravitee.reporter.api.http.Metrics
metrics()
io.gravitee.common.util.MultiValueMap<String,String>
parameters()
io.gravitee.common.util.MultiValueMap<String,String>
pathParameters()
String
rawMethod()
The raw method in case the method() returns HttpMethod.OTHERvoid
setHeaders(HttpHeaders headers)
void
setMethod(io.gravitee.common.http.HttpMethod method)
void
setParameters(io.gravitee.common.util.MultiValueMap<String,String> parameters)
void
setPathParameters(io.gravitee.common.util.MultiValueMap<String,String> pathParameters)
void
setRawMethod(String rawMethod)
void
setUri(String uri)
String
uri()
-
-
-
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:
uri
in interfaceProxyRequest
- Returns:
- the target URI of the request.
-
parameters
public io.gravitee.common.util.MultiValueMap<String,String> parameters()
- Specified by:
parameters
in interfaceProxyRequest
- Returns:
- the query parameters in the request
-
pathParameters
public io.gravitee.common.util.MultiValueMap<String,String> pathParameters()
- Specified by:
pathParameters
in interfaceProxyRequest
- Returns:
- the path parameters in the request
-
method
public io.gravitee.common.http.HttpMethod method()
- Specified by:
method
in interfaceProxyRequest
- Returns:
- the HTTP method for the request.
-
rawMethod
public String rawMethod()
Description copied from interface:ProxyRequest
The raw method in case the method() returns HttpMethod.OTHER- Specified by:
rawMethod
in interfaceProxyRequest
- Returns:
-
headers
public HttpHeaders headers()
- Specified by:
headers
in interfaceProxyRequest
- Returns:
- the headers in the request.
-
metrics
public io.gravitee.reporter.api.http.Metrics metrics()
- Specified by:
metrics
in interfaceProxyRequest
- Returns:
- the metrics attached to the request.
-
closeHandler
public ProxyRequest closeHandler(Handler<Void> closeHandler)
- Specified by:
closeHandler
in interfaceProxyRequest
-
-