Oracle GlassFish Server 3.0.1 Application Deployment Guide

valve

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).

Superelements

sun-web-app (sun-web.xml)

Subelements

The following table describes subelements for the valve element.

Table C–156 valve Subelements

Element 

Required 

Description 

description

zero or one 

Specifies a text description of this element. 

property (with attributes)

zero or more 

Specifies a property, which has a name and a value. 

Attributes

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. 

class-name

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 GlassFish Server releases, or the org.glassfish.web.valve.GlassFishValve interface from the current GlassFish Server release.

Example

><valve name="MyValve" classname="org.glassfish.extension.Valve">
   <property name="MyProperty1" value="MyValue1" />
   <property name="MyProperty2" value="MyValue2" />
</valve>