org.radeox.filter
Class FilterPipe
java.lang.Object
org.radeox.filter.FilterPipe
public class FilterPipe
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIRST_IN_PIPE
public static final java.lang.String FIRST_IN_PIPE
- See Also:
- Constant Field Values
LAST_IN_PIPE
public static final java.lang.String LAST_IN_PIPE
- See Also:
- Constant Field Values
EMPTY_BEFORE
public static final java.lang.String[] EMPTY_BEFORE
NO_REPLACES
public static final java.lang.String[] NO_REPLACES
FIRST_BEFORE
public static final java.lang.String[] FIRST_BEFORE
FilterPipe
public FilterPipe()
FilterPipe
public FilterPipe(InitialRenderContext context)
init
public void init()
removeFilter
public void removeFilter(java.lang.String filterClass)
activateFilter
public void activateFilter(java.lang.String name)
deactivateFilter
public void deactivateFilter(java.lang.String name)
getAllFilters
public java.util.List getAllFilters()
getInactiveFilters
public java.util.List getInactiveFilters()
addFilter
public void addFilter(Filter filter)
- Add a filter to the active pipe
- Parameters:
filter
- Filter to add
index
public int index(java.lang.String filterName)
index
public static int index(java.util.List list,
java.lang.String filterName)
contains
public static boolean contains(java.lang.Object[] array,
java.lang.Object value)
filter
public java.lang.String filter(java.lang.String input,
FilterContext context)
- Filter some input and generate ouput. FilterPipe pipes the
string input through every filter in the pipe and returns
the resulting string.
- Parameters:
input
- Input string which should be transformedcontext
- FilterContext with information about the enviroment
- Returns:
- result Filtered output
getFilter
public Filter getFilter(int index)