Return macro handlers map ("handlers") to let programmers add/remove
macro handlers.
This commit is contained in:
parent
5b51be761f
commit
3a6cffaf83
2 changed files with 12 additions and 0 deletions
|
@ -100,6 +100,10 @@ public class ResponseBean implements Serializable {
|
|||
public Map getdata () {
|
||||
return res.getResponseData ();
|
||||
}
|
||||
|
||||
public Map gethandlers () {
|
||||
return res.getMacroHandlers ();
|
||||
}
|
||||
|
||||
public String geterror () {
|
||||
return res.error;
|
||||
|
|
|
@ -134,6 +134,14 @@ public final class ResponseTrans implements Externalizable {
|
|||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the macro handlers map for this response transmitter.
|
||||
*/
|
||||
public Map getMacroHandlers () {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reset the response object to its initial empty state.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue