summary> This class extends the [logic_error] exception class. More...
#include <AbstractFilter.h>
Public Types | |
enum | FilterResult { Completed = 1, Fail = 2 } |
Return completed if the filter has successfully processed the message. More... | |
enum | FilterMethod { XmlToXml = 0, XmlToBuffer = 1, BufferToXml = 2, BufferToBuffer = 3 } |
Methods for filters. More... | |
typedef WorkItem< ManagedBuffer > | buffer_type |
Public Member Functions | |
virtual | ~AbstractFilter () |
Destructor. More... | |
virtual bool | canLogPayload () |
virtual FilterResult | ProcessMessage (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *inputOutputData, NameValueCollection &transportHeaders, bool asClient)=0 |
virtual FilterResult | ProcessMessage (const XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *inputData, AbstractFilter::buffer_type outputData, NameValueCollection &transportHeaders, bool asClient)=0 |
virtual FilterResult | ProcessMessage (AbstractFilter::buffer_type inputData, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *outputData, NameValueCollection &transportHeaders, bool asClient)=0 |
virtual FilterResult | ProcessMessage (AbstractFilter::buffer_type inputData, AbstractFilter::buffer_type outputData, NameValueCollection &transportHeaders, bool asClient)=0 |
virtual FilterResult | ProcessMessage (const XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *inputData, unsigned char **outputData, NameValueCollection &transportHeaders, bool asClient)=0 |
virtual FilterResult | ProcessMessage (AbstractFilter::buffer_type inputData, unsigned char **outputData, NameValueCollection &transportHeaders, bool asClient)=0 |
virtual bool | isMethodSupported (FilterMethod method, bool asClient) |
const NameValueCollection & | getProperties () const |
void | setLogFile (const string &filename) |
sets the name of the file where the payload will be logged More... | |
string | getLogFile () const |
gets the name of the file where the payload will be logged More... | |
virtual bool | isTransportType () |
void | addProperty (const string &name, const string &value) |
FilterType::FilterTypeEnum | getFilterType () const |
virtual void | Init () |
virtual void | Rollback () |
virtual void | Commit () |
virtual void | Abort () |
virtual bool | isBatch () const |
virtual string | getQueueManagerName () const |
virtual string | getTransportURI () const |
virtual string | getQueueName () const |
Static Public Member Functions | |
static string | ToString (const FilterMethod type) |
Protected Member Functions | |
AbstractFilter (FilterType::FilterTypeEnum type) | |
Constructor. More... | |
Protected Attributes | |
NameValueCollection | m_Properties |
Collection of name-value pairs = additional properties for the filter e.g. More... | |
FilterType::FilterTypeEnum | m_FilterType |
string | m_LogPayloadFile |
summary> This class extends the [logic_error] exception class.
Base class for filters.
Should be used if a Filter does not support a certain processing mode ex. if the Filter does not support BufferToBuffer, it throws this exception. /summary>
Note for overrides : Always call base constructor in your derived classes
typedef WorkItem< ManagedBuffer > FinTP::AbstractFilter::buffer_type |
|
inlinevirtual |
Destructor.
|
inlineexplicitprotected |
Constructor.
type | Type of the filter to construct |
|
inlinevirtual |
Reimplemented in FinTP::MqFilter, and FinTP::FilterChain.
void AbstractFilter::addProperty | ( | const string & | name, |
const string & | value | ||
) |
|
virtual |
|
inlinevirtual |
Reimplemented in FinTP::MqFilter, FinTP::FilterChain, and FinTP::SAAFilter.
|
inline |
string AbstractFilter::getLogFile | ( | ) | const |
gets the name of the file where the payload will be logged
const NameValueCollection & AbstractFilter::getProperties | ( | ) | const |
|
inlinevirtual |
Reimplemented in FinTP::MqFilter.
|
inlinevirtual |
Reimplemented in FinTP::MqFilter.
|
inlinevirtual |
Reimplemented in FinTP::MqFilter.
|
inlinevirtual |
Reimplemented in FinTP::MqFilter.
|
inlinevirtual |
Reimplemented in FinTP::MqFilter.
|
virtual |
|
inlinevirtual |
Reimplemented in FinTP::MqFilter.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Reimplemented in FinTP::MqFilter, FinTP::FilterChain, and FinTP::SAAFilter.
void AbstractFilter::setLogFile | ( | const string & | filename | ) |
sets the name of the file where the payload will be logged
|
static |
|
protected |
|
protected |
|
protected |
Collection of name-value pairs = additional properties for the filter e.g.
XLSTFILE="blabla.xslt" or MQQUEUE="myqueue" ...