public class UriResponse extends Object implements IResponseHandler
Constructor and Description |
---|
UriResponse() |
Modifier and Type | Method and Description |
---|---|
org.apache.http.HttpResponse |
execute(org.apache.http.HttpRequest request)
Implement this method to process the HTTP request and provide a custom reponse.
|
UriResponse |
response(String uri,
org.apache.http.HttpResponse response)
Add a Http reponse.
|
public org.apache.http.HttpResponse execute(org.apache.http.HttpRequest request)
IResponseHandler
execute
in interface IResponseHandler
public UriResponse response(String uri, org.apache.http.HttpResponse response)
response("http://host/path1", httpResponse)
uri
- Full uri including protocol, host, port if any, path and query params.response
- Copyright © 2008–2018. All rights reserved.