org.apache.slide.search
Class SlideUri

java.lang.Object
  extended byorg.apache.slide.search.SlideUri

public class SlideUri
extends java.lang.Object

The root of an href in slide is the slide servlet. For an external href the root is the server. Example: the host is localhost, the context is slide, the slidePath is /mycoll/myfile.xml http://localhost/slide/mycoll/myfile.xml


Constructor Summary
SlideUri(java.lang.String requestUri)
          Constructs a SlideUri.
 
Method Summary
 java.lang.String getContextPath(java.lang.String slidePath)
          Deprecated.  
 java.lang.String getSlidePath(java.lang.String relPath)
          Method getSlideUri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlideUri

public SlideUri(java.lang.String requestUri)
Constructs a SlideUri. If the requestUri is null, paths are regarded as being always slidePaths

Method Detail

getSlidePath

public java.lang.String getSlidePath(java.lang.String relPath)
                              throws InvalidScopeException
Method getSlideUri. If the requestUri is null, relpath is regarded to be already a slidePath, it must start with a "/"

Parameters:
relPath - a String
Returns:
a String
Throws:
InvalidScopeException

getContextPath

public java.lang.String getContextPath(java.lang.String slidePath)
Deprecated.  

Method getContextPath

Returns:
a String