|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.site.CmsSiteMatcher
A matcher object to compare request data against the configured sites.
| Field Summary | |
static CmsSiteMatcher |
DEFAULT_MATCHER
Default matcher that always matches all other Site matchers. |
| Constructor Summary | |
CmsSiteMatcher(String serverString)
Construct a new site matcher from a String which should be in default URL notation. |
|
CmsSiteMatcher(String serverProtocol,
String serverName,
int serverPort)
Constructs a new site matcher object. |
|
| Method Summary | |
Object |
clone()
Returns a clone of this Objects instance. |
boolean |
equals(Object obj)
|
String |
getServerName()
Returns the hostname (e.g. |
int |
getServerPort()
Returns the port (e.g. |
String |
getServerProtocol()
Returns the protocol (e.g. |
String |
getUrl()
Returns the url of this site matcher. |
int |
hashCode()
|
protected void |
setServerName(String serverName)
Sets the hostname (e.g. |
protected void |
setServerPort(int serverPort)
Sets the port (e.g. |
protected void |
setServerProtocol(String serverProtocol)
Sets the protocol (e.g. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final CmsSiteMatcher DEFAULT_MATCHER
| Constructor Detail |
public CmsSiteMatcher(String serverString)
If no port is provided, the default port 80 or 443 will be used for http or https respectively. If no protocol is provided, the default protocol "http" will be used.
serverString - the String, e.g. http://localhost:8080
public CmsSiteMatcher(String serverProtocol,
String serverName,
int serverPort)
serverProtocol - to protocol required to access this siteserverName - the server URL prefix to which this site is mappedserverPort - the port required to access this site| Method Detail |
public Object clone()
public boolean equals(Object obj)
Object.equals(java.lang.Object)public String getServerName()
public int getServerPort()
public String getServerProtocol()
public String getUrl()
public int hashCode()
Object.hashCode()public String toString()
Object.toString()protected void setServerName(String serverName)
Setting the hostname to "*" is a wildcard that matches all hostnames
serverName - the hostname (e.g. localhost) which is required to access this siteprotected void setServerPort(int serverPort)
Setting the port to 0 (zero) is a wildcard that matches all ports
serverPort - the port (e.g. 80) which is required to access this siteprotected void setServerProtocol(String serverProtocol)
Setting the protocol to "*" is a wildcard that matches all protocols.
serverProtocol - the protocol (e.g. "http", "https") which is required to access this site
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||