Class URIQuery
- java.lang.Object
-
- com.djrapitops.plan.delivery.web.resolver.request.URIQuery
-
public final class URIQuery extends java.lang.Object
Represents URI parameters described with?param=value¶m2=value2
in the URL.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString()
java.util.Optional<java.lang.String>
get(java.lang.String key)
Obtain an URI parameter by key.java.lang.String
toString()
-
-
-
Method Detail
-
get
public java.util.Optional<java.lang.String> get(java.lang.String key)
Obtain an URI parameter by key.- Parameters:
key
- Case-sensitive key, eg. 'param' in?param=value¶m2=value2
- Returns:
- The value in the URL or empty if key is not specified in the URL.
-
asString
public java.lang.String asString()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-