1 17 package com.openedit; 18 19 import java.io.OutputStream ; 20 import java.io.Writer ; 21 import java.util.Map ; 22 23 import javax.servlet.http.HttpServletRequest ; 24 import javax.servlet.http.HttpServletResponse ; 25 import javax.servlet.http.HttpSession ; 26 27 import com.openedit.page.Page; 28 import com.openedit.page.PageAction; 29 import com.openedit.page.PageStreamer; 30 import com.openedit.users.User; 31 32 35 public interface WebPageRequest 36 { 37 HttpServletRequest getRequest(); 38 39 HttpServletResponse getResponse(); 40 41 HttpSession getSession(); 42 43 48 void redirect( String inUrl ); 49 50 54 public void redirectPermanently( String inPath); 55 56 62 void forward( String inUrl )throws OpenEditException; 63 64 67 Object getPageValue( String inKey ); 68 69 String getPageProperty(String inKey ); 70 71 String getContentProperty(String inKey ); 72 73 void putPageValue( String inKey, Object inObject ); 74 75 84 void putProtectedPageValue(String inKey, Object inObject); 85 86 void removePageValue( String inKey ); 87 88 Map getPageMap(); 89 90 93 Object getSessionValue( String inKey ); 94 95 void putSessionValue( String inKey, Object inObject ); 96 97 void removeSessionValue( String inKey ); 98 99 String getRequestParameter( String inKey ); 100 101 String [] getRequestParameters( String inKey ); 102 103 void setRequestParameter( String inKey, String inValue ); 104 105 void setRequestParameter( String inKey, String [] inValue ); 106 107 111 Map getParameterMap(); 112 113 String getRequiredParameter( String inParameterName ) throws OpenEditException; 115 116 User getUser(); 117 118 121 void setUser(User inUser); 122 123 126 String getPath(); 127 128 132 Page getPage(); 133 137 String getPathUrl(); 138 139 OutputStream getOutputStream(); 140 141 Writer getWriter(); 142 143 PageStreamer getPageStreamer(); 144 145 void putPageStreamer( PageStreamer inStreamer ); 146 147 150 boolean hasRedirected(); 151 boolean hasForwarded(); 152 void setHasRedirected(boolean inB); 153 void setHasForwarded(boolean inB); 154 155 158 Page getContentPage(); 159 160 184 public boolean isEditable(); 185 186 public void setEditable(boolean inEdi); 187 188 public String [] getRequestActions(); 189 190 193 WebPageRequest copy(); 194 195 199 WebPageRequest copy(Page inPage); 200 201 204 void setPage(Page inPage); 205 206 WebPageRequest getParent(); 207 208 211 void setCurrentAction(PageAction inAction); 212 213 PageAction getCurrentAction(); 214 215 String getLocale(); 216 217 String getLanguage(); 218 219 String getUserName(); 220 221 } 222
| Popular Tags
|