public class AlternateDocBase extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
AlternateDocBase.DirContext |
class |
AlternateDocBase.ProxyDirContext |
| Constructor and Description |
|---|
AlternateDocBase() |
| Modifier and Type | Method and Description |
|---|---|
static AlternateDocBase |
findMatch(String path,
ArrayList<AlternateDocBase> alternateDocBases)
Attempts to match the given request path against one of the given
alternate doc bases.
|
String |
getBasePath()
Gets the absolute doc base path of this AlternateDocBase.
|
String |
getDocBase()
Gets the (possibly relative) doc base path of this AlternateDocBase.
|
AlternateDocBase.ProxyDirContext |
getResources()
Gets the proxied resources of this AlternateDocBase.
|
String |
getUrlPattern()
Gets the url pattern of this AlternateDocBase.
|
int |
getUrlPatternSlashCount()
Gets the number of slashes in the url pattern of this AlternateDocBase.
|
String |
getUrlPatternSuffix()
Gets the extension suffix of the url pattern of this AlternateDocBase.
|
org.apache.catalina.core.AlternateDocBase.UrlPatternType |
getUrlPatternType()
Gets the url pattern type (exact, wildcard, extension) of this
AlternateDocBase.
|
String |
getUrlPatternWildcardPath()
Gets the wildcard path of this AlternateDocBase (this is the path
specified by the wildcard pattern, minus the trailing '*').
|
AlternateDocBase.DirContext |
getWebappResources()
Gets the non-proxied resources of this AlternateDocBase.
|
void |
setBasePath(String basePath)
Sets the absolute doc base path of this AlternateDocBase.
|
void |
setDocBase(String docBase)
Sets the (possibly relative) doc base path of this AlternateDocBase.
|
void |
setResources(AlternateDocBase.ProxyDirContext resources)
Sets the proxied resources of this AlternateDocBase.
|
void |
setUrlPattern(String urlPattern)
Sets the url pattern of this AlternateDocBase.
|
void |
setWebappResources(AlternateDocBase.DirContext webappResources)
Sets the non-proxied resources of this AlternateDocBase.
|
public void setUrlPattern(String urlPattern)
urlPattern - The url pattern of this AlternateDocBasepublic String getUrlPattern()
public org.apache.catalina.core.AlternateDocBase.UrlPatternType getUrlPatternType()
public int getUrlPatternSlashCount()
public String getUrlPatternSuffix()
public String getUrlPatternWildcardPath()
public void setDocBase(String docBase)
docBase - The (possibly relative) doc base path of this
AlternateDocBasepublic String getDocBase()
public void setBasePath(String basePath)
basePath - The absolute doc base path of this AlternateDocBasepublic String getBasePath()
public void setResources(AlternateDocBase.ProxyDirContext resources)
resources - The proxied resources of this AlternateDocBasepublic AlternateDocBase.ProxyDirContext getResources()
public void setWebappResources(AlternateDocBase.DirContext webappResources)
resources - The non-proxied resources of this AlternateDocBasepublic AlternateDocBase.DirContext getWebappResources()
public static AlternateDocBase findMatch(String path, ArrayList<AlternateDocBase> alternateDocBases)
Copyright © 2005–2017 Oracle Corporation. All rights reserved.