|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.webcommon30.ServletMappingTypeImpl<T>
public class ServletMappingTypeImpl<T>
This class implements the servlet-mappingType xsd type
Original Documentation:
The servlet-mappingType defines a mapping between a
servlet and a url pattern.
Used in: web-app
| Constructor Summary | |
|---|---|
ServletMappingTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
ServletMappingTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getServletName()
Returns the servlet-name element |
java.util.List<java.lang.String> |
getUrlPatternList()
Returns all url-pattern elements |
ServletMappingType<T> |
removeAllUrlPattern()
Removes the url-pattern element |
ServletMappingType<T> |
removeServletName()
Removes the servlet-name element |
ServletMappingType<T> |
setServletName(java.lang.String servletName)
If not already created, a new servlet-name element with the given value will be created. |
ServletMappingType<T> |
setUrlPattern(java.lang.String urlPattern)
Creates a new url-pattern element |
ServletMappingType<T> |
setUrlPatternList(java.lang.String... values)
Creates for all String objects representing url-pattern elements,
a new url-pattern element |
T |
up()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletMappingTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
public ServletMappingTypeImpl(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 ServletMappingType<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 ServletMappingType<T>ServletMappingTypepublic ServletMappingType<T> removeServletName()
servlet-name element
removeServletName in interface ServletMappingType<T>ServletMappingTypepublic java.lang.String getServletName()
servlet-name element
getServletName in interface ServletMappingType<T>servlet-namepublic ServletMappingType<T> setUrlPattern(java.lang.String urlPattern)
url-pattern element
setUrlPattern in interface ServletMappingType<T>ServletMappingTypepublic ServletMappingType<T> setUrlPatternList(java.lang.String... values)
url-pattern elements,
a new url-pattern element
setUrlPatternList in interface ServletMappingType<T>list - of url-pattern objects
ServletMappingTypepublic ServletMappingType<T> removeAllUrlPattern()
url-pattern element
removeAllUrlPattern in interface ServletMappingType<T>ServletMappingTypepublic java.util.List<java.lang.String> getUrlPatternList()
url-pattern elements
getUrlPatternList in interface ServletMappingType<T>url-pattern
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||