public class HttpSettings extends Object
Modifier and Type | Method and Description |
---|---|
long |
getConnectionTimeout()
Returns org.apache.river.jeri.http[s].idleConnectionTimeout
system property value if set; otherwise returns 15000.
|
boolean |
getDisableProxyPersistentConnections()
Returns org.apache.river.jeri.http.disableProxyPersistentConnections
system property as boolean value if set and not ssl; otherwise returns
false.
|
static HttpSettings |
getHttpSettings(boolean ssl)
Returns an HttpSettings instance which can be used to query values of
HTTP-related (if ssl is false) or HTTPS-related (if ssl is true) system
properties.
|
boolean |
getPingProxyConnections()
Returns org.apache.river.jeri.http.pingProxyConnections system
property as boolean value if set; otherwise returns false.
|
long |
getPingProxyConnectionTimeout()
Returns org.apache.river.jeri.http.pingProxyConnectionTimeout
system property as long value if set; otherwise returns
Long.MAX_VALUE (essentially, never timeout).
|
String |
getProxyHost(String host)
Returns proxy host if given host should be proxied through it,
else empty string.
|
int |
getProxyPort()
Returns http[s].proxyPort system property value if set; else if not
ssl returns proxyPort system property value if set; else returns
443 (if ssl) or 80 (if not ssl).
|
long |
getResponseAckTimeout()
Returns org.apache.river.jeri.http[s].responseAckTimeout system
property value if set; otherwise returns 15000.
|
long |
getServerConnectionTimeout()
Returns org.apache.river.jeri.http[s].idleServerConnectionTimeout
system property value if set; otherwise returns getConnectionTimeout()
plus 30000 (if ssl) or 10000 (if not ssl).
|
public static HttpSettings getHttpSettings(boolean ssl)
public String getProxyHost(String host)
public int getProxyPort()
public long getResponseAckTimeout()
public long getConnectionTimeout()
public long getServerConnectionTimeout()
public boolean getDisableProxyPersistentConnections()
public boolean getPingProxyConnections()
public long getPingProxyConnectionTimeout()
Copyright © 2016–2018. All rights reserved.