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
IOException
org.apache.http.HttpException
public OutputStream getOutputStream()
getOutputStream
in interface AxisHttpResponse
public void sendError(int sc, String msg)
sendError
in interface AxisHttpResponse
public void sendError(int sc)
sendError
in interface AxisHttpResponse
public void setStatus(int sc)
setStatus
in interface AxisHttpResponse
public void setContentType(String contentType)
setContentType
in interface AxisHttpResponse
setContentType
in interface OutTransportInfo
public org.apache.http.ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface org.apache.http.HttpMessage
public void addHeader(org.apache.http.Header header)
addHeader
in interface org.apache.http.HttpMessage
public void addHeader(String name, String value)
addHeader
in interface org.apache.http.HttpMessage
public boolean containsHeader(String name)
containsHeader
in interface org.apache.http.HttpMessage
public org.apache.http.Header[] getAllHeaders()
getAllHeaders
in interface org.apache.http.HttpMessage
public org.apache.http.Header getFirstHeader(String name)
getFirstHeader
in interface org.apache.http.HttpMessage
public org.apache.http.Header[] getHeaders(String name)
getHeaders
in interface org.apache.http.HttpMessage
public org.apache.http.Header getLastHeader(String name)
getLastHeader
in interface org.apache.http.HttpMessage
public org.apache.http.HeaderIterator headerIterator()
headerIterator
in interface org.apache.http.HttpMessage
public org.apache.http.HeaderIterator headerIterator(String name)
headerIterator
in interface org.apache.http.HttpMessage
public void removeHeader(org.apache.http.Header header)
removeHeader
in interface org.apache.http.HttpMessage
public void removeHeaders(String name)
removeHeaders
in interface org.apache.http.HttpMessage
public void setHeader(org.apache.http.Header header)
setHeader
in interface org.apache.http.HttpMessage
public void setHeader(String name, String value)
setHeader
in interface org.apache.http.HttpMessage
public void setHeaders(org.apache.http.Header[] headers)
setHeaders
in interface org.apache.http.HttpMessage
public org.apache.http.params.HttpParams getParams()
getParams
in interface org.apache.http.HttpMessage
public void setParams(org.apache.http.params.HttpParams params)
setParams
in interface org.apache.http.HttpMessage
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.