|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=java.lang.annotation.ElementType.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> . . .
Optional Element 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. |
public abstract String description
filter
element in the web.xml descriptor.
Defaults to an empty string.
public abstract String icon
filter
element in the web.xml descriptor.
Defaults to empty string
public abstract String displayName
filter
element in the web.xml descriptor.
Defaults to an empty string.
public abstract String name
filter
element in the web.xml descriptor.
If absent, this will default to the class name
of the Filter being annotated.
public abstract WLInitParam[] initParams
filter
element in the web.xml descriptor.
public abstract String[] mapping
filter
element in the web.xml descriptor.
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |