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