net.sf.xbus.technical.http
Class HTTPReceiver

java.lang.Object
  extended by net.sf.xbus.technical.http.HTTPReceiver
All Implemented Interfaces:
Receiver

public class HTTPReceiver
extends java.lang.Object
implements Receiver

The class HTTPReceiver handles requests coming via a HTTP-connection.

Depending on the System_xxx_Receiver entry in the configuration, it acts as a normal HTTPReceiver, receiving and returning strings, as a HTTPStreamReceiver, accepting an InputStream as the request or as a HTTPParameterReceiver, accepting a query string and returning the result as a string.

The last part of the URL is used as the name of the system.


Constructor Summary
HTTPReceiver()
           
 
Method Summary
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Handles the HTTP-request.
 java.lang.String getType()
          A Receiver can receive data either as a String or as an Object from a neighboring system.
static void initializeAmountErrorsCompletely()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPReceiver

public HTTPReceiver()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
Handles the HTTP-request. In case of an error while processing the messages, it returns a HttpServletResponse.SC_INTERNAL_SERVER_ERROR.


getType

public java.lang.String getType()
Description copied from interface: Receiver
A Receiver can receive data either as a String or as an Object from a neighboring system.

Specified by:
getType in interface Receiver

initializeAmountErrorsCompletely

public static void initializeAmountErrorsCompletely()