org.apache.axis2.transport.http.server
Class AxisHttpResponseImpl

java.lang.Object
  extended by org.apache.axis2.transport.http.server.AxisHttpResponseImpl
All Implemented Interfaces:
AxisHttpResponse, OutTransportInfo, org.apache.http.HttpMessage

public class AxisHttpResponseImpl
extends java.lang.Object
implements AxisHttpResponse, OutTransportInfo


Constructor Summary
AxisHttpResponseImpl(AxisHttpConnection conn, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpProcessor httpproc, org.apache.http.protocol.HttpContext context)
           
 
Method Summary
 void addHeader(org.apache.http.Header header)
           
 void addHeader(java.lang.String name, java.lang.String value)
           
 void commit()
           
 boolean containsHeader(java.lang.String name)
           
 org.apache.http.Header[] getAllHeaders()
           
 org.apache.http.Header getFirstHeader(java.lang.String name)
           
 org.apache.http.Header[] getHeaders(java.lang.String name)
           
 org.apache.http.Header getLastHeader(java.lang.String name)
           
 java.io.OutputStream getOutputStream()
           
 org.apache.http.params.HttpParams getParams()
           
 org.apache.http.ProtocolVersion getProtocolVersion()
           
 org.apache.http.HeaderIterator headerIterator()
           
 org.apache.http.HeaderIterator headerIterator(java.lang.String name)
           
 boolean isCommitted()
           
 void removeHeader(org.apache.http.Header header)
           
 void removeHeaders(java.lang.String name)
           
 void sendError(int sc)
           
 void sendError(int sc, java.lang.String msg)
           
 void setContentType(java.lang.String contentType)
           
 void setHeader(org.apache.http.Header header)
           
 void setHeader(java.lang.String name, java.lang.String value)
           
 void setHeaders(org.apache.http.Header[] headers)
           
 void setParams(org.apache.http.params.HttpParams params)
           
 void setStatus(int sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 java.io.IOException,
                   org.apache.http.HttpException
Throws:
java.io.IOException
org.apache.http.HttpException

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in interface AxisHttpResponse

sendError

public void sendError(int sc,
                      java.lang.String msg)
Specified by:
sendError in interface AxisHttpResponse

sendError

public void sendError(int sc)
Specified by:
sendError in interface AxisHttpResponse

setStatus

public void setStatus(int sc)
Specified by:
setStatus in interface AxisHttpResponse

setContentType

public void setContentType(java.lang.String contentType)
Specified by:
setContentType in interface AxisHttpResponse
Specified by:
setContentType in interface OutTransportInfo

getProtocolVersion

public org.apache.http.ProtocolVersion getProtocolVersion()
Specified by:
getProtocolVersion in interface org.apache.http.HttpMessage

addHeader

public void addHeader(org.apache.http.Header header)
Specified by:
addHeader in interface org.apache.http.HttpMessage

addHeader

public void addHeader(java.lang.String name,
                      java.lang.String value)
Specified by:
addHeader in interface org.apache.http.HttpMessage

containsHeader

public boolean containsHeader(java.lang.String name)
Specified by:
containsHeader in interface org.apache.http.HttpMessage

getAllHeaders

public org.apache.http.Header[] getAllHeaders()
Specified by:
getAllHeaders in interface org.apache.http.HttpMessage

getFirstHeader

public org.apache.http.Header getFirstHeader(java.lang.String name)
Specified by:
getFirstHeader in interface org.apache.http.HttpMessage

getHeaders

public org.apache.http.Header[] getHeaders(java.lang.String name)
Specified by:
getHeaders in interface org.apache.http.HttpMessage

getLastHeader

public org.apache.http.Header getLastHeader(java.lang.String name)
Specified by:
getLastHeader in interface org.apache.http.HttpMessage

headerIterator

public org.apache.http.HeaderIterator headerIterator()
Specified by:
headerIterator in interface org.apache.http.HttpMessage

headerIterator

public org.apache.http.HeaderIterator headerIterator(java.lang.String name)
Specified by:
headerIterator in interface org.apache.http.HttpMessage

removeHeader

public void removeHeader(org.apache.http.Header header)
Specified by:
removeHeader in interface org.apache.http.HttpMessage

removeHeaders

public void removeHeaders(java.lang.String name)
Specified by:
removeHeaders in interface org.apache.http.HttpMessage

setHeader

public void setHeader(org.apache.http.Header header)
Specified by:
setHeader in interface org.apache.http.HttpMessage

setHeader

public void setHeader(java.lang.String name,
                      java.lang.String value)
Specified by:
setHeader in interface org.apache.http.HttpMessage

setHeaders

public void setHeaders(org.apache.http.Header[] headers)
Specified by:
setHeaders in interface org.apache.http.HttpMessage

getParams

public org.apache.http.params.HttpParams getParams()
Specified by:
getParams in interface org.apache.http.HttpMessage

setParams

public void setParams(org.apache.http.params.HttpParams params)
Specified by:
setParams in interface org.apache.http.HttpMessage


Copyright © 2007 Apache Web Services Project. All Rights Reserved.