Class ServletDef
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.ServletDef
-
- All Implemented Interfaces:
Serializable
public class ServletDef extends Object implements Serializable
Representation of a servlet definition for a web application, as represented in a<servlet>
element in the deployment descriptor.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServletDef()
-
Method Summary
-
-
-
Method Detail
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getDisplayName
public String getDisplayName()
-
setDisplayName
public void setDisplayName(String displayName)
-
getSmallIcon
public String getSmallIcon()
-
setSmallIcon
public void setSmallIcon(String smallIcon)
-
getLargeIcon
public String getLargeIcon()
-
setLargeIcon
public void setLargeIcon(String largeIcon)
-
getServletName
public String getServletName()
-
setServletName
public void setServletName(String servletName)
-
getServletClass
public String getServletClass()
-
setServletClass
public void setServletClass(String servletClass)
-
getJspFile
public String getJspFile()
-
setJspFile
public void setJspFile(String jspFile)
-
addInitParameter
public void addInitParameter(String name, String value)
Add an initialization parameter to the set of parameters associated with this servlet.- Parameters:
name
- The initialisation parameter namevalue
- The initialisation parameter value
-
getLoadOnStartup
public Integer getLoadOnStartup()
-
setLoadOnStartup
public void setLoadOnStartup(String loadOnStartup)
-
getRunAs
public String getRunAs()
-
setRunAs
public void setRunAs(String runAs)
-
getSecurityRoleRefs
public Set<SecurityRoleRef> getSecurityRoleRefs()
-
addSecurityRoleRef
public void addSecurityRoleRef(SecurityRoleRef securityRoleRef)
Add a security-role-ref to the set of security-role-refs associated with this servlet.- Parameters:
securityRoleRef
- The security role
-
getMultipartDef
public MultipartDef getMultipartDef()
-
setMultipartDef
public void setMultipartDef(MultipartDef multipartDef)
-
getAsyncSupported
public Boolean getAsyncSupported()
-
setAsyncSupported
public void setAsyncSupported(String asyncSupported)
-
getEnabled
public Boolean getEnabled()
-
setEnabled
public void setEnabled(String enabled)
-
isOverridable
public boolean isOverridable()
-
setOverridable
public void setOverridable(boolean overridable)
-
-