KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > vfs > webdav > DAVSession


1 /*
2  */

3 package com.sslexplorer.vfs.webdav;
4
5 import java.util.HashMap JavaDoc;
6
7 public class DAVSession {
8   private HashMap JavaDoc attributes;
9   private String JavaDoc id;
10   
11   public static final String JavaDoc ATTR_AUTH_PAIRS = "authPairs";
12   public static final String JavaDoc ATTR_RESOURCE_PATH = "resourcePath";
13   public static final String JavaDoc ATTR_USER = "user";
14   public static final String JavaDoc ATTR_REQUEST_METHOD = "requestMethod";
15   public static final String JavaDoc ATTR_NODE_CACHE = "nodeCache";
16   public static final String JavaDoc ATTR_PROFILE = "profile";
17   public static final String JavaDoc ATTR_EXTRACT = "extract";
18   public static final String JavaDoc ATTR_ACCEPT_TYPES = "acceptTypes";
19   
20   public DAVSession(String JavaDoc id) {
21     this.id = id;
22     attributes = new HashMap JavaDoc();
23   }
24   
25   public String JavaDoc getId() {
26     return id;
27   }
28   
29   public Object JavaDoc getAttribute(String JavaDoc name) {
30     return attributes.get(name);
31   }
32   
33   public void setAttribute(String JavaDoc name, Object JavaDoc value) {
34     attributes.put(name, value);
35   }
36   
37   public void removeAttribute(String JavaDoc name) {
38     attributes.remove(name);
39   }
40 }
41
Popular Tags