org.modeshape.web.jcr.webdav
Class SingleRepositoryRequestResolver
java.lang.Object
org.modeshape.web.jcr.webdav.SingleRepositoryRequestResolver
- All Implemented Interfaces:
- RequestResolver
public class SingleRepositoryRequestResolver
- extends Object
- implements RequestResolver
Default RequestResolver
that performs a direct mapping from all incoming URIs to the same path within a single
repository and workspace.
- See Also:
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 |
INIT_REPOSITORY_NAME
public static final String INIT_REPOSITORY_NAME
- See Also:
- Constant Field Values
INIT_WORKSPACE_NAME
public static final String INIT_WORKSPACE_NAME
- See Also:
- Constant Field Values
SingleRepositoryRequestResolver
public SingleRepositoryRequestResolver()
initialize
public void initialize(javax.servlet.ServletContext context)
- Description copied from interface:
RequestResolver
- Initialize the resolver based on the provided context
- Specified by:
initialize
in interface RequestResolver
- Parameters:
context
- the servlet context for this servlet
resolve
public ResolvedRequest resolve(javax.servlet.http.HttpServletRequest request,
String relativePath)
- Description copied from interface:
RequestResolver
- Resolve the given request to the repository, workspace, and path of the node
- Specified by:
resolve
in interface RequestResolver
- Parameters:
request
- the request to be resolvedrelativePath
- the requested relative path; never null or empty
- Returns:
- the repository, workspace, and path to a node
Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.