Runs the container embedded within the current JVM.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
SCHEME_HTTP |
|
static java.lang.String |
SCHEME_HTTPS |
Fields inherited from class | Fields |
---|---|
class BaseSettingsApi |
appClassName, buildEventListener, buildProps, buildSettings, configSlurper, enableProfile, grailsAppName, grailsHome, isInteractive, metadata, metadataFile, pluginSettings, pluginsHome, resolver |
Constructor and description |
---|
GrailsProjectRunner
(GrailsProjectPackager projectPackager, GrailsProjectWarCreator warCreator, java.lang.ClassLoader classLoader) |
Type | Name and description |
---|---|
java.net.ServerSocket |
createServerSocket(int port) |
GrailsProjectPackager |
getProjectPackager() |
java.lang.String |
getServerContextPath() |
java.lang.String |
getUrl() |
java.lang.String |
getUrlHttps() |
GrailsProjectWarCreator |
getWarCreator() |
boolean |
isServerRunning() @return Whether the server is running |
EmbeddableServer |
runApp() Runs the application in dev mode, i.e. with class-reloading. |
EmbeddableServer |
runAppHttps() Runs the application in dev mode over HTTPS. |
EmbeddableServer |
runServer(java.util.Map args) Runs the Server. |
EmbeddableServer |
runWar() Runs the application using the WAR file directly. |
EmbeddableServer |
runWarHttps() Runs the application over HTTPS using the WAR file directly. |
void |
stopServer() |
Runs the application in dev mode, i.e. with class-reloading.
Runs the application in dev mode over HTTPS.
Runs the Server. You can pass these named arguments: server - The server instance to use (required). port - The network port the server is running on (used to display the URL) (required). scheme - The network scheme to display in the URL (optional; defaults to "http").
Runs the application using the WAR file directly.
Runs the application over HTTPS using the WAR file directly.
Groovy Documentation