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

Examples of org.apache.cocoon.rest.controller.response.RestResponse.execute()


            // 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

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.