FileDocCategorySizeDatePackage
SessionConfig.javaAPI DocGlassfish v2 API23646Fri May 04 22:34:42 BST 2007com.sun.enterprise.tools.common.dd.webapp

SessionConfig

public 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 voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public voiddump(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.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("SessionConfig\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public CookiePropertiesgetCookieProperties()

		return (CookieProperties)this.getValue(COOKIE_PROPERTIES);
	
public SessionManagergetSessionManager()

		return (SessionManager)this.getValue(SESSION_MANAGER);
	
public SessionPropertiesgetSessionProperties()

		return (SessionProperties)this.getValue(SESSION_PROPERTIES);
	
voidinitialize(int options)


	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetCookieProperties(CookieProperties value)

		this.setValue(COOKIE_PROPERTIES, value);
	
public voidsetSessionManager(SessionManager value)

		this.setValue(SESSION_MANAGER, value);
	
public voidsetSessionProperties(SessionProperties value)

		this.setValue(SESSION_PROPERTIES, value);
	
public voidvalidate()

		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();
		}