deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.portal.standard.security.control
Class RelativePath

java.lang.Object
  extended by org.deegree.portal.standard.security.control.RelativePath

public class RelativePath
extends Object

TODO add documentation here

Version:
$Revision: $, $Date: 08-Mar-2007 16:46:12$
Author:
Moataz Elmasry, last edited by: $Author: elmasri$

Nested Class Summary
(package private) static class RelativePath.Delimiter
           
 
Constructor Summary
RelativePath()
           
 
Method Summary
static String getFirstMatch(String source, String[] delimiters)
          get the first match from the many delimiters give as input
static String mapRelativePath(String source, String target, String[] delimiters)
          Maps from a source sTring to a target String, based on the delimiters given the delimiters are basically "\\" or "/", but it also could be anything else Two absolute pathes should be given here Don't give relative or non existing pathes
static String[] splitString(String source, String[] delimiters)
          Split a string based on the given delimiters and return an array of strings(tokens)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativePath

public RelativePath()
Method Detail

getFirstMatch

public static String getFirstMatch(String source,
                                   String[] delimiters)
get the first match from the many delimiters give as input

Parameters:
source -
delimiters -
Returns:
String

splitString

public static String[] splitString(String source,
                                   String[] delimiters)
Split a string based on the given delimiters and return an array of strings(tokens)

Parameters:
source -
delimiters -
Returns:
tokens from a given string

mapRelativePath

public static String mapRelativePath(String source,
                                     String target,
                                     String[] delimiters)
                              throws ParseException
Maps from a source sTring to a target String, based on the delimiters given the delimiters are basically "\\" or "/", but it also could be anything else Two absolute pathes should be given here Don't give relative or non existing pathes

Parameters:
source -
target -
delimiters -
Returns:
the mapped path
Throws:
ParseException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org