public class VirtualServerConfig extends Object
VirtualServer
Constructor and Description |
---|
VirtualServerConfig() |
Modifier and Type | Method and Description |
---|---|
String |
getAllowRemoteAddress()
Gets the comma-separated list of regular expression patterns that
the remote client's IP address is compared to.
|
String |
getAllowRemoteHost()
Gets the comma-separated list of regular expression patterns
that the remote client's hostname (as returned by
java.net.Socket.getInetAddress().getHostName()) is compared to.
|
String |
getContextXmlDefault()
Gets the location of the default context.xml configuration file.
|
String |
getDefaultWebXml()
Gets the location of the default web.xml configuration file.
|
String |
getDenyRemoteAddress()
Gets the comma-separated list of regular expression patterns that
the remote client's IP address is compared to.
|
String |
getDenyRemoteHost()
Gets the comma-separated list of regular expression patterns that
the remote client's hostname (as returned by
java.net.Socket.getInetAddress().getHostName()) is compared to.
|
String |
getHostNames()
Gets the host names assigned to any VirtualServer configured
via this VirtualServerConfig.
|
boolean |
isAccessLoggingEnabled()
Checks if access logging is enabled or disabled.
|
boolean |
isAllowLinking()
Checks if resources that are symbolic links will be served.
|
boolean |
isSsoEnabled()
Checks if Single-Sign-On is enabled or disabled.
|
void |
setAccessLoggingEnabled(boolean accessLoggingEnabled)
Enables or disables access logging.
|
void |
setAllowLinking(boolean allowLinking)
Enables or disables the serving of resources that are symbolic links.
|
void |
setAllowRemoteAddress(String allowRemoteAddress)
Sets the comma-separated list of regular expression patterns that
the remote client's IP address is compared to.
|
void |
setAllowRemoteHost(String allowRemoteHost)
Sets the comma-separated list of regular expression patterns
that the remote client's hostname (as returned by
java.net.Socket.getInetAddress().getHostName()) is compared to.
|
void |
setContextXmlDefault(String contextXmlDefault)
Sets the location of the default context.xml configuration file.
|
void |
setDefaultWebXml(String defaultWebXml)
Sets the location of the default web.xml configuration file.
|
void |
setDenyRemoteAddress(String denyRemoteAddress)
Sets the comma-separated list of regular expression patterns that
the remote client's IP address is compared to.
|
void |
setDenyRemoteHost(String denyRemoteHost)
Sets the comma-separated list of regular expression patterns that
the remote client's hostname (as returned by
java.net.Socket.getInetAddress().getHostName()) is compared to.
|
void |
setHostNames(String hostNames)
Sets the host names that will be assigned to any
VirtualServer configured via this
VirtualServerConfig separated by commas.
|
void |
setSsoEnabled(boolean ssoEnabled)
Enables or disables Single-Sign-On.
|
public void setSsoEnabled(boolean ssoEnabled)
ssoEnabled
- true if Single-Sign-On is to be enabled, false
otherwisepublic boolean isSsoEnabled()
public void setAccessLoggingEnabled(boolean accessLoggingEnabled)
accessLoggingEnabled
- true if access logging is to be enabled,
false otherwisepublic boolean isAccessLoggingEnabled()
public void setDefaultWebXml(String defaultWebXml)
defaultWebXml
- the location of the default web.xml configuration
filepublic String getDefaultWebXml()
public void setContextXmlDefault(String contextXmlDefault)
contextXmlDefault
- the location of the default context.xml
configuration file.public String getContextXmlDefault()
public void setAllowLinking(boolean allowLinking)
allowLinking
- true if resources that are symbolic links are
to be served, false otherwisepublic boolean isAllowLinking()
public void setAllowRemoteAddress(String allowRemoteAddress)
If this property is specified, the remote address must match for this request to be accepted. If this property is not specified, all requests are accepted unless the remote address matches a denyRemoteAddress pattern.
allowRemoteAddress
- the comma-separated list of regular
expression patterns that the remote client's IP address is compared
topublic String getAllowRemoteAddress()
public void setDenyRemoteAddress(String denyRemoteAddress)
If this property is specified, the remote address must not match for this request to be accepted. If this property is not specified, request acceptance is governed solely by the allowRemoteAddress property.
denyRemoteAddress
- the comma-separated list of regular
expression patterns that the remote client's IP address is
compared topublic String getDenyRemoteAddress()
public void setAllowRemoteHost(String allowRemoteHost)
If this property is specified, the remote hostname must match for this request to be accepted. If this property is not specified, all requests are accepted unless the remote hostname matches a denyRemoteHost pattern.
allowRemoteHost
- the comma-separated list of regular
expression patterns that the remote client's hostname (as returned
by java.net.Socket.getInetAddress().getHostName()) is compared topublic String getAllowRemoteHost()
public void setDenyRemoteHost(String denyRemoteHost)
If this property is specified, the remote hostname must not match for this request to be accepted. If this property is not specified, request acceptance is governed solely by the allowRemoteHost property.
denyRemoteHost
- the comma-separated list of regular
expression patterns that the remote client's hostname
(as returned by java.net.Socket.getInetAddress().getHostName())
is compared topublic String getDenyRemoteHost()
public void setHostNames(String hostNames)
hostNames
- the host namespublic String getHostNames()
Copyright © 2020. All rights reserved.