|
||||||||||
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()
|
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 |
getMaxFollowRedirects()
|
int |
getMaxFollowRefs()
|
int |
getMaxHttpRedirectAllowed()
|
int |
getMaxRequests()
|
int |
getMaxTotalBytes()
|
java.lang.String |
getProxyImplClass()
Returns the name of the Java class that implements the Server interface. |
java.lang.String |
getRootRedirect()
|
java.lang.String |
getSetting(java.lang.String key)
For extensibility: Get any setting with a given key |
java.lang.String[] |
getSupportedResMediaTypes()
|
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 |
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 |
setMaxFollowRedirects(int maxFollowRedirects)
|
void |
setMaxFollowRefs(int maxFollowRefs)
|
void |
setMaxRequests(int maxRequests)
|
void |
setMaxTotalBytes(int maxTotalBytes)
|
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 |
setSupportedResMediaTypes(java.lang.String[] mediaTypes)
|
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 ProxyConfig
public void persist()
ProxyConfig
persist
in interface ProxyConfig
public java.lang.String getSetting(java.lang.String key)
ProxyConfig
getSetting
in interface ProxyConfig
public java.lang.String getProxyImplClass()
ProxyConfig
getProxyImplClass
in interface ProxyConfig
public 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 ProxyConfig
java.net.URISyntaxException
java.text.ParseException
public void setEqualsAuthority(XRD oVal)
ProxyConfig
setEqualsAuthority
in interface ProxyConfig
public XRD getAtAuthority() throws java.net.URISyntaxException, java.text.ParseException
ProxyConfig
getAtAuthority
in interface ProxyConfig
java.net.URISyntaxException
java.text.ParseException
public void setAtAuthority(XRD oVal)
ProxyConfig
setAtAuthority
in interface ProxyConfig
public XRD getBangAuthority() throws java.net.URISyntaxException, java.text.ParseException
ProxyConfig
getBangAuthority
in interface ProxyConfig
java.net.URISyntaxException
java.text.ParseException
public void setBangAuthority(XRD oVal)
ProxyConfig
setBangAuthority
in interface ProxyConfig
public int getMaxBytesPerRequest()
getMaxBytesPerRequest
in interface ProxyConfig
public int getMaxFollowRedirects()
getMaxFollowRedirects
in interface ProxyConfig
public int getMaxFollowRefs()
getMaxFollowRefs
in interface ProxyConfig
public int getMaxHttpRedirectAllowed()
getMaxHttpRedirectAllowed
in interface ProxyConfig
public int getMaxRequests()
getMaxRequests
in interface ProxyConfig
public int getMaxTotalBytes()
getMaxTotalBytes
in interface ProxyConfig
public java.lang.String[] getSupportedResMediaTypes()
getSupportedResMediaTypes
in interface ProxyConfig
public java.lang.String[] getHttpsBypassAuthorities()
getHttpsBypassAuthorities
in interface ProxyConfig
public void setMaxBytesPerRequest(int maxBytesPerRequest)
setMaxBytesPerRequest
in interface ProxyConfig
public void setMaxFollowRedirects(int maxFollowRedirects)
setMaxFollowRedirects
in interface ProxyConfig
public void setMaxFollowRefs(int maxFollowRefs)
setMaxFollowRefs
in interface ProxyConfig
public void setMaxRequests(int maxRequests)
setMaxRequests
in interface ProxyConfig
public void setMaxTotalBytes(int maxTotalBytes)
setMaxTotalBytes
in interface ProxyConfig
public void setSupportedResMediaTypes(java.lang.String[] mediaTypes)
setSupportedResMediaTypes
in interface ProxyConfig
public void setHttpsBypassAuthorities(java.lang.String[] authorities)
setHttpsBypassAuthorities
in interface ProxyConfig
public java.lang.String getBareXRINotFoundRedirect()
getBareXRINotFoundRedirect
in interface ProxyConfig
public void setBareXRINotFoundRedirect(java.lang.String bareXRINotFoundRedirect)
setBareXRINotFoundRedirect
in interface ProxyConfig
public java.lang.String getRootRedirect()
getRootRedirect
in interface ProxyConfig
public void setRootRedirect(java.lang.String rootRedirect)
setRootRedirect
in interface ProxyConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |