java.lang.Object
org.apache.wicket.jmx.wrapper.RequestCycleSettings
- All Implemented Interfaces:
RequestCycleSettingsMBean
Exposes Application related functionality for JMX.
- Author:
- eelcohillenius
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
boolean
Gets whether Wicket should try to get extensive client info by redirecting toa page that polls for client capabilities
.In order to do proper form parameter decoding it is important that the response and the following request have the same encoding. see http://www.crazysquirrel.com/computing/general/form-encoding.jspx for additional information.Gets the time (in milliseconds) that a request will by default be waiting for the previous request to be handled before giving up.void
setBufferResponse
(boolean bufferResponse) void
setExceptionRetryCount
(int retries) Sets how many attempts Wicket will make to render the exception request handler before giving up.void
setGatherExtendedBrowserInfo
(boolean gatherExtendedBrowserInfo) Sets whether Wicket should try to get extensive client info by redirecting toa page that polls for client capabilities
.void
setResponseRequestEncoding
(String responseRequestEncoding) In order to do proper form parameter decoding it is important that the response and the following request have the same encoding. see http://www.crazysquirrel.com/computing/general/form-encoding.jspx for additional information.void
setTimeout
(String timeout) Sets the time (in milliseconds) that a request will by default be waiting for the previous request to be handled before giving up.
-
Constructor Details
-
RequestCycleSettings
Create.- Parameters:
application
-
-
-
Method Details
-
getBufferResponse
- Specified by:
getBufferResponse
in interfaceRequestCycleSettingsMBean
- Returns:
- True if this application buffers its responses
- See Also:
-
getGatherExtendedBrowserInfo
Description copied from interface:RequestCycleSettingsMBean
Gets whether Wicket should try to get extensive client info by redirecting toa page that polls for client capabilities
. This method is used by the default implementation ofSession.getClientInfo()
, so if that method is overridden, there is no guarantee this method will be taken into account.- Specified by:
getGatherExtendedBrowserInfo
in interfaceRequestCycleSettingsMBean
- Returns:
- Whether to gather extensive client info
- See Also:
-
getResponseRequestEncoding
Description copied from interface:RequestCycleSettingsMBean
In order to do proper form parameter decoding it is important that the response and the following request have the same encoding. see http://www.crazysquirrel.com/computing/general/form-encoding.jspx for additional information.- Specified by:
getResponseRequestEncoding
in interfaceRequestCycleSettingsMBean
- Returns:
- The request and response encoding
- See Also:
-
getTimeout
Description copied from interface:RequestCycleSettingsMBean
Gets the time (in milliseconds) that a request will by default be waiting for the previous request to be handled before giving up.- Specified by:
getTimeout
in interfaceRequestCycleSettingsMBean
- Returns:
- The time out in milliseconds
- See Also:
-
setBufferResponse
- Specified by:
setBufferResponse
in interfaceRequestCycleSettingsMBean
- Parameters:
bufferResponse
- True if this application should buffer responses.- See Also:
-
setGatherExtendedBrowserInfo
Description copied from interface:RequestCycleSettingsMBean
Sets whether Wicket should try to get extensive client info by redirecting toa page that polls for client capabilities
. This method is used by the default implementation ofSession.getClientInfo()
, so if that method is overridden, there is no guarantee this method will be taken into account.- Specified by:
setGatherExtendedBrowserInfo
in interfaceRequestCycleSettingsMBean
- Parameters:
gatherExtendedBrowserInfo
- Whether to gather extensive client info- See Also:
-
setResponseRequestEncoding
public void setResponseRequestEncoding(String responseRequestEncoding) throws UnsupportedEncodingException Description copied from interface:RequestCycleSettingsMBean
In order to do proper form parameter decoding it is important that the response and the following request have the same encoding. see http://www.crazysquirrel.com/computing/general/form-encoding.jspx for additional information. Default encoding: UTF-8- Specified by:
setResponseRequestEncoding
in interfaceRequestCycleSettingsMBean
- Parameters:
responseRequestEncoding
- The request and response encoding to be used.- Throws:
UnsupportedEncodingException
- if encoding is not supported- See Also:
-
setTimeout
Description copied from interface:RequestCycleSettingsMBean
Sets the time (in milliseconds) that a request will by default be waiting for the previous request to be handled before giving up.- Specified by:
setTimeout
in interfaceRequestCycleSettingsMBean
- Parameters:
timeout
- in milliseconds- See Also:
-
setExceptionRetryCount
Description copied from interface:RequestCycleSettingsMBean
Sets how many attempts Wicket will make to render the exception request handler before giving up.- Specified by:
setExceptionRetryCount
in interfaceRequestCycleSettingsMBean
- Parameters:
retries
- the number of attempts
-
getExceptionRetryCount
- Specified by:
getExceptionRetryCount
in interfaceRequestCycleSettingsMBean
- Returns:
- How many times will Wicket attempt to render the exception request handler before giving up.
-