All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.filters.CookieFilter

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.ResourceFrame
                                   |
                                   +----org.w3c.tools.resources.ResourceFilter
                                           |
                                           +----org.w3c.jigsaw.filters.CookieFilter

public class CookieFilter
extends ResourceFilter
A demo for how to use cookies from Jigsaw.


Variable Index

 o ATTR_COOKIE_MAXAGE
Attribute index - The duration of the cookie.
 o NAME

Constructor Index

 o CookieFilter()

Method Index

 o getCookieMaxAge()
Get the cookie's allowed max age.
 o ingoingFilter(RequestInterface)
 o outgoingFilter(RequestInterface, ReplyInterface)

Variables

 o NAME
 public static final String NAME
 o ATTR_COOKIE_MAXAGE
 protected static int ATTR_COOKIE_MAXAGE
Attribute index - The duration of the cookie.

Constructors

 o CookieFilter
 public CookieFilter()

Methods

 o getCookieMaxAge
 public int getCookieMaxAge()
Get the cookie's allowed max age.

Returns:
The max allowed age in seconds.
 o ingoingFilter
 public ReplyInterface ingoingFilter(RequestInterface request) throws ProtocolException
Returns:
A Reply instance, if the filter did know how to answer the request without further processing, null otherwise.
Throws: ProtocolException
If processing should be interrupted, because an abnormal situation occured.
Overrides:
ingoingFilter in class ResourceFilter
 o outgoingFilter
 public ReplyInterface outgoingFilter(RequestInterface req,
                                      ReplyInterface rep) throws ProtocolException
Parameters:
request - The original request.
reply - It's original reply.
Returns:
A Reply instance, or null if processing should continue normally.
Throws: ProtocolException
If processing should be interrupted, because an abnormal situation occured.
Overrides:
outgoingFilter in class ResourceFilter

All Packages  Class Hierarchy  This Package  Previous  Next  Index