public class ServletContextBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
contextPath |
protected List<ServletFilterConf> |
filters |
protected ServletAppSecurityConf |
security |
protected List<ServletConf> |
servlets |
protected List<WebSocketServerConf> |
webSockets |
| Constructor and Description |
|---|
ServletContextBuilder(String contextPath) |
| Modifier and Type | Method and Description |
|---|---|
ServletContextConf |
build() |
ServletContextBuilder |
contextPath(String contextPath)
Set the serve context path.
|
ServletContextBuilder |
filter(String pathSpec,
javax.servlet.Filter filter) |
void |
security(ServletAppSecurityConf security) |
ServletContextBuilder |
serve(ServletConf servletDef) |
ServletContextBuilder |
serve(WebSocketServerConf wsd) |
protected String contextPath
protected List<ServletConf> servlets
protected List<WebSocketServerConf> webSockets
protected List<ServletFilterConf> filters
protected ServletAppSecurityConf security
public ServletContextBuilder(String contextPath)
public ServletContextBuilder contextPath(String contextPath)
public ServletContextBuilder serve(ServletConf servletDef)
public ServletContextBuilder serve(WebSocketServerConf wsd)
public ServletContextBuilder filter(String pathSpec, javax.servlet.Filter filter)
public void security(ServletAppSecurityConf security)
public ServletContextConf build()
Copyright © 2015. All rights reserved.