Package org.jboss.resteasy.spi

Examples of org.jboss.resteasy.spi.BadRequestException


  @Consumes("application/json")
  @Produces("application/json")
  public Response addPlace(@Context UriInfo uriInfo,@PathParam("user") String user, Place Place)
  {     
    if(Place.getEtiqueta()==null || "".equals(Place.getEtiqueta()))
      throw new BadRequestException("El nombre del lugar no debe ser nulo");
   
   
    getPlaces(user).add(Place);
    UriBuilder ub = uriInfo.getAbsolutePathBuilder().path(this.getClass(),"getPlace");                       
    URI uri = ub.build(user,Place.getEtiqueta());
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.spi.BadRequestException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.