Class ParsedUri

java.lang.Object
org.jolokia.jvmagent.ParsedUri

public class ParsedUri extends Object
Enhanced URI class in order to provide means to get to the query string and the request parameters. The parameters are still raw and not validated (for example parameters that represent numbers are still kept as strings).
Since:
Mar 21, 2010
Author:
roland
  • Constructor Details

    • ParsedUri

      public ParsedUri(URI pUri, String... pContext)
      Constructor
      Parameters:
      pUri - URI to parse
      pContext - an optional context which is tripped from the path itself
  • Method Details

    • getPathInfo

      public String getPathInfo()
      Return the pathinfo fo this query object
      Returns:
      path info
    • getUri

      public URI getUri()
      Get the complete URI which was parsed
      Returns:
      original URI
    • getParameter

      public String getParameter(String name)
      Get a single parameter of the parsed URI
      Parameters:
      name - parameter name
      Returns:
      the value of the parameter or null if no such parameter is stored
    • getParameterMap

      public Map<String,String[]> getParameterMap()
      Get the map with parsed parameters as key-value pairs, where the value is multi valued (array of value)
      Returns:
      the parameter map
    • toString

      public String toString()
      Overrides:
      toString in class Object