org.apache.lenya.cms.publication
Class URLInformation

java.lang.Object
  extended by org.apache.lenya.cms.publication.URLInformation

public class URLInformation
extends java.lang.Object

This class resolves all Lenya-specific information from a webapp URL.


Constructor Summary
URLInformation(java.lang.String webappUrl)
          Ctor.
 
Method Summary
protected  java.lang.String extractBeforeSlash(java.lang.String remaining)
           
 java.lang.String getArea()
          Returns the area (without the "webdav" prefix).
 java.lang.String getCompleteArea()
          Returns the complete area (including the "webdav" prefix).
 java.lang.String getDocumentUrl()
          Returns the document URL.
 java.lang.String getPublicationId()
          Returns the publication ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLInformation

public URLInformation(java.lang.String webappUrl)
Ctor.

Parameters:
webappUrl - A webapp URL (without context prefix).
Method Detail

getArea

public java.lang.String getArea()
Returns the area (without the "webdav" prefix).

Returns:
A string.

getCompleteArea

public java.lang.String getCompleteArea()
Returns the complete area (including the "webdav" prefix).

Returns:
A string.

getDocumentUrl

public java.lang.String getDocumentUrl()
Returns the document URL.

Returns:
A string.

getPublicationId

public java.lang.String getPublicationId()
Returns the publication ID.

Returns:
A string.

extractBeforeSlash

protected java.lang.String extractBeforeSlash(java.lang.String remaining)


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.