public class ServletContextBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
contextPath |
protected List<ServletFilterConf> |
filters |
protected ServletContextSecurityConf |
security |
protected List<ServletConf> |
servlets |
protected Boolean |
session |
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(ServletContextSecurityConf security) |
ServletContextBuilder |
serve(ServletConf servletDef) |
ServletContextBuilder |
serve(WebSocketServerConf wsd) |
ServletContextBuilder |
withSession(Boolean session)
Enable session support.
|
protected Boolean session
protected String contextPath
protected List<ServletConf> servlets
protected List<WebSocketServerConf> webSockets
protected List<ServletFilterConf> filters
protected ServletContextSecurityConf security
public ServletContextBuilder(String contextPath)
public ServletContextBuilder withSession(Boolean session)
session - 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(ServletContextSecurityConf security)
public ServletContextConf build()
Copyright © 2016. All rights reserved.