|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ToolsResource
| Method Summary | |
|---|---|
ApiEcho |
echo(String message)
Echoes the provided message back to the caller. |
ApiEcho |
echoError(String message)
Throws an error containing the given input message. |
| Method Detail |
|---|
@Path(value="echo") ApiEcho echo(String message)
message - The message to echo back
@Path(value="echoError") ApiEcho echoError(String message)
{
"message": "An error message",
"causes": [ "A list of causes", "Potentially null" ]
}
The message field contains a description of the error. The causes field, if not null, contains a list of causes for the error.
Note that this never returns an echoMessage. Instead, the result (and all error results) has the above structure.
message - The error message to echo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||