Examples of RestResponseMetaData


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

            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
            ResponseHeaderCollector.setMimeType(restResponseMetaData.getContentType());

            // store the rest response for execution
            storeRestResponse(restResponse);
        } catch (Exception e) {
            throw ExceptionHandler.getInvocationException(e);
View Full Code Here

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

            // 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
            ResponseHeaderCollector.setMimeType(restResponseMetaData.getContentType());
        } catch (Exception e) {
            throw ExceptionHandler.getInvocationException(e);
        }
    }
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.