net.sf.jguard.jee.util
Class ContextUtil

java.lang.Object
  extended by net.sf.jguard.jee.util.ContextUtil

public class ContextUtil
extends Object

utility class to resolve path in a jee environment.

Author:
Charles Gay

Constructor Summary
ContextUtil()
           
 
Method Summary
static String getContextPath(javax.portlet.PortletContext context, String path)
          resolve the abstract path provided into a real path.
static URL getContextPath(javax.servlet.ServletContext context, String path)
          resolve the abstract path provided into a real path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextUtil

public ContextUtil()
Method Detail

getContextPath

public static URL getContextPath(javax.servlet.ServletContext context,
                                 String path)
resolve the abstract path provided into a real path.

Parameters:
context -
path - abstract path
Returns:
resolved path

getContextPath

public static String getContextPath(javax.portlet.PortletContext context,
                                    String path)
resolve the abstract path provided into a real path.

Parameters:
context -
path - abstract path
Returns:
resolved path


Copyright © 2004-2011. All Rights Reserved.