org.objectweb.dsrg.sofa.repository.server.webapp
Class URIConversionHelper

java.lang.Object
  extended by org.objectweb.dsrg.sofa.repository.server.webapp.URIConversionHelper

public class URIConversionHelper
extends java.lang.Object

Helps to convert request URIs into filename.


Method Summary
static java.lang.String convertURIToPath(java.lang.String repositoryPath, java.lang.String shortURI)
          Decode request URI to file path.
static java.lang.String getShortURI(javax.servlet.http.HttpServletRequest request)
          Internal method for retrieving short URI from the whole request URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getShortURI

public static java.lang.String getShortURI(javax.servlet.http.HttpServletRequest request)
Internal method for retrieving short URI from the whole request URI.

Parameters:
request - HTTP request
Returns:
Request URI without servlet and webapp prefix

convertURIToPath

public static java.lang.String convertURIToPath(java.lang.String repositoryPath,
                                                java.lang.String shortURI)
Decode request URI to file path.

Parameters:
shortURI - request URI
Returns:
file path