public class RequestCycleSettings extends Object implements RequestCycleSettingsMBean
| Constructor and Description |
|---|
RequestCycleSettings(Application application)
Create.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBufferResponse() |
int |
getExceptionRetryCount() |
boolean |
getGatherExtendedBrowserInfo()
Gets whether Wicket should try to get extensive client info by redirecting to
a page that polls for client capabilities. |
String |
getResponseRequestEncoding()
In order to do proper form parameter decoding it is important that the response and the
following request have the same encoding.
|
String |
getTimeout()
Gets the time 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 to
a 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.
|
void |
setTimeout(String timeout)
Sets the time that a request will by default be waiting for the previous request to be
handled before giving up.
|
public RequestCycleSettings(Application application)
application - public boolean getBufferResponse()
getBufferResponse in interface RequestCycleSettingsMBeanRequestCycleSettingsMBean.getBufferResponse()public boolean getGatherExtendedBrowserInfo()
RequestCycleSettingsMBeana page that polls for client capabilities. This method is used by the
default implementation of WebRequestCycle#newClientInfo(), so if that method is
overriden, there is no guarantee this method will be taken into account.getGatherExtendedBrowserInfo in interface RequestCycleSettingsMBeanRequestCycleSettingsMBean.getGatherExtendedBrowserInfo()public String getResponseRequestEncoding()
RequestCycleSettingsMBeangetResponseRequestEncoding in interface RequestCycleSettingsMBeanRequestCycleSettingsMBean.getResponseRequestEncoding()public String getTimeout()
RequestCycleSettingsMBeangetTimeout in interface RequestCycleSettingsMBeanRequestCycleSettingsMBean.getTimeout()public void setBufferResponse(boolean bufferResponse)
setBufferResponse in interface RequestCycleSettingsMBeanbufferResponse - True if this application should buffer responses.RequestCycleSettingsMBean.setBufferResponse(boolean)public void setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
RequestCycleSettingsMBeana page that polls for client capabilities. This method is used by the
default implementation of WebRequestCycle#newClientInfo(), so if that method is
overriden, there is no guarantee this method will be taken into account.setGatherExtendedBrowserInfo in interface RequestCycleSettingsMBeangatherExtendedBrowserInfo - Whether to gather extensive client infoRequestCycleSettingsMBean.setGatherExtendedBrowserInfo(boolean)public void setResponseRequestEncoding(String responseRequestEncoding) throws UnsupportedEncodingException
RequestCycleSettingsMBeansetResponseRequestEncoding in interface RequestCycleSettingsMBeanresponseRequestEncoding - The request and response encoding to be used.UnsupportedEncodingException - if encoding is not supportedRequestCycleSettingsMBean.setResponseRequestEncoding(java.lang.String)public void setTimeout(String timeout)
RequestCycleSettingsMBeansetTimeout in interface RequestCycleSettingsMBeanRequestCycleSettingsMBean.setTimeout(java.lang.String)public void setExceptionRetryCount(int retries)
RequestCycleSettingsMBeansetExceptionRetryCount in interface RequestCycleSettingsMBeanretries - the number of attemptspublic int getExceptionRetryCount()
getExceptionRetryCount in interface RequestCycleSettingsMBeanCopyright © 2006–2019 Apache Software Foundation. All rights reserved.