Package com.imaginea.mongodb.exceptions

Examples of com.imaginea.mongodb.exceptions.InvalidHTTPRequestException


    @Produces(MediaType.APPLICATION_JSON)
    public String postDbRequest(@PathParam("dbName") final String dbName, @QueryParam("action") final String action, @QueryParam("connectionId") final String connectionId,
                                @Context final HttpServletRequest request) {

        if (action == null) {
            InvalidHTTPRequestException e = new InvalidHTTPRequestException(ErrorCodes.ACTION_PARAMETER_ABSENT, "ACTION_PARAMETER_ABSENT");
            return formErrorResponse(logger, e);
        }
        String response = new ResponseTemplate().execute(logger, connectionId, request, new ResponseCallback() {
            public Object execute() throws Exception {
                DatabaseService databaseService = new DatabaseServiceImpl(connectionId);
View Full Code Here


                                  @FormParam("maxDocs") final int maxDocs, @FormParam("autoIndexId") final String autoIndexId,
                                  @QueryParam("connectionId") final String connectionId, @QueryParam("action") final String action,
                                  @Context final HttpServletRequest request) {

        if (action == null) {
            InvalidHTTPRequestException e = new InvalidHTTPRequestException(ErrorCodes.ACTION_PARAMETER_ABSENT, "ACTION_PARAMETER_ABSENT");
            return formErrorResponse(logger, e);
        }

        String response = new ResponseTemplate().execute(logger, connectionId, request, new ResponseCallback() {
            public Object execute() throws Exception {
View Full Code Here

TOP

Related Classes of com.imaginea.mongodb.exceptions.InvalidHTTPRequestException

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.