net.bpelunit.framework.control.ext
Interface IHeaderProcessor


public interface IHeaderProcessor

The IHeaderProcessor interface represents a SOAP Header Processor and is intended to be implemented by concrete processors which, in turn, implement header protocols like WSA Adressing. For every activity (like, for example, send/receive asynchronous), a new instance of a header processor will be created by the framework. A header processor may be specified at any given activity. The order in which the processSend(ActivityContext, SendPackage) and processReceive(ActivityContext, SOAPMessage) methods are called depends on that activity. Properties defined by the tester in the test specifications are set via setProperty(String, String). All properties are guaranteed to be set before any of the other methods are called.

Version:
$Id$
Author:
Philip Mayer

Method Summary
 void processReceive(net.bpelunit.framework.model.test.activity.ActivityContext context, SOAPMessage receivedPackage)
          Process a SOAP Message which has been received from a web service.
 void processSend(net.bpelunit.framework.model.test.activity.ActivityContext context, SendPackage sendPackage)
          Process a SOAP Message which is intended to be sent to a web service.
 void setProperty(java.lang.String name, java.lang.String value)
          Sets a property given by the tester in the test specification.
 

Method Detail

setProperty

void setProperty(java.lang.String name,
                 java.lang.String value)
Sets a property given by the tester in the test specification.

Parameters:
name - name of the property
value - value of the property

processSend

void processSend(net.bpelunit.framework.model.test.activity.ActivityContext context,
                 SendPackage sendPackage)
                 throws net.bpelunit.framework.exception.HeaderProcessingException
Process a SOAP Message which is intended to be sent to a web service.

Parameters:
context - activity context
sendPackage - the data to be sent
Throws:
net.bpelunit.framework.exception.HeaderProcessingException

processReceive

void processReceive(net.bpelunit.framework.model.test.activity.ActivityContext context,
                    SOAPMessage receivedPackage)
                    throws net.bpelunit.framework.exception.HeaderProcessingException
Process a SOAP Message which has been received from a web service.

Parameters:
context - activity context
receivedPackage - the received data
Throws:
net.bpelunit.framework.exception.HeaderProcessingException