public class HttpContentResponse extends Object implements ContentResponse
Response.Listener
Constructor and Description |
---|
HttpContentResponse(Response response,
byte[] content,
String encoding) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Attempts to abort the send of this request.
|
byte[] |
content() |
String |
contentAsString() |
long |
conversation() |
HttpFields |
headers() |
Response.Listener |
listener() |
String |
reason() |
int |
status() |
String |
toString() |
HttpVersion |
version() |
public long conversation()
conversation
in interface Response
public Response.Listener listener()
public HttpVersion version()
public int status()
public String reason()
reason
in interface Response
Response.status()
public HttpFields headers()
public void abort()
Response
public byte[] content()
content
in interface ContentResponse
public String contentAsString()
contentAsString
in interface ContentResponse
Content-Type
header, if any, or UTF-8.Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.