Examples of RequestHandledException


Examples of org.restlet.ext.jaxrs.internal.exceptions.RequestHandledException

            restletResponse.setStatus(status);
        } else {
            javax.ws.rs.core.Response jaxRsResp = this.providers.convert(cause);
            jaxRsRespToRestletResp(jaxRsResp, null);
        }
        throw new RequestHandledException();
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.exceptions.RequestHandledException

        if (resourceMethods.isEmpty()) {
            Set<Method> allowedMethods = resourceClass.getAllowedMethods(u);
            if (httpMethod.equals(Method.OPTIONS)) {
                callContext.getResponse().getAllowedMethods()
                        .addAll(allowedMethods);
                throw new RequestHandledException();
            }
            excHandler.methodNotAllowed(allowedMethods);
        }
        // (a) 3
        if (givenMediaType != null) {
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.exceptions.RequestHandledException

            String logMessage) throws RequestHandledException {
        callContext.getResponse().setStatus(
                org.restlet.data.Status.SERVER_ERROR_INTERNAL);
        this.logger.log(Level.WARNING, logMessage, exception.getCause());
        exception.printStackTrace();
        throw new RequestHandledException();
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.exceptions.RequestHandledException

            String logMessage) throws RequestHandledException {
        callContext.getResponse().setStatus(
                org.restlet.data.Status.SERVER_ERROR_INTERNAL);
        this.logger.log(Level.WARNING, logMessage, exception.getCause());
        exception.printStackTrace();
        throw new RequestHandledException();
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.exceptions.RequestHandledException

                org.restlet.data.Status.SERVER_ERROR_INTERNAL);
        if (exception != null) {
            logMessage += ": " + exception.getMessage();
        }
        this.logger.log(Level.WARNING, logMessage);
        throw new RequestHandledException();
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.exceptions.RequestHandledException

    public void resourceMethodNotFound() throws WebApplicationException,
            RequestHandledException {
        if (this.noResMethodHandler != null) {
            this.noResMethodHandler.handle(Request.getCurrent(),
                    org.restlet.Response.getCurrent());
            throw new RequestHandledException();
        }

        throw new WebApplicationException(Status.NOT_FOUND);
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.exceptions.RequestHandledException

    public void resourceNotFound() throws WebApplicationException,
            RequestHandledException {
        if (this.noResourceClHandler != null) {
            this.noResourceClHandler.handle(Request.getCurrent(),
                    org.restlet.Response.getCurrent());
            throw new RequestHandledException();
        }

        throw new WebApplicationException(Status.NOT_FOUND);
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.exceptions.RequestHandledException

    public void rootResourceNotFound() throws WebApplicationException,
            RequestHandledException {
        if (this.noRootResClHandler != null) {
            this.noRootResClHandler.handle(Request.getCurrent(),
                    org.restlet.Response.getCurrent());
            throw new RequestHandledException();
        }

        throw new WebApplicationException(Status.NOT_FOUND);
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.exceptions.RequestHandledException

            logMessage = jaxRsMethod + ": " + logMessage;
        }
        this.logger.log(Level.WARNING, jaxRsMethod + ": " + logMessage,
                exception);
        exception.printStackTrace();
        throw new RequestHandledException();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.