public interface ResultWriter
| Modifier and Type | Method and Description |
|---|---|
void |
write(java.lang.Object result)
Writes a result JSON object.
|
void |
writeError(ServiceException e)
Writes an error response with the HTTP status code and JSON body of {"message":
"<exception's message>"}.
|
void write(java.lang.Object result)
throws java.io.IOException
java.io.IOExceptionvoid writeError(ServiceException e) throws java.io.IOException
java.io.IOException