org.ow2.jonas.web.tomcat6.ws
Class URLUtils
java.lang.Object
org.ow2.jonas.web.tomcat6.ws.URLUtils
public class URLUtils
- extends Object
The URLUtils a helper class for URL management operations.
- Author:
- Guillaume Sauthier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLUtils
public URLUtils()
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.