Top Fields Constructors Methods
io.undertow.servlet.api

public Class ServletInfo

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
java.lang.reflect.Constructor, java.util.ArrayList, .Collection, .Collections, .HashMap, .List, .Map, java.util.concurrent.Executor, jakarta.servlet.MultipartConfigElement, .Servlet, io.undertow.server.HandlerWrapper, io.undertow.servlet.UndertowServletMessages, io.undertow.servlet.util.ConstructorInstanceFactory

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private Executor
private final List<HandlerWrapper>
private final Map<String, String>
private InstanceFactory<? extends Servlet>
private String
private Integer
private final List<String>
private MultipartConfigElement
private final String
private boolean
requireWelcomeFileMapping

If this is true this servlet will not be considered when evaluating welcome file mappings, and if the mapped path is a directory a welcome file match will be performed that may result in another servlet being selected.

private String
private final List<SecurityRoleRef>
private final Class<? extends Servlet>
private ServletSecurityInfo

Constructor Summary

AccessConstructor and Description
public
ServletInfo(final String name, final Class<? extends Servlet> servletClass)

public
ServletInfo(final String name, final Class<? extends Servlet> servletClass, final InstanceFactory<? extends Servlet> instanceFactory)

Method Summary

Modifier and TypeMethod and Description
public ServletInfo
public ServletInfo
addInitParam(final String name, final String value)

public ServletInfo
addMapping(final String mapping)

public ServletInfo
addMappings(final Collection<String> mappings)

public ServletInfo
addMappings(final String... mappings)

public void
addSecurityRoleRef(final String role, final String linkedRole)

public ServletInfo
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

public Executor
public List<HandlerWrapper>
public Map<String, String>
public InstanceFactory<? extends Servlet>
public String
public Integer
public List<String>
public MultipartConfigElement
public String
public String
public List<SecurityRoleRef>
public Class<? extends Servlet>
public ServletSecurityInfo
public boolean
public boolean
public boolean
public ServletInfo
setAsyncSupported(final boolean asyncSupported)

public ServletInfo
setEnabled(final boolean enabled)

public ServletInfo
setExecutor(final Executor executor)

public void
setInstanceFactory(final InstanceFactory<? extends Servlet> instanceFactory)

public ServletInfo
setJspFile(final String jspFile)

public ServletInfo
setLoadOnStartup(final Integer loadOnStartup)

public ServletInfo
public ServletInfo
setRequireWelcomeFileMapping(boolean requireWelcomeFileMapping)

public ServletInfo
setRunAs(final String runAs)

public ServletInfo
setServletSecurityInfo(final ServletSecurityInfo servletSecurityInfo)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

asyncSupportedback to summary
private boolean asyncSupported
enabledback to summary
private boolean enabled
executorback to summary
private Executor executor
handlerChainWrappersback to summary
private final List<HandlerWrapper> handlerChainWrappers
initParamsback to summary
private final Map<String, String> initParams
instanceFactoryback to summary
private InstanceFactory<? extends Servlet> instanceFactory
jspFileback to summary
private String jspFile
loadOnStartupback to summary
private Integer loadOnStartup
mappingsback to summary
private final List<String> mappings
multipartConfigback to summary
private MultipartConfigElement multipartConfig
nameback to summary
private final String name
requireWelcomeFileMappingback to summary
private boolean requireWelcomeFileMapping

If this is true this servlet will not be considered when evaluating welcome file mappings, and if the mapped path is a directory a welcome file match will be performed that may result in another servlet being selected. Generally intended to be used by the default and JSP servlet.

runAsback to summary
private String runAs
securityRoleRefsback to summary
private final List<SecurityRoleRef> securityRoleRefs
servletClassback to summary
private final Class<? extends Servlet> servletClass
servletSecurityInfoback to summary
private ServletSecurityInfo servletSecurityInfo

Constructor Detail

ServletInfoback to summary
public ServletInfo(final String name, final Class<? extends Servlet> servletClass)
ServletInfoback to summary
public ServletInfo(final String name, final Class<? extends Servlet> servletClass, final InstanceFactory<? extends Servlet> instanceFactory)

Method Detail

addHandlerChainWrapperback to summary
public ServletInfo addHandlerChainWrapper(final HandlerWrapper wrapper)
addInitParamback to summary
public ServletInfo addInitParam(final String name, final String value)
addMappingback to summary
public ServletInfo addMapping(final String mapping)
addMappingsback to summary
public ServletInfo addMappings(final Collection<String> mappings)
addMappingsback to summary
public ServletInfo addMappings(final String... mappings)
addSecurityRoleRefback to summary
public void addSecurityRoleRef(final String role, final String linkedRole)
cloneback to summary
public ServletInfo clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:ServletInfo

a clone of this instance.

Annotations
@Override
getExecutorback to summary
public Executor getExecutor()
getHandlerChainWrappersback to summary
public List<HandlerWrapper> getHandlerChainWrappers()
getInitParamsback to summary
public Map<String, String> getInitParams()
getInstanceFactoryback to summary
public InstanceFactory<? extends Servlet> getInstanceFactory()
getJspFileback to summary
public String getJspFile()
getLoadOnStartupback to summary
public Integer getLoadOnStartup()
getMappingsback to summary
public List<String> getMappings()
getMultipartConfigback to summary
public MultipartConfigElement getMultipartConfig()
getNameback to summary
public String getName()
getRunAsback to summary
public String getRunAs()
getSecurityRoleRefsback to summary
public List<SecurityRoleRef> getSecurityRoleRefs()
getServletClassback to summary
public Class<? extends Servlet> getServletClass()
getServletSecurityInfoback to summary
public ServletSecurityInfo getServletSecurityInfo()
isAsyncSupportedback to summary
public boolean isAsyncSupported()
isEnabledback to summary
public boolean isEnabled()
isRequireWelcomeFileMappingback to summary
public boolean isRequireWelcomeFileMapping()
setAsyncSupportedback to summary
public ServletInfo setAsyncSupported(final boolean asyncSupported)
setEnabledback to summary
public ServletInfo setEnabled(final boolean enabled)
setExecutorback to summary
public ServletInfo setExecutor(final Executor executor)
setInstanceFactoryback to summary
public void setInstanceFactory(final InstanceFactory<? extends Servlet> instanceFactory)
setJspFileback to summary
public ServletInfo setJspFile(final String jspFile)
setLoadOnStartupback to summary
public ServletInfo setLoadOnStartup(final Integer loadOnStartup)
setMultipartConfigback to summary
public ServletInfo setMultipartConfig(final MultipartConfigElement multipartConfig)
setRequireWelcomeFileMappingback to summary
public ServletInfo setRequireWelcomeFileMapping(boolean requireWelcomeFileMapping)
setRunAsback to summary
public ServletInfo setRunAs(final String runAs)
setServletSecurityInfoback to summary
public ServletInfo setServletSecurityInfo(final ServletSecurityInfo servletSecurityInfo)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
validateback to summary
public void validate()