java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.servlet.mapping.Path

public final class Path extends Object
Author:
Bogdan Stefanescu
  • Field Details

    • HAS_LEADING_SLASH

      public static final int HAS_LEADING_SLASH
      See Also:
    • HAS_TRAILING_SLASH

      public static final int HAS_TRAILING_SLASH
      See Also:
    • 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
  • Constructor Details

    • Path

      public Path(String[] segments)
    • Path

      public Path(String[] segments, int bits)
    • Path

      protected Path(String[] segments, int bits, boolean updateHashCode)
  • Method Details

    • parse

      public static Path parse(String path)
    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • lastSegment

      public String lastSegment()
    • getFileExtension

      public String getFileExtension()
    • getFileName

      public String getFileName()
    • append

      public Path append(String segment)
    • 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)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object