Specifies a custom valve for this web application. You can define a valve for all the web applications on a specific virtual server. For details, see create-virtual-server(1).
sun-web-app (sun-web.xml)
The following table describes subelements for the valve element.
Table C–156 valve Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Specifies a text description of this element. |
|
zero or more |
Specifies a property, which has a name and a value. |
The following table describes attributes for the valve element.
Table C–157 valve Attributes
Attribute |
Default |
Description |
---|---|---|
name |
none |
Specifies a unique name for the valve. |
none |
Specifies the fully qualified class name of the valve. The valve class must implement the org.apache.catalina.Valve interface from Tomcat or previous Enterprise Server releases, or the org.glassfish.web.valve.GlassFishValve interface from the current Enterprise Server release. |
><valve name="MyValve" classname="org.glassfish.extension.Valve"> <property name="MyProperty1" value="MyValue1" /> <property name="MyProperty2" value="MyValue2" /> </valve>