KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > projector > Store


1 package org.apache.slide.projector;
2
3 import java.io.IOException JavaDoc;
4
5 public interface Store {
6     public final static int NONE = -1;
7     public final static int REQUEST_PARAMETER = 0; // Reqeust parameter (can only be of type String or String[])
8
public final static int REQUEST_ATTRIBUTE = 1; // Request attribute
9
public final static int REQUEST_HEADER = 2;
10     public final static int SESSION = 3;
11     public final static int COOKIE = 4;
12     public final static int CONTEXT = 5;
13     public final static int CACHE = 6;
14     public final static int REPOSITORY = 7;
15     public final static int INPUT = 8;
16     public final static int OUTPUT = 9;
17     public final static int TRANSIENT_PROCESS = 10; // Transient information bound to the instance of the current process
18
public final static int PERSISTENT_PROCESS = 11; // Persistent information bound to the instance of the current process
19
public final static int FORM = 12;
20     public final static int STEP = 13;
21
22     public final static String JavaDoc[] stores = { "request-parameter", "request-attribute", "request-header", "session", "cookie", "context", "cache", "repository", "input", "output", "process", "persistent-process", "form", "step" };
23
24     void put(String JavaDoc key, Object JavaDoc value, long timeout) throws IOException JavaDoc;
25
26     void put(String JavaDoc key, Object JavaDoc value) throws IOException JavaDoc;
27
28     Object JavaDoc get(String JavaDoc key) throws IOException JavaDoc;
29
30     void dispose(String JavaDoc key) throws IOException JavaDoc;
31 }
Popular Tags