com.sun.grizzly.http.webxml.schema.version_2_4
Class FilterMappingType

java.lang.Object
  extended by com.sun.grizzly.http.webxml.schema.version_2_4.FilterMappingType

public class FilterMappingType
extends Object

Declaration of the filter mappings in this web application is done by using filter-mappingType. The container uses the filter-mapping declarations to decide which filters to apply to a request, and in what order. The container matches the request URI to a Servlet in the normal way. To determine which filters to apply it matches filter-mapping declarations either on servlet-name, or on url-pattern for each filter-mapping element, depending on which style is used. The order in which filters are invoked is the order in which filter-mapping declarations that match a request URI for a servlet appear in the list of filter-mapping elements.The filter-name value must be the value of the filter-name sub-elements of one of the filter declarations in the deployment descriptor.

Java class for filter-mappingType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="filter-mappingType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="filter-name" type="{http://java.sun.com/xml/ns/j2ee}filter-nameType"/>
         <choice>
           <element name="url-pattern" type="{http://java.sun.com/xml/ns/j2ee}url-patternType"/>
           <element name="servlet-name" type="{http://java.sun.com/xml/ns/j2ee}servlet-nameType"/>
         </choice>
         <element name="dispatcher" type="{http://java.sun.com/xml/ns/j2ee}dispatcherType" maxOccurs="4" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<DispatcherType> dispatcher
           
protected  FilterNameType filterName
           
protected  String id
           
protected  ServletNameType servletName
           
protected  UrlPatternType urlPattern
           
 
Constructor Summary
FilterMappingType()
           
 
Method Summary
 List<DispatcherType> getDispatcher()
          Gets the value of the dispatcher property.
 FilterNameType getFilterName()
          Gets the value of the filterName property.
 String getId()
          Gets the value of the id property.
 ServletNameType getServletName()
          Gets the value of the servletName property.
 UrlPatternType getUrlPattern()
          Gets the value of the urlPattern property.
 void setFilterName(FilterNameType value)
          Sets the value of the filterName property.
 void setId(String value)
          Sets the value of the id property.
 void setServletName(ServletNameType value)
          Sets the value of the servletName property.
 void setUrlPattern(UrlPatternType value)
          Sets the value of the urlPattern property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterName

protected FilterNameType filterName

urlPattern

protected UrlPatternType urlPattern

servletName

protected ServletNameType servletName

dispatcher

protected List<DispatcherType> dispatcher

id

protected String id
Constructor Detail

FilterMappingType

public FilterMappingType()
Method Detail

getFilterName

public FilterNameType getFilterName()
Gets the value of the filterName property.

Returns:
possible object is FilterNameType

setFilterName

public void setFilterName(FilterNameType value)
Sets the value of the filterName property.

Parameters:
value - allowed object is FilterNameType

getUrlPattern

public UrlPatternType getUrlPattern()
Gets the value of the urlPattern property.

Returns:
possible object is UrlPatternType

setUrlPattern

public void setUrlPattern(UrlPatternType value)
Sets the value of the urlPattern property.

Parameters:
value - allowed object is UrlPatternType

getServletName

public ServletNameType getServletName()
Gets the value of the servletName property.

Returns:
possible object is ServletNameType

setServletName

public void setServletName(ServletNameType value)
Sets the value of the servletName property.

Parameters:
value - allowed object is ServletNameType

getDispatcher

public List<DispatcherType> getDispatcher()
Gets the value of the dispatcher property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the dispatcher property.

For example, to add a new item, do as follows:

    getDispatcher().add(newItem);
 

Objects of the following type(s) are allowed in the list DispatcherType


getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String


Copyright © 2012 Oracle Corporation. All Rights Reserved.