|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Target(value=TYPE) @Retention(value=RUNTIME) public interface WLFilter
The WLFilter annotation is used to mark a Filter class with necessary metadata so it can be deployed without being declared in the web.xml descriptor.
Example:
@WLFilter ( name = "BAR", initParams = { @WLInitParam (name="one", value="1") } mapping = {"/bar/*"} ) public class MyFilter implements Filter { . . . }
Annotating a Filter class with the above annotation is equivalent to declaring the following in the web.xml descriptor:
. . . <filter> <filter-name>BAR</filter-name> <filter-class>MyFilter</filter-class> <init-param> <param-name>one</param-name> <param-value>1</param-value> </init-param> </filter> . . . <filter-mapping> <filter-name>BAR</filter-name> <url-pattern>/bar/*</url-pattern> </filter-mapping> . . .
Method Summary | |
---|---|
String |
description()
The description attribute for the Filter. |
String |
displayName()
The display name attribute for the Filter. |
String |
icon()
The icon attribute for the Filter. |
WLInitParam[] |
initParams()
The init parameters for the Filter. |
String[] |
mapping()
The url patterns for the Filter mapping. |
String |
name()
The name attribute for the Filter. |
Methods inherited from interface java.lang.annotation.Annotation |
---|
annotationType, equals, hashCode, toString |
Method Detail |
---|
String description()
filter
element in the web.xml descriptor.
Defaults to an empty string.
String icon()
filter
element in the web.xml descriptor.
Defaults to empty string
String displayName()
filter
element in the web.xml descriptor.
Defaults to an empty string.
String name()
filter
element in the web.xml descriptor.
If absent, this will default to the class name
of the Filter being annotated.
WLInitParam[] initParams()
filter
element in the web.xml descriptor.
String[] mapping()
filter
element in the web.xml descriptor.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs100 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |