Package com.google.gwt.core.ext
Class ServletContainer
- java.lang.Object
-
- com.google.gwt.core.ext.ServletContainer
-
public abstract class ServletContainer extends java.lang.ObjectAn instance of a servlet container that can be used by the shell. It is assumed that this servlet container serves a web app from the directory specified when this servlet container was created.
-
-
Constructor Summary
Constructors Constructor Description ServletContainer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHost()Returns the host on which the servlet container is running.abstract intgetPort()Returns the port on which the server is running.Used to construct a URL to reach the servlet container.abstract voidrefresh()Causes the web app to pick up changes made within the app root dir while running.abstract voidstop()Stops the running servlet container.
-
-
-
Method Detail
-
getHost
public java.lang.String getHost()
Returns the host on which the servlet container is running. Defaults to "localhost". Used to construct a URL to reach the servlet container.
-
getPort
public abstract int getPort()
Returns the port on which the server is running.Used to construct a URL to reach the servlet container.
-
refresh
public abstract void refresh() throws UnableToCompleteExceptionCauses the web app to pick up changes made within the app root dir while running. This method cannot be called afterstop()has been called. TODO(bruce): need to determine whether all the important servlet containers will let us do this (e.g. ensure they don't lock files we would need to update)- Throws:
UnableToCompleteException
-
stop
public abstract void stop() throws UnableToCompleteExceptionStops the running servlet container. It cannot be restarted after this.- Throws:
UnableToCompleteException
-
-