01: /*
02: * ==============================================================================
03: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
04: * use this file except in compliance with the License. You may obtain a copy of
05: * the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software
10: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12: * License for the specific language governing permissions and limitations under
13: * the License.
14: */
15: package wicket.jmx;
16:
17: import wicket.markup.html.pages.BrowserInfoPage;
18: import wicket.protocol.http.WebRequestCycle;
19:
20: /**
21: * Request cycle settings.
22: *
23: * @author eelcohillenius
24: */
25: public interface RequestCycleSettingsMBean {
26: /**
27: * @return True if this application buffers its responses
28: */
29: boolean getBufferResponse();
30:
31: /**
32: * Gets whether Wicket should try to get extensive client info by
33: * redirecting to
34: * {@link BrowserInfoPage a page that polls for client capabilities}. This
35: * method is used by the default implementation of
36: * {@link WebRequestCycle#newClientInfo()}, so if that method is overriden,
37: * there is no guarantee this method will be taken into account.
38: *
39: * @return Whether to gather extensive client info
40: */
41: boolean getGatherExtendedBrowserInfo();
42:
43: /**
44: * In order to do proper form parameter decoding it is important that the
45: * response and the following request have the same encoding. see
46: * http://www.crazysquirrel.com/computing/general/form-encoding.jspx for
47: * additional information.
48: *
49: * @return The request and response encoding
50: */
51: String getResponseRequestEncoding();
52:
53: /**
54: * @param bufferResponse
55: * True if this application should buffer responses.
56: */
57: void setBufferResponse(boolean bufferResponse);
58:
59: /**
60: * Sets whether Wicket should try to get extensive client info by
61: * redirecting to
62: * {@link BrowserInfoPage a page that polls for client capabilities}. This
63: * method is used by the default implementation of
64: * {@link WebRequestCycle#newClientInfo()}, so if that method is overriden,
65: * there is no guarantee this method will be taken into account.
66: *
67: * @param gatherExtendedBrowserInfo
68: * Whether to gather extensive client info
69: */
70: void setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo);
71:
72: /**
73: * In order to do proper form parameter decoding it is important that the
74: * response and the following request have the same encoding. see
75: * http://www.crazysquirrel.com/computing/general/form-encoding.jspx for
76: * additional information.
77: *
78: * Default encoding: UTF-8
79: *
80: * @param responseRequestEncoding
81: * The request and response encoding to be used.
82: */
83: void setResponseRequestEncoding(final String responseRequestEncoding);
84: }
|