public static class ProxyHandler.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ProxyHandler.Builder |
addRequestHeader(HttpString header,
ExchangeAttribute value) |
ProxyHandler |
build() |
Predicate |
getIdempotentRequestPredicate() |
int |
getMaxConnectionRetries() |
int |
getMaxRequestTime() |
HttpHandler |
getNext() |
ProxyClient |
getProxyClient() |
Map<HttpString,ExchangeAttribute> |
getRequestHeaders() |
boolean |
isReuseXForwarded() |
boolean |
isRewriteHostHeader() |
ProxyHandler.Builder |
setIdempotentRequestPredicate(Predicate idempotentRequestPredicate) |
ProxyHandler.Builder |
setMaxConnectionRetries(int maxConnectionRetries) |
ProxyHandler.Builder |
setMaxRequestTime(int maxRequestTime) |
ProxyHandler.Builder |
setNext(HttpHandler next) |
ProxyHandler.Builder |
setProxyClient(ProxyClient proxyClient) |
ProxyHandler.Builder |
setReuseXForwarded(boolean reuseXForwarded) |
ProxyHandler.Builder |
setRewriteHostHeader(boolean rewriteHostHeader) |
public ProxyClient getProxyClient()
public ProxyHandler.Builder setProxyClient(ProxyClient proxyClient)
public int getMaxRequestTime()
public ProxyHandler.Builder setMaxRequestTime(int maxRequestTime)
public Map<HttpString,ExchangeAttribute> getRequestHeaders()
public ProxyHandler.Builder addRequestHeader(HttpString header, ExchangeAttribute value)
public HttpHandler getNext()
public ProxyHandler.Builder setNext(HttpHandler next)
public boolean isRewriteHostHeader()
public ProxyHandler.Builder setRewriteHostHeader(boolean rewriteHostHeader)
public boolean isReuseXForwarded()
public ProxyHandler.Builder setReuseXForwarded(boolean reuseXForwarded)
public int getMaxConnectionRetries()
public ProxyHandler.Builder setMaxConnectionRetries(int maxConnectionRetries)
public Predicate getIdempotentRequestPredicate()
public ProxyHandler.Builder setIdempotentRequestPredicate(Predicate idempotentRequestPredicate)
public ProxyHandler build()
Copyright © 2019 JBoss by Red Hat. All rights reserved.