1 16 17 package org.springframework.web.context.request; 18 19 32 public interface RequestAttributes { 33 34 37 int SCOPE_REQUEST = 0; 38 39 45 int SCOPE_SESSION = 1; 46 47 53 int SCOPE_GLOBAL_SESSION = 2; 54 55 56 62 Object getAttribute(String name, int scope); 63 64 71 void setAttribute(String name, Object value, int scope); 72 73 82 void removeAttribute(String name, int scope); 83 84 102 void registerDestructionCallback(String name, Runnable callback, int scope); 103 104 108 String getSessionId(); 109 110 115 Object getSessionMutex(); 116 117 } 118 | Popular Tags |