org.ow2.jonas.web.tomcat6.ws
Class URLUtils

java.lang.Object
  extended by org.ow2.jonas.web.tomcat6.ws.URLUtils

public class URLUtils
extends Object

The URLUtils a helper class for URL management operations.

Author:
Guillaume Sauthier

Constructor Summary
URLUtils()
           
 
Method Summary
static String findValidUrlPattern(String[] mappings)
           
protected static String getContextRoot(PortMetaData portMetadata)
          Fix the context-root by prefixing it with a leading '/' (if missing)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLUtils

public URLUtils()
Method Detail

getContextRoot

protected static String getContextRoot(PortMetaData portMetadata)
Fix the context-root by prefixing it with a leading '/' (if missing)

Parameters:
portMetadata - port related metadata
Returns:
a valid context-root from the port metadata

findValidUrlPattern

public static String findValidUrlPattern(String[] mappings)
Parameters:
mappings - candidates mappins
Returns:
a valid mapping selected from the candidates


Copyright © 2010 OW2 Consortium. All Rights Reserved.