|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 | |
|---|---|
void |
configure(java.lang.String devAppServerVersion,
java.io.File appDir,
java.lang.String webXmlLocation,
com.google.apphosting.utils.config.AppEngineWebXmlReader appEngineWebXmlReader,
java.lang.String address,
int port)
Set up the necessary configuration parameters. |
java.lang.String |
getAddress()
|
java.io.File |
getAppDirectory()
This allows us to recover the application directory from the container. |
int |
getPort()
|
java.security.Permissions |
getUserPermissions()
Returns a Permissions object containing UnresolvedPermission instances for every
permission that was requested by the user in their appengine-web.xml file. |
void |
setEnvironmentVariableMismatchSeverity(ContainerService.EnvironmentVariableMismatchSeverity val)
Override the default EnvironmentVariableMismatchSeverity setting, to disable exceptions during the testing. |
void |
shutdown()
Shut 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 |
|---|
getWebAppContext |
| Constructor Detail |
|---|
public AbstractContainerService()
| Method Detail |
|---|
public final void configure(java.lang.String devAppServerVersion,
java.io.File appDir,
java.lang.String webXmlLocation,
com.google.apphosting.utils.config.AppEngineWebXmlReader appEngineWebXmlReader,
java.lang.String address,
int port)
ContainerService
configure in interface ContainerServicedevAppServerVersion - 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. Can be null.appEngineWebXmlReader - The reader that will be used to create
an instance of AppEngineWebXml.
If null, an instance of AppEngineWebXmlReader will be
instantiated with appDir as the constructor argument.
public final void startup()
throws java.lang.Exception
startup in interface ContainerServicejava.lang.Exception - Any exception from the container will be rethrown as is.
public final void shutdown()
throws java.lang.Exception
ContainerService
shutdown in interface ContainerServicejava.lang.Exception - Any exception from the container will be rethrown as is.public java.lang.String getAddress()
getAddress in interface ContainerServicepublic java.io.File getAppDirectory()
ContainerService
getAppDirectory in interface ContainerServicepublic int getPort()
getPort in interface ContainerServicepublic void setEnvironmentVariableMismatchSeverity(ContainerService.EnvironmentVariableMismatchSeverity val)
ContainerService
setEnvironmentVariableMismatchSeverity in interface ContainerServiceval - The new EnvironmentVariableMismatchSeverity.ContainerService.EnvironmentVariableMismatchSeveritypublic java.security.Permissions getUserPermissions()
ContainerServicePermissions object containing UnresolvedPermission instances for every
permission that was requested by the user in their appengine-web.xml file.
Note that user code will not actually running with these
permissions. However, to user-provided code that calls SecurityManager.checkPermission directly it will appear that it
is. This is designed primarily for third-party libraries that
introduce their own Permission subclasses
that are not used by any other classes.
getUserPermissions in interface ContainerService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||