org.apache.tomcat.maven.runner
Class Tomcat7Runner

java.lang.Object
  extended by org.apache.tomcat.maven.runner.Tomcat7Runner

public class Tomcat7Runner
extends Object

FIXME add junit for that but when https://issues.apache.org/bugzilla/show_bug.cgi?id=52028 fixed Main class used to run the standalone wars in a Apache Tomcat instance.

Since:
2.0
Author:
Olivier Lamy

Nested Class Summary
protected  class Tomcat7Runner.TomcatShutdownHook
           
 
Field Summary
static String ACCESS_LOG_VALVE_FORMAT_KEY
           
 int ajpPort
           
static String ARCHIVE_GENERATION_TIMESTAMP_KEY
           
 String clientAuth
           
static String CODE_SOURCE_CONTEXT_PATH
           
 String codeSourceContextPath
           
 File codeSourceWar
           
 boolean debug
           
static String ENABLE_NAMING_KEY
           
 String extractDirectory
           
 File extractDirectoryFile
           
static String HTTP_PORT_KEY
          key for default http port defined in the plugin
static String HTTP_PROTOCOL_KEY
          key of the property which contains http protocol : HTTP/1.1 or org.apache.coyote.http11.Http11NioProtocol
 int httpPort
           
 String httpProtocol
           
 int httpsPort
           
 String keyAlias
           
 String loggerName
           
 int maxPostSize
           
 boolean resetExtract
           
 Properties runtimeProperties
           
 String serverXmlPath
           
static String USE_SERVER_XML_KEY
           
static String WARS_KEY
           
 
Constructor Summary
Tomcat7Runner()
           
 
Method Summary
 void debugMessage(String message)
           
 boolean enableNaming()
           
protected  void extract()
           
 void run()
           
 void stop()
           
 boolean useServerXml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_SERVER_XML_KEY

public static final String USE_SERVER_XML_KEY
See Also:
Constant Field Values

WARS_KEY

public static final String WARS_KEY
See Also:
Constant Field Values

ARCHIVE_GENERATION_TIMESTAMP_KEY

public static final String ARCHIVE_GENERATION_TIMESTAMP_KEY
See Also:
Constant Field Values

ENABLE_NAMING_KEY

public static final String ENABLE_NAMING_KEY
See Also:
Constant Field Values

ACCESS_LOG_VALVE_FORMAT_KEY

public static final String ACCESS_LOG_VALVE_FORMAT_KEY
See Also:
Constant Field Values

CODE_SOURCE_CONTEXT_PATH

public static final String CODE_SOURCE_CONTEXT_PATH
See Also:
Constant Field Values

HTTP_PROTOCOL_KEY

public static final String HTTP_PROTOCOL_KEY
key of the property which contains http protocol : HTTP/1.1 or org.apache.coyote.http11.Http11NioProtocol

See Also:
Constant Field Values

HTTP_PORT_KEY

public static final String HTTP_PORT_KEY
key for default http port defined in the plugin

See Also:
Constant Field Values

httpPort

public int httpPort

httpsPort

public int httpsPort

maxPostSize

public int maxPostSize

ajpPort

public int ajpPort

serverXmlPath

public String serverXmlPath

runtimeProperties

public Properties runtimeProperties

resetExtract

public boolean resetExtract

debug

public boolean debug

clientAuth

public String clientAuth

keyAlias

public String keyAlias

httpProtocol

public String httpProtocol

extractDirectory

public String extractDirectory

extractDirectoryFile

public File extractDirectoryFile

codeSourceContextPath

public String codeSourceContextPath

codeSourceWar

public File codeSourceWar

loggerName

public String loggerName
Constructor Detail

Tomcat7Runner

public Tomcat7Runner()
Method Detail

run

public void run()
         throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception

extract

protected void extract()
                throws Exception
Throws:
Exception

useServerXml

public boolean useServerXml()

debugMessage

public void debugMessage(String message)

enableNaming

public boolean enableNaming()


Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.