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

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


            {
                userName = this.username;
                password = this.password == null ? "" : this.password;
            }

            manager = new TomcatManager( url, userName, password, charset );
            manager.setUserAgent( name + "/" + version );
        }

        return manager;
    }
View Full Code Here


                userName = this.username;
                password = this.password == null ? "" : this.password;
                //getLog( ).debug( "user user/password " + userName + "/" + password );
            }

            manager = new TomcatManager( url, userName, password, charset );
            manager.setUserAgent( name + "/" + version );
        }

        return manager;
    }
View Full Code Here

    public void testDeployWar()
        throws Exception
    {
        uploadServlet.uploadedResources.clear();
        TomcatManager tomcatManager = new TomcatManager( new URL( "http://localhost:" + this.port + "/foo/bar" ) );
        TomcatManagerResponse response =
            tomcatManager.deploy( "foo", new File( getBasedir(), "src/test/resources/test.txt" ) );

        assertEquals( 200, response.getStatusCode() );

        assertEquals( 1, uploadServlet.uploadedResources.size() );
        assertEquals( "/foo/bar/deploy", uploadServlet.uploadedResources.get( 0 ).requestUri );
View Full Code Here

    public void testDeployWarWithRedirect()
        throws Exception
    {
        uploadServlet.uploadedResources.clear();
        TomcatManager tomcatManager =
            new TomcatManager( new URL( "http://localhost:" + this.redirectPort + "/foo/bar" ) );
        redirectServlet.redirectPath = "http://localhost:" + this.port + "/foo/bar/redirected";
        TomcatManagerResponse response =
            tomcatManager.deploy( "foo", new File( getBasedir(), "src/test/resources/test.txt" ) );

        assertEquals( 200, response.getStatusCode() );

        assertEquals( "no request to redirect servlet", 1, redirectServlet.uploadedResources.size() );
        assertEquals( "/foo/bar/deploy", redirectServlet.uploadedResources.get( 0 ).requestUri );
View Full Code Here

    public void testDeployWarWithRedirectRelative()
        throws Exception
    {
        uploadServlet.uploadedResources.clear();
        TomcatManager tomcatManager =
            new TomcatManager( new URL( "http://localhost:" + this.redirectPort + "/foo/bar" ) );
        redirectServlet.redirectPath = "redirectrelative/foo";
        TomcatManagerResponse response =
            tomcatManager.deploy( "foo", new File( getBasedir(), "src/test/resources/test.txt" ) );

        assertEquals( 200, response.getStatusCode() );

        assertEquals( "no request to redirect servlet", 2, redirectServlet.uploadedResources.size() );
        assertEquals( "/foo/bar/deploy", redirectServlet.uploadedResources.get( 0 ).requestUri );
View Full Code Here

                userName = this.username;
                password = this.password == null ? "" : this.password;
                //getLog( ).debug( "user user/password " + userName + "/" + password );
            }

            manager = new TomcatManager( url, userName, password, charset, settings.isInteractiveMode() );
            manager.setUserAgent( name + "/" + version );
        }

        return manager;
    }
View Full Code Here

            {
                userName = this.username;
                password = this.password == null ? "" : this.password;
            }

            manager = new TomcatManager( url, userName, password, charset, settings.isInteractiveMode() );
            manager.setUserAgent( name + "/" + version );
        }

        return manager;
    }
View Full Code Here

                userName = this.username;
                password = this.password == null ? "" : this.password;
                //getLog( ).debug( "user user/password " + userName + "/" + password );
            }

            manager = new TomcatManager( url, userName, password, charset );
            manager.setUserAgent( name + "/" + version );
        }

        return manager;
    }
View Full Code Here

            {
                userName = this.username;
                password = this.password == null ? "" : this.password;
            }

            manager = new TomcatManager( url, userName, password, charset );
            manager.setUserAgent( name + "/" + version );
        }

        return manager;
    }
View Full Code Here

TOP

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

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.