|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxri.config.impl.PropertiesProxyConfig
public class PropertiesProxyConfig
Provides an implementation of the ProxyConfig interface based on Java properties.
| Field Summary | |
|---|---|
protected java.util.Properties |
config
|
protected java.lang.String |
configFile
|
static java.lang.String |
DEFAULT_PROXY_CONFIG_FILE
|
static java.lang.String |
PROXY_CONFIG_FILE
The proxy properties file path (relative to the current context root) |
| Constructor Summary | |
|---|---|
PropertiesProxyConfig()
|
|
PropertiesProxyConfig(java.util.Properties config)
|
|
PropertiesProxyConfig(javax.servlet.ServletContext servletContext,
java.util.Properties properties)
|
|
PropertiesProxyConfig(java.lang.String configFile)
|
|
| Method Summary | |
|---|---|
XRD |
getAtAuthority()
If proxied resolution is enabled, this gets the @ authority that this server can use its own proxy requests. |
XRD |
getBangAuthority()
If proxied resolution is enabled, this gets the = authority that this server can use its own proxy requests. |
java.lang.String |
getBareXRINotFoundRedirect()
|
int |
getDefaultCacheTTL()
|
XRD |
getEqualsAuthority()
If proxied resolution is enabled, this gets the = authority that this server can use its own proxy requests. |
java.lang.String[] |
getHttpsBypassAuthorities()
|
int |
getMaxBytesPerRequest()
|
int |
getMaxCacheTTL()
|
int |
getMaxFollowRedirects()
|
int |
getMaxFollowRefs()
|
int |
getMaxHttpRedirectAllowed()
|
int |
getMaxRequests()
|
int |
getMaxTotalBytes()
|
int |
getMinCacheTTL()
|
int |
getNegativeCacheTTL()
|
java.lang.String |
getProxyImplClass()
Returns the name of the Java class that implements the Server interface. |
java.lang.String |
getRootRedirect()
|
java.lang.String[] |
getSamlBypassAuthorities()
|
java.lang.String |
getSetting(java.lang.String key)
For extensibility: Get any setting with a given key |
java.lang.String[] |
getSupportedResMediaTypes()
|
boolean |
getUseCache()
|
void |
init()
Initializes configuration |
void |
persist()
Persists any changes that were made to the configuration |
void |
setAtAuthority(XRD oVal)
If proxied resolution is enabled, this sets the @ authority that this server can use its own proxy requests. |
void |
setBangAuthority(XRD oVal)
If proxied resolution is enabled, this sets the = authority that this server can use its own proxy requests. |
void |
setBareXRINotFoundRedirect(java.lang.String bareXRINotFoundRedirect)
|
void |
setDefaultCacheTTL(int defaultCacheTTL)
|
void |
setEqualsAuthority(XRD oVal)
If proxied resolution is enabled, this sets the = authority that this server can use its own proxy requests. |
void |
setHttpsBypassAuthorities(java.lang.String[] authorities)
|
void |
setMaxBytesPerRequest(int maxBytesPerRequest)
|
void |
setMaxCacheTTL(int maxCacheTTL)
|
void |
setMaxFollowRedirects(int maxFollowRedirects)
|
void |
setMaxFollowRefs(int maxFollowRefs)
|
void |
setMaxRequests(int maxRequests)
|
void |
setMaxTotalBytes(int maxTotalBytes)
|
void |
setMinCacheTTL(int minCacheTTL)
|
void |
setNegativeCacheTTL(int negativeCacheTTL)
|
void |
setProxyImplClass(java.lang.String value)
Sets the name of the Java class that implements the Server interface. |
void |
setRootRedirect(java.lang.String rootRedirect)
|
void |
setSamlBypassAuthorities(java.lang.String[] authorities)
|
void |
setSupportedResMediaTypes(java.lang.String[] mediaTypes)
|
void |
setUseCache(boolean useCache)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROXY_CONFIG_FILE
public static final java.lang.String DEFAULT_PROXY_CONFIG_FILE
protected java.util.Properties config
protected java.lang.String configFile
| Constructor Detail |
|---|
public PropertiesProxyConfig(javax.servlet.ServletContext servletContext,
java.util.Properties properties)
public PropertiesProxyConfig(java.util.Properties config)
public PropertiesProxyConfig(java.lang.String configFile)
public PropertiesProxyConfig()
| Method Detail |
|---|
public void init()
ProxyConfig
init in interface ProxyConfigpublic void persist()
ProxyConfig
persist in interface ProxyConfigpublic java.lang.String getSetting(java.lang.String key)
ProxyConfig
getSetting in interface ProxyConfigpublic java.lang.String getProxyImplClass()
ProxyConfig
getProxyImplClass in interface ProxyConfigpublic void setProxyImplClass(java.lang.String value)
ProxyConfig
setProxyImplClass in interface ProxyConfig
public XRD getEqualsAuthority()
throws java.net.URISyntaxException,
java.text.ParseException
ProxyConfig
getEqualsAuthority in interface ProxyConfigjava.net.URISyntaxException
java.text.ParseExceptionpublic void setEqualsAuthority(XRD oVal)
ProxyConfig
setEqualsAuthority in interface ProxyConfig
public XRD getAtAuthority()
throws java.net.URISyntaxException,
java.text.ParseException
ProxyConfig
getAtAuthority in interface ProxyConfigjava.net.URISyntaxException
java.text.ParseExceptionpublic void setAtAuthority(XRD oVal)
ProxyConfig
setAtAuthority in interface ProxyConfig
public XRD getBangAuthority()
throws java.net.URISyntaxException,
java.text.ParseException
ProxyConfig
getBangAuthority in interface ProxyConfigjava.net.URISyntaxException
java.text.ParseExceptionpublic void setBangAuthority(XRD oVal)
ProxyConfig
setBangAuthority in interface ProxyConfigpublic int getMaxBytesPerRequest()
getMaxBytesPerRequest in interface ProxyConfigpublic int getMaxFollowRedirects()
getMaxFollowRedirects in interface ProxyConfigpublic int getMaxFollowRefs()
getMaxFollowRefs in interface ProxyConfigpublic int getMaxHttpRedirectAllowed()
getMaxHttpRedirectAllowed in interface ProxyConfigpublic int getMaxRequests()
getMaxRequests in interface ProxyConfigpublic int getMaxTotalBytes()
getMaxTotalBytes in interface ProxyConfigpublic java.lang.String[] getSupportedResMediaTypes()
getSupportedResMediaTypes in interface ProxyConfigpublic java.lang.String[] getHttpsBypassAuthorities()
getHttpsBypassAuthorities in interface ProxyConfigpublic java.lang.String[] getSamlBypassAuthorities()
getSamlBypassAuthorities in interface ProxyConfigpublic void setMaxBytesPerRequest(int maxBytesPerRequest)
setMaxBytesPerRequest in interface ProxyConfigpublic void setMaxFollowRedirects(int maxFollowRedirects)
setMaxFollowRedirects in interface ProxyConfigpublic void setMaxFollowRefs(int maxFollowRefs)
setMaxFollowRefs in interface ProxyConfigpublic void setMaxRequests(int maxRequests)
setMaxRequests in interface ProxyConfigpublic void setMaxTotalBytes(int maxTotalBytes)
setMaxTotalBytes in interface ProxyConfigpublic void setSupportedResMediaTypes(java.lang.String[] mediaTypes)
setSupportedResMediaTypes in interface ProxyConfigpublic void setHttpsBypassAuthorities(java.lang.String[] authorities)
setHttpsBypassAuthorities in interface ProxyConfigpublic void setSamlBypassAuthorities(java.lang.String[] authorities)
setSamlBypassAuthorities in interface ProxyConfigpublic java.lang.String getBareXRINotFoundRedirect()
getBareXRINotFoundRedirect in interface ProxyConfigpublic void setBareXRINotFoundRedirect(java.lang.String bareXRINotFoundRedirect)
setBareXRINotFoundRedirect in interface ProxyConfigpublic java.lang.String getRootRedirect()
getRootRedirect in interface ProxyConfigpublic void setRootRedirect(java.lang.String rootRedirect)
setRootRedirect in interface ProxyConfigpublic boolean getUseCache()
getUseCache in interface ProxyConfigpublic void setUseCache(boolean useCache)
setUseCache in interface ProxyConfigpublic int getDefaultCacheTTL()
getDefaultCacheTTL in interface ProxyConfigpublic void setDefaultCacheTTL(int defaultCacheTTL)
setDefaultCacheTTL in interface ProxyConfigpublic int getMinCacheTTL()
getMinCacheTTL in interface ProxyConfigpublic void setMinCacheTTL(int minCacheTTL)
setMinCacheTTL in interface ProxyConfigpublic int getMaxCacheTTL()
getMaxCacheTTL in interface ProxyConfigpublic void setMaxCacheTTL(int maxCacheTTL)
setMaxCacheTTL in interface ProxyConfigpublic int getNegativeCacheTTL()
getNegativeCacheTTL in interface ProxyConfigpublic void setNegativeCacheTTL(int negativeCacheTTL)
setNegativeCacheTTL in interface ProxyConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||