org.radeox.filter
Class FilterPipe

java.lang.Object
  extended byorg.radeox.filter.FilterPipe

public class FilterPipe
extends java.lang.Object


Field Summary
static java.lang.String[] EMPTY_BEFORE
           
static java.lang.String[] FIRST_BEFORE
           
static java.lang.String FIRST_IN_PIPE
           
static java.lang.String LAST_IN_PIPE
           
static java.lang.String[] NO_REPLACES
           
 
Constructor Summary
FilterPipe()
           
FilterPipe(InitialRenderContext context)
           
 
Method Summary
 void addFilter(Filter filter)
          Add a filter to the pipe
static boolean contains(java.lang.Object[] array, java.lang.Object value)
           
 java.lang.String filter(java.lang.String input, FilterContext context)
          Filter some input and generate ouput.
 Filter getFilter(int index)
           
static int index(java.util.List list, java.lang.String filterName)
           
 int index(java.lang.String filterName)
           
 void init()
           
 void removeFilter(java.lang.String filterClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

FilterPipe

public FilterPipe()

FilterPipe

public FilterPipe(InitialRenderContext context)
Method Detail

init

public void init()

removeFilter

public void removeFilter(java.lang.String filterClass)

addFilter

public void addFilter(Filter filter)
Add a filter to the 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 transformed
context - FilterContext with information about the enviroment
Returns:
result Filtered output

getFilter

public Filter getFilter(int index)


Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.