Class AxisHttpResponseImpl
- java.lang.Object
-
- org.apache.axis2.transport.http.server.AxisHttpResponseImpl
-
- All Implemented Interfaces:
OutTransportInfo
,AxisHttpResponse
,org.apache.http.HttpMessage
public class AxisHttpResponseImpl extends Object implements AxisHttpResponse, OutTransportInfo
-
-
Constructor Summary
Constructors Constructor Description AxisHttpResponseImpl(AxisHttpConnection conn, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpProcessor httpproc, org.apache.http.protocol.HttpContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHeader(String name, String value)
void
addHeader(org.apache.http.Header header)
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(String name, String value)
void
setHeader(org.apache.http.Header header)
void
setHeaders(org.apache.http.Header[] headers)
void
setParams(org.apache.http.params.HttpParams params)
void
setStatus(int sc)
-
-
-
Constructor Detail
-
AxisHttpResponseImpl
public AxisHttpResponseImpl(AxisHttpConnection conn, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpProcessor httpproc, org.apache.http.protocol.HttpContext context)
-
-
Method Detail
-
isCommitted
public boolean isCommitted()
-
commit
public void commit() throws IOException, org.apache.http.HttpException
- Throws:
IOException
org.apache.http.HttpException
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream
in interfaceAxisHttpResponse
-
sendError
public void sendError(int sc, String msg)
- Specified by:
sendError
in interfaceAxisHttpResponse
-
sendError
public void sendError(int sc)
- Specified by:
sendError
in interfaceAxisHttpResponse
-
setStatus
public void setStatus(int sc)
- Specified by:
setStatus
in interfaceAxisHttpResponse
-
setContentType
public void setContentType(String contentType)
- Specified by:
setContentType
in interfaceAxisHttpResponse
- Specified by:
setContentType
in interfaceOutTransportInfo
-
getProtocolVersion
public org.apache.http.ProtocolVersion getProtocolVersion()
- Specified by:
getProtocolVersion
in interfaceorg.apache.http.HttpMessage
-
addHeader
public void addHeader(org.apache.http.Header header)
- Specified by:
addHeader
in interfaceorg.apache.http.HttpMessage
-
addHeader
public void addHeader(String name, String value)
- Specified by:
addHeader
in interfaceorg.apache.http.HttpMessage
-
containsHeader
public boolean containsHeader(String name)
- Specified by:
containsHeader
in interfaceorg.apache.http.HttpMessage
-
getAllHeaders
public org.apache.http.Header[] getAllHeaders()
- Specified by:
getAllHeaders
in interfaceorg.apache.http.HttpMessage
-
getFirstHeader
public org.apache.http.Header getFirstHeader(String name)
- Specified by:
getFirstHeader
in interfaceorg.apache.http.HttpMessage
-
getHeaders
public org.apache.http.Header[] getHeaders(String name)
- Specified by:
getHeaders
in interfaceorg.apache.http.HttpMessage
-
getLastHeader
public org.apache.http.Header getLastHeader(String name)
- Specified by:
getLastHeader
in interfaceorg.apache.http.HttpMessage
-
headerIterator
public org.apache.http.HeaderIterator headerIterator()
- Specified by:
headerIterator
in interfaceorg.apache.http.HttpMessage
-
headerIterator
public org.apache.http.HeaderIterator headerIterator(String name)
- Specified by:
headerIterator
in interfaceorg.apache.http.HttpMessage
-
removeHeader
public void removeHeader(org.apache.http.Header header)
- Specified by:
removeHeader
in interfaceorg.apache.http.HttpMessage
-
removeHeaders
public void removeHeaders(String name)
- Specified by:
removeHeaders
in interfaceorg.apache.http.HttpMessage
-
setHeader
public void setHeader(org.apache.http.Header header)
- Specified by:
setHeader
in interfaceorg.apache.http.HttpMessage
-
setHeader
public void setHeader(String name, String value)
- Specified by:
setHeader
in interfaceorg.apache.http.HttpMessage
-
setHeaders
public void setHeaders(org.apache.http.Header[] headers)
- Specified by:
setHeaders
in interfaceorg.apache.http.HttpMessage
-
getParams
public org.apache.http.params.HttpParams getParams()
- Specified by:
getParams
in interfaceorg.apache.http.HttpMessage
-
setParams
public void setParams(org.apache.http.params.HttpParams params)
- Specified by:
setParams
in interfaceorg.apache.http.HttpMessage
-
-