Package net.officefloor.web.state
Interface HttpRequestState
-
public interface HttpRequestState
State for theHttpRequest
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.Serializable
getAttribute(java.lang.String name)
Obtains theObject
that is bound to the name.java.util.Iterator<java.lang.String>
getAttributeNames()
Obtains anIterator
to the names of the boundObject
instances.void
loadValues(ValueLoader valueLoader)
Loads values from theHttpRequest
.void
removeAttribute(java.lang.String name)
Removes the boundObject
by the name.void
setAttribute(java.lang.String name, java.io.Serializable object)
Binds theObject
to the name.
-
-
-
Method Detail
-
loadValues
void loadValues(ValueLoader valueLoader) throws HttpException
Loads values from theHttpRequest
.- Parameters:
valueLoader
-ValueLoader
to receive the values.- Throws:
HttpException
- if fails to load values.
-
getAttribute
java.io.Serializable getAttribute(java.lang.String name)
Obtains theObject
that is bound to the name.- Parameters:
name
- Name.- Returns:
Object
bound to the name ornull
if noObject
bound by the name.
-
getAttributeNames
java.util.Iterator<java.lang.String> getAttributeNames()
Obtains anIterator
to the names of the boundObject
instances.- Returns:
Iterator
to the names of the boundObject
instances.
-
setAttribute
void setAttribute(java.lang.String name, java.io.Serializable object)
Binds theObject
to the name.- Parameters:
name
- Name.object
-Object
. Must beSerializable
as thisHttpRequestState
may be stored in theHttpSession
to maintain its state across a redirect.
-
removeAttribute
void removeAttribute(java.lang.String name)
Removes the boundObject
by the name.- Parameters:
name
- Name of boundObject
to remove.
-
-