public class ServletDefImpl extends WebAppDescriptorImpl implements ServletDef
Constructor and Description |
---|
ServletDefImpl(String descriptorName,
org.jboss.shrinkwrap.descriptor.spi.node.Node webApp,
org.jboss.shrinkwrap.descriptor.spi.node.Node servlet) |
Modifier and Type | Method and Description |
---|---|
ServletDef |
asyncSupported(boolean value) |
String |
getInitParam(String name) |
Map<String,String> |
getInitParams() |
int |
getLoadOnStartup() |
String |
getName() |
org.jboss.shrinkwrap.descriptor.spi.node.Node |
getNode() |
String |
getServletClass() |
ServletDef |
initParam(String name,
Object value) |
boolean |
isAsyncSupported() |
ServletDef |
loadOnStartup(int order) |
ServletMappingDef |
mapping() |
ServletDef |
name(String name) |
ServletDef |
servletClass(Class<?> clazz) |
ServletDef |
servletClass(String clazz) |
displayName, getRootNode, servlet, servlet, version
exportTo, getExporter
exportAsString, getDescriptorName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
displayName, servlet, servlet, version
public ServletDefImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node webApp, org.jboss.shrinkwrap.descriptor.spi.node.Node servlet)
public ServletDef name(String name)
name
in interface ServletDef
public ServletDef asyncSupported(boolean value)
asyncSupported
in interface ServletDef
public ServletDef initParam(String name, Object value)
initParam
in interface ServletDef
public ServletDef loadOnStartup(int order)
loadOnStartup
in interface ServletDef
public ServletMappingDef mapping()
mapping
in interface ServletDef
public ServletDef servletClass(Class<?> clazz)
servletClass
in interface ServletDef
public ServletDef servletClass(String clazz)
servletClass
in interface ServletDef
public String getServletClass()
getServletClass
in interface ServletDef
public String getName()
getName
in interface ServletDef
public String getInitParam(String name)
getInitParam
in interface ServletDef
public Map<String,String> getInitParams()
getInitParams
in interface ServletDef
public boolean isAsyncSupported()
isAsyncSupported
in interface ServletDef
public int getLoadOnStartup() throws NumberFormatException
getLoadOnStartup
in interface ServletDef
NumberFormatException
public org.jboss.shrinkwrap.descriptor.spi.node.Node getNode()
Copyright © 2017 JBoss by Red Hat. All rights reserved.