Search in sources :

Example 1 with HttpClientResponse

use of org.forgerock.http.client.response.HttpClientResponse in project OpenAM by OpenRock.

the class RestletHttpClient method perform.

private HttpClientResponse perform(HttpClientRequest httpClientRequest) throws UnsupportedEncodingException {
    Request request = createRequest(httpClientRequest);
    Client client = new Client(Protocol.HTTP);
    Response response = new Response(request);
    client.handle(request, response);
    return createHttpClientResponse(response);
}
Also used : Response(org.restlet.Response) HttpClientResponse(org.forgerock.http.client.response.HttpClientResponse) SimpleHttpClientResponse(org.forgerock.http.client.response.SimpleHttpClientResponse) Request(org.restlet.Request) HttpClientRequest(org.forgerock.http.client.request.HttpClientRequest) Client(org.restlet.Client)

Aggregations

HttpClientRequest (org.forgerock.http.client.request.HttpClientRequest)1 HttpClientResponse (org.forgerock.http.client.response.HttpClientResponse)1 SimpleHttpClientResponse (org.forgerock.http.client.response.SimpleHttpClientResponse)1 Client (org.restlet.Client)1 Request (org.restlet.Request)1 Response (org.restlet.Response)1