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()
CanonicalUriquery or fragment components.getAbsolutePath in interface CanonicalUriquery or fragment components.public boolean hasQuery()
CanonicalUritrue if the URI has a query component, false otherwise.hasQuery in interface CanonicalUritrue if the URI has a query component, false otherwise.public com.okta.commons.http.QueryString getQuery()
CanonicalUriquery representation or null if there is no query component.getQuery in interface CanonicalUriquery representation or null if there is no query component.public static CanonicalUri create(String href, Map<String,?> queryParams)
Copyright © 2017–2022 Okta. All rights reserved.