Class Path
- java.lang.Object
-
- org.nuxeo.ecm.webengine.jaxrs.servlet.mapping.Path
-
public final class Path extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected int
bits
static Path
EMPTY
static String[]
EMPTY_SEGMENTS
static int
HAS_LEADING_SLASH
static int
HAS_TRAILING_SLASH
static Path
ROOT
protected String[]
segments
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
append(String segment)
Path
copy()
Path
copy(int bits)
boolean
equals(Object obj)
String
getFileExtension()
String
getFileName()
int
hashCode()
boolean
hasLeadingSlash()
boolean
hasTrailingSlash()
boolean
isAbsolute()
boolean
isRoot()
String
lastSegment()
int
length()
Path
makeAbsolute()
Path
makeRelative()
static Path
parse(String path)
Path
removeLastSegment()
Path
removeLastSegments(int i)
Path
removeTrailingSlash()
String
segment(int i)
String[]
segments()
String
toString()
-
-
-
Field Detail
-
HAS_LEADING_SLASH
public static final int HAS_LEADING_SLASH
- See Also:
- Constant Field Values
-
HAS_TRAILING_SLASH
public static final int HAS_TRAILING_SLASH
- See Also:
- Constant Field Values
-
EMPTY_SEGMENTS
public static final String[] EMPTY_SEGMENTS
-
ROOT
public static final Path ROOT
-
EMPTY
public static final Path EMPTY
-
bits
protected int bits
-
segments
protected final String[] segments
-
-
Method Detail
-
length
public int length()
-
segments
public String[] segments()
-
hasLeadingSlash
public boolean hasLeadingSlash()
-
hasTrailingSlash
public boolean hasTrailingSlash()
-
isAbsolute
public boolean isAbsolute()
-
copy
public Path copy()
-
copy
public Path copy(int bits)
-
lastSegment
public String lastSegment()
-
getFileExtension
public String getFileExtension()
-
getFileName
public String getFileName()
-
makeAbsolute
public Path makeAbsolute()
-
makeRelative
public Path makeRelative()
-
removeTrailingSlash
public Path removeTrailingSlash()
-
isRoot
public boolean isRoot()
-
segment
public String segment(int i)
-
removeLastSegment
public Path removeLastSegment()
-
removeLastSegments
public Path removeLastSegments(int i)
-
-