public final class RequestUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeUrl(String value,
boolean path,
boolean canonical) |
static String |
fetchHeaderValueAndRemoveIfPresent(Request request,
String headerName) |
static String |
getFormattedDate(Date inDate)
Convert supplied Date object into ISO 8601 formatted
date string (e.g.
|
static boolean |
isDefaultPort(URI uri)
Returns
true if the specified URI uses a standard port (i.e. |
public static boolean isDefaultPort(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 String getFormattedDate(Date inDate)
inDate - Copyright © 2018–2023 Okta. All rights reserved.