org.inria.ns.reflex.modules.web
Class CookiesProperty

java.lang.Object
  extended by org.inria.ns.reflex.processor.PropertyResolver.Impl
      extended by org.inria.ns.reflex.modules.web.CookiesProperty
All Implemented Interfaces:
PropertyResolver

public class CookiesProperty
extends PropertyResolver.Impl
implements PropertyResolver

This resolver is used to retrieve the cookies of the current HTTP request thanks to the predefined property $web:cookies.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.PropertyResolver
PropertyResolver.Impl
 
Constructor Summary
CookiesProperty()
           
 
Method Summary
 Object getPropertyValue(DataSet dataSet, QName propertyName)
          Get the $web:cookies of the current HTTP request.
 
Methods inherited from class org.inria.ns.reflex.processor.PropertyResolver.Impl
removeProperty, setPropertyValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.inria.ns.reflex.processor.PropertyResolver
removeProperty, setPropertyValue
 

Constructor Detail

CookiesProperty

public CookiesProperty()
Method Detail

getPropertyValue

public Object getPropertyValue(DataSet dataSet,
                               QName propertyName)
                        throws RecoverableException
Get the $web:cookies of the current HTTP request. When accessed the first time, the property is created automatically.

Specified by:
getPropertyValue in interface PropertyResolver
Overrides:
getPropertyValue in class PropertyResolver.Impl
Parameters:
dataSet - The data set.
propertyName - web:cookies.
Returns:
A list of cookies.
Throws:
RecoverableException - When the property cause an error.