Package net.officefloor.web.session
Class HttpSessionManagedObjectSource
- java.lang.Object
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<Indexed,Indexed>
-
- net.officefloor.web.session.HttpSessionManagedObjectSource
-
- All Implemented Interfaces:
ManagedObjectSource<Indexed,Indexed>
@PrivateSource public class HttpSessionManagedObjectSource extends AbstractManagedObjectSource<Indexed,Indexed>
ManagedObjectSourcefor aHttpSession.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_SESSION_ID_COOKIE_NAMEKeep default consistent with JEE to aid in special processing of session identifiers by such things as search engines.static java.lang.StringPROPERTY_MAX_IDLE_TIMEProperty name to obtain the default maximum idle times forHttpSessioninstances.static java.lang.StringPROPERTY_SESSION_ID_COOKIE_NAMEProperty name to obtain theHttpCookiename of the Session Id.static java.lang.StringPROPERTY_USE_DEPENDENCY_SESSION_ID_GENERATORProperty name specifying whether to use an externalHttpSessionIdGenerator.static java.lang.StringPROPERTY_USE_DEPENDENCY_SESSION_STOREProperty name specifying whether to use an externalHttpSessionStore.
-
Constructor Summary
Constructors Constructor Description HttpSessionManagedObjectSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ManagedObjectgetManagedObject()Synchronously obtains theManagedObject.protected voidloadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<Indexed,Indexed> context)Overridden to load meta-data.protected voidloadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)Overridden to load specifications.-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObject
-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, start, stop
-
-
-
-
Field Detail
-
PROPERTY_SESSION_ID_COOKIE_NAME
public static final java.lang.String PROPERTY_SESSION_ID_COOKIE_NAME
Property name to obtain theHttpCookiename of the Session Id.- See Also:
- Constant Field Values
-
PROPERTY_USE_DEPENDENCY_SESSION_ID_GENERATOR
public static final java.lang.String PROPERTY_USE_DEPENDENCY_SESSION_ID_GENERATOR
Property name specifying whether to use an externalHttpSessionIdGenerator. Value oftrueindicates to link as dependency. A defaultHttpSessionIdGeneratoris used otherwise.- See Also:
- Constant Field Values
-
PROPERTY_USE_DEPENDENCY_SESSION_STORE
public static final java.lang.String PROPERTY_USE_DEPENDENCY_SESSION_STORE
Property name specifying whether to use an externalHttpSessionStore. Value oftrueindicates to link as dependency. A defaultHttpSessionStoreis used otherwise.- See Also:
- Constant Field Values
-
PROPERTY_MAX_IDLE_TIME
public static final java.lang.String PROPERTY_MAX_IDLE_TIME
Property name to obtain the default maximum idle times forHttpSessioninstances.- See Also:
- Constant Field Values
-
DEFAULT_SESSION_ID_COOKIE_NAME
public static final java.lang.String DEFAULT_SESSION_ID_COOKIE_NAME
Keep default consistent with JEE to aid in special processing of session identifiers by such things as search engines.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadSpecification
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load specifications.- Specified by:
loadSpecificationin classAbstractAsyncManagedObjectSource<Indexed,Indexed>- Parameters:
context- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<Indexed,Indexed> context) throws java.lang.Exception
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractAsyncManagedObjectSource<Indexed,Indexed>- Parameters:
context- Meta-data.- Throws:
java.lang.Exception- If fails to load the meta-data.
-
getManagedObject
protected ManagedObject getManagedObject() throws java.lang.Throwable
Description copied from class:AbstractManagedObjectSourceSynchronously obtains theManagedObject.- Specified by:
getManagedObjectin classAbstractManagedObjectSource<Indexed,Indexed>- Returns:
ManagedObject.- Throws:
java.lang.Throwable- If fails to obtain theManagedObject.
-
-