Client.@Deprecated public class GroovyHttpClient extends RestletHttpClient
| Constructor and Description |
|---|
GroovyHttpClient(org.forgerock.http.Client client)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
HttpClientResponse |
get(String uri,
Map<String,List<Map<String,String>>> requestData)
Deprecated.
|
HttpClientResponse |
post(String uri,
String body,
Map<String,List<Map<String,String>>> 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 GroovyHttpClient(@Named(value="ScriptingHttpClient")
org.forgerock.http.Client client)
public HttpClientResponse get(String uri, Map<String,List<Map<String,String>>> requestData) throws UnsupportedEncodingException
uri - URI of resource to be accessedrequestData - Data to be sent during the requestUnsupportedEncodingExceptionpublic HttpClientResponse post(String uri, String body, Map<String,List<Map<String,String>>> 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.