1 /*
2 * Copyright (c) 2007 Creative Sphere Limited.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *
10 * Creative Sphere - initial API and implementation
11 *
12 */
13 package org.abstracthorizon.danube.http.cookie;
14
15 import org.abstracthorizon.pasulj.PasuljInfo;
16
17 /**
18 * Bean info for {@link Cookie} class
19 *
20 * @author Daniel Sendula
21 */
22 public class CookieBeanInfo extends PasuljInfo {
23
24 /**
25 * Constructor
26 */
27 public CookieBeanInfo() {
28 this(Cookie.class);
29 }
30
31 /**
32 * Constructor
33 * @param cls class
34 */
35 protected CookieBeanInfo(Class<?> cls) {
36 super(cls);
37 }
38
39 /**
40 * Init method
41 * @param cls class
42 */
43 public void init() {
44 addProperty("name", "Cookie name");
45 addProperty("value", "Cookie value");
46 addProperty("date", "Date cookie is going expire");
47 addProperty("domain", "Cookie domain");
48 addProperty("path", "domain");
49 addProperty("path", "Cookie path");
50 addProperty("secure", "Is cookie secure");
51 addProperty("", "");
52 }
53 }