Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mentawai.core
Interface Filter  view Filter download Filter.java


public interface Filter

A filter intercepts an action so it can modify its input and output, before and after the action is executed. Filters are very useful for validation, authentication, value objects, file upload, etc.


Method Summary
 void destroy()
          Gives a chance to the filter to deallocalte any resources before it is destroyed.
 java.lang.String filter(InvocationChain chain)
          Executes the filter.
 

Method Detail

filter

public java.lang.String filter(InvocationChain chain)
                        throws java.lang.Exception
Executes the filter.


destroy

public void destroy()
Gives a chance to the filter to deallocalte any resources before it is destroyed. This is called when the web application is stopped, in other words, this has nothing to do with garbage collection.