- Direct Known Subclasses:
- ConstraintViolationsResponse, EntityDetailsResponse, FailureResponse, FormResponse, SuccessResponse
public class SkysailResponse<T>
extends Object
A skysail server installation responds to (RESTful) Http-Requests by creating responses, which get converted
on-the-fly into the desired target format (like html, json, xml, csv, ...).
The actual data contained in the response is described by the generic type parameter ; there are no formal
restrictions on that type, but you have to keep in mind that it is supposed to be serializable into formats as JSON,
XML and the like.
Besides the actual data a SkysailResponse class provides meta-information about the request and response as follows:
A message: during the request/response cycle, the server can set a message on the response which is passed to the
requester as additional information.
A success flag: If an exception is thrown on the server side, skysail still will try to pass an FailureResponse back
to the client, the success flag of which would be false obviously.
The execution time and the server load: The server will try to provide the client generic information about the load
and the time the request took.