Package org.apache.cocoon.rest.controller.response

Examples of org.apache.cocoon.rest.controller.response.RestResponse


            // get the prepared controller
            Object controller = this.getController(controllerName, inputParameters, configuration);

            // invoke the appropriate method
            HttpServletRequest request = HttpContextHelper.getRequest(inputParameters);
            RestResponse restResponse = this.methodDelegator.delegate(request, controller);

            if (controller instanceof ConditionalGet) {
                storeCacheKey(((ConditionalGet) controller).constructCacheKey());
            }

            // execute the rest response
            RestResponseMetaData restResponseMetaData = restResponse.setup(inputParameters);

            // set the status-code with the result produced by the restResponse execution
            ResponseHeaderCollector.setStatusCode(restResponseMetaData.getStatusCode());

            // set the content type with the result produced by the restResponse execution
View Full Code Here


            // get the prepared controller
            Object controller = this.getController(controllerName, inputParameters, configuration);

            // invoke the appropriate method
            HttpServletRequest request = HttpContextHelper.getRequest(inputParameters);
            RestResponse restResponse = this.methodDelegator.delegate(request, controller);

            // execute the rest response
            RestResponseMetaData restResponseMetaData = restResponse.execute(outputStream, inputParameters);

            // set the status-code with the result produced by the restResponse execution
            ResponseHeaderCollector.setStatusCode(restResponseMetaData.getStatusCode());

            // set the content type with the result produced by the restResponse execution
View Full Code Here

            // get the prepared controller
            Object controller = this.getController(functionName, inputParameters, configuration);

            // invoke the appropriate method
            HttpServletRequest request = HttpContextHelper.getRequest(inputParameters);
            RestResponse restResponse = this.methodDelegator.delegate(request, controller);

            // forward the response
            if (restResponse instanceof Status) {
                Status status = (Status) restResponse;
                StatusCodeCollector.setStatusCode(status.getStatus());
View Full Code Here

TOP

Related Classes of org.apache.cocoon.rest.controller.response.RestResponse

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.