|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.util.http.mapper.AlternateDocBase
public class AlternateDocBase
Constructor Summary | |
---|---|
AlternateDocBase()
|
Method Summary | |
---|---|
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. |
com.sun.grizzly.util.http.mapper.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlternateDocBase()
Method Detail |
---|
public void setUrlPattern(String urlPattern)
urlPattern
- The url pattern of this AlternateDocBasepublic String getUrlPattern()
public com.sun.grizzly.util.http.mapper.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |