org.apache.axis2.transport.http
Class HTTPTransportReceiver

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

public class HTTPTransportReceiver
extends Object

Class HTTPTransportReceiver


Constructor Summary
HTTPTransportReceiver()
           
 
Method Summary
static Map getGetRequestParameters(String requestURI)
           
static String getServicesHTML(ConfigurationContext configurationContext)
          Returns the HTML text for the list of services deployed.
 HashMap parseTheHeaders(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
static String printServiceHTML(String serviceName, ConfigurationContext configurationContext)
           
protected  int readLine(InputStream is, byte[] b)
          Reads 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 HashMap parseTheHeaders(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:
Returns HashMap.
Throws:
AxisFault

readLine

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

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

getGetRequestParameters

public static Map getGetRequestParameters(String requestURI)

getServicesHTML

public static 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:
Returns String.

printServiceHTML

public static String printServiceHTML(String serviceName,
                                      ConfigurationContext configurationContext)