SessionConfigpublic class SessionConfig extends com.sun.enterprise.tools.common.dd.SunBaseBean This generated bean class SessionConfig matches the schema element session-config
Generated on Tue Sep 02 18:08:42 PDT 2003 |
Fields Summary |
---|
static Vector | comparators | public static final String | SESSION_MANAGER | public static final String | SESSION_PROPERTIES | public static final String | COOKIE_PROPERTIES |
Constructors Summary |
---|
public SessionConfig() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public SessionConfig(int options)
super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
// Properties (see root bean comments for the bean graph)
this.createProperty("session-manager", // NOI18N
SESSION_MANAGER,
Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
SessionManager.class);
this.createAttribute(SESSION_MANAGER, "persistence-type", "PersistenceType",
AttrProp.CDATA,
null, "memory");
this.createProperty("session-properties", // NOI18N
SESSION_PROPERTIES,
Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
SessionProperties.class);
this.createProperty("cookie-properties", // NOI18N
COOKIE_PROPERTIES,
Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
CookieProperties.class);
this.initialize(options);
|
Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public void | dump(java.lang.StringBuffer str, java.lang.String indent)
String s;
Object o;
org.netbeans.modules.schema2beans.BaseBean n;
str.append(indent);
str.append("SessionManager"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getSessionManager();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(SESSION_MANAGER, 0, str, indent);
str.append(indent);
str.append("SessionProperties"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getSessionProperties();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(SESSION_PROPERTIES, 0, str, indent);
str.append(indent);
str.append("CookieProperties"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getCookieProperties();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(COOKIE_PROPERTIES, 0, str, indent);
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("SessionConfig\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public CookieProperties | getCookieProperties()
return (CookieProperties)this.getValue(COOKIE_PROPERTIES);
| public SessionManager | getSessionManager()
return (SessionManager)this.getValue(SESSION_MANAGER);
| public SessionProperties | getSessionProperties()
return (SessionProperties)this.getValue(SESSION_PROPERTIES);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setCookieProperties(CookieProperties value)
this.setValue(COOKIE_PROPERTIES, value);
| public void | setSessionManager(SessionManager value)
this.setValue(SESSION_MANAGER, value);
| public void | setSessionProperties(SessionProperties value)
this.setValue(SESSION_PROPERTIES, value);
| public void | validate()
boolean restrictionFailure = false;
// Validating property sessionManager
if (getSessionManager() != null) {
getSessionManager().validate();
}
// Validating property sessionProperties
if (getSessionProperties() != null) {
getSessionProperties().validate();
}
// Validating property cookieProperties
if (getCookieProperties() != null) {
getCookieProperties().validate();
}
|
|