public class ResponseInfo
extends java.lang.Object
| Constructor and Description |
|---|
ResponseInfo()
Creates a new response info with an empty map
|
ResponseInfo(ResponseInfo o)
Creates a response info that shallow copies
another response info
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLongtermObject(java.lang.String key,
FormattableObject obj)
Adds a longterm object to this response info
|
void |
addLongtermString(java.lang.String key,
java.lang.String obj) |
void |
addTemporaryObject(java.lang.String key,
FormattableObject obj)
Adds a temporary object to the response info
|
void |
addTemporaryString(java.lang.String key,
java.lang.String obj) |
void |
clearTemporary()
Clears all the temporary objects
|
FormattableObject |
getObject(java.lang.String key)
Gets an object, either permanent or temporary
|
java.lang.String |
toString() |
public ResponseInfo()
public ResponseInfo(ResponseInfo o)
o - the object to shallow copypublic void addLongtermObject(java.lang.String key,
FormattableObject obj)
key - the key to useobj - the object mapped to the keypublic void addLongtermString(java.lang.String key,
java.lang.String obj)
public void addTemporaryObject(java.lang.String key,
FormattableObject obj)
key - the key to useobj - the object mapped to keypublic void addTemporaryString(java.lang.String key,
java.lang.String obj)
public FormattableObject getObject(java.lang.String key)
key - the key to search forpublic void clearTemporary()
public java.lang.String toString()
toString in class java.lang.Object