public class HttpProxyRule extends Object
| Constructor and Description |
|---|
HttpProxyRule() |
HttpProxyRule(String uriTemplate) |
| Modifier and Type | Method and Description |
|---|---|
UriTemplateDefinition |
chooseBackEndService(ClientRequestFacade requestFacade)
Chooses a back end service from the set of destination templates
|
String |
getCookieDomain()
Returns the value that should be used when rewriting the
domain attribute
of the Set-Cookie header. |
String |
getCookiePath()
Returns the value that should be used when rewriting the
path attribute
of the Set-Cookie header. |
Set<UriTemplateDefinition> |
getDestinationUriTemplates() |
LoadBalancerDefinition |
getLoadBalancer()
Returns the kind of load balancing strategy used to bridge from
|
UriTemplateDefinition |
getUriTemplate() |
UriTemplate |
getUriTemplateObject() |
boolean |
isReverseHeaders()
Returns whether or not reverseHeaders is enabled.
|
MappingResult |
matches(String[] paths) |
HttpProxyRule |
setCookieDomain(String cookieDomain)
Sets the value that should be used when rewriting the
domain attribute
of the Set-Cookie header. |
HttpProxyRule |
setCookiePath(String cookiePath)
Sets the value that should be used when rewriting the
path attribute
of the Set-Cookie header. |
HttpProxyRule |
setDestinationUriTemplates(Set<UriTemplateDefinition> destinationUriTemplates) |
HttpProxyRule |
setLoadBalancer(LoadBalancerDefinition loadBalancer) |
HttpProxyRule |
setReverseHeaders(boolean reverseHeaders) |
HttpProxyRule |
setUriTemplate(UriTemplateDefinition uriTemplate) |
HttpProxyRule |
to(String destinationUriTemplate)
Adds a destination URI template mapping; such as a physical endpoint we can proxy to if there are multiple possible physical endpoints and we are not using a load balancer service to hide the mapping of a logical URI to physical URI.
|
HttpProxyRule |
to(UriTemplateDefinition templateDefinition) |
public HttpProxyRule()
public HttpProxyRule(String uriTemplate)
public MappingResult matches(String[] paths)
public UriTemplateDefinition chooseBackEndService(ClientRequestFacade requestFacade)
public HttpProxyRule to(String destinationUriTemplate)
public HttpProxyRule to(UriTemplateDefinition templateDefinition)
public UriTemplate getUriTemplateObject()
public UriTemplateDefinition getUriTemplate()
public HttpProxyRule setUriTemplate(UriTemplateDefinition uriTemplate)
public Set<UriTemplateDefinition> getDestinationUriTemplates()
public HttpProxyRule setDestinationUriTemplates(Set<UriTemplateDefinition> destinationUriTemplates)
public boolean isReverseHeaders()
public HttpProxyRule setReverseHeaders(boolean reverseHeaders)
public LoadBalancerDefinition getLoadBalancer()
public HttpProxyRule setLoadBalancer(LoadBalancerDefinition loadBalancer)
public String getCookiePath()
path attribute
of the Set-Cookie header.
If the path was passed unmodified by the proxy it would case the browser to not send the cookie for subsequent requests as the browser will think that the cookie is not for that path. By being able to specify the path the browser will include the cookie when calling the proxy.
String the path to be used in replacement of path attribute from the backend service.public HttpProxyRule setCookiePath(String cookiePath)
path attribute
of the Set-Cookie header.
If the path was passed unmodified by the proxy it would cause the browser to not send the cookie for subsequent requests as the browser will think that the cookie is not for that path. By being able to specify the path the browser will include the cookie when calling the proxy.
cookiePath - the path to be used in replacement of path attribute from the backend service.public String getCookieDomain()
domain attribute
of the Set-Cookie header.
If the domain was passed unmodified by the proxy it would cause the browser to not send the cookie for subsequent requests as the browser will think that the cookie is not for that domain. By being able to specify the path the browser will include the cookie when calling the proxy.
String the path to be used in replacement of domain attribute from the backend service.public HttpProxyRule setCookieDomain(String cookieDomain)
domain attribute
of the Set-Cookie header.
If the domain was passed unmodified by the proxy it would cause the browser to not send the cookie for subsequent requests as the browser will think that the cookie is not for that domain. By being able to specify the path the browser will include the cookie when calling the proxy.
cookieDomain - the path to be used in replacement of domain attribute from the backend service.Copyright © 2011–2015 Red Hat. All rights reserved.