Class CookiePolicy
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- org.primefaces.extensions.component.cookiepolicy.CookiePolicy
-
- All Implemented Interfaces:
java.util.EventListener,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder
public class CookiePolicy extends javax.faces.component.UIComponentBaseCookiePolicycomponent.- Since:
- 11.0.3
- Author:
- Melloware mellowaredev@gmail.com / Frank Cornelis
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMPONENT_FAMILYstatic java.lang.StringCOMPONENT_TYPEstatic java.lang.StringCOOKIE_POLICY_COOKIE_NAMEstatic java.lang.StringCOOKIE_POLICY_REQUEST_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description CookiePolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFamily()static booleanhasCookiePolicy(java.lang.String cookiePolicy)Checks whether the given cookie policy has been accepted.booleanhasCookiePolicyCookie(javax.faces.context.FacesContext context)-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
-
-
-
-
Field Detail
-
COOKIE_POLICY_COOKIE_NAME
public static final java.lang.String COOKIE_POLICY_COOKIE_NAME
- See Also:
- Constant Field Values
-
COOKIE_POLICY_REQUEST_ATTRIBUTE
public static final java.lang.String COOKIE_POLICY_REQUEST_ATTRIBUTE
-
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
- See Also:
- Constant Field Values
-
COMPONENT_FAMILY
public static final java.lang.String COMPONENT_FAMILY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFamily
public java.lang.String getFamily()
- Specified by:
getFamilyin classjavax.faces.component.UIComponent
-
hasCookiePolicyCookie
public boolean hasCookiePolicyCookie(javax.faces.context.FacesContext context)
-
hasCookiePolicy
public static boolean hasCookiePolicy(java.lang.String cookiePolicy)
Checks whether the given cookie policy has been accepted.- Parameters:
cookiePolicy- the cookie policy to be verified.- Returns:
trueif the cookie policy has been accepted, otherwisefalse.
-
-