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 RequestCycleSettingsMBean
RequestCycleSettingsMBean.getBufferResponse()
public boolean getGatherExtendedBrowserInfo()
RequestCycleSettingsMBean
a 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 RequestCycleSettingsMBean
RequestCycleSettingsMBean.getGatherExtendedBrowserInfo()
public String getResponseRequestEncoding()
RequestCycleSettingsMBean
getResponseRequestEncoding
in interface RequestCycleSettingsMBean
RequestCycleSettingsMBean.getResponseRequestEncoding()
public String getTimeout()
RequestCycleSettingsMBean
getTimeout
in interface RequestCycleSettingsMBean
RequestCycleSettingsMBean.getTimeout()
public void setBufferResponse(boolean bufferResponse)
setBufferResponse
in interface RequestCycleSettingsMBean
bufferResponse
- True if this application should buffer responses.RequestCycleSettingsMBean.setBufferResponse(boolean)
public void setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
RequestCycleSettingsMBean
a 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 RequestCycleSettingsMBean
gatherExtendedBrowserInfo
- Whether to gather extensive client infoRequestCycleSettingsMBean.setGatherExtendedBrowserInfo(boolean)
public void setResponseRequestEncoding(String responseRequestEncoding) throws UnsupportedEncodingException
RequestCycleSettingsMBean
setResponseRequestEncoding
in interface RequestCycleSettingsMBean
responseRequestEncoding
- The request and response encoding to be used.UnsupportedEncodingException
- if encoding is not supportedRequestCycleSettingsMBean.setResponseRequestEncoding(java.lang.String)
public void setTimeout(String timeout)
RequestCycleSettingsMBean
setTimeout
in interface RequestCycleSettingsMBean
RequestCycleSettingsMBean.setTimeout(java.lang.String)
public void setExceptionRetryCount(int retries)
RequestCycleSettingsMBean
setExceptionRetryCount
in interface RequestCycleSettingsMBean
retries
- the number of attemptspublic int getExceptionRetryCount()
getExceptionRetryCount
in interface RequestCycleSettingsMBean
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.