public class PassthroughForwardHttpRequestBuilder extends Object implements ForwardHttpRequestBuilder
ForwardHttpRequestBuilder that constructs FullHttpRequests that redirects
the request to the external service by changing the domain and port of the request.| Constructor and Description |
|---|
PassthroughForwardHttpRequestBuilder(String targetDomain,
int targetPort)
Construct a new instance, incoming requests will be passed through to
targetDomain:targetPort of the external service. |
| Modifier and Type | Method and Description |
|---|---|
FullHttpRequest |
getForwardRequest(FullHttpRequest request)
Builds a forward request for given input request.
|
public PassthroughForwardHttpRequestBuilder(String targetDomain, int targetPort)
targetDomain:targetPort of the external service.targetDomain - the domain of the external service.targetPort - the port of the external service (between 1 and 65535).public FullHttpRequest getForwardRequest(FullHttpRequest request)
ForwardHttpRequestBuildergetForwardRequest in interface ForwardHttpRequestBuilderrequest - Http request.null in case we don't know how to build forward request for given input
request.Copyright © 2014. All Rights Reserved.