|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.web.WebFilterConfig
public class WebFilterConfig
| Field Summary | |
|---|---|
protected Adapter |
adapter
Associated adapter. |
protected String |
compressableMimeTypes
|
protected String |
compression
Compression value. |
protected int |
compressionMinSize
|
protected String |
defaultResponseType
The default response-type |
protected boolean |
disableUploadTimeout
Flag to disable setting a different time-out on uploads. |
protected boolean |
displayConfiguration
If true, display the NIO configuration information. |
protected FileCache |
fileCache
The FileCache associated with this Selector |
protected String |
forcedRequestType
The forced request-type |
protected Interceptor |
interceptor
|
protected boolean |
isAsyncHttpWriteEnabled
Is Async HTTP write enabled. |
protected boolean |
isBufferResponse
Buffer the response until the buffer is full. |
protected boolean |
isMonitoringEnabled
Is monitoring already started. |
protected int |
keepAliveThreadCount
|
protected int |
keepAliveTimeoutInSeconds
|
protected int |
maxHttpHeaderSize
Default HTTP header buffer size. |
protected int |
maxKeepAliveRequests
|
protected int |
maxPostSize
|
protected MemoryManager |
memoryManager
|
protected String |
noCompressionUserAgents
|
protected int |
requestBufferSize
The input request buffer size. |
protected String |
restrictedUserAgents
|
protected String |
rootFolder
The root folder where application are deployed |
protected ScheduledExecutorService |
scheduledThreadPool
|
static String |
SERVER_NAME
|
protected String |
serverName
HTTP server name |
protected int |
transactionTimeout
The timeout used by the thread when processing a request. |
protected int |
uploadTimeout
Maximum timeout on uploads. |
protected ExecutorService |
workerThreadPool
|
| Constructor Summary | |
|---|---|
WebFilterConfig()
|
|
| Method Summary | |
|---|---|
Adapter |
getAdapter()
|
ClassLoader |
getClassLoader()
|
String |
getCompressableMimeTypes()
|
String |
getCompression()
|
int |
getCompressionMinSize()
|
String |
getDefaultResponseType()
|
FileCache |
getFileCache()
|
String |
getForcedRequestType()
|
Interceptor |
getInterceptor()
|
int |
getKeepAliveTimeoutInSeconds()
Gets the number of seconds before a keep-alive connection that has been idle times out and is closed. |
int |
getMaxHttpHeaderSize()
|
int |
getMaxKeepAliveRequests()
|
int |
getMaxPostSize()
|
MemoryManager |
getMemoryManager()
|
String |
getNoCompressionUserAgents()
|
Properties |
getProperties()
|
int |
getRequestBufferSize()
Return the request input buffer size |
String |
getRestrictedUserAgents()
|
String |
getRootFolder()
|
ScheduledExecutorService |
getScheduledThreadPool()
|
String |
getServerName()
|
int |
getTransactionTimeout()
Set the maximum time, in milliseconds, a WorkerThread executing
an instance of this class can execute. |
int |
getUploadTimeout()
Get the upload timeout. |
String |
getWebAppRootPath()
Return the folder's root where application are deployed. |
ExecutorService |
getWorkerThreadPool()
|
void |
initializeCompression(ProcessorTask processorTask)
|
ProcessorTask |
initializeProcessorTask(ProcessorTask task)
|
boolean |
isAsyncHttpWriteEnabled()
Is async HTTP write enabled |
boolean |
isBufferResponse()
Return true if the reponse is buffered. |
boolean |
isDisableUploadTimeout()
Get the flag that controls upload time-outs. |
boolean |
isDisplayConfiguration()
|
boolean |
isEnableNioLogging()
|
boolean |
isMonitoringEnabled()
Returns true if monitoring has been enabled, false otherwise. |
boolean |
isUseChunking()
Is chunking encoding used. |
void |
setAdapter(Adapter adapter)
|
void |
setAsyncHttpWriteEnabled(boolean isAsyncHttpWriteEnabled)
Set if async HTTP write enabled |
void |
setBufferResponse(boolean isBufferResponse)
trueif the reponse willk be buffered. |
void |
setClassLoader(ClassLoader classLoader)
Set the ClassLoader used to load configurable
classes (ExecutorService, StreamAlgorithm). |
void |
setCompressableMimeTypes(String compressableMimeTypes)
|
void |
setCompression(String compression)
|
void |
setCompressionMinSize(int compressionMinSize)
|
void |
setDefaultResponseType(String defaultResponseType)
|
void |
setDisableUploadTimeout(boolean isDisabled)
Set the flag to control upload time-outs. |
void |
setDisplayConfiguration(boolean displayConfiguration)
|
void |
setEnableNioLogging(boolean enableNioLogging)
|
void |
setFileCache(FileCache fileCache)
|
void |
setForcedRequestType(String forcedRequestType)
|
void |
setInterceptor(Interceptor interceptor)
|
void |
setKeepAliveTimeoutInSeconds(int timeout)
Sets the number of seconds before a keep-alive connection that has been idle times out and is closed. |
void |
setMaxHttpHeaderSize(int maxHttpHeaderSize)
|
void |
setMaxKeepAliveRequests(int mkar)
Set the maximum number of Keep-Alive requests that we will honor. |
void |
setMaxPostSize(int maxPostSize)
|
void |
setMemoryManager(MemoryManager memoryManager)
|
void |
setMonitoringEnabled(boolean isMonitoringEnabled)
|
void |
setNoCompressionUserAgents(String noCompressionUserAgents)
|
void |
setRequestBufferSize(int requestBufferSize)
Set the request input buffer size |
void |
setRestrictedUserAgents(String restrictedUserAgents)
|
void |
setRootFolder(String rootFolder)
|
void |
setScheduledThreadPool(ScheduledExecutorService scheduledThreadPool)
|
void |
setServerName(String serverName)
|
void |
setTransactionTimeout(int transactionTimeout)
Set the maximum time, in milliseconds, a WrokerThread processing
an instance of this class. |
void |
setUploadTimeout(int uploadTimeout)
Set the upload timeout. |
void |
setUseChunking(boolean useChunking)
Enable chunking the http response. |
void |
setWebAppRootPath(String rf)
Set the document root folder |
void |
setWorkerThreadPool(ExecutorService workerThreadPool)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SERVER_NAME
protected FileCache fileCache
protected Adapter adapter
protected Interceptor interceptor
protected MemoryManager memoryManager
protected ExecutorService workerThreadPool
protected ScheduledExecutorService scheduledThreadPool
protected int maxKeepAliveRequests
protected int keepAliveThreadCount
protected String compression
protected String noCompressionUserAgents
protected String restrictedUserAgents
protected String compressableMimeTypes
protected int compressionMinSize
protected boolean isMonitoringEnabled
protected boolean isBufferResponse
protected int maxHttpHeaderSize
protected boolean isAsyncHttpWriteEnabled
protected int maxPostSize
protected int transactionTimeout
protected boolean displayConfiguration
protected int requestBufferSize
protected int keepAliveTimeoutInSeconds
protected String defaultResponseType
protected String forcedRequestType
protected String rootFolder
protected String serverName
protected boolean disableUploadTimeout
protected int uploadTimeout
| Constructor Detail |
|---|
public WebFilterConfig()
| Method Detail |
|---|
public ProcessorTask initializeProcessorTask(ProcessorTask task)
public void initializeCompression(ProcessorTask processorTask)
public Adapter getAdapter()
public void setAdapter(Adapter adapter)
public FileCache getFileCache()
public void setFileCache(FileCache fileCache)
public Interceptor getInterceptor()
public void setInterceptor(Interceptor interceptor)
public MemoryManager getMemoryManager()
public void setMemoryManager(MemoryManager memoryManager)
public ScheduledExecutorService getScheduledThreadPool()
public void setScheduledThreadPool(ScheduledExecutorService scheduledThreadPool)
public ExecutorService getWorkerThreadPool()
public void setWorkerThreadPool(ExecutorService workerThreadPool)
public String getServerName()
public void setServerName(String serverName)
public String getRootFolder()
public void setRootFolder(String rootFolder)
public int getMaxKeepAliveRequests()
public void setMaxKeepAliveRequests(int mkar)
public void setKeepAliveTimeoutInSeconds(int timeout)
timeout - Keep-alive timeout in number of secondspublic int getKeepAliveTimeoutInSeconds()
public boolean isMonitoringEnabled()
public void setMonitoringEnabled(boolean isMonitoringEnabled)
public Properties getProperties()
public int getMaxHttpHeaderSize()
public void setMaxHttpHeaderSize(int maxHttpHeaderSize)
public boolean isAsyncHttpWriteEnabled()
public void setAsyncHttpWriteEnabled(boolean isAsyncHttpWriteEnabled)
isAsyncHttpWriteEnabled - true, if async HTTP
write enabled, or false otherwise.public void setRequestBufferSize(int requestBufferSize)
public int getRequestBufferSize()
public void setWebAppRootPath(String rf)
public String getWebAppRootPath()
public boolean isBufferResponse()
public void setBufferResponse(boolean isBufferResponse)
public String getCompression()
public void setCompression(String compression)
public String getNoCompressionUserAgents()
public void setNoCompressionUserAgents(String noCompressionUserAgents)
public String getRestrictedUserAgents()
public void setRestrictedUserAgents(String restrictedUserAgents)
public String getCompressableMimeTypes()
public void setCompressableMimeTypes(String compressableMimeTypes)
public int getCompressionMinSize()
public void setCompressionMinSize(int compressionMinSize)
public boolean isDisplayConfiguration()
public void setDisplayConfiguration(boolean displayConfiguration)
public String getDefaultResponseType()
public void setDefaultResponseType(String defaultResponseType)
public String getForcedRequestType()
public void setForcedRequestType(String forcedRequestType)
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
ClassLoader used to load configurable
classes (ExecutorService, StreamAlgorithm).
public int getMaxPostSize()
public void setMaxPostSize(int maxPostSize)
public void setDisableUploadTimeout(boolean isDisabled)
public boolean isDisableUploadTimeout()
public void setUploadTimeout(int uploadTimeout)
public int getUploadTimeout()
public int getTransactionTimeout()
WorkerThread executing
an instance of this class can execute.
public void setTransactionTimeout(int transactionTimeout)
WrokerThread processing
an instance of this class.
transactionTimeout - the maximum time, in milliseconds.public boolean isUseChunking()
public void setUseChunking(boolean useChunking)
useChunking - public boolean isEnableNioLogging()
public void setEnableNioLogging(boolean enableNioLogging)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||