org.cruxframework.crux.core.server.rest.core.registry
Class PathSegment

java.lang.Object
  extended by org.cruxframework.crux.core.server.rest.core.registry.PathSegment

public class PathSegment
extends Object

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
PathSegment(String segment, boolean decode)
           
 
Method Summary
 String getOriginal()
           
 String getPath()
           
static List<PathSegment> parseSegments(String path, boolean decode)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathSegment

public PathSegment(String segment,
                   boolean decode)
Parameters:
segment - encoded path segment
decode - whether or not to decode values
Method Detail

getOriginal

public String getOriginal()

getPath

public String getPath()

toString

public String toString()
Overrides:
toString in class Object

parseSegments

public static List<PathSegment> parseSegments(String path,
                                              boolean decode)
Parameters:
path - encoded full path
decode - whether or not to decode each segment
Returns:


Copyright © 2014. All rights reserved.