|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo org.apache.tomcat.maven.plugin.tomcat7.AbstractCatalinaMojo
public abstract class AbstractCatalinaMojo
Abstract goal that provides common configuration for Catalina-based goals.
Field Summary |
---|
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo |
---|
messagesProvider, path |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractCatalinaMojo()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCatalinaMojo()
Method Detail |
---|
public void execute() throws MojoExecutionException
MojoExecutionException
protected abstract void invokeManager() throws MojoExecutionException, TomcatManagerException, IOException
MojoExecutionException
- if there was a problem executing this goal
TomcatManagerException
- if the Tomcat manager request fails
IOException
- if an i/o error occursprotected TomcatManager getManager() throws MojoExecutionException
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 write
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |