From a79dfbde187d0ffea9291b68bd912ce7b84d6ec1 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 26 Nov 2003 13:45:30 +0000 Subject: [PATCH] Rename pushStringBuffer() and popStringBuffer() to push() and pop(). Keeping old versions for backwards-compatibility for the time being. --- src/helma/framework/ResponseBean.java | 29 +++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/helma/framework/ResponseBean.java b/src/helma/framework/ResponseBean.java index c7fe73b5..9435216a 100644 --- a/src/helma/framework/ResponseBean.java +++ b/src/helma/framework/ResponseBean.java @@ -393,21 +393,38 @@ public class ResponseBean implements Serializable { res.digestDependencies(); } - ///////////////////////////////////// - // The following are legacy methods used by - // Helma templates (*.hsp files) and shouldn't - // be used otherwise. - //////////////////////////////////// + /** + * Push a string buffer on the response object. All further + * writes will be redirected to this buffer. + */ + public void push() { + res.pushStringBuffer(); + } + + /** + * Pop a string buffer from the response object containing + * all the writes since the last pushBuffer + * + * @return ... + */ + public String pop() { + return res.popStringBuffer(); + } + + /** + * Old version for push() kept for compatibility + */ public void pushStringBuffer() { res.pushStringBuffer(); } /** - * + * Old version for pop() kept for compatibility * * @return ... */ public String popStringBuffer() { return res.popStringBuffer(); } + }