public class TargetResponse extends Object
Constructor and Description |
---|
TargetResponse(TargetConfiguration targetConfiguration,
org.apache.http.HttpResponse response,
org.apache.http.nio.NHttpClientConnection conn,
boolean expectResponseBody) |
Modifier and Type | Method and Description |
---|---|
void |
addExcessHeader(org.apache.http.Header h) |
org.apache.http.nio.NHttpClientConnection |
getConnection() |
Map |
getExcessHeaders() |
String |
getHeader(String name) |
Map<String,String> |
getHeaders() |
Pipe |
getPipe() |
int |
getStatus() |
String |
getStatusLine() |
org.apache.http.ProtocolVersion |
getVersion() |
boolean |
isExpectResponseBody() |
int |
read(org.apache.http.nio.NHttpClientConnection conn,
org.apache.http.nio.ContentDecoder decoder)
Read the data from the wire and read in to the pipe so that other end of
the pipe can write.
|
void |
start(org.apache.http.nio.NHttpClientConnection conn)
Starts the response
|
public TargetResponse(TargetConfiguration targetConfiguration, org.apache.http.HttpResponse response, org.apache.http.nio.NHttpClientConnection conn, boolean expectResponseBody)
public void start(org.apache.http.nio.NHttpClientConnection conn)
conn
- the client connectionpublic int read(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentDecoder decoder) throws IOException
conn
- the target connectiondecoder
- content decoderIOException
- if an error occurspublic Map getExcessHeaders()
public void addExcessHeader(org.apache.http.Header h)
public Pipe getPipe()
public int getStatus()
public String getStatusLine()
public boolean isExpectResponseBody()
public org.apache.http.nio.NHttpClientConnection getConnection()
public org.apache.http.ProtocolVersion getVersion()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.