|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.servletspy.handler.base.AbstractClassFilter
AbstractClassFilter
prevents passing of subjects to the next
IContextHandler
in case they are assignable to an element of a
set of classes and interfaces. In this case a string representation of the
subject is created.
Field Summary | |
protected java.util.List |
clazzes
The list of classes to exclude. |
static java.lang.String |
PARAM_CLASSES
Configuration parameter name used to pass a list of space separated class names to exclude. |
Constructor Summary | |
protected |
AbstractClassFilter(java.lang.String classesString)
Constructor. |
protected |
AbstractClassFilter(java.lang.String[] clazzArray)
Constructor. |
Method Summary | |
void |
destroy()
|
protected static java.util.List |
fromString(java.lang.String clazzes)
Generates a list of java.lang.Class objects
using the a space seaparated list of class names. |
void |
handle(IContext context)
The handle method of the IContextHandler is
called by the engine each time a subject object should be serialized. |
void |
init(Param[] params)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PARAM_CLASSES
protected final java.util.List clazzes
Constructor Detail |
protected AbstractClassFilter(java.lang.String classesString)
classesString
- a string holding a space separated list of qualified class or
interface names to filter out.protected AbstractClassFilter(java.lang.String[] clazzArray)
clazzArray
- a string array holding qualified class or interface names to
filter out.Method Detail |
protected static java.util.List fromString(java.lang.String clazzes)
java.lang.Class
objects
using the a space seaparated list of class names.
clazzes
- The classes as string.
java.lang.Class
objects.public void destroy()
destroy
in interface ILifecycle
public final void handle(IContext context) throws java.lang.Exception
IContextHandler
handle
method of the IContextHandler
is
called by the engine each time a subject object should be serialized.
The IContextHandler
may do the serialization itself using
the operations provided by the IContext
or pass the
serialization task to the next IContextHandler
by calling
the proceed
method on the IContext
object.
handle
in interface IContextHandler
context
- The current serialization context
java.lang.Exception
- To signal serialization problemspublic final void init(Param[] params)
init
in interface ILifecycle
params
- may hold an entries with the key CLASSES
holding a space separated list of qualified class or interface
names to filter out.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |