|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.webcommon30.FilterMappingTypeImpl<T>
public class FilterMappingTypeImpl<T>
This class implements the filter-mappingType xsd type
Original Documentation:
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.
| Constructor Summary | |
|---|---|
FilterMappingTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
FilterMappingTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
|
| Method Summary | |
|---|---|
DispatcherType |
getDispatcher()
Returns the dispatcher element |
java.lang.String |
getDispatcherAsString()
Returns the dispatcher element |
java.lang.String |
getFilterName()
Returns the filter-name element |
java.lang.String |
getServletName()
Returns the servlet-name element |
java.lang.String |
getUrlPattern()
Returns the url-pattern element |
FilterMappingType<T> |
removeFilterName()
Removes the filter-name element |
FilterMappingType<T> |
removeServletName()
Removes the servlet-name element |
FilterMappingType<T> |
removeUrlPattern()
Removes the url-pattern element |
FilterMappingType<T> |
setDispatcher(DispatcherType dispatcher)
If not already created, a new dispatcher element with the given value will be created. |
FilterMappingType<T> |
setDispatcher(java.lang.String dispatcher)
If not already created, a new dispatcher element with the given value will be created. |
FilterMappingType<T> |
setFilterName(java.lang.String filterName)
If not already created, a new filter-name element with the given value will be created. |
FilterMappingType<T> |
setServletName(java.lang.String servletName)
If not already created, a new servlet-name element with the given value will be created. |
FilterMappingType<T> |
setUrlPattern(java.lang.String urlPattern)
If not already created, a new url-pattern element with the given value will be created. |
T |
up()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterMappingTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
public FilterMappingTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
| Method Detail |
|---|
public T up()
up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>public FilterMappingType<T> setFilterName(java.lang.String filterName)
filter-name element with the given value will be created.
Otherwise, the existing filter-name element will be updated with the given value.
setFilterName in interface FilterMappingType<T>FilterMappingTypepublic FilterMappingType<T> removeFilterName()
filter-name element
removeFilterName in interface FilterMappingType<T>FilterMappingTypepublic java.lang.String getFilterName()
filter-name element
getFilterName in interface FilterMappingType<T>filter-namepublic FilterMappingType<T> setDispatcher(DispatcherType dispatcher)
dispatcher element with the given value will be created.
Otherwise, the existing dispatcher element will be updated with the given value.
setDispatcher in interface FilterMappingType<T>FilterMappingTypepublic FilterMappingType<T> setDispatcher(java.lang.String dispatcher)
dispatcher element with the given value will be created.
Otherwise, the existing dispatcher element will be updated with the given value.
setDispatcher in interface FilterMappingType<T>FilterMappingTypepublic DispatcherType getDispatcher()
dispatcher element
getDispatcher in interface FilterMappingType<T>dispatcherpublic java.lang.String getDispatcherAsString()
dispatcher element
getDispatcherAsString in interface FilterMappingType<T>dispatcherpublic FilterMappingType<T> setUrlPattern(java.lang.String urlPattern)
url-pattern element with the given value will be created.
Otherwise, the existing url-pattern element will be updated with the given value.
setUrlPattern in interface FilterMappingType<T>FilterMappingTypepublic FilterMappingType<T> removeUrlPattern()
url-pattern element
removeUrlPattern in interface FilterMappingType<T>FilterMappingTypepublic java.lang.String getUrlPattern()
url-pattern element
getUrlPattern in interface FilterMappingType<T>url-patternpublic FilterMappingType<T> setServletName(java.lang.String servletName)
servlet-name element with the given value will be created.
Otherwise, the existing servlet-name element will be updated with the given value.
setServletName in interface FilterMappingType<T>FilterMappingTypepublic FilterMappingType<T> removeServletName()
servlet-name element
removeServletName in interface FilterMappingType<T>FilterMappingTypepublic java.lang.String getServletName()
servlet-name element
getServletName in interface FilterMappingType<T>servlet-name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||