StatusTuple

public class StatusTuple

An object of this class will be returned by the action handler if it wants to set a status code with a response data

Fields

data

Object data

status

HttpResponseStatus status

Constructors

StatusTuple

public StatusTuple(HttpResponseStatus sc, Object data)

Constructor to set the response status and the data

Parameters:
  • sc – netty HttpResponseStatus object
  • data – if not null should be an object of Serializer

See also: Serializer, HttpResponseStatus