| org.apache.beehive.netui.pageflow.handler.StorageHandler
All known Subclasses: org.apache.beehive.netui.pageflow.internal.SimpleSessionStorageHandler, org.apache.beehive.netui.pageflow.internal.DeferredSessionStorageHandler,
StorageHandler | public interface StorageHandler extends Handler(Code) | | Handler for storing Page Flow objects.
|
allowBindingEvent | public boolean allowBindingEvent(Object event)(Code) | | Tell whether a given binding event should be allowed to occur. This is mainly useful in cases when this
handler writes data to some underlying storage (like the HttpSession ) at some time other than
when
StorageHandler.setAttribute is called, in which case a binding event would be misleading. Only
org.apache.beehive.netui.pageflow.PageFlowManagedObject s pay attention to this.
Parameters: event - the binding event, e.g., javax.servlet.http.HttpSessionBindingEvent true if the event should be processed. |
applyChanges | public void applyChanges(RequestContext context)(Code) | | Apply any deferred changes, at the end of a chain of requests.
Parameters: context - the current request context. |
dropChanges | public void dropChanges(RequestContext context)(Code) | | Drop any deferred changes, so they will not be applied at the end of the chain of requests.
Parameters: context - the current request context. |
ensureFailover | public void ensureFailover(RequestContext context, String attributeName, Object value)(Code) | | Ensure that the given named attribute is replicated in a cluster for session failover, if appropriate.
Parameters: context - the current request context. Parameters: attributeName - the name of the attribute for which failover should be ensured. Parameters: value - the value of the attribute for which failover should be ensured. |
getAttribute | public Object getAttribute(RequestContext context, String attributeName)(Code) | | Get a named attribute.
Parameters: context - the current RequestContext. Parameters: attributeName - the name of the attribute to get. the attribute, or null if there is no such named attribute. |
getAttributeNames | public Enumeration getAttributeNames(RequestContext context)(Code) | | Get all attribute names.
Parameters: context - the current request context. an Enumeration over all the attribute names; |
removeAttribute | public void removeAttribute(RequestContext context, String attributeName)(Code) | | Remove a named attribute.
Parameters: context - the current RequestContext. Parameters: attributeName - the name of the attribute to remove. |
setAttribute | public void setAttribute(RequestContext context, String attributeName, Object value)(Code) | | Set a named attribute.
Parameters: context - the current RequestContext. Parameters: attributeName - the name of the attribute to set. Parameters: value - the attribute value. |
|
|