JSONWithPadding is used to hold an Object along with the corresponding callback name to marshal.
Sample Usage: JSONWithPadding<Person> jsonWithPaddingObject = new JSONWithPadding(person, "theCallBackName"); Marshal this jsonWithPaddingObject object would result in JSON like this: theCallBackName({"person":{"id":10,"name":"Bob"}});
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| public static final String | |
| private T |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public T | |
| public void | |
| public void |
| callbackName | back to summary |
|---|---|
| private String callbackName | |
| DEFAULT_CALLBACK_NAME | back to summary |
|---|---|
| public static final String DEFAULT_CALLBACK_NAME | |
| rootObject | back to summary |
|---|---|
| private T rootObject | |
| JSONWithPadding | back to summary |
|---|---|
| public JSONWithPadding() | |
| JSONWithPadding | back to summary |
|---|---|
| public JSONWithPadding(T rootObject) | |
| JSONWithPadding | back to summary |
|---|---|
| public JSONWithPadding(T rootObject, String callbackName) | |
| getCallbackName | back to summary |
|---|---|
| public String getCallbackName() The callback name that should me marshalled with the object | |
| getObject | back to summary |
|---|---|
| public T getObject() The Object that will be marshalled | |
| setCallbackName | back to summary |
|---|---|
| public void setCallbackName(String callbackName) The callback name that should me marshalled with the object | |
| setObject | back to summary |
|---|---|
| public void setObject(T rootObject) The Object to be marshalled | |