Class ProxyServerConfiguration
java.lang.Object
com.github.toolarium.jwebserver.config.ProxyServerConfiguration
- All Implemented Interfaces:
IProxyServerConfiguration,Serializable
public class ProxyServerConfiguration
extends Object
implements IProxyServerConfiguration, Serializable
Implements the
IProxyServerConfiguration.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for ProxyServerConfigurationProxyServerConfiguration(IProxyServerConfiguration proxyServerConfiguration) Constructor for ProxyServerConfiguration -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGet the connections per threadintGer the max request timeString[]Get the proxy host namesinthashCode()booleanDefine if any existing X-Forwarded-For header should be used or should it be overwritten.booleanDefine if the HOST header should be rewritten to use the target host of the call.setConnectionsPerThread(Integer connectionsPerThread) Set the connections per threadsetMaxRequestTime(Integer maxRequestTime) Set the max request timesetProxyHostNames(String proxyHostNameList) Set the proxy host namessetProxyHostNames(String[] proxyHostNameList) Set the proxy host namessetReuseXForwarded(Boolean reuseXForwarded) Set the reuse X forwardedsetRewriteHostHeader(Boolean rewriteHostHeader) Set the rewrite host headertoString()
-
Constructor Details
-
ProxyServerConfiguration
public ProxyServerConfiguration()Constructor for ProxyServerConfiguration -
ProxyServerConfiguration
Constructor for ProxyServerConfiguration- Parameters:
proxyServerConfiguration- the proxy server configuration
-
-
Method Details
-
rewriteHostHeader
public boolean rewriteHostHeader()Description copied from interface:IProxyServerConfigurationDefine if the HOST header should be rewritten to use the target host of the call.- Specified by:
rewriteHostHeaderin interfaceIProxyServerConfiguration- Returns:
- true to reqrite the host header
- See Also:
-
setRewriteHostHeader
Set the rewrite host header- Parameters:
rewriteHostHeader- the rewrite host header- Returns:
- this instance
-
reuseXForwarded
public boolean reuseXForwarded()Description copied from interface:IProxyServerConfigurationDefine if any existing X-Forwarded-For header should be used or should it be overwritten.- Specified by:
reuseXForwardedin interfaceIProxyServerConfiguration- Returns:
- true to reuse
- See Also:
-
setReuseXForwarded
Set the reuse X forwarded- Parameters:
reuseXForwarded- the reuse X forwarded- Returns:
- this instance
-
getMaxRequestTime
public int getMaxRequestTime()Description copied from interface:IProxyServerConfigurationGer the max request time- Specified by:
getMaxRequestTimein interfaceIProxyServerConfiguration- Returns:
- the max request time
- See Also:
-
setMaxRequestTime
Set the max request time- Parameters:
maxRequestTime- the max request time- Returns:
- this instance
-
getConnectionsPerThread
public int getConnectionsPerThread()Description copied from interface:IProxyServerConfigurationGet the connections per thread- Specified by:
getConnectionsPerThreadin interfaceIProxyServerConfiguration- Returns:
- the connections per thread
- See Also:
-
setConnectionsPerThread
Set the connections per thread- Parameters:
connectionsPerThread- the connections per thread- Returns:
- this instance
-
getProxyHostNames
Description copied from interface:IProxyServerConfigurationGet the proxy host names- Specified by:
getProxyHostNamesin interfaceIProxyServerConfiguration- Returns:
- the proxy host names
- See Also:
-
setProxyHostNames
Set the proxy host names- Parameters:
proxyHostNameList- the proxy host names- Returns:
- this instance
-
setProxyHostNames
Set the proxy host names- Parameters:
proxyHostNameList- the proxy host names- Returns:
- this instance
-
hashCode
public int hashCode() -
equals
-
toString
-