org.apache.myfaces.extensions.cdi.jsf2.impl.scope.conversation
Class JsfRestParameters
java.lang.Object
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.RestParameters
org.apache.myfaces.extensions.cdi.jsf2.impl.scope.conversation.JsfRestParameters
- All Implemented Interfaces:
- Serializable
@RequestScoped
public class JsfRestParameters
- extends RestParameters
- implements Serializable
This class holds information about the last used RestParameters for a given JSF view.
It will expire the conversation when the View get accessed via GET with
a different set of <f:viewParam>s.
- See Also:
- Serialized Form
Method Summary |
String |
getRestId()
Check the view parameters of the given viewId. |
boolean |
isPostback()
This flag will be used to remember a storage request; |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsfRestParameters
public JsfRestParameters()
isPostback
public boolean isPostback()
- This flag will be used to remember a storage request;
- Specified by:
isPostback
in class RestParameters
- Returns:
true
if the current request is a POST request.
getRestId
public String getRestId()
- Check the view parameters of the given viewId.
The restId must also contain the viewId itself!
The restId must be different if either the view or
any of it's parameters get changed.
- Specified by:
getRestId
in class RestParameters
- Returns:
- a key which uniquely identifies the view and all it's GET parameters
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.