public class ServletContainer<T extends ServletContainer<T>> extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ServletContainer.ServletContainerResources
Child mutators for ServletContainer 
 | 
static class  | 
ServletContainer.StackTraceOnError  | 
| Constructor and Description | 
|---|
ServletContainer(String key)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener 
 | 
Boolean | 
allowNonStandardWrappers()
If true then request and response wrappers that do not extend the
 standard wrapper classes can be used 
 | 
T | 
allowNonStandardWrappers(Boolean value)
If true then request and response wrappers that do not extend the
 standard wrapper classes can be used 
 | 
T | 
crawlerSessionManagementSetting()
Configures special session handling for crawler bots 
 | 
T | 
crawlerSessionManagementSetting(CrawlerSessionManagementSetting value)
Configures special session handling for crawler bots 
 | 
T | 
crawlerSessionManagementSetting(CrawlerSessionManagementSettingConsumer consumer)
Configures special session handling for crawler bots 
 | 
T | 
crawlerSessionManagementSetting(CrawlerSessionManagementSettingSupplier supplier)
Configures special session handling for crawler bots 
 | 
String | 
defaultBufferCache()
The buffer cache to use for caching static resources 
 | 
T | 
defaultBufferCache(String value)
The buffer cache to use for caching static resources 
 | 
String | 
defaultEncoding()
Default encoding to use for all deployed applications 
 | 
T | 
defaultEncoding(String value)
Default encoding to use for all deployed applications 
 | 
Integer | 
defaultSessionTimeout()
The default session timeout (in minutes) for all applications deployed in
 the container. 
 | 
T | 
defaultSessionTimeout(Integer value)
The default session timeout (in minutes) for all applications deployed in
 the container. 
 | 
Boolean | 
directoryListing()
If directory listing should be enabled for default servlets. 
 | 
T | 
directoryListing(Boolean value)
If directory listing should be enabled for default servlets. 
 | 
Boolean | 
disableCachingForSecuredPages()
If Undertow should set headers to disable caching for secured paged. 
 | 
T | 
disableCachingForSecuredPages(Boolean value)
If Undertow should set headers to disable caching for secured paged. 
 | 
Boolean | 
disableFileWatchService()
If this is true then the file watch service will not be used to monitor
 exploded deployments for changes 
 | 
T | 
disableFileWatchService(Boolean value)
If this is true then the file watch service will not be used to monitor
 exploded deployments for changes 
 | 
Boolean | 
disableSessionIdReuse()
If this is true then an unknown session ID will never be reused, and a
 new session id will be generated. 
 | 
T | 
disableSessionIdReuse(Boolean value)
If this is true then an unknown session ID will never be reused, and a
 new session id will be generated. 
 | 
Boolean | 
eagerFilterInitialization()
If true undertow calls filter init() on deployment start rather than when
 first requested. 
 | 
T | 
eagerFilterInitialization(Boolean value)
If true undertow calls filter init() on deployment start rather than when
 first requested. 
 | 
String | 
getKey()  | 
Boolean | 
ignoreFlush()
Ignore flushes on the servlet output stream. 
 | 
T | 
ignoreFlush(Boolean value)
Ignore flushes on the servlet output stream. 
 | 
T | 
jspSetting()
JSP container configuration. 
 | 
T | 
jspSetting(JSPSetting value)
JSP container configuration. 
 | 
T | 
jspSetting(JSPSettingConsumer consumer)
JSP container configuration. 
 | 
T | 
jspSetting(JSPSettingSupplier supplier)
JSP container configuration. 
 | 
Integer | 
maxSessions()
The maximum number of sessions that can be active at one time 
 | 
T | 
maxSessions(Integer value)
The maximum number of sessions that can be active at one time 
 | 
T | 
mimeMapping(MimeMapping value)
Add the MimeMapping object to the list of subresources 
 | 
T | 
mimeMapping(MimeMappingSupplier supplier)
Install a supplied MimeMapping object to the list of subresources 
 | 
T | 
mimeMapping(String childKey)
Create and configure a MimeMapping object to the list of subresources 
 | 
T | 
mimeMapping(String childKey,
           MimeMappingConsumer consumer)
Create and configure a MimeMapping object to the list of subresources 
 | 
T | 
mimeMappings(List<MimeMapping> value)
Add all MimeMapping objects to this subresource 
 | 
T | 
persistentSessionsSetting()
Session persistence sessions 
 | 
T | 
persistentSessionsSetting(PersistentSessionsSetting value)
Session persistence sessions 
 | 
T | 
persistentSessionsSetting(PersistentSessionsSettingConsumer consumer)
Session persistence sessions 
 | 
T | 
persistentSessionsSetting(PersistentSessionsSettingSupplier supplier)
Session persistence sessions 
 | 
Boolean | 
proactiveAuthentication()
If proactive authentication should be used. 
 | 
T | 
proactiveAuthentication(Boolean value)
If proactive authentication should be used. 
 | 
void | 
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener 
 | 
T | 
sessionCookieSetting()
Session cookie configuration 
 | 
T | 
sessionCookieSetting(SessionCookieSetting value)
Session cookie configuration 
 | 
T | 
sessionCookieSetting(SessionCookieSettingConsumer consumer)
Session cookie configuration 
 | 
T | 
sessionCookieSetting(SessionCookieSettingSupplier supplier)
Session cookie configuration 
 | 
