|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.tomcat.maven.plugin.tomcat6.AbstractI18NTomcat6Mojo
org.apache.tomcat.maven.plugin.tomcat6.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.tomcat6.AbstractI18NTomcat6Mojo |
|---|
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 org.apache.maven.plugin.MojoExecutionException
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 goal
TomcatManagerException - if the Tomcat manager request fails
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 URL getURL()
protected String getPath()
getPath in class AbstractI18NTomcat6Mojo
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 | |||||||||