public class ServletDefinition extends AbstractDefinition
WebProvider.servlets()
to define the servlets that must be registered by Seed.Constructor and Description |
---|
ServletDefinition(String name,
Class<? extends javax.servlet.Servlet> servletClass)
Creates a servlet definition with the specified name and class.
|
Modifier and Type | Method and Description |
---|---|
void |
addMappings(String... mappings)
Add mappings to this Servlet definition.
|
int |
getLoadOnStartup() |
String[] |
getMappings() |
Class<? extends javax.servlet.Servlet> |
getServletClass() |
void |
setLoadOnStartup(int loadOnStartup)
Sets if the Servlet should be loaded on startup.
|
addInitParameters, getInitParameters, getName, isAsyncSupported, setAsyncSupported
public Class<? extends javax.servlet.Servlet> getServletClass()
public int getLoadOnStartup()
public void setLoadOnStartup(int loadOnStartup)
loadOnStartup
- true if the Servlet should be loaded on startup, false otherwise.public String[] getMappings()
public void addMappings(String... mappings)
mappings
- the servlet mappings (URL patterns).Copyright © 2013-2018–2019 SeedStack. All rights reserved.