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  queryorfragmentcomponents. | 
| com.okta.commons.http.QueryString | getQuery()Returns the URI's canonical  queryrepresentation ornullif there is no query component. | 
| boolean | hasQuery()Returns  trueif the URI has aquerycomponent,falseotherwise. | 
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–2023 Okta. All rights reserved.