All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.filters.HourLimiterFilter

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.HourLimiterFilter

public class HourLimiterFilter
extends ResourceFilter

Variable Index

 o ATTR_DATE_END
end date
 o ATTR_DATE_START
start date
 o ATTR_DAY_REPEAT
Repeat every day?
 o ATTR_MONTH_REPEAT
Repeat every month?
 o ATTR_WEEK_REPEAT
Repeat every week?
 o ATTR_YEAR_REPEAT
Repeat every year?

Constructor Index

 o HourLimiterFilter()

Method Index

 o getDayRepeat()
 o getMonthRepeat()
 o getWeekRepeat()
 o getYearRepeat()
 o ingoingFilter(RequestInterface)
We check that the date is in the right values otherwise, send a NOT_AVAILABLE and fills the right Retry-After header
 o initialize(Object[])
Initialize the filter.
 o setValue(int, Object)
We override setValues to compute locally everything we need

Variables

 o ATTR_DAY_REPEAT
 public static int ATTR_DAY_REPEAT
Repeat every day?

 o ATTR_WEEK_REPEAT
 public static int ATTR_WEEK_REPEAT
Repeat every week?

 o ATTR_MONTH_REPEAT
 public static int ATTR_MONTH_REPEAT
Repeat every month?

 o ATTR_YEAR_REPEAT
 public static int ATTR_YEAR_REPEAT
Repeat every year?

 o ATTR_DATE_START
 public static int ATTR_DATE_START
start date

 o ATTR_DATE_END
 public static int ATTR_DATE_END
end date

Constructors

 o HourLimiterFilter
 public HourLimiterFilter()

Methods

 o getDayRepeat
 protected boolean getDayRepeat()
 o getWeekRepeat
 protected boolean getWeekRepeat()
 o getMonthRepeat
 protected boolean getMonthRepeat()
 o getYearRepeat
 protected boolean getYearRepeat()
 o setValue
 public void setValue(int idx,
                      Object value)
We override setValues to compute locally everything we need

Parameters:
idx - The index of the attribute to modify.
value - The new attribute value.
Overrides:
setValue in class ResourceFrame
 o initialize
 public void initialize(Object values[])
Initialize the filter.

Overrides:
initialize in class FramedResource
 o ingoingFilter
 public synchronized ReplyInterface ingoingFilter(RequestInterface req)
We check that the date is in the right values otherwise, send a NOT_AVAILABLE and fills the right Retry-After header

Returns:
a Reply if blocked, null otherwise
Overrides:
ingoingFilter in class ResourceFilter

All Packages  Class Hierarchy  This Package  Previous  Next  Index