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>
ManagedObjectSource for a HttpSession.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends Enum<O>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKeep default consistent with JEE to aid in special processing of session identifiers by such things as search engines.static final StringProperty name to obtain the default maximum idle times forHttpSessioninstances.static final StringProperty name to obtain theHttpCookiename of the Session Id.static final StringProperty name specifying whether to use an externalHttpSessionIdGenerator.static final StringProperty name specifying whether to use an externalHttpSessionStore. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ManagedObjectSynchronously obtains theManagedObject.protected voidOverridden to load meta-data.protected voidOverridden to load specifications.Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObjectMethods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, start, stop
-
Field Details
-
PROPERTY_SESSION_ID_COOKIE_NAME
Property name to obtain theHttpCookiename of the Session Id.- See Also:
-
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:
-
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:
-
PROPERTY_MAX_IDLE_TIME
Property name to obtain the default maximum idle times forHttpSessioninstances.- See Also:
-
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:
-
-
Constructor Details
-
HttpSessionManagedObjectSource
public HttpSessionManagedObjectSource()
-
-
Method Details
-
loadSpecification
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 ExceptionDescription copied from class:AbstractAsyncManagedObjectSourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractAsyncManagedObjectSource<Indexed,Indexed> - Parameters:
context- Meta-data.- Throws:
Exception- If fails to load the meta-data.
-
getManagedObject
Description copied from class:AbstractManagedObjectSourceSynchronously obtains theManagedObject.- Specified by:
getManagedObjectin classAbstractManagedObjectSource<Indexed,Indexed> - Returns:
ManagedObject.- Throws:
Throwable- If fails to obtain theManagedObject.
-