Esempio n. 1
0
 public static Response noContent(final @Nullable String message) {
   return new Response.Builder().status(Status.success(NO_CONTENT, message)).build();
 }
Esempio n. 2
0
 public static Response created(final Payload payload) {
   return new Response.Builder().status(Status.success(CREATED)).payload(payload).build();
 }
Esempio n. 3
0
 public static Response ok(final Payload payload) {
   return new Response.Builder().status(Status.success(OK)).payload(payload).build();
 }
Esempio n. 4
0
 public static Response created(final @Nullable String message) {
   return new Response.Builder().status(Status.success(CREATED, message)).build();
 }
Esempio n. 5
0
 public static Response ok(final @Nullable String message) {
   return new Response.Builder().status(Status.success(OK, message)).build();
 }