Class HTTPReceiver

  extended by net.sf.xbus.technical.http.HTTPReceiver
All Implemented Interfaces:

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
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


public HTTPReceiver()
Method Detail


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.


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


public static void initializeAmountErrorsCompletely()