Package org.apache.ace.deployment.processor

Examples of org.apache.ace.deployment.processor.DeploymentProcessor


            else {
                inputStream = m_streamGenerator.getDeploymentPackage(targetID, version);
            }

            if (processor != null) {
                DeploymentProcessor deploymentProcessor = m_processors.get(processor);
                if (deploymentProcessor != null) {
                    deploymentProcessor.process(inputStream, request, response);
                    return;
                }
                else {
                    throw new AceRestException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Could not find a deployment processor called: " + processor);
                }
View Full Code Here


     *             in case a non-existing deployment processor was requested.
     */
    private DeploymentProcessor getDeploymentProcessor(HttpServletRequest request) throws AceRestException {
        String processor = request.getParameter(PROCESSOR);
        if (processor != null) {
            DeploymentProcessor deploymentProcessor = m_processors.get(processor);
            if (deploymentProcessor == null) {
                throw new AceRestException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Could not find a deployment processor called: " + processor);
            }

            m_log.log(LogService.LOG_DEBUG, "Using deployment processor " + processor);
View Full Code Here

            response = new ContentRangeResponseWrapper(request, response);
            response.setContentType(DP_MIMETYPE);

            // determine the deployment processor early, as to avoid having to create a complete deployment package in
            // case of a missing/incorrect requested processor...
            DeploymentProcessor deploymentProcessor = getDeploymentProcessor(request);

            // get the input stream to the deployment package...
            InputStream inputStream = getDeploymentPackageStream(targetID, version, request, versions);

            // process and send back the results to the client...
            deploymentProcessor.process(inputStream, request, response);
        }
        catch (IllegalArgumentException e) {
            throw (AceRestException) new AceRestException(HttpServletResponse.SC_BAD_REQUEST, "Request URI is invalid").initCause(e);
        }
        catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.apache.ace.deployment.processor.DeploymentProcessor

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.