forked from lucee/Lucee
/
PageContext.java
executable file
·1169 lines (1006 loc) · 31.2 KB
/
PageContext.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Copyright (c) 2014, the Railo Company Ltd.
* Copyright (c) 2015, Lucee Assosication Switzerland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
package lucee.runtime;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.util.Locale;
import java.util.TimeZone;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.BodyTag;
import javax.servlet.jsp.tagext.Tag;
import lucee.commons.io.res.Resource;
import lucee.runtime.config.ConfigWeb;
import lucee.runtime.db.DataSource;
import lucee.runtime.db.DataSourceManager;
import lucee.runtime.debug.Debugger;
import lucee.runtime.err.ErrorPage;
import lucee.runtime.exp.PageException;
import lucee.runtime.listener.ApplicationContext;
import lucee.runtime.orm.ORMSession;
import lucee.runtime.security.Credential;
import lucee.runtime.type.Array;
import lucee.runtime.type.Collection;
import lucee.runtime.type.Iterator;
import lucee.runtime.type.Query;
import lucee.runtime.type.UDF;
import lucee.runtime.type.ref.Reference;
import lucee.runtime.type.scope.*;
import lucee.runtime.util.VariableUtil;
/**
* page context for every page object. the PageContext is a jsp page context expanded by CFML
* functionality. for example you have the method getSession to get jsp compatible session object
* (HTTPSession) and with sessionScope() you get CFML compatible session object (Struct,Scope).
*/
public abstract class PageContext extends javax.servlet.jsp.PageContext {
/**
* returns matching scope
*
* @return scope matching to defined scope definition
* @param type type of scope (Scope.xx)
* @throws PageException
*/
public abstract Scope scope(int type) throws PageException;
/**
* @return undefined scope, undefined scope is a placeholder for the scopecascading
*/
public abstract Undefined undefinedScope();
/**
* @return variables scope
*/
public abstract Variables variablesScope();
/**
* @return url scope
*/
public abstract URL urlScope();
/**
* @return form scope
*/
public abstract Form formScope();
/**
* @return scope mixed url and scope
*/
public abstract URLForm urlFormScope();
/**
* @return request scope
*/
public abstract Request requestScope();
/**
* @return request scope
*/
public abstract CGI cgiScope();
/**
* @return application scope
* @throws PageException
*/
public abstract Application applicationScope() throws PageException;
/**
* @return arguments scope
*/
public abstract Local argumentsScope();
/**
* return the argument scope
*
* @param bind indicate that the Argument Scope is bound for use outside of the udf
* @return Argument Scope
*/
public abstract Local argumentsScope(boolean bind);
/**
* @return arguments scope
*/
public abstract Local localScope();
public abstract Local localScope(boolean bind);
public abstract Object localGet() throws PageException;
public abstract Object localGet(boolean bind) throws PageException;
public abstract Object localTouch() throws PageException;
public abstract Object localTouch(boolean bind) throws PageException;
/**
* @return session scope
* @throws PageException
*/
public abstract Session sessionScope() throws PageException;
public abstract void setFunctionScopes(Local local);
public abstract Jetendo jetendoScope();
/**
* @return server scope
* @throws PageException
*/
public abstract Server serverScope() throws PageException;
/**
* @return cookie scope
*/
public abstract Cookie cookieScope();
// /**
// * @return cookie scope
// * @throws PageException
// */
// public abstract Client clientScope() throws PageException;
//
// public abstract Client clientScopeEL();
// /**
// * @return cluster scope
// * @throws PageException
// */
// public abstract Cluster clusterScope() throws PageException;
// /**
// * cluster scope
// *
// * @param create return null when false and scope does not exist
// * @return cluster scope or null
// * @throws PageException
// */
// public abstract Cluster clusterScope(boolean create) throws PageException;
/**
* set property at a collection object
*
* @param coll Collection Object (Collection, HashMap aso.)
* @param key key of the new value
* @param value new Value
* @return value setted
* @throws PageException
*/
public abstract Object set(Object coll, Collection.Key key, Object value) throws PageException;
/**
* touch a new property, if property doesn't existset a Struct, otherwise do nothing
*
* @param coll Collection Object
* @param key key to touch
* @return Property
* @throws PageException
*/
public abstract Object touch(Object coll, Collection.Key key) throws PageException;
/**
* same like getProperty but return a collection object (QueryColumn) if return object is a Query
*
* @param coll Collection Object
* @param key key to touch
* @return Property or QueryColumn
* @throws PageException
* @deprecated use instead
* <code>{@link #getCollection(Object, lucee.runtime.type.Collection.Key, Object)}</code>
*/
@Deprecated
public abstract Object getCollection(Object coll, String key) throws PageException;
/**
* same like getProperty but return a collection object (QueryColumn) if return object is a Query
*
* @param coll Collection Object
* @param key key to touch
* @return Property or QueryColumn
* @throws PageException
*/
public abstract Object getCollection(Object coll, Collection.Key key) throws PageException;
/**
* same like getProperty but return a collection object (QueryColumn) if return object is a Query
*
* @param coll Collection Object
* @param key key to touch
* @return Property or QueryColumn
* @deprecated use instead
* <code>{@link #getCollection(Object, lucee.runtime.type.Collection.Key, Object)}</code>
*/
@Deprecated
public abstract Object getCollection(Object coll, String key, Object defaultValue);
/**
* same like getProperty but return a collection object (QueryColumn) if return object is a Query
*
* @param coll Collection Object
* @param key key to touch
* @return Property or QueryColumn
*/
public abstract Object getCollection(Object coll, Collection.Key key, Object defaultValue);
/**
*
* @param coll Collection to get value
* @param key key of the value
* @return return value of a Collection, throws Exception if value doesn't exist
* @throws PageException
* @deprecated use instead <code>{@link #get(Object, lucee.runtime.type.Collection.Key)}</code>
*/
@Deprecated
public abstract Object get(Object coll, String key) throws PageException;
/**
*
* @param coll Collection to get value
* @param key key of the value
* @return return value of a Collection, throws Exception if value doesn't exist
* @throws PageException
*/
public abstract Object get(Object coll, Collection.Key key) throws PageException;
/**
*
* @param coll Collection to get value
* @param key key of the value
* @return return value of a Collection, throws Exception if value doesn't exist
* @throws PageException
* @deprecated use instead
* <code>{@link #getReference(Object, lucee.runtime.type.Collection.Key)}</code>
*/
@Deprecated
public abstract Reference getReference(Object coll, String key) throws PageException;
/**
*
* @param coll Collection to get value
* @param key key of the value
* @return return value of a Collection, throws Exception if value doesn't exist
* @throws PageException
*/
public abstract Reference getReference(Object coll, Collection.Key key) throws PageException;
/*
* * get data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @return
*
* @throws PageException / public abstract Object get(Scope scope, String key1, String key2) throws
* PageException;
*/
/*
* * get data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @param key3
*
* @return
*
* @throws PageException / public abstract Object get(Scope scope, String key1, String key2, String
* key3) throws PageException;
*/
/*
* * get data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @param key3
*
* @param key4
*
* @return
*
* @throws PageException / public abstract Object get(Scope scope, String key1, String key2, String
* key3, String key4) throws PageException;
*/
/*
* * get data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @param key3
*
* @param key4
*
* @param key5
*
* @return
*
* @throws PageException / public abstract Object get(Scope scope, String key1, String key2, String
* key3, String key4, String key5) throws PageException;
*/
/*
* * get data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @param key3
*
* @param key4
*
* @param key5
*
* @param key6
*
* @return
*
* @throws PageException / public abstract Object get(Scope scope, String key1, String key2, String
* key3, String key4, String key5, String key6) throws PageException;
*/
/*
* * set data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @return
*
* @throws PageException / public abstract Object set(Scope scope, String key1, String key2, Object
* value) throws PageException;
*/
/*
* * set data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @param key3
*
* @return
*
* @throws PageException / public abstract Object set(Scope scope, String key1, String key2, String
* key3, Object value) throws PageException;
*/
/*
* * set data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @param key3
*
* @param key4
*
* @return
*
* @throws PageException / public abstract Object set(Scope scope, String key1, String key2, String
* key3, String key4, Object value) throws PageException;
*/
/*
* * set data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @param key3
*
* @param key4
*
* @param key5
*
* @return
*
* @throws PageException / public abstract Object set(Scope scope, String key1, String key2, String
* key3, String key4, String key5, Object value) throws PageException;
*/
/*
* * set data from a scope
*
* @param scope
*
* @param key1
*
* @param key2
*
* @param key3
*
* @param key4
*
* @param key5
*
* @param key6
*
* @return
*
* @throws PageException / public abstract Object set(Scope scope, String key1, String key2, String
* key3, String key4, String key5, String key6, Object value) throws PageException;
*/
/**
*
* @param coll Collection to get value
* @param key key of the value
* @return return value of a Collection, return null if value not exist
* @deprecated use instead
* <code>{@link #get(Object, lucee.runtime.type.Collection.Key, Object)}</code>
*/
@Deprecated
public abstract Object get(Object coll, String key, Object defaultValue);
/**
*
* @param coll Collection to get value
* @param key key of the value
* @return return value of a Collection, return null if value not exist
*/
public abstract Object get(Object coll, Collection.Key key, Object defaultValue);
/**
* sets a value by string syntax ("scopename.key.key" "url.name")
*
* @param var Variable String name to set
* @param value value to set
* @return setted value
* @throws PageException
*/
public abstract Object setVariable(String var, Object value) throws PageException;
/**
*
* @param var variable name to get
* @return return a value by string syntax ("scopename.key.key" "url.name")
* @throws PageException
**/
public abstract Object getVariable(String var) throws PageException;
/**
* evaluate given expression
*
* @param expression expression to evaluate
* @return return value generated by expression or null
* @throws PageException
**/
public abstract Object evaluate(String expression) throws PageException;
public abstract String serialize(Object expression) throws PageException;
/**
*
* @param var variable name to get
* @return return a value by string syntax ("scopename.key.key" "url.name")
* @throws PageException
*/
public abstract Object removeVariable(String var) throws PageException;
/**
* get variable from string definition and cast it to a Query Object
*
* @param key Variable Name to get
* @return Query
* @throws PageException
*/
public abstract Query getQuery(String key) throws PageException;
public abstract Query getQuery(Object value) throws PageException;
/**
* write a value to the header of the response
*
* @param name name of the value to set
* @param value value to set
*/
public abstract void setHeader(String name, String value);
/**
* @return returns the cfid of the current user
*/
public abstract String getCFID();
/**
* @return returns the current cftoken of the user
*/
public abstract String getCFToken();
/**
* @return return the session id
*/
public abstract String getJSessionId();
/**
* @return returns the urltoken of the current user
*/
public abstract String getURLToken();
/**
* @return returns the page context id
*/
public abstract int getId();
public abstract JspWriter getRootWriter();
/**
* @return Returns the locale.
*/
public abstract Locale getLocale();
/**
* @param locale The locale to set
*/
public abstract void setLocale(Locale locale);
/**
* @param strLocale The locale to set as String.
* @throws PageException
* @deprecated use instead <code>{@link #setLocale(Locale)}</code>
*/
@Deprecated
public abstract void setLocale(String strLocale) throws PageException;
/**
* @return Returns the Config Object of the PageContext.
*/
public abstract ConfigWeb getConfig();
/**
* return HttpServletRequest, getRequest only returns ServletRequest
*
* @return HttpServletRequest
*/
public abstract HttpServletRequest getHttpServletRequest();
/**
* return HttpServletResponse, getResponse only returns ServletResponse
*
* @return HttpServletResponse
*/
public abstract HttpServletResponse getHttpServletResponse();
public abstract OutputStream getResponseStream() throws IOException;
/**
* returns the tag that is in use
*
* @return Returns the currentTag.
*/
public abstract Tag getCurrentTag();
/**
* @return Returns the applicationContext.
*/
public abstract ApplicationContext getApplicationContext();
/**
* Writes a String to the Response Buffer
*
* @param str
* @throws IOException
*/
public abstract void write(String str) throws IOException;
/**
* Writes a String to the Response Buffer,also when cfoutputonly is true and execution is outside of
* a cfoutput
*
* @param str
* @throws IOException
*/
public abstract void forceWrite(String str) throws IOException;
/**
* Writes a String to the Response Buffer,also when cfoutputonly is true and execution is outside of
* a cfoutput
*
* @param o
* @throws IOException
* @throws PageException
*/
public abstract void writePSQ(Object o) throws IOException, PageException;
/**
* @return the current template PageSource
* @deprecated use instead {@link #getCurrentPageSource(PageSource)}
*/
public abstract PageSource getCurrentPageSource();
/**
* @return the current template PageSource
*/
public abstract PageSource getCurrentPageSource(PageSource defaultValue);
/**
* @return the current template PageSource
*/
public abstract PageSource getCurrentTemplatePageSource();
/**
* @return base template file
*/
public abstract PageSource getBasePageSource();
/**
* sets the pagecontext silent
*
* @return return setting that was before
*/
public abstract boolean setSilent();
/**
* unsets the pagecontext silent
*
* @return return setting that was before
*/
public abstract boolean unsetSilent();
/**
* return debugger of the page Context
*
* @return debugger
*/
public abstract Debugger getDebugger();
/**
*
* @return Returns the executionTime.
*/
public abstract long getExecutionTime();
/**
* @param executionTime The executionTime to set.
*/
public abstract void setExecutionTime(long executionTime);
/**
* @return Returns the remoteUser.
* @throws PageException
*/
public abstract Credential getRemoteUser() throws PageException;
/**
* clear the remote user
*/
public abstract void clearRemoteUser();
/**
* @param remoteUser The remoteUser to set.
*/
public abstract void setRemoteUser(Credential remoteUser);
/**
* array of current template stack
*
* @return array
* @throws PageException
*/
public abstract Array getTemplatePath() throws PageException;
/**
* returns the current level, how deep is the page stack
*
* @return level
*/
public abstract int getCurrentLevel();
/**
* @return Returns the variableUtil.
*/
public abstract VariableUtil getVariableUtil();
/**
* @param applicationContext The applicationContext to set.
*/
public abstract void setApplicationContext(ApplicationContext applicationContext);
public abstract PageSource toPageSource(Resource res, PageSource defaultValue);
/**
* set a other variable scope
*
* @param scope
*/
public abstract void setVariablesScope(Variables scope);
/**
* includes a path from a absolute path
*
* @param source absolute path as file object
* @param runOnce include only once per request
* @throws PageException
*/
public abstract void doInclude(PageSource[] source, boolean runOnce) throws PageException;
/**
* includes a path from a absolute path
*
* @param source absolute path as file object
* @throws PageException
* @deprecated used <code> doInclude(String source, boolean runOnce)</code> instead. Still used by
* extensions ...
*/
@Deprecated
public abstract void doInclude(String source) throws PageException;
/**
* includes a path from a absolute path
*
* @param source absolute path as file object
* @param runOnce include only once per request
* @throws PageException
*/
public abstract void doInclude(String source, boolean runOnce) throws PageException;
/**
* clear the current output buffer
*/
public abstract void clear();
/**
* @return return the request timeout for this pagecontext in milli seconds
*/
public abstract long getRequestTimeout();
/**
* @param requestTimeout The requestTimeout to set.
*/
public abstract void setRequestTimeout(long requestTimeout);
/**
* sets state of cfoutput only
*
* @param boolEnablecfoutputonly
*/
public abstract void setCFOutputOnly(boolean boolEnablecfoutputonly);
/**
* returns if single quotes will be preserved inside a query tag (psq=preserve single quote)
*
* @return preserve single quote
*/
public abstract boolean getPsq();
/**
* Close the response stream.
*/
public abstract void close();
/**
* adds a PageSource
*
* @param ps
* @param alsoInclude
*/
public abstract void addPageSource(PageSource ps, boolean alsoInclude);
/**
* clear all catches
*/
public abstract void clearCatch();
/**
* execute a request to the PageConext
*
* @param realPath
* @param throwException catch or throw exceptions
* @param onlyTopLevel only check top level mappings for the matching realpath
* @throws PageException
*/
public abstract void execute(String realPath, boolean throwException, boolean onlyTopLevel) throws PageException;
/**
* execute a request to the PageConext form CFML
*
* @param realPath
* @param throwException catch or throw exceptions
* @param onlyTopLevel only check top level mappings for the matching realpath
* @throws PageException
*/
public abstract void executeCFML(String realPath, boolean throwException, boolean onlyTopLevel) throws PageException;
public abstract void executeRest(String realPath, boolean throwException) throws PageException;
/**
* Flush Content of buffer to the response stream of the Socket.
*/
public abstract void flush();
/**
* call a UDF Function and return "return value" of the function
*
* @param coll Collection of the UDF Function
* @param key name of the function
* @param args arguments to call the function
* @return return value of the function
* @throws PageException
*/
public abstract Object getFunction(Object coll, String key, Object[] args) throws PageException;
/**
* call a UDF Function and return "return value" of the function
*
* @param coll Collection of the UDF Function
* @param key name of the function
* @param args arguments to call the function
* @return return value of the function
* @throws PageException
*/
public abstract Object getFunction(Object coll, Collection.Key key, Object[] args) throws PageException;
/**
* call a UDF Function and return "return value" of the function
*
* @param coll Collection of the UDF Function
* @param key name of the function
* @param args arguments to call the function
* @return return value of the function
* @throws PageException
*/
public abstract Object getFunctionWithNamedValues(Object coll, String key, Object[] args) throws PageException;
/**
* call a UDF Function and return "return value" of the function
*
* @param coll Collection of the UDF Function
* @param key name of the function
* @param args arguments to call the function
* @return return value of the function
* @throws PageException
*/
public abstract Object getFunctionWithNamedValues(Object coll, Collection.Key key, Object[] args) throws PageException;
/**
* get variable from string definition and cast it to a Iterator Object
*
* @param key Variable Name to get
* @return Iterator
* @throws PageException
*/
public abstract Iterator getIterator(String key) throws PageException;
/**
* @return directory of root template file
*/
public abstract Resource getRootTemplateDirectory();
/**
* @return Returns the startTime.
*/
public abstract long getStartTime();
/**
* @return Returns the thread.
*/
public abstract Thread getThread();
/**
* specialised method for handlePageException with argument Exception or Throwable
*
* @param pe Page Exception
*/
public abstract void handlePageException(PageException pe);
/*
* *
*
* @param applicationFile
*
* @throws ServletException
*/
// public abstract void includeOnRequestEnd(PageSource applicationFile) throws ServletException;
/**
* ends a cfoutput block
*/
public abstract void outputEnd();
/**
* starts a cfoutput block
*/
public abstract void outputStart();
/**
* remove the last PageSource
*
* @param alsoInclude
*/
public abstract void removeLastPageSource(boolean alsoInclude);
/**
* sets a exception
*
* @param t
* @return PageExcption
*/
public abstract PageException setCatch(Throwable t);
public abstract PageException getCatch();
public abstract void setCatch(PageException pe);
public abstract void setCatch(PageException pe, boolean caught, boolean store);
public abstract void exeLogStart(int position, String id);
public abstract void exeLogEnd(int position, String id);
/**
* sets state of cfoutput only
*
* @param enablecfoutputonly
*/
public abstract void setCFOutputOnly(short enablecfoutputonly);
/**
* sets the error page
*
* @param ep
*/
public abstract void setErrorPage(ErrorPage ep);
/**
* sets if inside a query tag single quote will be preserved (preserve single quote)
*
* @param psq sets preserve single quote for query
*/
public abstract void setPsq(boolean psq);
/**
* return throwed exception
*
* @throws PageException
*/
public abstract void throwCatch() throws PageException;