org.eclipse.jst.j2ee.webapplication
Interface FilterMapping
- All Superinterfaces:
- org.eclipse.emf.ecore.EObject, J2EEEObject, org.eclipse.emf.common.notify.Notifier
public interface FilterMapping
- extends J2EEEObject
Declaration of the filter mappings in this web application. 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 sub-elements of one of the declarations in the deployment descriptor.
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
getServletName
java.lang.String getServletName()
- Returns the name of the servlet that this mapping applies to.
setServletName
void setServletName(java.lang.String servletName)
- Sets the name of the servlet that this mapping applies to.
getUrlPattern
java.lang.String getUrlPattern()
- Returns:
- The value of the UrlPattern attribute
The url-pattern element contains the url pattern of the mapping. Must follow
the rules specified in Section 10 of the Servlet API Specification.
setUrlPattern
void setUrlPattern(java.lang.String value)
- Parameters:
value - The new value of the UrlPattern attribute
getDispatcherType
org.eclipse.emf.common.util.EList getDispatcherType()
- Returns the value of the 'Dispatcher Type' attribute list.
The list contents are of type
DispatcherType.
The literals are from the enumeration DispatcherType.
If the meaning of the 'Dispatcher Type' attribute list isn't clear,
there really should be more of a description here...
- Returns:
- the value of the 'Dispatcher Type' attribute list.
- See Also:
DispatcherType,
WebapplicationPackage.getFilterMapping_DispatcherType()
getFilter
Filter getFilter()
- Returns:
- The Filter reference
The filter being mapped
setFilter
void setFilter(Filter value)
- Parameters:
l - The new value of the Filter reference
getServlet
Servlet getServlet()
- Returns:
- The Servlet reference
An optional servlet that is mapped by a filter mapping. servletName is used to
resolve the servlet reference.
setServlet
void setServlet(Servlet value)
- Parameters:
l - The new value of the Servlet reference