Rename pushStringBuffer() and popStringBuffer() to push() and pop().
Keeping old versions for backwards-compatibility for the time being.
This commit is contained in:
parent
5647d2bfdc
commit
a79dfbde18
1 changed files with 23 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue