Class UriBaseContextPath

  • All Implemented Interfaces:

    
    public class UriBaseContextPath
    
                        

    Helper to extract a base path from an URI.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      UriBaseContextPath(String uri) Constructor that accepts an URI and tries to cut out the base path on construction.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String get() Gets the extracted base path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UriBaseContextPath

        UriBaseContextPath(String uri)
        Constructor that accepts an URI and tries to cut out the base path on construction.
        Parameters:
        uri - the inspected URI.
    • Method Detail

      • get

         String get()

        Gets the extracted base path.

        Returns:

        the base path or an empty string if the parser was not able to find a base path.