org.apache.jackrabbit.webdav.jcr
Class DavLocatorFactoryImpl

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.jcr.DavLocatorFactoryImpl
All Implemented Interfaces:
org.apache.jackrabbit.webdav.DavLocatorFactory

public class DavLocatorFactoryImpl
extends Object
implements org.apache.jackrabbit.webdav.DavLocatorFactory

DavLocatorFactoryImpl...


Constructor Summary
DavLocatorFactoryImpl(String pathPrefix)
          Create a new factory
 
Method Summary
 org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String href)
          Create a new DavResourceLocator.
 org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String workspacePath, String resourcePath)
          Create a new DavResourceLocator from the specified prefix, workspace path and resource path, whithout modifying the specified Strings.
 org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String workspacePath, String path, boolean isResourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DavLocatorFactoryImpl

public DavLocatorFactoryImpl(String pathPrefix)
Create a new factory

Parameters:
pathPrefix - Prefix, that needs to be removed in order to retrieve the path of the repository item from a given DavResourceLocator.
Method Detail

createResourceLocator

public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix,
                                                                             String href)
Create a new DavResourceLocator. Any leading path-prefix (as defined with the constructor) and trailing '/' with the request handle is removed. The first label of the remaining handle is treated as workspace name. The remaining part of the given request handle is said to be the resource handle ("/" if an empty string remains). If the request handle does neither provide workspace name nor resource handle both values are set to null; the path object then represents the root resource that has no corresponding item in the JCR repository.

Specified by:
createResourceLocator in interface org.apache.jackrabbit.webdav.DavLocatorFactory
Parameters:
prefix -
href -
Returns:
a new DavResourceLocator
Throws:
IllegalArgumentException - if the request handle is null

createResourceLocator

public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix,
                                                                             String workspacePath,
                                                                             String resourcePath)
Create a new DavResourceLocator from the specified prefix, workspace path and resource path, whithout modifying the specified Strings.

Specified by:
createResourceLocator in interface org.apache.jackrabbit.webdav.DavLocatorFactory
Parameters:
prefix -
workspacePath -
resourcePath -
Returns:
a new DavResourceLocator
See Also:
DavLocatorFactory.createResourceLocator(String, String, String)

createResourceLocator

public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix,
                                                                             String workspacePath,
                                                                             String path,
                                                                             boolean isResourcePath)
Specified by:
createResourceLocator in interface org.apache.jackrabbit.webdav.DavLocatorFactory
Parameters:
prefix -
workspacePath -
path -
isResourcePath -
Returns:
See Also:
DavLocatorFactory.createResourceLocator(String, String, String, boolean)


Copyright © 2005-2006 . All Rights Reserved.