public class TestHttpRequestHandler
extends java.lang.Object
implements org.apache.http.protocol.HttpRequestHandler
Constructor and Description |
---|
TestHttpRequestHandler() |
Modifier and Type | Method and Description |
---|---|
TestHttpRequestHandler |
code(int responseCode) |
void |
handle(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |
TestHttpRequestHandler |
header(java.lang.String name,
java.lang.String value) |
TestHttpRequestHandler |
response(byte[] response) |
TestHttpRequestHandler |
response(java.lang.String response) |
public TestHttpRequestHandler response(java.lang.String response)
public TestHttpRequestHandler response(byte[] response)
public TestHttpRequestHandler code(int responseCode)
public TestHttpRequestHandler header(java.lang.String name, java.lang.String value)
public void handle(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException
handle
in interface org.apache.http.protocol.HttpRequestHandler
org.apache.http.HttpException
java.io.IOException