1 16 package org.directwebremoting; 17 18 import java.io.IOException ; 19 20 import javax.servlet.ServletException ; 21 import javax.servlet.http.HttpServletRequest ; 22 import javax.servlet.http.HttpServletResponse ; 23 import javax.servlet.http.HttpSession ; 24 25 29 public interface WebContext extends ServerContext 30 { 31 36 ScriptSession getScriptSession(); 37 38 43 String getCurrentPage(); 44 45 51 HttpSession getSession(); 52 53 62 HttpSession getSession(boolean create); 63 64 68 HttpServletRequest getHttpServletRequest(); 69 70 76 HttpServletResponse getHttpServletResponse(); 77 78 82 public static final String ATTRIBUTE_DWR = "org.directwebremoting"; 83 84 98 String forwardToString(String url) throws ServletException , IOException ; 99 100 106 void setCurrentPageInformation(String page, String scriptSessionId); 107 } 108 | Popular Tags |