Implementing res.meta container.
This commit is contained in:
parent
11b45fe9c4
commit
997e01da64
2 changed files with 22 additions and 2 deletions
|
@ -250,6 +250,15 @@ public class ResponseBean implements Serializable {
|
|||
return res.getMacroHandlers();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @return ...
|
||||
*/
|
||||
public Map getMeta() {
|
||||
return res.getMetaData();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
|
|
@ -109,12 +109,15 @@ public final class ResponseTrans implements Externalizable {
|
|||
*/
|
||||
public transient String error;
|
||||
|
||||
// the map of form and cookie data
|
||||
// the res.data map of form and cookie data
|
||||
private transient Map values;
|
||||
|
||||
// the map of macro handlers
|
||||
// the res.handlers map of macro handlers
|
||||
private transient Map handlers;
|
||||
|
||||
// the res.meta map for meta response data
|
||||
private transient Map meta;
|
||||
|
||||
// the request trans for this response
|
||||
private transient RequestTrans reqtrans;
|
||||
|
||||
|
@ -132,6 +135,7 @@ public final class ResponseTrans implements Externalizable {
|
|||
message = error = null;
|
||||
values = new SystemMap();
|
||||
handlers = new SystemMap();
|
||||
meta = new SystemMap();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -169,6 +173,13 @@ public final class ResponseTrans implements Externalizable {
|
|||
return handlers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the meta info map for this response transmitter.
|
||||
*/
|
||||
public Map getMetaData() {
|
||||
return meta;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the response object to its initial empty state.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue