java.lang.Object
com.djrapitops.plan.delivery.web.resolver.request.URIQuery

public final class URIQuery extends Object
Represents URI parameters described with ?param=value&param2=value2 in the URL.
  • Constructor Details

    • URIQuery

      public URIQuery(Map<String,​String> byKey)
    • URIQuery

      public URIQuery(String fromURI)
  • Method Details

    • get

      public Optional<String> get(String key)
      Obtain an URI parameter by key.
      Parameters:
      key - Case-sensitive key, eg. 'param' in ?param=value&param2=value2
      Returns:
      The value in the URL or empty if key is not specified in the URL.
    • asString

      public String asString()
    • toString

      public String toString()
      Overrides:
      toString in class Object