public class AxisHttpResponseImpl extends Object implements AxisHttpResponse, OutTransportInfo
| Constructor and Description |
|---|
AxisHttpResponseImpl(AxisHttpConnection conn,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpProcessor httpproc,
org.apache.http.protocol.HttpContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(org.apache.http.Header header) |
void |
addHeader(String name,
String value) |
void |
commit() |
boolean |
containsHeader(String name) |
org.apache.http.Header[] |
getAllHeaders() |
org.apache.http.Header |
getFirstHeader(String name) |
org.apache.http.Header[] |
getHeaders(String name) |
org.apache.http.Header |
getLastHeader(String name) |
OutputStream |
getOutputStream() |
org.apache.http.params.HttpParams |
getParams() |
org.apache.http.ProtocolVersion |
getProtocolVersion() |
org.apache.http.HeaderIterator |
headerIterator() |
org.apache.http.HeaderIterator |
headerIterator(String name) |
boolean |
isCommitted() |
void |
removeHeader(org.apache.http.Header header) |
void |
removeHeaders(String name) |
void |
sendError(int sc) |
void |
sendError(int sc,
String msg) |
void |
setContentType(String contentType) |
void |
setHeader(org.apache.http.Header header) |
void |
setHeader(String name,
String value) |
void |
setHeaders(org.apache.http.Header[] headers) |
void |
setParams(org.apache.http.params.HttpParams params) |
void |
setStatus(int sc) |
public AxisHttpResponseImpl(AxisHttpConnection conn, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpProcessor httpproc, org.apache.http.protocol.HttpContext context)
public boolean isCommitted()
public void commit()
throws IOException,
org.apache.http.HttpException
IOExceptionorg.apache.http.HttpExceptionpublic OutputStream getOutputStream()
getOutputStream in interface AxisHttpResponsepublic void sendError(int sc,
String msg)
sendError in interface AxisHttpResponsepublic void sendError(int sc)
sendError in interface AxisHttpResponsepublic void setStatus(int sc)
setStatus in interface AxisHttpResponsepublic void setContentType(String contentType)
setContentType in interface AxisHttpResponsesetContentType in interface OutTransportInfopublic org.apache.http.ProtocolVersion getProtocolVersion()
getProtocolVersion in interface org.apache.http.HttpMessagepublic void addHeader(org.apache.http.Header header)
addHeader in interface org.apache.http.HttpMessagepublic void addHeader(String name, String value)
addHeader in interface org.apache.http.HttpMessagepublic boolean containsHeader(String name)
containsHeader in interface org.apache.http.HttpMessagepublic org.apache.http.Header[] getAllHeaders()
getAllHeaders in interface org.apache.http.HttpMessagepublic org.apache.http.Header getFirstHeader(String name)
getFirstHeader in interface org.apache.http.HttpMessagepublic org.apache.http.Header[] getHeaders(String name)
getHeaders in interface org.apache.http.HttpMessagepublic org.apache.http.Header getLastHeader(String name)
getLastHeader in interface org.apache.http.HttpMessagepublic org.apache.http.HeaderIterator headerIterator()
headerIterator in interface org.apache.http.HttpMessagepublic org.apache.http.HeaderIterator headerIterator(String name)
headerIterator in interface org.apache.http.HttpMessagepublic void removeHeader(org.apache.http.Header header)
removeHeader in interface org.apache.http.HttpMessagepublic void removeHeaders(String name)
removeHeaders in interface org.apache.http.HttpMessagepublic void setHeader(org.apache.http.Header header)
setHeader in interface org.apache.http.HttpMessagepublic void setHeader(String name, String value)
setHeader in interface org.apache.http.HttpMessagepublic void setHeaders(org.apache.http.Header[] headers)
setHeaders in interface org.apache.http.HttpMessagepublic org.apache.http.params.HttpParams getParams()
getParams in interface org.apache.http.HttpMessagepublic void setParams(org.apache.http.params.HttpParams params)
setParams in interface org.apache.http.HttpMessageCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.