public class AlternateDocBase extends Object
Constructor and Description |
---|
AlternateDocBase() |
Modifier and Type | Method and Description |
---|---|
static AlternateDocBase |
findMatch(String path,
List<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.
|
DirContext |
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.glassfish.grizzly.http.server.util.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 '*').
|
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(DirContext resources)
Sets the proxied resources of this AlternateDocBase.
|
void |
setUrlPattern(String urlPattern)
Sets the url pattern of this AlternateDocBase.
|
void |
setWebappResources(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.glassfish.grizzly.http.server.util.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(DirContext resources)
resources
- The proxied resources of this AlternateDocBasepublic DirContext getResources()
public void setWebappResources(DirContext webappResources)
webappResources
- The non-proxied resources of this
AlternateDocBasepublic DirContext getWebappResources()
public static AlternateDocBase findMatch(String path, List<AlternateDocBase> alternateDocBases)
Copyright © 2014 Oracle Corporation. All rights reserved.