Package org.apache.tomcat.maven.common.deployer

Examples of org.apache.tomcat.maven.common.deployer.TomcatManagerResponse


    protected void invokeManager()
        throws MojoExecutionException, TomcatManagerException, IOException
    {
        getLog().info( messagesProvider.getMessage( "ReloadMojo.reloadingApp", getDeployedURL() ) );

        TomcatManagerResponse tomcatResponse = getManager().reload( getPath() );
       
        /* TODO : Tomcat always return http status 200. How check message to know error or not,
         * cause is can be in french, english....      
         */
        checkTomcatResponse( tomcatResponse );

        log( tomcatResponse.getHttpResponseBody() );       
    }
View Full Code Here


    {
        validateWarFile();

        getLog().info( messagesProvider.getMessage( "AbstractDeployMojo.deployingWar", getDeployedURL() ) );

        TomcatManagerResponse tomcatResponse =
            getManager().deploy( getPath(), warFile, isUpdate(), getTag(), warFile.length() );

        checkTomcatResponse( tomcatResponse );
    }
View Full Code Here

    protected void invokeManager()
        throws MojoExecutionException, TomcatManagerException, IOException
    {
        getLog().info( messagesProvider.getMessage( "StopMojo.stoppingApp", getDeployedURL() ) );

        TomcatManagerResponse tomcatResponse = getManager().stop( getPath() );
       
        /* TODO : Tomcat always return http status 200. How check message to know error or not,
         * cause is can be in french, english....      
         */
        checkTomcatResponse( tomcatResponse );

        log( tomcatResponse.getHttpResponseBody() );
    }
View Full Code Here

    protected void invokeManager()
        throws MojoExecutionException, TomcatManagerException, IOException
    {
        getLog().info( messagesProvider.getMessage( "ListMojo.listApps", getURL() ) );

        TomcatManagerResponse tomcatResponse = getManager().list();

        checkTomcatResponse( tomcatResponse );

        log( tomcatResponse.getHttpResponseBody() );
    }
View Full Code Here

        getLog().info( messagesProvider.getMessage( "AbstractDeployMojo.deployingWar", getDeployedURL() ) );

        URL warURL = getWarFile().toURL();

        TomcatManagerResponse tomcatResponse = getManager().deploy( getPath(), warURL, isUpdate(), getTag() );

        checkTomcatResponse( tomcatResponse );
    }
View Full Code Here

        getLog().info( messagesProvider.getMessage( "AbstractDeployMojo.deployingContext", getDeployedURL() ) );

        URL contextURL = getContextFile().toURL();

        TomcatManagerResponse tomcatResponse =
            getManager().deployContext( getPath(), contextURL, isUpdate(), getTag() );

        checkTomcatResponse( tomcatResponse );
    }
View Full Code Here

        getLog().info( messagesProvider.getMessage( "AbstractDeployMojo.deployingWarContext", getDeployedURL() ) );

        URL warURL = getWarFile().toURL();
        URL contextURL = getContextFile().toURL();

        TomcatManagerResponse tomcatResponse =
            getManager().deployContext( getPath(), contextURL, warURL, isUpdate(), getTag() );

        checkTomcatResponse( tomcatResponse );
    }
View Full Code Here

        getLog().info( messagesProvider.getMessage( "UndeployMojo.undeployingApp", getDeployedURL() ) );

        try
        {

            TomcatManagerResponse tomcatResponse = getManager().undeploy( getPath() );

            checkTomcatResponse( tomcatResponse );

            log( tomcatResponse.getHttpResponseBody() );

        }
        catch ( TomcatManagerException e )
        {
            if ( failOnError )
View Full Code Here

    {
        validateWarFile();

        getLog().info( messagesProvider.getMessage( "AbstractDeployMojo.deployingWar", getDeployedURL() ) );

        TomcatManagerResponse tomcatManagerResponse =
            getManager().deploy( getPath(), warFile, isUpdate(), getTag(), warFile.length() );

        checkTomcatResponse( tomcatManagerResponse );

        getLog().info( "tomcatManager status code:" + tomcatManagerResponse.getStatusCode() + ", ReasonPhrase:"
                           + tomcatManagerResponse.getReasonPhrase() );

        log( tomcatManagerResponse.getHttpResponseBody() );
    }
View Full Code Here

        getLog().info( messagesProvider.getMessage( "AbstractDeployMojo.deployingWarContext", getDeployedURL() ) );

        URL warURL = getWarFile().toURL();
        URL contextURL = getContextFile().toURL();

        TomcatManagerResponse tomcatResponse = getManager().deployContext( getPath(), contextURL, warURL, isUpdate(), getTag() );

        checkTomcatResponse( tomcatResponse );

        log( tomcatResponse.getHttpResponseBody() );
    }
View Full Code Here

TOP

Related Classes of org.apache.tomcat.maven.common.deployer.TomcatManagerResponse

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.