001: /*
002: * ==============================================================================
003: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
004: * use this file except in compliance with the License. You may obtain a copy of
005: * the License at
006: *
007: * http://www.apache.org/licenses/LICENSE-2.0
008: *
009: * Unless required by applicable law or agreed to in writing, software
010: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
011: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
012: * License for the specific language governing permissions and limitations under
013: * the License.
014: */
015: package wicket.jmx;
016:
017: /**
018: * Exposes Application related functionality for JMX.
019: *
020: * @author eelcohillenius
021: */
022: public class CookieValuePersisterSettings implements
023: CookieValuePersisterSettingsMBean {
024: private final wicket.Application application;
025:
026: /**
027: * Create.
028: *
029: * @param application
030: */
031: public CookieValuePersisterSettings(wicket.Application application) {
032: this .application = application;
033: }
034:
035: /**
036: * @see wicket.jmx.CookieValuePersisterSettingsMBean#getComment()
037: */
038: public String getComment() {
039: return application.getSecuritySettings()
040: .getCookieValuePersisterSettings().getComment();
041: }
042:
043: /**
044: * @see wicket.jmx.CookieValuePersisterSettingsMBean#getDomain()
045: */
046: public String getDomain() {
047: return application.getSecuritySettings()
048: .getCookieValuePersisterSettings().getDomain();
049: }
050:
051: /**
052: * @see wicket.jmx.CookieValuePersisterSettingsMBean#getMaxAge()
053: */
054: public int getMaxAge() {
055: return application.getSecuritySettings()
056: .getCookieValuePersisterSettings().getMaxAge();
057: }
058:
059: /**
060: * @see wicket.jmx.CookieValuePersisterSettingsMBean#getSecure()
061: */
062: public boolean getSecure() {
063: return application.getSecuritySettings()
064: .getCookieValuePersisterSettings().getSecure();
065: }
066:
067: /**
068: * @see wicket.jmx.CookieValuePersisterSettingsMBean#getVersion()
069: */
070: public int getVersion() {
071: return application.getSecuritySettings()
072: .getCookieValuePersisterSettings().getVersion();
073: }
074:
075: /**
076: * @see wicket.jmx.CookieValuePersisterSettingsMBean#setComment(java.lang.String)
077: */
078: public void setComment(String comment) {
079: application.getSecuritySettings()
080: .getCookieValuePersisterSettings().setComment(comment);
081: }
082:
083: /**
084: * @see wicket.jmx.CookieValuePersisterSettingsMBean#setDomain(java.lang.String)
085: */
086: public void setDomain(String domain) {
087: application.getSecuritySettings()
088: .getCookieValuePersisterSettings().setDomain(domain);
089: }
090:
091: /**
092: * @see wicket.jmx.CookieValuePersisterSettingsMBean#setMaxAge(int)
093: */
094: public void setMaxAge(int maxAge) {
095: application.getSecuritySettings()
096: .getCookieValuePersisterSettings().setMaxAge(maxAge);
097: }
098:
099: /**
100: * @see wicket.jmx.CookieValuePersisterSettingsMBean#setSecure(boolean)
101: */
102: public void setSecure(boolean secure) {
103: application.getSecuritySettings()
104: .getCookieValuePersisterSettings().setSecure(secure);
105: }
106:
107: /**
108: * @see wicket.jmx.CookieValuePersisterSettingsMBean#setVersion(int)
109: */
110: public void setVersion(int version) {
111: application.getSecuritySettings()
112: .getCookieValuePersisterSettings().setVersion(version);
113: }
114: }
|