Package com.xmage.ws.resource

Examples of com.xmage.ws.resource.Resource


    @GET
    @Path("/getAll")
    public Response getAllStats() {
        logger.trace("getAllStats");
        Resource resource = new XMageStatsResource().getAll();

        return responseWithError(resource);
    }
View Full Code Here


            return pjp.proceed();
        } catch (Exception e) {
            logger.error("Error: ", e);
        }

        Resource resource = new ErrorResource(DomainErrors.Errors.STATUS_SERVER_ERROR, "server_error");
        JSONObject serverError = ResponseBuilder.build(resource);

        return Response.status(200).entity(serverError.toJSONString()).build();
  }
View Full Code Here

TOP

Related Classes of com.xmage.ws.resource.Resource

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.