Package com.blackrook.small.jetty
Interface SmallJettyConfiguration
- All Superinterfaces:
com.blackrook.small.SmallConfiguration
- All Known Implementing Classes:
DefaultSmallJettyConfiguration
public interface SmallJettyConfiguration
extends com.blackrook.small.SmallConfiguration
Jetty-specific configuration for Small.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SmallJettyConfiguration.GZipConfiguration
Configuration for GZipping client content.static interface
SmallJettyConfiguration.SSLConfiguration
SSL Configuration. -
Method Summary
Modifier and Type Method Description SmallJettyConfiguration.GZipConfiguration
getGZipCompression()
int
getHeaderCacheSize()
int
getIdleConnectionTimeout()
int
getMaxThreads()
int
getOutputBufferSize()
int
getRequestHeaderSize()
int
getResponseHeaderSize()
boolean
getSendDateHeader()
boolean
getSendServerVersion()
boolean
getSendXPoweredBy()
int
getServletContextOptions()
SmallJettyConfiguration.SSLConfiguration
getSSLConfiguration()
-
Method Details
-
getMaxThreads
int getMaxThreads()- Returns:
- the maximum amount of connector threads.
-
getIdleConnectionTimeout
int getIdleConnectionTimeout()- Returns:
- the amount of time in milliseconds before an open HTTP connection times out.
-
getHeaderCacheSize
int getHeaderCacheSize()- Returns:
- the header cache size in bytes.
-
getOutputBufferSize
int getOutputBufferSize()- Returns:
- the output buffer cache size in bytes.
-
getRequestHeaderSize
int getRequestHeaderSize()- Returns:
- the request header cache size in bytes.
-
getResponseHeaderSize
int getResponseHeaderSize()- Returns:
- the response header cache size in bytes.
-
getSendServerVersion
boolean getSendServerVersion()- Returns:
- true if the server version should be sent in headers/default pages, false if not.
-
getSendDateHeader
boolean getSendDateHeader()- Returns:
- true if the server date should be sent in headers/default pages, false if not.
-
getSendXPoweredBy
boolean getSendXPoweredBy()- Returns:
- true if the server name should be sent in headers/default pages, false if not.
-
getServletContextOptions
int getServletContextOptions()- Returns:
- the Jetty options to pass to the servlet context handler.
- Since:
- 1.5.3
- See Also:
ServletContextHandler.SESSIONS
,ServletContextHandler.SECURITY
,ServletContextHandler.GZIP
-
getSSLConfiguration
SmallJettyConfiguration.SSLConfiguration getSSLConfiguration()- Returns:
- the SSL configuration to use for SSL, or null for no secure socket setup.
-
getGZipCompression
SmallJettyConfiguration.GZipConfiguration getGZipCompression()- Returns:
- the GZip configuration to use, or null for no compression scheme.
- Since:
- 1.5.3
-