org.apache.wicket.jmx
Class RequestCycleSettings

java.lang.Object
  extended by org.apache.wicket.jmx.RequestCycleSettings
All Implemented Interfaces:
RequestCycleSettingsMBean

public class RequestCycleSettings
extends Object
implements RequestCycleSettingsMBean

Exposes Application related functionality for JMX.

Author:
eelcohillenius

Constructor Summary
RequestCycleSettings(Application application)
          Create.
 
Method Summary
 boolean getBufferResponse()
           
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestCycleSettings

public RequestCycleSettings(Application application)
Create.

Parameters:
application -
Method Detail

getBufferResponse

public boolean getBufferResponse()
Specified by:
getBufferResponse in interface RequestCycleSettingsMBean
Returns:
True if this application buffers its responses
See Also:
RequestCycleSettingsMBean.getBufferResponse()

getGatherExtendedBrowserInfo

public boolean getGatherExtendedBrowserInfo()
Description copied from interface: RequestCycleSettingsMBean
Gets whether Wicket should try to get extensive client info by redirecting to 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.

Specified by:
getGatherExtendedBrowserInfo in interface RequestCycleSettingsMBean
Returns:
Whether to gather extensive client info
See Also:
RequestCycleSettingsMBean.getGatherExtendedBrowserInfo()

getResponseRequestEncoding

public String 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 interface RequestCycleSettingsMBean
Returns:
The request and response encoding
See Also:
RequestCycleSettingsMBean.getResponseRequestEncoding()

getTimeout

public String getTimeout()
Description copied from interface: RequestCycleSettingsMBean
Gets the time that a request will by default be waiting for the previous request to be handled before giving up.

Specified by:
getTimeout in interface RequestCycleSettingsMBean
Returns:
The time out
See Also:
RequestCycleSettingsMBean.getTimeout()

setBufferResponse

public void setBufferResponse(boolean bufferResponse)
Specified by:
setBufferResponse in interface RequestCycleSettingsMBean
Parameters:
bufferResponse - True if this application should buffer responses.
See Also:
RequestCycleSettingsMBean.setBufferResponse(boolean)

setGatherExtendedBrowserInfo

public void setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
Description copied from interface: RequestCycleSettingsMBean
Sets whether Wicket should try to get extensive client info by redirecting to 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.

Specified by:
setGatherExtendedBrowserInfo in interface RequestCycleSettingsMBean
Parameters:
gatherExtendedBrowserInfo - Whether to gather extensive client info
See Also:
RequestCycleSettingsMBean.setGatherExtendedBrowserInfo(boolean)

setResponseRequestEncoding

public void setResponseRequestEncoding(String responseRequestEncoding)
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 interface RequestCycleSettingsMBean
Parameters:
responseRequestEncoding - The request and response encoding to be used.
See Also:
RequestCycleSettingsMBean.setResponseRequestEncoding(java.lang.String)

setTimeout

public void setTimeout(String timeout)
Description copied from interface: RequestCycleSettingsMBean
Sets the time that a request will by default be waiting for the previous request to be handled before giving up.

Specified by:
setTimeout in interface RequestCycleSettingsMBean
See Also:
RequestCycleSettingsMBean.setTimeout(java.lang.String)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.