1 15 package org.apache.tapestry; 16 17 import org.apache.hivemind.ApplicationRuntimeException; 18 import org.apache.tapestry.engine.IEngineService; 19 import org.apache.tapestry.engine.IMonitor; 20 import org.apache.tapestry.request.RequestContext; 21 import org.apache.tapestry.services.Infrastructure; 22 23 56 57 public interface IRequestCycle 58 { 59 63 64 public void cleanup(); 65 66 71 72 public String encodeURL(String URL); 73 74 77 78 public IEngine getEngine(); 79 80 85 86 public Object getAttribute(String name); 87 88 public IMonitor getMonitor(); 89 90 94 95 public String getNextActionId(); 96 97 100 101 public IPage getPage(); 102 103 112 113 public IPage getPage(String name); 114 115 119 120 public boolean isRewinding(); 121 122 129 130 public boolean isRewound(IComponent component) throws StaleLinkException; 131 132 135 136 public void removeAttribute(String name); 137 138 143 144 public void renderPage(IMarkupWriter writer); 145 146 153 154 public void rewindPage(String targetActionId, IComponent targetComponent); 155 156 167 168 public void setAttribute(String name, Object value); 169 170 177 178 public void commitPageChanges(); 179 180 185 186 public IEngineService getService(); 187 188 196 197 public void rewindForm(IForm form); 198 199 208 209 public void discardPage(String name); 210 211 222 223 public void setServiceParameters(Object [] parameters); 224 225 233 public void setListenerParameters(Object [] parameters); 234 235 243 244 public Object [] getServiceParameters(); 245 246 251 252 public Object [] getListenerParameters(); 253 254 260 261 public void activate(String name); 262 263 281 public void activate(IPage page); 282 283 289 public String getParameter(String name); 290 291 297 public String [] getParameters(String name); 298 299 306 307 public String getAbsoluteURL(String partialURL); 308 309 316 317 public void forgetPage(String name); 318 319 325 326 public Infrastructure getInfrastructure(); 327 328 333 334 public RequestContext getRequestContext(); 335 336 344 345 public String getUniqueId(String baseId); 346 } | Popular Tags |