Client.@Deprecated public class JavaScriptHttpClient extends RestletHttpClient
| Constructor and Description |
|---|
JavaScriptHttpClient(org.forgerock.http.Client client)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
HttpClientResponse |
get(String uri,
org.mozilla.javascript.NativeObject requestData)
Deprecated.
|
HttpClientResponse |
post(String uri,
String body,
org.mozilla.javascript.NativeObject requestData)
Deprecated.
|
org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> |
send(org.forgerock.http.protocol.Request request)
Deprecated.
Sends an HTTP request and returns a
Promise representing the
pending HTTP response. |
getHttpClientResponse@Inject
public JavaScriptHttpClient(@Named(value="ScriptingHttpClient")
org.forgerock.http.Client client)
public HttpClientResponse get(String uri, org.mozilla.javascript.NativeObject requestData) throws UnsupportedEncodingException
uri - URI of resource to be accessedrequestData - Data to be sent during the requestUnsupportedEncodingExceptionpublic HttpClientResponse post(String uri, String body, org.mozilla.javascript.NativeObject requestData) throws UnsupportedEncodingException
uri - URI of resource to be accessedbody - The body of the http requestrequestData - Data to be sent during the requestUnsupportedEncodingExceptionpublic org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> send(org.forgerock.http.protocol.Request request)
Promise representing the
pending HTTP response.request - The HTTP request to send.Copyright © 2010–2024 Open Identity Platform Community. All rights reserved.