1 29 30 package nextapp.echo2.webcontainer; 31 32 import java.security.Principal ; 33 import java.util.Map ; 34 35 import javax.servlet.http.Cookie ; 36 import javax.servlet.http.HttpSession ; 37 38 import nextapp.echo2.app.TaskQueueHandle; 39 import nextapp.echo2.webrender.ClientConfiguration; 40 import nextapp.echo2.webrender.ClientProperties; 41 import nextapp.echo2.webrender.ServerDelayMessage; 42 import nextapp.echo2.webrender.Service; 43 44 53 public interface ContainerContext { 54 55 61 public static final String CONTEXT_PROPERTY_NAME = ContainerContext.class.getName(); 62 63 69 public ClientProperties getClientProperties(); 70 71 76 public Cookie [] getCookies(); 77 78 84 public Map getInitialRequestParameterMap(); 85 86 92 public String getServiceUri(Service service); 93 94 99 public String getServletUri(); 100 101 107 public HttpSession getSession(); 108 109 114 public Principal getUserPrincipal(); 115 116 120 public boolean isUserInRole(String role); 121 122 128 public void setClientConfiguration(ClientConfiguration clientConfiguration); 129 130 136 public void setServerDelayMessage(ServerDelayMessage serverDelayMessage); 137 138 148 public void setTaskQueueCallbackInterval(TaskQueueHandle taskQueue, int ms); 149 } 150 | Popular Tags |