    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.

##

ATTR_COOKIE_MAXAGE
  Attribute index - The duration of the cookie.
NAME

##

CookieFilter()

##

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

##

NAME

     public static final String NAME

ATTR_COOKIE_MAXAGE

     protected static int ATTR_COOKIE_MAXAGE

  Attribute index - The duration of the cookie.

##

CookieFilter

     public CookieFilter()

##

getCookieMaxAge

     public int getCookieMaxAge()

  Get the cookie's allowed max age.

  Returns:
    The max allowed age in seconds.

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

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