|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.tomcat.AbstractI18NMojo
org.codehaus.mojo.tomcat.AbstractCatalinaMojo
public abstract class AbstractCatalinaMojo
Abstract goal that provides common configuration for Catalina-based goals.
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractCatalinaMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
protected java.net.URL |
getDeployedURL()
Gets the URL of the deployed webapp. |
protected TomcatManager |
getManager()
Gets the Tomcat manager wrapper object configured for this goal. |
protected java.lang.String |
getPath()
Gets the webapp context path to use when communicating with Tomcat manager. |
protected java.net.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(java.lang.String string)
Splits the given string into lines and writes each one separately to the log at info level. |
| Methods inherited from class org.codehaus.mojo.tomcat.AbstractI18NMojo |
|---|
getMessage, getMessage, getMessage, getMessage |
| 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 org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected abstract void invokeManager()
throws org.apache.maven.plugin.MojoExecutionException,
TomcatManagerException,
java.io.IOException
org.apache.maven.plugin.MojoExecutionException - if there was a problem executing this goal
TomcatManagerException - if the Tomcat manager request fails
java.io.IOException - if an i/o error occurs
protected TomcatManager getManager()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if there was a problem obtaining the authentication detailsprotected java.net.URL getURL()
protected java.lang.String getPath()
protected java.net.URL getDeployedURL()
throws java.net.MalformedURLException
java.net.MalformedURLException - if the deployed webapp URL is invalidprotected void log(java.lang.String string)
string - the string to write
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||