Package net.officefloor.web.state
Interface HttpRequestState
-
public interface HttpRequestStateState for theHttpRequest.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.SerializablegetAttribute(java.lang.String name)Obtains theObjectthat is bound to the name.java.util.Iterator<java.lang.String>getAttributeNames()Obtains anIteratorto the names of the boundObjectinstances.voidloadValues(ValueLoader valueLoader)Loads values from theHttpRequest.voidremoveAttribute(java.lang.String name)Removes the boundObjectby the name.voidsetAttribute(java.lang.String name, java.io.Serializable object)Binds theObjectto the name.
-
-
-
Method Detail
-
loadValues
void loadValues(ValueLoader valueLoader) throws HttpException
Loads values from theHttpRequest.- Parameters:
valueLoader-ValueLoaderto receive the values.- Throws:
HttpException- if fails to load values.
-
getAttribute
java.io.Serializable getAttribute(java.lang.String name)
Obtains theObjectthat is bound to the name.- Parameters:
name- Name.- Returns:
Objectbound to the name ornullif noObjectbound by the name.
-
getAttributeNames
java.util.Iterator<java.lang.String> getAttributeNames()
Obtains anIteratorto the names of the boundObjectinstances.- Returns:
Iteratorto the names of the boundObjectinstances.
-
setAttribute
void setAttribute(java.lang.String name, java.io.Serializable object)Binds theObjectto the name.- Parameters:
name- Name.object-Object. Must beSerializableas thisHttpRequestStatemay be stored in theHttpSessionto maintain its state across a redirect.
-
removeAttribute
void removeAttribute(java.lang.String name)
Removes the boundObjectby the name.- Parameters:
name- Name of boundObjectto remove.
-
-