Integer | 
sessionIdLength()
The length of the generated session ID. 
 | 
T | 
sessionIdLength(Integer value)
The length of the generated session ID. 
 | 
ServletContainer.StackTraceOnError | 
stackTraceOnError()
If an error page with the stack trace should be generated on error. 
 | 
T | 
stackTraceOnError(ServletContainer.StackTraceOnError value)
If an error page with the stack trace should be generated on error. 
 | 
ServletContainer.ServletContainerResources | 
subresources()  | 
Boolean | 
useListenerEncoding()
Use encoding defined on listener 
 | 
T | 
useListenerEncoding(Boolean value)
Use encoding defined on listener 
 | 
T | 
websocketsSetting()
If websockets are enabled for this container 
 | 
T | 
websocketsSetting(WebsocketsSetting value)
If websockets are enabled for this container 
 | 
T | 
websocketsSetting(WebsocketsSettingConsumer consumer)
If websockets are enabled for this container 
 | 
T | 
websocketsSetting(WebsocketsSettingSupplier supplier)
If websockets are enabled for this container 
 | 
T | 
welcomeFile(String childKey)
Create and configure a WelcomeFile object to the list of subresources 
 | 
T | 
welcomeFile(String childKey,
           WelcomeFileConsumer consumer)
Create and configure a WelcomeFile object to the list of subresources 
 | 
T | 
welcomeFile(WelcomeFile value)
Add the WelcomeFile object to the list of subresources 
 | 
T | 
welcomeFile(WelcomeFileSupplier supplier)
Install a supplied WelcomeFile object to the list of subresources 
 | 
T | 
welcomeFiles(List<WelcomeFile> value)
Add all WelcomeFile objects to this subresource 
 | 
public ServletContainer(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public ServletContainer.ServletContainerResources subresources()
public T mimeMappings(List<MimeMapping> value)
value - List of MimeMapping objects.public T mimeMapping(MimeMapping value)
value - The MimeMapping to addpublic T mimeMapping(String childKey, MimeMappingConsumer consumer)
key - The key for the MimeMapping resourceconfig - The MimeMappingConsumer to usepublic T mimeMapping(String childKey)
key - The key for the MimeMapping resourcepublic T mimeMapping(MimeMappingSupplier supplier)
public T welcomeFiles(List<WelcomeFile> value)
value - List of WelcomeFile objects.public T welcomeFile(WelcomeFile value)
value - The WelcomeFile to addpublic T welcomeFile(String childKey, WelcomeFileConsumer consumer)
key - The key for the WelcomeFile resourceconfig - The WelcomeFileConsumer to usepublic T welcomeFile(String childKey)
key - The key for the WelcomeFile resourcepublic T welcomeFile(WelcomeFileSupplier supplier)
public T persistentSessionsSetting(PersistentSessionsSetting value)
public T persistentSessionsSetting(PersistentSessionsSettingConsumer consumer)
public T persistentSessionsSetting()
public T persistentSessionsSetting(PersistentSessionsSettingSupplier supplier)
public T crawlerSessionManagementSetting(CrawlerSessionManagementSetting value)
public T crawlerSessionManagementSetting(CrawlerSessionManagementSettingConsumer consumer)
public T crawlerSessionManagementSetting()
public T crawlerSessionManagementSetting(CrawlerSessionManagementSettingSupplier supplier)
public T jspSetting(JSPSetting value)
public T jspSetting(JSPSettingConsumer consumer)
public T jspSetting()
public T jspSetting(JSPSettingSupplier supplier)
public T websocketsSetting(WebsocketsSetting value)
public T websocketsSetting(WebsocketsSettingConsumer consumer)
public T websocketsSetting()
public T websocketsSetting(WebsocketsSettingSupplier supplier)
public T sessionCookieSetting(SessionCookieSetting value)
public T sessionCookieSetting(SessionCookieSettingConsumer consumer)
public T sessionCookieSetting()
public T sessionCookieSetting(SessionCookieSettingSupplier supplier)
public Boolean allowNonStandardWrappers()
public T allowNonStandardWrappers(Boolean value)
public String defaultBufferCache()
public T defaultBufferCache(String value)
public String defaultEncoding()
public T defaultEncoding(String value)
public Integer defaultSessionTimeout()
public T defaultSessionTimeout(Integer value)
public Boolean directoryListing()
public T directoryListing(Boolean value)
public Boolean disableCachingForSecuredPages()
public T disableCachingForSecuredPages(Boolean value)
public Boolean disableFileWatchService()
public T disableFileWatchService(Boolean value)
public Boolean disableSessionIdReuse()
public T disableSessionIdReuse(Boolean value)
public Boolean eagerFilterInitialization()
public T eagerFilterInitialization(Boolean value)
public Boolean ignoreFlush()
public T ignoreFlush(Boolean value)
public Integer maxSessions()
public T maxSessions(Integer value)
public Boolean proactiveAuthentication()
public T proactiveAuthentication(Boolean value)
public Integer sessionIdLength()
public T sessionIdLength(Integer value)
public ServletContainer.StackTraceOnError stackTraceOnError()
public T stackTraceOnError(ServletContainer.StackTraceOnError value)
public Boolean useListenerEncoding()
Copyright © 2018 JBoss by Red Hat. All rights reserved.