public class TargetResponse
extends java.lang.Object
Constructor and Description |
---|
TargetResponse(TargetConfiguration targetConfiguration,
org.apache.http.HttpResponse response,
org.apache.http.nio.NHttpClientConnection conn,
boolean expectResponseBody,
boolean forceShutdownConnectionOnComplete) |
Modifier and Type | Method and Description |
---|---|
void |
addExcessHeader(org.apache.http.Header h) |
org.apache.http.nio.NHttpClientConnection |
getConnection() |
java.util.Map |
getExcessHeaders() |
java.lang.String |
getHeader(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
Pipe |
getPipe() |
int |
getStatus() |
java.lang.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, boolean forceShutdownConnectionOnComplete)
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 java.io.IOException
conn
- the target connectiondecoder
- content decoderjava.io.IOException
- if an error occurspublic java.lang.String getHeader(java.lang.String name)
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public java.util.Map getExcessHeaders()
public void addExcessHeader(org.apache.http.Header h)
public Pipe getPipe()
public int getStatus()
public java.lang.String getStatusLine()
public boolean isExpectResponseBody()
public org.apache.http.nio.NHttpClientConnection getConnection()
public org.apache.http.ProtocolVersion getVersion()
Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.