Package io.higgs.http.server

Examples of io.higgs.http.server.WebApplicationException


    @method("usage")
    public Map<String, Object> usage(@QueryParam("period") String period) {
        if (expectedPeriod != null) {
            if (!expectedPeriod.toString().equalsIgnoreCase(period)) {
                throw new WebApplicationException(HttpResponseStatus.BAD_REQUEST);
            }
        }
        Map<String, Object> map = new HashMap<>();
        map.put("start", start);
        map.put("end", end);
View Full Code Here


        this.streams = streams;
    }

    private Map<String, Object> compileOrValidate(String csdl, HttpResponse response) {
        if (!expectedCsdl.equals(csdl)) {
            throw new WebApplicationException(HttpResponseStatus.BAD_REQUEST);
        }
        return hashDpuAndCreatedAt(response);
    }
View Full Code Here

TOP

Related Classes of io.higgs.http.server.WebApplicationException

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.