Package net.officefloor.web.state
Class HttpRequestObjectManagedObjectSource
- java.lang.Object
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None>
-
- net.officefloor.web.state.HttpRequestObjectManagedObjectSource
-
- All Implemented Interfaces:
ManagedObjectSource<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None>
@PrivateSource public class HttpRequestObjectManagedObjectSource extends AbstractManagedObjectSource<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None>
- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies
Dependency keys.class
HttpRequestObjectManagedObjectSource.HttpRequestObjectManagedObject
ManagedObject
to retrieve the object from theHttpRequestState
.-
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.String
PROPERTY_BIND_NAME
Name of property containing the name to bind the object within theHttpRequestState
.static java.lang.String
PROPERTY_CASE_INSENSITIVE
Property to obtain whether theValueLoader
is case insensitive in matching parameter names.static java.lang.String
PROPERTY_CLASS_NAME
Name of property containing the class name.static java.lang.String
PROPERTY_IS_LOAD_HTTP_PARAMETERS
Name of property flagging whether to load theHttpRequestState
values to a new object.static java.lang.String
PROPERTY_PREFIX_ALIAS
Property prefix for the aliases.
-
Constructor Summary
Constructors Constructor Description HttpRequestObjectManagedObjectSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ManagedObject
getManagedObject()
Synchronously obtains theManagedObject
.protected void
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None> context)
Overridden to load meta-data.protected void
loadSpecification(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_CLASS_NAME
public static final java.lang.String PROPERTY_CLASS_NAME
Name of property containing the class name.- See Also:
- Constant Field Values
-
PROPERTY_BIND_NAME
public static final java.lang.String PROPERTY_BIND_NAME
Name of property containing the name to bind the object within theHttpRequestState
.- See Also:
- Constant Field Values
-
PROPERTY_IS_LOAD_HTTP_PARAMETERS
public static final java.lang.String PROPERTY_IS_LOAD_HTTP_PARAMETERS
Name of property flagging whether to load theHttpRequestState
values to a new object.- See Also:
- Constant Field Values
-
PROPERTY_CASE_INSENSITIVE
public static final java.lang.String PROPERTY_CASE_INSENSITIVE
Property to obtain whether theValueLoader
is case insensitive in matching parameter names.- See Also:
- Constant Field Values
-
PROPERTY_PREFIX_ALIAS
public static final java.lang.String PROPERTY_PREFIX_ALIAS
Property prefix for the aliases.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadSpecification
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load specifications.- Specified by:
loadSpecification
in classAbstractAsyncManagedObjectSource<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None>
- Parameters:
context
- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None> context) throws java.lang.Exception
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load meta-data.- Specified by:
loadMetaData
in classAbstractAsyncManagedObjectSource<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None>
- Parameters:
context
- Meta-data.- Throws:
java.lang.Exception
- If fails to load the meta-data.
-
getManagedObject
protected ManagedObject getManagedObject()
Description copied from class:AbstractManagedObjectSource
Synchronously obtains theManagedObject
.- Specified by:
getManagedObject
in classAbstractManagedObjectSource<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None>
- Returns:
ManagedObject
.
-
-