public abstract class AbstractCatalinaMojo extends AbstractTomcat7Mojo
messagesProvider, path, settings
ROLE
Constructor and Description |
---|
AbstractCatalinaMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected URL |
getDeployedURL()
Gets the URL of the deployed webapp.
|
protected TomcatManager |
getManager()
Gets the Tomcat manager wrapper object configured for this goal.
|
protected String |
getPath()
Gets the webapp context path to use when communicating with Tomcat manager.
|
protected URL |
getURL()
Gets the full URL of the Tomcat manager instance.
|
protected abstract void |
invokeManager()
Invokes Tomcat manager when this Mojo is executed.
|
protected void |
log(String string)
Splits the given string into lines and writes each one separately to the log at info level.
|
checkTomcatResponse
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws org.apache.maven.plugin.MojoExecutionException
protected abstract void invokeManager() throws org.apache.maven.plugin.MojoExecutionException, TomcatManagerException, IOException
org.apache.maven.plugin.MojoExecutionException
- if there was a problem executing this goalTomcatManagerException
- if the Tomcat manager request failsIOException
- if an i/o error occursprotected TomcatManager getManager() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if there was a problem obtaining the authentication detailsprotected URL getURL()
protected String getPath()
getPath
in class AbstractTomcat7Mojo
protected URL getDeployedURL() throws MalformedURLException
MalformedURLException
- if the deployed webapp URL is invalidprotected void log(String string)
string
- the string to writeCopyright © 2005–2014 The Apache Software Foundation. All rights reserved.