|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.settings.def.RequestCycleSettings
public class RequestCycleSettings
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.wicket.settings.IRequestCycleSettings |
---|
IRequestCycleSettings.RenderStrategy |
Constructor Summary | |
---|---|
RequestCycleSettings()
|
Method Summary | |
---|---|
void |
addResponseFilter(IResponseFilter responseFilter)
Adds a response filter to the list. |
boolean |
getBufferResponse()
Decides whether to buffer the response's headers until the end of the request processing. |
boolean |
getGatherExtendedBrowserInfo()
Gets whether Wicket should try to get extensive client info by redirecting to a page that polls for client capabilities . |
IRequestCycleSettings.RenderStrategy |
getRenderStrategy()
Gets in what way the render part of a request is handled. |
List<IResponseFilter> |
getResponseFilters()
|
String |
getResponseRequestEncoding()
In order to do proper form parameter encoding it is important that the response and the subsequent request stipulate a common character encoding. |
Duration |
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)
Sets a flag whether the application should buffer the response's headers until the end of the request processing. |
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 |
setRenderStrategy(IRequestCycleSettings.RenderStrategy renderStrategy)
Sets in what way the render part of a request is handled. |
void |
setResponseRequestEncoding(String encoding)
In order to do proper form parameter decoding it is important that the response and the following request have the same encoding. |
void |
setTimeout(Duration 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 |
---|
public RequestCycleSettings()
Method Detail |
---|
public void addResponseFilter(IResponseFilter responseFilter)
IRequestCycleSettings
addResponseFilter
in interface IRequestCycleSettings
responseFilter
- The IResponseFilter
that is addedIRequestCycleSettings.addResponseFilter(IResponseFilter)
public boolean getBufferResponse()
IRequestCycleSettings
Component.setResponsePage(org.apache.wicket.Page)
or
ResetResponseException
getBufferResponse
in interface IRequestCycleSettings
true
if the application should buffer the response's headers.IRequestCycleSettings.getBufferResponse()
public boolean getGatherExtendedBrowserInfo()
IRequestCycleSettings
a page that polls for client capabilities
. This method is used by the
default implementation of Session.getClientInfo()
, so if that method is
overridden, there is no guarantee this method will be taken into account.
getGatherExtendedBrowserInfo
in interface IRequestCycleSettings
IRequestCycleSettings.getGatherExtendedBrowserInfo()
public IRequestCycleSettings.RenderStrategy getRenderStrategy()
IRequestCycleSettings
getRenderStrategy
in interface IRequestCycleSettings
IRequestCycleSettings.getRenderStrategy()
public List<IResponseFilter> getResponseFilters()
getResponseFilters
in interface IRequestCycleSettings
IRequestCycleSettings.getResponseFilters()
public String getResponseRequestEncoding()
IRequestCycleSettings
getResponseRequestEncoding
in interface IRequestCycleSettings
IRequestCycleSettings.getResponseRequestEncoding()
public Duration getTimeout()
IRequestCycleSettings
getTimeout
in interface IRequestCycleSettings
IRequestCycleSettings.getTimeout()
public void setBufferResponse(boolean bufferResponse)
IRequestCycleSettings
Component.setResponsePage(org.apache.wicket.Page)
or
ResetResponseException
setBufferResponse
in interface IRequestCycleSettings
bufferResponse
- true
if the application should buffer response's headers.IRequestCycleSettings.setBufferResponse(boolean)
public void setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
IRequestCycleSettings
a page that polls for client capabilities
. This method is used by the
default implementation of Session.getClientInfo()
, so if that method is
overridden, there is no guarantee this method will be taken into account.
WARNING: though this facility should work transparently in most cases, it
is recommended that you trigger the roundtrip to get the browser info somewhere where it
hurts the least. The roundtrip will be triggered the first time you call
Session.getClientInfo()
for a session, and after the roundtrip a new request with the
same info (url, post parameters) is handled. So rather than calling this in the middle of an
implementation of a form submit method, which would result in the code of that method before
the call to Session.getClientInfo()
to be executed twice, you best call
Session.getClientInfo()
e.g. in a page constructor or somewhere else where you didn't
do a lot of processing first.
setGatherExtendedBrowserInfo
in interface IRequestCycleSettings
gatherExtendedBrowserInfo
- Whether to gather extensive client infoIRequestCycleSettings.setGatherExtendedBrowserInfo(boolean)
public void setRenderStrategy(IRequestCycleSettings.RenderStrategy renderStrategy)
IRequestCycleSettings
setRenderStrategy
in interface IRequestCycleSettings
renderStrategy
- the render strategy that should be used by default.IRequestCycleSettings.setRenderStrategy(RenderStrategy)
public void setResponseRequestEncoding(String encoding)
IRequestCycleSettings
setResponseRequestEncoding
in interface IRequestCycleSettings
encoding
- The request and response encoding to be used.IRequestCycleSettings.setResponseRequestEncoding(java.lang.String)
public void setTimeout(Duration timeout)
IRequestCycleSettings
setTimeout
in interface IRequestCycleSettings
IRequestCycleSettings.setTimeout(org.apache.wicket.util.time.Duration)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |