All Downloads are FREE. Search and download functionalities are using the official Maven repository.

example.simpleraml08.Animals Maven / Gradle / Ivy

The newest version!
package example.simpleraml08;

import javax.ws.rs.Consumes;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

@Path("/animals")
public interface Animals {
  @PUT
  @Consumes("application/xml")
  PutAnimalsResponse putAnimals(Cats entity);

  class PutAnimalsResponse extends ResponseDelegate {
    private PutAnimalsResponse(Response response, Object entity) {
      super(response, entity);
    }

    private PutAnimalsResponse(Response response) {
      super(response);
    }

    public static PutAnimalsResponse respond200() {
      Response.ResponseBuilder responseBuilder = Response.status(200);
      return new PutAnimalsResponse(responseBuilder.build());
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy