|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.servlet.web.http.application.ServletHttpRequestStateManagedObjectSource.ServletHttpRequestStateManagedObject
public static class ServletHttpRequestStateManagedObjectSource.ServletHttpRequestStateManagedObject
ManagedObject for the ServletBridge.
| Constructor Summary | |
|---|---|
ServletHttpRequestStateManagedObjectSource.ServletHttpRequestStateManagedObject()
|
|
| Method Summary | |
|---|---|
Serializable |
exportState()
Exports a momento for the current state of this HttpRequestState. |
Serializable |
getAttribute(String name)
Obtains the Object that is bound to the name. |
Iterator<String> |
getAttributeNames()
Obtains an Iterator to the names of the bound Object
instances. |
Object |
getObject()
Obtains the object being managed. |
void |
importState(Serializable momento)
Imports the state from the momento. |
void |
loadObjects(ObjectRegistry<ServletHttpRequestStateManagedObjectSource.Dependencies> registry)
Loads the Objects of the ManagedObject instances to be referenced
by this CoordinatingManagedObject. |
void |
removeAttribute(String name)
Removes the bound Object by the name. |
void |
setAttribute(String name,
Serializable object)
Binds the Object to the name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletHttpRequestStateManagedObjectSource.ServletHttpRequestStateManagedObject()
| Method Detail |
|---|
public void loadObjects(ObjectRegistry<ServletHttpRequestStateManagedObjectSource.Dependencies> registry)
throws Throwable
CoordinatingManagedObject
Loads the Objects of the ManagedObject instances to be referenced
by this CoordinatingManagedObject.
References to the loaded Objects must be released on recycling the
ManagedObject.
loadObjects in interface CoordinatingManagedObject<ServletHttpRequestStateManagedObjectSource.Dependencies>registry - Registry of the Objects for the ManagedObject
instances.
Throwable - Should this CoordinatingManagedObject fail to load
the ManagedObject.
public Object getObject()
throws Throwable
ManagedObject
getObject in interface ManagedObjectThrowable - Indicating failed to obtain the object for use.public Serializable getAttribute(String name)
HttpRequestStateObject that is bound to the name.
getAttribute in interface HttpRequestStatename - Name.
Object bound to the name or null if no
Object bound by the name.public Iterator<String> getAttributeNames()
HttpRequestStateIterator to the names of the bound Object
instances.
getAttributeNames in interface HttpRequestStateIterator to the names of the bound Object
instances.
public void setAttribute(String name,
Serializable object)
HttpRequestStateObject to the name.
setAttribute in interface HttpRequestStatename - Name.object - Object. Must be Serializable as this
HttpRequestState may be stored in the
HttpSession to maintain its state across a redirect.public void removeAttribute(String name)
HttpRequestStateObject by the name.
removeAttribute in interface HttpRequestStatename - Name of bound Object to remove.
public Serializable exportState()
throws IOException
HttpRequestStateHttpRequestState.
exportState in interface HttpRequestStateHttpRequestState.
IOException - If fails to export state.
public void importState(Serializable momento)
throws IOException,
IllegalArgumentException
HttpRequestState
importState in interface HttpRequestStatemomento - Momento containing the state for the HttpRequestState.
IOException - If fails to import state.
IllegalArgumentException - If invalid momento.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||