Package net.officefloor.web.state
Interface HttpRequestState
public interface HttpRequestState
State for the
HttpRequest.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Obtains theObjectthat is bound to the name.voidloadValues(ValueLoader valueLoader) Loads values from theHttpRequest.voidremoveAttribute(String name) Removes the boundObjectby the name.voidsetAttribute(String name, Serializable object) Binds theObjectto the name.
-
Method Details
-
loadValues
Loads values from theHttpRequest.- Parameters:
valueLoader-ValueLoaderto receive the values.- Throws:
HttpException- if fails to load values.
-
getAttribute
Obtains theObjectthat is bound to the name. -
getAttributeNames
-
setAttribute
Binds theObjectto the name.- Parameters:
name- Name.object-Object. Must beSerializableas thisHttpRequestStatemay be stored in theHttpSessionto maintain its state across a redirect.
-
removeAttribute
Removes the boundObjectby the name.- Parameters:
name- Name of boundObjectto remove.
-