public class MappedServices extends Object implements io.fabric8.gateway.api.handlers.http.IMappedServices
| Constructor and Description |
|---|
MappedServices(String service,
io.fabric8.gateway.api.ServiceDetails serviceDetails,
LoadBalancer loadBalancer,
boolean reverseHeaders) |
| Modifier and Type | Method and Description |
|---|---|
String |
chooseService(org.vertx.java.core.http.HttpServerRequest request)
Chooses a request to use
|
String |
getContainer() |
String |
getId() |
io.fabric8.gateway.api.handlers.http.ProxyMappingDetails |
getProxyMappingDetails() |
io.fabric8.gateway.api.ServiceDetails |
getServiceDetails() |
Set<String> |
getServiceUrls() |
String |
getVersion() |
boolean |
isReverseHeaders() |
String |
rewriteUrl(String proxiedUrl)
Rewrites the URI response from a request to a URI in the gateway namespace
|
void |
setProxyMappingDetails(io.fabric8.gateway.api.handlers.http.ProxyMappingDetails proxyMappingDetails) |
String |
toString() |
org.vertx.java.core.Handler<org.vertx.java.core.http.HttpClientResponse> |
wrapResponseHandlerInPolicies(org.vertx.java.core.http.HttpServerRequest request,
org.vertx.java.core.Handler<org.vertx.java.core.http.HttpClientResponse> responseHandler,
io.fabric8.gateway.api.handlers.http.ProxyMappingDetails proxyMappingDetails)
Provides a hook so we can wrap a client response handler in a policy such
as to reverse the URIs
ReverseUriPolicy or
add metering, limits, security or contract checks etc. |
public MappedServices(String service, io.fabric8.gateway.api.ServiceDetails serviceDetails, LoadBalancer loadBalancer, boolean reverseHeaders)
public String chooseService(org.vertx.java.core.http.HttpServerRequest request)
chooseService in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic org.vertx.java.core.Handler<org.vertx.java.core.http.HttpClientResponse> wrapResponseHandlerInPolicies(org.vertx.java.core.http.HttpServerRequest request,
org.vertx.java.core.Handler<org.vertx.java.core.http.HttpClientResponse> responseHandler,
io.fabric8.gateway.api.handlers.http.ProxyMappingDetails proxyMappingDetails)
ReverseUriPolicy or
add metering, limits, security or contract checks etc.wrapResponseHandlerInPolicies in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic String rewriteUrl(String proxiedUrl)
rewriteUrl in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic String getContainer()
getContainer in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic String getVersion()
getVersion in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic String getId()
getId in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic boolean isReverseHeaders()
isReverseHeaders in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic io.fabric8.gateway.api.ServiceDetails getServiceDetails()
getServiceDetails in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic Set<String> getServiceUrls()
getServiceUrls in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic io.fabric8.gateway.api.handlers.http.ProxyMappingDetails getProxyMappingDetails()
getProxyMappingDetails in interface io.fabric8.gateway.api.handlers.http.IMappedServicespublic void setProxyMappingDetails(io.fabric8.gateway.api.handlers.http.ProxyMappingDetails proxyMappingDetails)
setProxyMappingDetails in interface io.fabric8.gateway.api.handlers.http.IMappedServicesCopyright © 2011–2015 Red Hat. All rights reserved.