Klasse Path

Alle implementierten Schnittstellen:
Serializable, Cloneable, Iterable<String>, Collection<String>, List<String>, RandomAccess, SequencedCollection<String>

public class Path extends Stack<String>
This class represents a path given in an http request as stack of strings.
Siehe auch:
  • Methodendetails

    • clone

      public Path clone()
      Setzt außer Kraft:
      clone in Klasse Vector<String>
    • endsWith

      public boolean endsWith(String s)
      checks whether this path ends with the given string
      Parameter:
      s - the string to compare to
      Gibt zurück:
      true, only if the last component of this path stack ends with the given string
    • equals

      public boolean equals(String s)
      checks, whether this path equals the given string
      Parameter:
      s - the string to compare against
      Gibt zurück:
      true only if the path has exactly one component and that component matches s
    • of

      public static Path of(String requestPath)
      create a new String stack from a given path
      Parameter:
      requestPath - the path to parse into the stack
      Gibt zurück:
      the stack consisting of the slash-separated tokens of the input
    • pop

      public String pop()
      Setzt außer Kraft:
      pop in Klasse Stack<String>
    • peek

      public String peek()
      Setzt außer Kraft:
      peek in Klasse Stack<String>
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Vector<String>