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 ClassesModifier and TypeClassDescriptionstatic enumDependency keys.classManagedObjectto retrieve the object from theHttpRequestState.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 StringName of property containing the name to bind the object within theHttpRequestState.static final StringProperty to obtain whether theValueLoaderis case insensitive in matching parameter names.static final StringName of property containing the class name.static final StringName of property flagging whether to load theHttpRequestStatevalues to a new object.static final StringProperty prefix for the aliases. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ManagedObjectSynchronously obtains theManagedObject.protected voidloadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies, None> context) Overridden 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_CLASS_NAME
Name of property containing the class name.- See Also:
-
PROPERTY_BIND_NAME
Name of property containing the name to bind the object within theHttpRequestState.- See Also:
-
PROPERTY_IS_LOAD_HTTP_PARAMETERS
Name of property flagging whether to load theHttpRequestStatevalues to a new object.- See Also:
-
PROPERTY_CASE_INSENSITIVE
Property to obtain whether theValueLoaderis case insensitive in matching parameter names.- See Also:
-
PROPERTY_PREFIX_ALIAS
Property prefix for the aliases.- See Also:
-
-
Constructor Details
-
HttpRequestObjectManagedObjectSource
public HttpRequestObjectManagedObjectSource()
-
-
Method Details
-
loadSpecification
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load specifications.- Specified by:
loadSpecificationin classAbstractAsyncManagedObjectSource<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None> - Parameters:
context- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies, None> context) throws ExceptionDescription copied from class:AbstractAsyncManagedObjectSourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractAsyncManagedObjectSource<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None> - 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<HttpRequestObjectManagedObjectSource.HttpRequestObjectDependencies,None> - Returns:
ManagedObject.
-