static { Attribute a = null; Class c = null; try { c = Class.forName("org.w3c.jigsaw.frames.RelocateFrame"); } catch (Exception ex) { ex.printStackTrace(); System.exit(1); } // The location attribute a = new StringAttribute("location", null, Attribute.EDITABLE | Attribute.MANDATORY); ATTR_LOCATION = AttributeRegistry.registerAttribute(c, a); // The handle path info attribute a = new BooleanAttribute("handle-pathinfo", Boolean.TRUE, Attribute.EDITABLE); ATTR_HANDLE_PATHINFO = AttributeRegistry.registerAttribute(c, a); // the permanent redirection attribute a = new BooleanAttribute("permanent-redirect", Boolean.FALSE, Attribute.EDITABLE); ATTR_PERMANENT_REDIRECT = AttributeRegistry.registerAttribute(c, a); // should we use the ambiguous 302 response code? a = new BooleanAttribute("use-usual-response", Boolean.TRUE, Attribute.EDITABLE); ATTR_USE_302 = AttributeRegistry.registerAttribute(c, a); // The affected methods a = new StringArrayAttribute("methods", null, Attribute.EDITABLE); ATTR_METHODS = AttributeRegistry.registerAttribute(c, a); }
static { Attribute a = null; Class cls = null; try { cls = Class.forName("org.w3c.jigsaw.filters.HourLimiterFilter"); } catch (Exception ex) { ex.printStackTrace(); System.exit(1); } // Declare the day_repeat attribute a = new BooleanAttribute("day_repeat", Boolean.FALSE, Attribute.EDITABLE); ATTR_DAY_REPEAT = AttributeRegistry.registerAttribute(cls, a); // Declare the week_repeat attribute a = new BooleanAttribute("week_repeat", Boolean.FALSE, Attribute.EDITABLE); ATTR_WEEK_REPEAT = AttributeRegistry.registerAttribute(cls, a); // Declare the day_repeat attribute a = new BooleanAttribute("month_repeat", Boolean.FALSE, Attribute.EDITABLE); ATTR_MONTH_REPEAT = AttributeRegistry.registerAttribute(cls, a); // Declare the week_repeat attribute a = new BooleanAttribute("year_repeat", Boolean.FALSE, Attribute.EDITABLE); ATTR_YEAR_REPEAT = AttributeRegistry.registerAttribute(cls, a); // Declare the start date a = new DateAttribute("start", null, Attribute.EDITABLE); ATTR_DATE_START = AttributeRegistry.registerAttribute(cls, a); // Declare the end date a = new DateAttribute("end", null, Attribute.EDITABLE); ATTR_DATE_END = AttributeRegistry.registerAttribute(cls, a); }
static { Attribute a = null; Class cls = null; try { cls = Class.forName("org.w3c.jigsaw.tutorials.FancyFrame"); } catch (Exception ex) { ex.printStackTrace(); System.exit(1); } // The message attribute a = new StringAttribute("message", "Hello", Attribute.EDITABLE); ATTR_MESSAGE = AttributeRegistry.registerAttribute(cls, a); }