org.apache.axis2.transport.http
Class HTTPTransportReceiver

java.lang.Object
  extended byorg.apache.axis2.transport.http.HTTPTransportReceiver

public class HTTPTransportReceiver
extends java.lang.Object

Class HTTPTransportReceiver


Constructor Summary
HTTPTransportReceiver()
           
 
Method Summary
static java.util.Map getGetRequestParameters(java.lang.String requestURI)
           
static java.lang.String getServicesHTML(ConfigurationContext configurationContext)
          Returns the HTML text for the list of services deployed This can be delegated to another Class as well where it will handle more options of GET messages :-?
 java.util.HashMap parseTheHeaders(java.io.InputStream in, boolean serverSide)
          parses following two styles of HTTP stuff Server Side POST /axis2/services/echo HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text User-Agent: Axis/1.2RC1 Host: 127.0.0.1:8081 Cache-Control: no-cache Pragma: no-cache SOAPAction: "" Content-Length: 73507 HTTP/1.1 200 OK Content-Type: text/xml;charset=utf-8 Date: Sat, 12 Feb 2005 10:39:39 GMT Server: Apache-Coyote/1.1 Connection: close
protected  int readLine(java.io.InputStream is, byte[] b)
          Read a single line from the input stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPTransportReceiver

public HTTPTransportReceiver()
Method Detail

parseTheHeaders

public java.util.HashMap parseTheHeaders(java.io.InputStream in,
                                         boolean serverSide)
                                  throws AxisFault
parses following two styles of HTTP stuff Server Side POST /axis2/services/echo HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text User-Agent: Axis/1.2RC1 Host: 127.0.0.1:8081 Cache-Control: no-cache Pragma: no-cache SOAPAction: "" Content-Length: 73507 HTTP/1.1 200 OK Content-Type: text/xml;charset=utf-8 Date: Sat, 12 Feb 2005 10:39:39 GMT Server: Apache-Coyote/1.1 Connection: close

Parameters:
in -
serverSide -
Returns:
Throws:
AxisFault

readLine

protected int readLine(java.io.InputStream is,
                       byte[] b)
                throws java.io.IOException
Read a single line from the input stream

Parameters:
is - inputstream to read from
b - byte array to read into
Returns:
Throws:
java.io.IOException

getServicesHTML

public static java.lang.String getServicesHTML(ConfigurationContext configurationContext)
Returns the HTML text for the list of services deployed This can be delegated to another Class as well where it will handle more options of GET messages :-?

Returns:

getGetRequestParameters

public static java.util.Map getGetRequestParameters(java.lang.String requestURI)