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