public class DefaultCanonicalUri extends Object implements CanonicalUri
Constructor and Description |
---|
DefaultCanonicalUri(String absolutePath,
com.okta.commons.http.QueryString query) |
Modifier and Type | Method and Description |
---|---|
static CanonicalUri |
create(String href,
Map<String,?> queryParams) |
String |
getAbsolutePath()
Returns a fully-qualified URI without
query or fragment components. |
com.okta.commons.http.QueryString |
getQuery()
Returns the URI's canonical
query representation or null if there is no query component. |
boolean |
hasQuery()
Returns
true if the URI has a query component, false otherwise. |
public DefaultCanonicalUri(String absolutePath, com.okta.commons.http.QueryString query)
public String getAbsolutePath()
CanonicalUri
query
or fragment
components.getAbsolutePath
in interface CanonicalUri
query
or fragment
components.public boolean hasQuery()
CanonicalUri
true
if the URI has a query
component, false
otherwise.hasQuery
in interface CanonicalUri
true
if the URI has a query
component, false
otherwise.public com.okta.commons.http.QueryString getQuery()
CanonicalUri
query
representation or null
if there is no query component.getQuery
in interface CanonicalUri
query
representation or null
if there is no query component.public static CanonicalUri create(String href, Map<String,?> queryParams)
Copyright © 2017–2023 Okta. All rights reserved.