|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.tools.development.AbstractContainerService
public abstract class AbstractContainerService
Common implementation for the ContainerService
interface.
There should be no reference to any third-party servlet container from here.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.google.appengine.tools.development.ContainerService |
---|
ContainerService.EnvironmentVariableMismatchSeverity |
Constructor Summary | |
---|---|
AbstractContainerService()
|
Method Summary | |
---|---|
com.google.appengine.tools.development.LocalServerEnvironment |
configure(java.lang.String devAppServerVersion,
java.io.File appDir,
java.io.File webXmlLocation,
java.io.File appEngineWebXmlLocation,
java.lang.String address,
int port,
java.util.Map<java.lang.String,java.lang.Object> containerConfigProperties)
Sets up the necessary configuration parameters. |
java.lang.String |
getAddress()
Returns the listener network address, however it's decided during the servlet container deployment. |
AppEngineWebXml |
getAppEngineWebXmlConfig()
Return the AppEngineWebXml configuration of this container |
BackendsXml |
getBackendsXml()
|
java.lang.String |
getHostName()
Returns the host name of the server, however it's decided during the the servlet container deployment. |
int |
getPort()
Returns the listener port number, however it's decided during the servlet container deployment. |
java.util.Map<java.lang.String,java.lang.String> |
getServiceProperties()
|
void |
setEnvironmentVariableMismatchSeverity(ContainerService.EnvironmentVariableMismatchSeverity val)
Overrides the default EnvironmentVariableMismatchSeverity setting, to disable exceptions during the testing. |
void |
shutdown()
Shuts down the servlet container. |
void |
startup()
This is made final, and detail implementation (that is specific to any particular servlet container) goes to individual "template" methods. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.appengine.tools.development.ContainerService |
---|
getAppContext |
Constructor Detail |
---|
public AbstractContainerService()
Method Detail |
---|
public final com.google.appengine.tools.development.LocalServerEnvironment configure(java.lang.String devAppServerVersion, java.io.File appDir, java.io.File webXmlLocation, java.io.File appEngineWebXmlLocation, java.lang.String address, int port, java.util.Map<java.lang.String,java.lang.Object> containerConfigProperties)
ContainerService
configure
in interface ContainerService
devAppServerVersion
- Version of the devAppServer.appDir
- The location of the application to run.webXmlLocation
- The location of a file whose format complies with
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd. If null we will use
appEngineWebXmlLocation
- The location of the app engine config file.
If null we will use address
- The address on which the server will runport
- The port to which the server will be bound. If 0, an
available port will be selected.containerConfigProperties
- Additional properties used in the
configuration of the specific container implementation. This map travels
across classloader boundaries, so all values in the map must be JRE
classes.
public final void startup() throws java.lang.Exception
startup
in interface ContainerService
java.lang.Exception
- Any exception from the container will be rethrown as is.public final void shutdown() throws java.lang.Exception
ContainerService
shutdown
in interface ContainerService
java.lang.Exception
- Any exception from the container will be rethrown as is.public java.util.Map<java.lang.String,java.lang.String> getServiceProperties()
getServiceProperties
in interface ContainerService
public java.lang.String getAddress()
ContainerService
getAddress
in interface ContainerService
public AppEngineWebXml getAppEngineWebXmlConfig()
ContainerService
getAppEngineWebXmlConfig
in interface ContainerService
public BackendsXml getBackendsXml()
getBackendsXml
in interface ContainerService
public int getPort()
ContainerService
getPort
in interface ContainerService
public java.lang.String getHostName()
ContainerService
getHostName
in interface ContainerService
public void setEnvironmentVariableMismatchSeverity(ContainerService.EnvironmentVariableMismatchSeverity val)
ContainerService
setEnvironmentVariableMismatchSeverity
in interface ContainerService
val
- The new EnvironmentVariableMismatchSeverity.ContainerService.EnvironmentVariableMismatchSeverity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |