org.exoplatform.social.common.xmlprocessor
Interface XMLProcessor

All Known Implementing Classes:
XMLProcessorImpl

public interface XMLProcessor

The Processor is responsible for processing the input by pushing the input through filter chains and returns result. This processor also allows configuring external filter component plugin.

Since:
1.2.1
Author:
Ly Minh Phuong - http://phuonglm.net

Method Summary
 void addFilter(Filter filter)
          Adds a defined filter to this processor.
 void addFilterPlugin(BaseXMLFilterPlugin filterComponentPlugin)
          Adds a defined filter component plugin to this processor.
 Object process(Object input)
          Processes an input object though filter chains.
 void removeFilter(Filter addedFilter)
          Removes a defined filter which is added.
 void removeFilterPlugin(BaseXMLFilterPlugin filterComponentPlugin)
          Removes the existing filter component plugin from this processor.
 

Method Detail

addFilter

void addFilter(Filter filter)
Adds a defined filter to this processor.

Parameters:
filter - a defined filter

removeFilter

void removeFilter(Filter addedFilter)
Removes a defined filter which is added.

Parameters:
addedFilter - the added filter

addFilterPlugin

void addFilterPlugin(BaseXMLFilterPlugin filterComponentPlugin)
Adds a defined filter component plugin to this processor.

Parameters:
filterComponentPlugin - the filter component plugin

removeFilterPlugin

void removeFilterPlugin(BaseXMLFilterPlugin filterComponentPlugin)
Removes the existing filter component plugin from this processor.

Parameters:
filterComponentPlugin - the existing filter component plugin.

process

Object process(Object input)
Processes an input object though filter chains.

Parameters:
input - the input object
Returns:
new processed object by added filters.


Copyright © 2013 eXo Platform SAS. All Rights Reserved.