|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.web.jcr.webdav.MultiRepositoryRequestResolver
public class MultiRepositoryRequestResolver
A RequestResolver
implementation that expects the first segment of the URI is the repository name, the second is the
workspace name, and the remaining form the node path. This resolver does handle the case when only the repository name is
specified, or only the repository and workspace names are supplied, or when not even the repository name is given.
SingleRepositoryRequestResolver
Field Summary | |
---|---|
protected static int |
PATH_GROUP
|
protected static Pattern |
PATH_PATTERN
The regular expression that is used to extract the repository name, workspace name, and node path. |
protected static String |
PATH_PATTERN_STRING
The string representation of the Java version of the PATH_PATTERN regular expression. |
protected static int |
REPOSITORY_NAME_GROUP
|
protected static String |
ROOT_NODE_PATH
|
protected static int |
WORKSPACE_NAME_GROUP
|
protected static int |
WORKSPACE_WITH_SLASH_GROUP
|
Constructor Summary | |
---|---|
MultiRepositoryRequestResolver()
|
Method Summary | |
---|---|
void |
initialize(javax.servlet.ServletContext context)
Initialize the resolver based on the provided context |
ResolvedRequest |
resolve(javax.servlet.http.HttpServletRequest request,
String relativePath)
Resolve the given request to the repository, workspace, and path of the node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String PATH_PATTERN_STRING
PATH_PATTERN
regular expression.
protected static final Pattern PATH_PATTERN
The regular expression is /?(([^/]*)(/([^/]*)?(/(.*))?)?)?
.
protected static final int REPOSITORY_NAME_GROUP
protected static final int WORKSPACE_WITH_SLASH_GROUP
protected static final int WORKSPACE_NAME_GROUP
protected static final int PATH_GROUP
protected static final String ROOT_NODE_PATH
Constructor Detail |
---|
public MultiRepositoryRequestResolver()
Method Detail |
---|
public void initialize(javax.servlet.ServletContext context)
RequestResolver
initialize
in interface RequestResolver
context
- the servlet context for this servletpublic ResolvedRequest resolve(javax.servlet.http.HttpServletRequest request, String relativePath)
RequestResolver
resolve
in interface RequestResolver
request
- the request to be resolvedrelativePath
- the requested relative path; never null or empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |