Class AlternateDocBase
java.lang.Object
org.glassfish.grizzly.http.server.util.AlternateDocBase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AlternateDocBasefindMatch(String path, List<AlternateDocBase> alternateDocBases) Attempts to match the given request path against one of the given alternate doc bases.Gets the absolute doc base path of this AlternateDocBase.Gets the (possibly relative) doc base path of this AlternateDocBase.Gets the proxied resources of this AlternateDocBase.Gets the url pattern of this AlternateDocBase.intGets the number of slashes in the url pattern of this AlternateDocBase.Gets the extension suffix of the url pattern of this AlternateDocBase.org.glassfish.grizzly.http.server.util.AlternateDocBase.UrlPatternTypeGets the url pattern type (exact, wildcard, extension) of this AlternateDocBase.Gets the wildcard path of this AlternateDocBase (this is the path specified by the wildcard pattern, minus the trailing '*').Gets the non-proxied resources of this AlternateDocBase.voidsetBasePath(String basePath) Sets the absolute doc base path of this AlternateDocBase.voidsetDocBase(String docBase) Sets the (possibly relative) doc base path of this AlternateDocBase.voidsetResources(DirContext resources) Sets the proxied resources of this AlternateDocBase.voidsetUrlPattern(String urlPattern) Sets the url pattern of this AlternateDocBase.voidsetWebappResources(DirContext webappResources) Sets the non-proxied resources of this AlternateDocBase.
-
Constructor Details
-
AlternateDocBase
public AlternateDocBase()
-
-
Method Details
-
setUrlPattern
Sets the url pattern of this AlternateDocBase.- Parameters:
urlPattern- The url pattern of this AlternateDocBase
-
getUrlPattern
Gets the url pattern of this AlternateDocBase.- Returns:
- The url pattern of this AlternativeDocBase
-
getUrlPatternType
public org.glassfish.grizzly.http.server.util.AlternateDocBase.UrlPatternType getUrlPatternType()Gets the url pattern type (exact, wildcard, extension) of this AlternateDocBase.- Returns:
- The url pattern type (exact, wildcard, extension) of this AlternativeDocBase
-
getUrlPatternSlashCount
public int getUrlPatternSlashCount()Gets the number of slashes in the url pattern of this AlternateDocBase.- Returns:
- Number of slashes in the url pattern of this AlternateDocBase.
-
getUrlPatternSuffix
Gets the extension suffix of the url pattern of this AlternateDocBase.- Returns:
- The extension suffix of the url pattern of this AlternateDocBase, or null if the url pattern is not of type 'extension'
-
getUrlPatternWildcardPath
Gets the wildcard path of this AlternateDocBase (this is the path specified by the wildcard pattern, minus the trailing '*').- Returns:
- The wildcard path of this AlternateDocBase, or null if the pattern associated with this AlternateDocBase is not a wildcard pattern
-
setDocBase
Sets the (possibly relative) doc base path of this AlternateDocBase.- Parameters:
docBase- The (possibly relative) doc base path of this AlternateDocBase
-
getDocBase
Gets the (possibly relative) doc base path of this AlternateDocBase.- Returns:
- The (possibly relative) doc base path of this AlternativeDocBase
-
setBasePath
Sets the absolute doc base path of this AlternateDocBase.- Parameters:
basePath- The absolute doc base path of this AlternateDocBase
-
getBasePath
Gets the absolute doc base path of this AlternateDocBase.- Returns:
- The absolute doc base path of this AlternativeDocBase
-
setResources
Sets the proxied resources of this AlternateDocBase.- Parameters:
resources- The proxied resources of this AlternateDocBase
-
getResources
Gets the proxied resources of this AlternateDocBase.- Returns:
- The proxied resources of this AlternateDocBase
-
setWebappResources
Sets the non-proxied resources of this AlternateDocBase.- Parameters:
webappResources- The non-proxied resources of this AlternateDocBase
-
getWebappResources
Gets the non-proxied resources of this AlternateDocBase.- Returns:
- The non-proxied resources of this AlternateDocBase
-
findMatch
Attempts to match the given request path against one of the given alternate doc bases.- Returns:
- The alternate doc base whose url pattern matches the given path, or null if no matching alternate doc base could be found
-