public final class RequestUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
encodeUrl(java.lang.String value,
boolean path,
boolean canonical) |
static java.lang.String |
fetchHeaderValueAndRemoveIfPresent(Request request,
java.lang.String headerName) |
static java.lang.String |
getFormattedDate(java.util.Date inDate)
Convert supplied Date object into ISO 8601 formatted
date string (e.g.
|
static boolean |
isDefaultPort(java.net.URI uri)
Returns
true if the specified URI uses a standard port (i.e. |
public static boolean isDefaultPort(java.net.URI uri)
true if the specified URI uses a standard port (i.e. http == 80 or https == 443),
false otherwise.uri - true if the specified URI uses a standard portpublic static java.lang.String encodeUrl(java.lang.String value,
boolean path,
boolean canonical)
public static java.lang.String getFormattedDate(java.util.Date inDate)
inDate - public static java.lang.String fetchHeaderValueAndRemoveIfPresent(Request request, java.lang.String headerName)
Copyright © 2018-2021 Okta. All Rights Reserved.