|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| package org.apache.tapestry.engine; |
|
16 |
| |
|
17 |
| import java.util.HashMap; |
|
18 |
| import java.util.Iterator; |
|
19 |
| import java.util.Map; |
|
20 |
| |
|
21 |
| import org.apache.commons.logging.Log; |
|
22 |
| import org.apache.commons.logging.LogFactory; |
|
23 |
| import org.apache.hivemind.ApplicationRuntimeException; |
|
24 |
| import org.apache.hivemind.ErrorLog; |
|
25 |
| import org.apache.hivemind.impl.ErrorLogImpl; |
|
26 |
| import org.apache.hivemind.util.Defense; |
|
27 |
| import org.apache.hivemind.util.ToStringBuilder; |
|
28 |
| import org.apache.tapestry.IComponent; |
|
29 |
| import org.apache.tapestry.IEngine; |
|
30 |
| import org.apache.tapestry.IForm; |
|
31 |
| import org.apache.tapestry.IMarkupWriter; |
|
32 |
| import org.apache.tapestry.IPage; |
|
33 |
| import org.apache.tapestry.IRequestCycle; |
|
34 |
| import org.apache.tapestry.RedirectException; |
|
35 |
| import org.apache.tapestry.RenderRewoundException; |
|
36 |
| import org.apache.tapestry.StaleLinkException; |
|
37 |
| import org.apache.tapestry.Tapestry; |
|
38 |
| import org.apache.tapestry.record.PageRecorderImpl; |
|
39 |
| import org.apache.tapestry.record.PropertyPersistenceStrategySource; |
|
40 |
| import org.apache.tapestry.request.RequestContext; |
|
41 |
| import org.apache.tapestry.services.AbsoluteURLBuilder; |
|
42 |
| import org.apache.tapestry.services.Infrastructure; |
|
43 |
| import org.apache.tapestry.util.IdAllocator; |
|
44 |
| import org.apache.tapestry.util.QueryParameterMap; |
|
45 |
| |
|
46 |
| |
|
47 |
| |
|
48 |
| |
|
49 |
| |
|
50 |
| |
|
51 |
| |
|
52 |
| |
|
53 |
| public class RequestCycle implements IRequestCycle |
|
54 |
| { |
|
55 |
| private static final Log LOG = LogFactory.getLog(RequestCycle.class); |
|
56 |
| |
|
57 |
| private IPage _page; |
|
58 |
| |
|
59 |
| private IEngine _engine; |
|
60 |
| |
|
61 |
| private String _serviceName; |
|
62 |
| |
|
63 |
| private IMonitor _monitor; |
|
64 |
| |
|
65 |
| |
|
66 |
| |
|
67 |
| private PropertyPersistenceStrategySource _strategySource; |
|
68 |
| |
|
69 |
| |
|
70 |
| |
|
71 |
| private IPageSource _pageSource; |
|
72 |
| |
|
73 |
| |
|
74 |
| |
|
75 |
| private Infrastructure _infrastructure; |
|
76 |
| |
|
77 |
| |
|
78 |
| |
|
79 |
| |
|
80 |
| |
|
81 |
| |
|
82 |
| |
|
83 |
| |
|
84 |
| private QueryParameterMap _parameters; |
|
85 |
| |
|
86 |
| |
|
87 |
| |
|
88 |
| private AbsoluteURLBuilder _absoluteURLBuilder; |
|
89 |
| |
|
90 |
| |
|
91 |
| |
|
92 |
| |
|
93 |
| |
|
94 |
| |
|
95 |
| private Map _loadedPages; |
|
96 |
| |
|
97 |
| |
|
98 |
| |
|
99 |
| |
|
100 |
| |
|
101 |
| |
|
102 |
| private Map _pageRecorders; |
|
103 |
| |
|
104 |
| private boolean _rewinding = false; |
|
105 |
| |
|
106 |
| private Map _attributes = new HashMap(); |
|
107 |
| |
|
108 |
| private int _actionId; |
|
109 |
| |
|
110 |
| private int _targetActionId; |
|
111 |
| |
|
112 |
| private IComponent _targetComponent; |
|
113 |
| |
|
114 |
| |
|
115 |
| |
|
116 |
| private Object[] _listenerParameters; |
|
117 |
| |
|
118 |
| |
|
119 |
| |
|
120 |
| private ErrorLog _log; |
|
121 |
| |
|
122 |
| private RequestContext _requestContext; |
|
123 |
| |
|
124 |
| |
|
125 |
| |
|
126 |
| private IdAllocator _idAllocator = new IdAllocator(); |
|
127 |
| |
|
128 |
| |
|
129 |
| |
|
130 |
| |
|
131 |
| |
|
132 |
| |
|
133 |
| |
|
134 |
| |
|
135 |
| |
|
136 |
| |
|
137 |
| |
|
138 |
| |
|
139 |
| |
|
140 |
| |
|
141 |
| |
|
142 |
| |
|
143 |
| |
|
144 |
| |
|
145 |
| |
|
146 |
375
| public RequestCycle(IEngine engine, QueryParameterMap parameters, String serviceName,
|
|
147 |
| IMonitor monitor, RequestCycleEnvironment environment, RequestContext context) |
|
148 |
| { |
|
149 |
| |
|
150 |
| |
|
151 |
375
| _engine = engine;
|
|
152 |
375
| _parameters = parameters;
|
|
153 |
375
| _serviceName = serviceName;
|
|
154 |
375
| _monitor = monitor;
|
|
155 |
| |
|
156 |
| |
|
157 |
| |
|
158 |
375
| _infrastructure = environment.getInfrastructure();
|
|
159 |
375
| _pageSource = _infrastructure.getPageSource();
|
|
160 |
375
| _strategySource = environment.getStrategySource();
|
|
161 |
375
| _absoluteURLBuilder = environment.getAbsoluteURLBuilder();
|
|
162 |
375
| _requestContext = context;
|
|
163 |
375
| _log = new ErrorLogImpl(environment.getErrorHandler(), LOG);
|
|
164 |
| |
|
165 |
| } |
|
166 |
| |
|
167 |
| |
|
168 |
| |
|
169 |
| |
|
170 |
| |
|
171 |
| |
|
172 |
6
| public RequestCycle()
|
|
173 |
| { |
|
174 |
| } |
|
175 |
| |
|
176 |
| |
|
177 |
| |
|
178 |
| |
|
179 |
| |
|
180 |
| |
|
181 |
369
| public void cleanup()
|
|
182 |
| { |
|
183 |
369
| if (_loadedPages == null)
|
|
184 |
3
| return;
|
|
185 |
| |
|
186 |
366
| Iterator i = _loadedPages.values().iterator();
|
|
187 |
| |
|
188 |
366
| while (i.hasNext())
|
|
189 |
| { |
|
190 |
525
| IPage page = (IPage) i.next();
|
|
191 |
| |
|
192 |
525
| _pageSource.releasePage(page);
|
|
193 |
| } |
|
194 |
| |
|
195 |
366
| _loadedPages = null;
|
|
196 |
366
| _pageRecorders = null;
|
|
197 |
| |
|
198 |
| } |
|
199 |
| |
|
200 |
372
| public IEngineService getService()
|
|
201 |
| { |
|
202 |
372
| return _infrastructure.getServiceMap().getService(_serviceName);
|
|
203 |
| } |
|
204 |
| |
|
205 |
558
| public String encodeURL(String URL)
|
|
206 |
| { |
|
207 |
558
| return _infrastructure.getResponse().encodeURL(URL);
|
|
208 |
| } |
|
209 |
| |
|
210 |
2121
| public IEngine getEngine()
|
|
211 |
| { |
|
212 |
2121
| return _engine;
|
|
213 |
| } |
|
214 |
| |
|
215 |
1932
| public Object getAttribute(String name)
|
|
216 |
| { |
|
217 |
1932
| return _attributes.get(name);
|
|
218 |
| } |
|
219 |
| |
|
220 |
372
| public IMonitor getMonitor()
|
|
221 |
| { |
|
222 |
372
| return _monitor;
|
|
223 |
| } |
|
224 |
| |
|
225 |
| |
|
226 |
222
| public String getNextActionId()
|
|
227 |
| { |
|
228 |
222
| return Integer.toHexString(++_actionId);
|
|
229 |
| } |
|
230 |
| |
|
231 |
933
| public IPage getPage()
|
|
232 |
| { |
|
233 |
933
| return _page;
|
|
234 |
| } |
|
235 |
| |
|
236 |
| |
|
237 |
| |
|
238 |
| |
|
239 |
| |
|
240 |
567
| public IPage getPage(String name)
|
|
241 |
| { |
|
242 |
567
| Defense.notNull(name, "name");
|
|
243 |
| |
|
244 |
567
| IPage result = null;
|
|
245 |
| |
|
246 |
567
| if (_loadedPages != null)
|
|
247 |
171
| result = (IPage) _loadedPages.get(name);
|
|
248 |
| |
|
249 |
567
| if (result == null)
|
|
250 |
| { |
|
251 |
555
| result = loadPage(name);
|
|
252 |
| |
|
253 |
525
| if (_loadedPages == null)
|
|
254 |
366
| _loadedPages = new HashMap();
|
|
255 |
| |
|
256 |
525
| _loadedPages.put(name, result);
|
|
257 |
| } |
|
258 |
| |
|
259 |
537
| return result;
|
|
260 |
| } |
|
261 |
| |
|
262 |
555
| private IPage loadPage(String name)
|
|
263 |
| { |
|
264 |
555
| try
|
|
265 |
| { |
|
266 |
555
| _monitor.pageLoadBegin(name);
|
|
267 |
| |
|
268 |
555
| IPage result = _pageSource.getPage(this, name, _monitor);
|
|
269 |
| |
|
270 |
| |
|
271 |
| |
|
272 |
| |
|
273 |
525
| IPageRecorder recorder = getPageRecorder(name);
|
|
274 |
| |
|
275 |
| |
|
276 |
| |
|
277 |
| |
|
278 |
| |
|
279 |
525
| recorder.rollback(result);
|
|
280 |
| |
|
281 |
| |
|
282 |
| |
|
283 |
| |
|
284 |
525
| result.setChangeObserver(recorder);
|
|
285 |
| |
|
286 |
525
| return result;
|
|
287 |
| } |
|
288 |
| finally |
|
289 |
| { |
|
290 |
555
| _monitor.pageLoadEnd(name);
|
|
291 |
| } |
|
292 |
| |
|
293 |
| } |
|
294 |
| |
|
295 |
| |
|
296 |
| |
|
297 |
| |
|
298 |
| |
|
299 |
| |
|
300 |
525
| protected IPageRecorder getPageRecorder(String name)
|
|
301 |
| { |
|
302 |
525
| if (_pageRecorders == null)
|
|
303 |
366
| _pageRecorders = new HashMap();
|
|
304 |
| |
|
305 |
525
| IPageRecorder result = (IPageRecorder) _pageRecorders.get(name);
|
|
306 |
| |
|
307 |
525
| if (result == null)
|
|
308 |
| { |
|
309 |
525
| result = new PageRecorderImpl(name, this, _strategySource, _log);
|
|
310 |
525
| _pageRecorders.put(name, result);
|
|
311 |
| } |
|
312 |
| |
|
313 |
525
| return result;
|
|
314 |
| } |
|
315 |
| |
|
316 |
6072
| public boolean isRewinding()
|
|
317 |
| { |
|
318 |
6072
| return _rewinding;
|
|
319 |
| } |
|
320 |
| |
|
321 |
222
| public boolean isRewound(IComponent component) throws StaleLinkException
|
|
322 |
| { |
|
323 |
| |
|
324 |
| |
|
325 |
222
| if (!_rewinding)
|
|
326 |
135
| return false;
|
|
327 |
| |
|
328 |
87
| if (_actionId != _targetActionId)
|
|
329 |
9
| return false;
|
|
330 |
| |
|
331 |
| |
|
332 |
| |
|
333 |
78
| if (component == _targetComponent)
|
|
334 |
78
| return true;
|
|
335 |
| |
|
336 |
| |
|
337 |
| |
|
338 |
0
| throw new StaleLinkException(component, Integer.toHexString(_targetActionId),
|
|
339 |
| _targetComponent.getExtendedId()); |
|
340 |
| } |
|
341 |
| |
|
342 |
798
| public void removeAttribute(String name)
|
|
343 |
| { |
|
344 |
798
| if (LOG.isDebugEnabled())
|
|
345 |
0
| LOG.debug("Removing attribute " + name);
|
|
346 |
| |
|
347 |
798
| _attributes.remove(name);
|
|
348 |
| } |
|
349 |
| |
|
350 |
| |
|
351 |
| |
|
352 |
| |
|
353 |
| |
|
354 |
| |
|
355 |
390
| public void renderPage(IMarkupWriter writer)
|
|
356 |
| { |
|
357 |
390
| String pageName = _page.getPageName();
|
|
358 |
390
| _monitor.pageRenderBegin(pageName);
|
|
359 |
| |
|
360 |
390
| _rewinding = false;
|
|
361 |
390
| _actionId = -1;
|
|
362 |
390
| _targetActionId = 0;
|
|
363 |
| |
|
364 |
390
| try
|
|
365 |
| { |
|
366 |
390
| _page.renderPage(writer, this);
|
|
367 |
| |
|
368 |
| } |
|
369 |
| catch (ApplicationRuntimeException ex) |
|
370 |
| { |
|
371 |
| |
|
372 |
| |
|
373 |
24
| throw ex;
|
|
374 |
| } |
|
375 |
| catch (Throwable ex) |
|
376 |
| { |
|
377 |
| |
|
378 |
| |
|
379 |
| |
|
380 |
0
| throw new ApplicationRuntimeException(ex.getMessage(), _page, null, ex);
|
|
381 |
| } |
|
382 |
| finally |
|
383 |
| { |
|
384 |
390
| reset();
|
|
385 |
| } |
|
386 |
| |
|
387 |
366
| _monitor.pageRenderEnd(pageName);
|
|
388 |
| |
|
389 |
| } |
|
390 |
| |
|
391 |
| |
|
392 |
| |
|
393 |
| |
|
394 |
| |
|
395 |
468
| private void reset()
|
|
396 |
| { |
|
397 |
468
| _actionId = 0;
|
|
398 |
468
| _targetActionId = 0;
|
|
399 |
468
| _attributes.clear();
|
|
400 |
468
| _idAllocator.clear();
|
|
401 |
| } |
|
402 |
| |
|
403 |
| |
|
404 |
| |
|
405 |
| |
|
406 |
| |
|
407 |
| |
|
408 |
| |
|
409 |
| |
|
410 |
| |
|
411 |
| |
|
412 |
| |
|
413 |
| |
|
414 |
| |
|
415 |
63
| public void rewindForm(IForm form)
|
|
416 |
| { |
|
417 |
63
| IPage page = form.getPage();
|
|
418 |
63
| String pageName = page.getPageName();
|
|
419 |
| |
|
420 |
63
| _rewinding = true;
|
|
421 |
| |
|
422 |
63
| _monitor.pageRewindBegin(pageName);
|
|
423 |
| |
|
424 |
| |
|
425 |
| |
|
426 |
| |
|
427 |
| |
|
428 |
| |
|
429 |
| |
|
430 |
63
| _targetActionId = 0;
|
|
431 |
63
| _actionId = -1;
|
|
432 |
| |
|
433 |
63
| _targetComponent = form;
|
|
434 |
| |
|
435 |
63
| try
|
|
436 |
| { |
|
437 |
63
| page.beginPageRender();
|
|
438 |
| |
|
439 |
63
| form.rewind(NullWriter.getSharedInstance(), this);
|
|
440 |
| |
|
441 |
| |
|
442 |
| |
|
443 |
| |
|
444 |
0
| throw new StaleLinkException(Tapestry.format("RequestCycle.form-rewind-failure", form
|
|
445 |
| .getExtendedId()), form); |
|
446 |
| } |
|
447 |
| catch (RenderRewoundException ex) |
|
448 |
| { |
|
449 |
| |
|
450 |
| } |
|
451 |
| catch (ApplicationRuntimeException ex) |
|
452 |
| { |
|
453 |
| |
|
454 |
6
| throw ex;
|
|
455 |
| } |
|
456 |
| catch (Throwable ex) |
|
457 |
| { |
|
458 |
| |
|
459 |
| |
|
460 |
| |
|
461 |
0
| throw new ApplicationRuntimeException(ex.getMessage(), page, null, ex);
|
|
462 |
| } |
|
463 |
| finally |
|
464 |
| { |
|
465 |
63
| page.endPageRender();
|
|
466 |
| |
|
467 |
63
| _monitor.pageRewindEnd(pageName);
|
|
468 |
| |
|
469 |
63
| reset();
|
|
470 |
63
| _rewinding = false;
|
|
471 |
| } |
|
472 |
| } |
|
473 |
| |
|
474 |
| |
|
475 |
| |
|
476 |
| |
|
477 |
| |
|
478 |
| |
|
479 |
| |
|
480 |
| |
|
481 |
| |
|
482 |
| |
|
483 |
| |
|
484 |
| |
|
485 |
| |
|
486 |
15
| public void rewindPage(String targetActionId, IComponent targetComponent)
|
|
487 |
| { |
|
488 |
15
| String pageName = _page.getPageName();
|
|
489 |
| |
|
490 |
15
| _rewinding = true;
|
|
491 |
| |
|
492 |
15
| _monitor.pageRewindBegin(pageName);
|
|
493 |
| |
|
494 |
15
| _actionId = -1;
|
|
495 |
| |
|
496 |
| |
|
497 |
| |
|
498 |
15
| _targetActionId = Integer.parseInt(targetActionId, 16);
|
|
499 |
15
| _targetComponent = targetComponent;
|
|
500 |
| |
|
501 |
15
| try
|
|
502 |
| { |
|
503 |
15
| _page.renderPage(NullWriter.getSharedInstance(), this);
|
|
504 |
| |
|
505 |
| |
|
506 |
| |
|
507 |
| |
|
508 |
0
| throw new StaleLinkException(_page, targetActionId, targetComponent.getExtendedId());
|
|
509 |
| } |
|
510 |
| catch (RenderRewoundException ex) |
|
511 |
| { |
|
512 |
| |
|
513 |
| } |
|
514 |
| catch (ApplicationRuntimeException ex) |
|
515 |
| { |
|
516 |
| |
|
517 |
0
| throw ex;
|
|
518 |
| } |
|
519 |
| catch (Throwable ex) |
|
520 |
| { |
|
521 |
| |
|
522 |
| |
|
523 |
| |
|
524 |
0
| throw new ApplicationRuntimeException(ex.getMessage(), _page, null, ex);
|
|
525 |
| } |
|
526 |
| finally |
|
527 |
| { |
|
528 |
15
| _monitor.pageRewindEnd(pageName);
|
|
529 |
| |
|
530 |
15
| _rewinding = false;
|
|
531 |
| |
|
532 |
15
| reset();
|
|
533 |
| } |
|
534 |
| |
|
535 |
| } |
|
536 |
| |
|
537 |
1059
| public void setAttribute(String name, Object value)
|
|
538 |
| { |
|
539 |
1059
| if (LOG.isDebugEnabled())
|
|
540 |
0
| LOG.debug("Set attribute " + name + " to " + value);
|
|
541 |
| |
|
542 |
1059
| _attributes.put(name, value);
|
|
543 |
| } |
|
544 |
| |
|
545 |
| |
|
546 |
| |
|
547 |
| |
|
548 |
| |
|
549 |
| |
|
550 |
390
| public void commitPageChanges()
|
|
551 |
| { |
|
552 |
390
| if (LOG.isDebugEnabled())
|
|
553 |
0
| LOG.debug("Committing page changes");
|
|
554 |
| |
|
555 |
390
| if (_pageRecorders == null || _pageRecorders.isEmpty())
|
|
556 |
0
| return;
|
|
557 |
| |
|
558 |
390
| Iterator i = _pageRecorders.values().iterator();
|
|
559 |
| |
|
560 |
390
| while (i.hasNext())
|
|
561 |
| { |
|
562 |
549
| IPageRecorder recorder = (IPageRecorder) i.next();
|
|
563 |
| |
|
564 |
549
| recorder.commit();
|
|
565 |
| } |
|
566 |
| } |
|
567 |
| |
|
568 |
| |
|
569 |
| |
|
570 |
| |
|
571 |
| |
|
572 |
| |
|
573 |
| |
|
574 |
3
| public void discardPage(String name)
|
|
575 |
| { |
|
576 |
3
| forgetPage(name);
|
|
577 |
| } |
|
578 |
| |
|
579 |
| |
|
580 |
| |
|
581 |
0
| public Object[] getServiceParameters()
|
|
582 |
| { |
|
583 |
0
| return getListenerParameters();
|
|
584 |
| } |
|
585 |
| |
|
586 |
| |
|
587 |
| |
|
588 |
0
| public void setServiceParameters(Object[] serviceParameters)
|
|
589 |
| { |
|
590 |
0
| setListenerParameters(serviceParameters);
|
|
591 |
| } |
|
592 |
| |
|
593 |
| |
|
594 |
135
| public Object[] getListenerParameters()
|
|
595 |
| { |
|
596 |
135
| return _listenerParameters;
|
|
597 |
| } |
|
598 |
| |
|
599 |
| |
|
600 |
132
| public void setListenerParameters(Object[] parameters)
|
|
601 |
| { |
|
602 |
132
| _listenerParameters = parameters;
|
|
603 |
| } |
|
604 |
| |
|
605 |
| |
|
606 |
| |
|
607 |
273
| public void activate(String name)
|
|
608 |
| { |
|
609 |
273
| IPage page = getPage(name);
|
|
610 |
| |
|
611 |
243
| activate(page);
|
|
612 |
| } |
|
613 |
| |
|
614 |
| |
|
615 |
| |
|
616 |
519
| public void activate(IPage page)
|
|
617 |
| { |
|
618 |
519
| Defense.notNull(page, "page");
|
|
619 |
| |
|
620 |
519
| if (LOG.isDebugEnabled())
|
|
621 |
0
| LOG.debug("Activating page " + page);
|
|
622 |
| |
|
623 |
519
| Tapestry.clearMethodInvocations();
|
|
624 |
| |
|
625 |
519
| page.validate(this);
|
|
626 |
| |
|
627 |
504
| Tapestry
|
|
628 |
| .checkMethodInvocation(Tapestry.ABSTRACTPAGE_VALIDATE_METHOD_ID, "validate()", page); |
|
629 |
| |
|
630 |
504
| _page = page;
|
|
631 |
| } |
|
632 |
| |
|
633 |
| |
|
634 |
1083
| public String getParameter(String name)
|
|
635 |
| { |
|
636 |
1083
| return _parameters.getParameterValue(name);
|
|
637 |
| } |
|
638 |
| |
|
639 |
| |
|
640 |
162
| public String[] getParameters(String name)
|
|
641 |
| { |
|
642 |
162
| return _parameters.getParameterValues(name);
|
|
643 |
| } |
|
644 |
| |
|
645 |
| |
|
646 |
| |
|
647 |
| |
|
648 |
0
| public String toString()
|
|
649 |
| { |
|
650 |
0
| ToStringBuilder b = new ToStringBuilder(this);
|
|
651 |
| |
|
652 |
0
| b.append("rewinding", _rewinding);
|
|
653 |
| |
|
654 |
0
| b.append("serviceName", _serviceName);
|
|
655 |
| |
|
656 |
0
| b.append("serviceParameters", _listenerParameters);
|
|
657 |
| |
|
658 |
0
| if (_loadedPages != null)
|
|
659 |
0
| b.append("loadedPages", _loadedPages.keySet());
|
|
660 |
| |
|
661 |
0
| b.append("attributes", _attributes);
|
|
662 |
0
| b.append("targetActionId", _targetActionId);
|
|
663 |
0
| b.append("targetComponent", _targetComponent);
|
|
664 |
| |
|
665 |
0
| return b.toString();
|
|
666 |
| } |
|
667 |
| |
|
668 |
| |
|
669 |
| |
|
670 |
318
| public String getAbsoluteURL(String partialURL)
|
|
671 |
| { |
|
672 |
318
| String contextPath = _infrastructure.getRequest().getContextPath();
|
|
673 |
| |
|
674 |
318
| return _absoluteURLBuilder.constructURL(contextPath + partialURL);
|
|
675 |
| } |
|
676 |
| |
|
677 |
| |
|
678 |
| |
|
679 |
6
| public void forgetPage(String pageName)
|
|
680 |
| { |
|
681 |
6
| Defense.notNull(pageName, "pageName");
|
|
682 |
| |
|
683 |
6
| _strategySource.discardAllStoredChanged(pageName);
|
|
684 |
| } |
|
685 |
| |
|
686 |
| |
|
687 |
| |
|
688 |
129
| public Infrastructure getInfrastructure()
|
|
689 |
| { |
|
690 |
129
| return _infrastructure;
|
|
691 |
| } |
|
692 |
| |
|
693 |
3
| public RequestContext getRequestContext()
|
|
694 |
| { |
|
695 |
3
| return _requestContext;
|
|
696 |
| } |
|
697 |
| |
|
698 |
| |
|
699 |
| |
|
700 |
147
| public String getUniqueId(String baseId)
|
|
701 |
| { |
|
702 |
147
| return _idAllocator.allocateId(baseId);
|
|
703 |
| } |
|
704 |
| |
|
705 |
| |
|
706 |
3
| public void sendRedirect(String URL)
|
|
707 |
| { |
|
708 |
3
| throw new RedirectException(URL);
|
|
709 |
| } |
|
710 |
| |
|
711 |
| } |