chg: allow variable amount of arguments in response methods
This commit is contained in:
parent
51b568f099
commit
1054413a10
1 changed files with 12 additions and 6 deletions
|
@ -203,8 +203,10 @@ public class ResponseBean implements Serializable {
|
||||||
*
|
*
|
||||||
* @param str the string to write to the response buffer
|
* @param str the string to write to the response buffer
|
||||||
*/
|
*/
|
||||||
public void write(String str) {
|
public void write(String... str) {
|
||||||
res.write(str);
|
for (String s : str) {
|
||||||
|
res.write(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -212,8 +214,10 @@ public class ResponseBean implements Serializable {
|
||||||
*
|
*
|
||||||
* @param str the string to write to the response buffer
|
* @param str the string to write to the response buffer
|
||||||
*/
|
*/
|
||||||
public void writeln(String str) {
|
public void writeln(String... str) {
|
||||||
res.writeln(str);
|
for (String s : str) {
|
||||||
|
res.writeln(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -237,8 +241,10 @@ public class ResponseBean implements Serializable {
|
||||||
*
|
*
|
||||||
* @param message the message
|
* @param message the message
|
||||||
*/
|
*/
|
||||||
public void debug(String message) {
|
public void debug(String... messages) {
|
||||||
res.debug(message);
|
for (String message : messages) {
|
||||||
|
res.debug(message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue