|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.webcommon30.ServletTypeImpl<T>
public class ServletTypeImpl<T>
This class implements the servletType xsd type
Original Documentation:
The servletType is used to declare a servlet.
It contains the declarative data of a
servlet. If a jsp-file is specified and the load-on-startup
element is present, then the JSP should be precompiled and
loaded.
Used in: web-app
| Constructor Summary | |
|---|---|
ServletTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
ServletTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getDescriptionList()
Returns all description elements |
java.util.List<java.lang.String> |
getDisplayNameList()
Returns all display-name elements |
java.util.List<IconType<ServletType<T>>> |
getIconList()
Returns all icon elements |
java.util.List<ParamValueType<ServletType<T>>> |
getInitParamList()
Returns all init-param elements |
java.lang.String |
getJspFile()
Returns the jsp-file element |
java.lang.Integer |
getLoadOnStartup()
Returns the load-on-startup element |
java.util.List<SecurityRoleRefType<ServletType<T>>> |
getSecurityRoleRefList()
Returns all security-role-ref elements |
java.lang.String |
getServletClass()
Returns the servlet-class element |
java.lang.String |
getServletName()
Returns the servlet-name element |
IconType<ServletType<T>> |
icon()
Returns the icon element |
ParamValueType<ServletType<T>> |
initParam()
Returns the init-param element |
java.lang.Boolean |
isAsyncSupported()
Returns the async-supported element |
java.lang.Boolean |
isEnabled()
Returns the enabled element |
MultipartConfigType<ServletType<T>> |
multipartConfig()
If not already created, a new multipart-config element will be created and returned. |
ServletType<T> |
removeAllDescription()
Removes the description element |
ServletType<T> |
removeAllDisplayName()
Removes the display-name element |
ServletType<T> |
removeAllIcon()
Removes all icon elements |
ServletType<T> |
removeAllInitParam()
Removes all init-param elements |
ServletType<T> |
removeAllSecurityRoleRef()
Removes all security-role-ref elements |
ServletType<T> |
removeAsyncSupported()
Removes the async-supported element |
ServletType<T> |
removeEnabled()
Removes the enabled element |
ServletType<T> |
removeJspFile()
Removes the jsp-file element |
ServletType<T> |
removeLoadOnStartup()
Removes the load-on-startup element |
ServletType<T> |
removeMultipartConfig()
Removes the multipart-config element |
ServletType<T> |
removeRunAs()
Removes the run-as element |
ServletType<T> |
removeServletClass()
Removes the servlet-class element |
ServletType<T> |
removeServletName()
Removes the servlet-name element |
RunAsType<ServletType<T>> |
runAs()
If not already created, a new run-as element will be created and returned. |
SecurityRoleRefType<ServletType<T>> |
securityRoleRef()
Returns the security-role-ref element |
ServletType<T> |
setAsyncSupported(java.lang.Boolean asyncSupported)
If not already created, a new async-supported element with the given value will be created. |
ServletType<T> |
setDescription(java.lang.String description)
Creates a new description element |
ServletType<T> |
setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements,
a new description element |
ServletType<T> |
setDisplayName(java.lang.String displayName)
Creates a new display-name element |
ServletType<T> |
setDisplayNameList(java.lang.String... values)
Creates for all String objects representing display-name elements,
a new display-name element |
ServletType<T> |
setEnabled(java.lang.Boolean enabled)
If not already created, a new enabled element with the given value will be created. |
ServletType<T> |
setJspFile(java.lang.String jspFile)
If not already created, a new jsp-file element with the given value will be created. |
ServletType<T> |
setLoadOnStartup(java.lang.Integer loadOnStartup)
If not already created, a new load-on-startup element with the given value will be created. |
ServletType<T> |
setServletClass(java.lang.String servletClass)
If not already created, a new servlet-class element with the given value will be created. |
ServletType<T> |
setServletName(java.lang.String servletName)
If not already created, a new servlet-name 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 ServletTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
public ServletTypeImpl(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 ServletType<T> setDescription(java.lang.String description)
description element
setDescription in interface ServletType<T>ServletTypepublic ServletType<T> setDescriptionList(java.lang.String... values)
description elements,
a new description element
setDescriptionList in interface ServletType<T>list - of description objects
ServletTypepublic ServletType<T> removeAllDescription()
description element
removeAllDescription in interface ServletType<T>ServletTypepublic java.util.List<java.lang.String> getDescriptionList()
description elements
getDescriptionList in interface ServletType<T>descriptionpublic ServletType<T> setDisplayName(java.lang.String displayName)
display-name element
setDisplayName in interface ServletType<T>ServletTypepublic ServletType<T> setDisplayNameList(java.lang.String... values)
display-name elements,
a new display-name element
setDisplayNameList in interface ServletType<T>list - of display-name objects
ServletTypepublic ServletType<T> removeAllDisplayName()
display-name element
removeAllDisplayName in interface ServletType<T>ServletTypepublic java.util.List<java.lang.String> getDisplayNameList()
display-name elements
getDisplayNameList in interface ServletType<T>display-namepublic ServletType<T> removeAllIcon()
icon elements
removeAllIcon in interface ServletType<T>ServletTypepublic IconType<ServletType<T>> icon()
icon element
icon in interface ServletType<T>iconpublic java.util.List<IconType<ServletType<T>>> getIconList()
icon elements
getIconList in interface ServletType<T>iconpublic ServletType<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 ServletType<T>ServletTypepublic ServletType<T> removeServletName()
servlet-name element
removeServletName in interface ServletType<T>ServletTypepublic java.lang.String getServletName()
servlet-name element
getServletName in interface ServletType<T>servlet-namepublic ServletType<T> removeAllInitParam()
init-param elements
removeAllInitParam in interface ServletType<T>ServletTypepublic ParamValueType<ServletType<T>> initParam()
init-param element
initParam in interface ServletType<T>init-parampublic java.util.List<ParamValueType<ServletType<T>>> getInitParamList()
init-param elements
getInitParamList in interface ServletType<T>init-parampublic ServletType<T> setLoadOnStartup(java.lang.Integer loadOnStartup)
load-on-startup element with the given value will be created.
Otherwise, the existing load-on-startup element will be updated with the given value.
setLoadOnStartup in interface ServletType<T>ServletTypepublic ServletType<T> removeLoadOnStartup()
load-on-startup element
removeLoadOnStartup in interface ServletType<T>ServletTypepublic java.lang.Integer getLoadOnStartup()
load-on-startup element
getLoadOnStartup in interface ServletType<T>load-on-startuppublic ServletType<T> setEnabled(java.lang.Boolean enabled)
enabled element with the given value will be created.
Otherwise, the existing enabled element will be updated with the given value.
setEnabled in interface ServletType<T>ServletTypepublic ServletType<T> removeEnabled()
enabled element
removeEnabled in interface ServletType<T>ServletTypepublic java.lang.Boolean isEnabled()
enabled element
isEnabled in interface ServletType<T>enabledpublic ServletType<T> setAsyncSupported(java.lang.Boolean asyncSupported)
async-supported element with the given value will be created.
Otherwise, the existing async-supported element will be updated with the given value.
setAsyncSupported in interface ServletType<T>ServletTypepublic ServletType<T> removeAsyncSupported()
async-supported element
removeAsyncSupported in interface ServletType<T>ServletTypepublic java.lang.Boolean isAsyncSupported()
async-supported element
isAsyncSupported in interface ServletType<T>async-supportedpublic ServletType<T> removeRunAs()
run-as element
removeRunAs in interface ServletType<T>ServletTypepublic RunAsType<ServletType<T>> runAs()
run-as element will be created and returned.
Otherwise, the existing run-as element will be returned.
runAs in interface ServletType<T>run-aspublic ServletType<T> removeAllSecurityRoleRef()
security-role-ref elements
removeAllSecurityRoleRef in interface ServletType<T>ServletTypepublic SecurityRoleRefType<ServletType<T>> securityRoleRef()
security-role-ref element
securityRoleRef in interface ServletType<T>security-role-refpublic java.util.List<SecurityRoleRefType<ServletType<T>>> getSecurityRoleRefList()
security-role-ref elements
getSecurityRoleRefList in interface ServletType<T>security-role-refpublic ServletType<T> removeMultipartConfig()
multipart-config element
removeMultipartConfig in interface ServletType<T>ServletTypepublic MultipartConfigType<ServletType<T>> multipartConfig()
multipart-config element will be created and returned.
Otherwise, the existing multipart-config element will be returned.
multipartConfig in interface ServletType<T>multipart-configpublic ServletType<T> setServletClass(java.lang.String servletClass)
servlet-class element with the given value will be created.
Otherwise, the existing servlet-class element will be updated with the given value.
setServletClass in interface ServletType<T>ServletTypepublic ServletType<T> removeServletClass()
servlet-class element
removeServletClass in interface ServletType<T>ServletTypepublic java.lang.String getServletClass()
servlet-class element
getServletClass in interface ServletType<T>servlet-classpublic ServletType<T> setJspFile(java.lang.String jspFile)
jsp-file element with the given value will be created.
Otherwise, the existing jsp-file element will be updated with the given value.
setJspFile in interface ServletType<T>ServletTypepublic ServletType<T> removeJspFile()
jsp-file element
removeJspFile in interface ServletType<T>ServletTypepublic java.lang.String getJspFile()
jsp-file element
getJspFile in interface ServletType<T>jsp-file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||