Package org.apache.wicket.jmx.wrapper
Class RequestCycleSettings
- java.lang.Object
-
- org.apache.wicket.jmx.wrapper.RequestCycleSettings
-
- All Implemented Interfaces:
RequestCycleSettingsMBean
public class RequestCycleSettings extends Object implements RequestCycleSettingsMBean
Exposes Application related functionality for JMX.- Author:
- eelcohillenius
-
-
Constructor Summary
Constructors Constructor Description RequestCycleSettings(org.apache.wicket.Application application)Create.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBufferResponse()intgetExceptionRetryCount()booleangetGatherExtendedBrowserInfo()Gets whether Wicket should try to get extensive client info by redirecting toa page that polls for client capabilities.StringgetResponseRequestEncoding()In order to do proper form parameter decoding it is important that the response and the following request have the same encoding.StringgetTimeout()Gets the time (in milliseconds) that a request will by default be waiting for the previous request to be handled before giving up.voidsetBufferResponse(boolean bufferResponse)voidsetExceptionRetryCount(int retries)Sets how many attempts Wicket will make to render the exception request handler before giving up.voidsetGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)Sets whether Wicket should try to get extensive client info by redirecting toa page that polls for client capabilities.voidsetResponseRequestEncoding(String responseRequestEncoding)In order to do proper form parameter decoding it is important that the response and the following request have the same encoding.voidsetTimeout(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 Detail
-
RequestCycleSettings
public RequestCycleSettings(org.apache.wicket.Application application)
Create.- Parameters:
application-
-
-
Method Detail
-
getBufferResponse
public boolean getBufferResponse()
- Specified by:
getBufferResponsein interfaceRequestCycleSettingsMBean- Returns:
- True if this application buffers its responses
- See Also:
RequestCycleSettingsMBean.getBufferResponse()
-
getGatherExtendedBrowserInfo
public boolean getGatherExtendedBrowserInfo()
Description copied from interface:RequestCycleSettingsMBeanGets 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:
getGatherExtendedBrowserInfoin interfaceRequestCycleSettingsMBean- Returns:
- Whether to gather extensive client info
- See Also:
RequestCycleSettingsMBean.getGatherExtendedBrowserInfo()
-
getResponseRequestEncoding
public String getResponseRequestEncoding()
Description copied from interface:RequestCycleSettingsMBeanIn 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:
getResponseRequestEncodingin interfaceRequestCycleSettingsMBean- Returns:
- The request and response encoding
- See Also:
RequestCycleSettingsMBean.getResponseRequestEncoding()
-
getTimeout
public String getTimeout()
Description copied from interface:RequestCycleSettingsMBeanGets the time (in milliseconds) that a request will by default be waiting for the previous request to be handled before giving up.- Specified by:
getTimeoutin interfaceRequestCycleSettingsMBean- Returns:
- The time out in milliseconds
- See Also:
RequestCycleSettingsMBean.getTimeout()
-
setBufferResponse
public void setBufferResponse(boolean bufferResponse)
- Specified by:
setBufferResponsein interfaceRequestCycleSettingsMBean- Parameters:
bufferResponse- True if this application should buffer responses.- See Also:
RequestCycleSettingsMBean.setBufferResponse(boolean)
-
setGatherExtendedBrowserInfo
public void setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
Description copied from interface:RequestCycleSettingsMBeanSets 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:
setGatherExtendedBrowserInfoin interfaceRequestCycleSettingsMBean- Parameters:
gatherExtendedBrowserInfo- Whether to gather extensive client info- See Also:
RequestCycleSettingsMBean.setGatherExtendedBrowserInfo(boolean)
-
setResponseRequestEncoding
public void setResponseRequestEncoding(String responseRequestEncoding) throws UnsupportedEncodingException
Description copied from interface:RequestCycleSettingsMBeanIn 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:
setResponseRequestEncodingin interfaceRequestCycleSettingsMBean- Parameters:
responseRequestEncoding- The request and response encoding to be used.- Throws:
UnsupportedEncodingException- if encoding is not supported- See Also:
RequestCycleSettingsMBean.setResponseRequestEncoding(java.lang.String)
-
setTimeout
public void setTimeout(String timeout)
Description copied from interface:RequestCycleSettingsMBeanSets the time (in milliseconds) that a request will by default be waiting for the previous request to be handled before giving up.- Specified by:
setTimeoutin interfaceRequestCycleSettingsMBean- Parameters:
timeout- in milliseconds- See Also:
RequestCycleSettingsMBean.setTimeout(java.lang.String)
-
setExceptionRetryCount
public void setExceptionRetryCount(int retries)
Description copied from interface:RequestCycleSettingsMBeanSets how many attempts Wicket will make to render the exception request handler before giving up.- Specified by:
setExceptionRetryCountin interfaceRequestCycleSettingsMBean- Parameters:
retries- the number of attempts
-
getExceptionRetryCount
public int getExceptionRetryCount()
- Specified by:
getExceptionRetryCountin interfaceRequestCycleSettingsMBean- Returns:
- How many times will Wicket attempt to render the exception request handler before giving up.
-
-