public class WebAppPropertyConverter
extends java.lang.Object
Constructor and Description |
---|
WebAppPropertyConverter() |
Modifier and Type | Method and Description |
---|---|
static void |
fromProperties(JettyWebAppContext webApp,
java.io.File propsFile,
Server server,
java.util.Map<java.lang.String,java.lang.String> jettyProperties)
Configure a webapp from a properties file
|
static void |
fromProperties(JettyWebAppContext webApp,
java.lang.String resource,
Server server,
java.util.Map<java.lang.String,java.lang.String> jettyProperties)
Configure a webapp from a properties file.
|
static void |
toProperties(JettyWebAppContext webApp,
java.io.File propsFile,
java.lang.String contextXml)
Convert a webapp to properties stored in a file.
|
public static void toProperties(JettyWebAppContext webApp, java.io.File propsFile, java.lang.String contextXml) throws java.lang.Exception
webApp
- the webapp to convertpropsFile
- the file to put the properties intocontextXml
- the optional context xml file related to the webAppjava.lang.Exception
- if any I/O exception occurspublic static void fromProperties(JettyWebAppContext webApp, java.lang.String resource, Server server, java.util.Map<java.lang.String,java.lang.String> jettyProperties) throws java.lang.Exception
webApp
- the webapp to configureresource
- the properties file to applyserver
- the Server instance to usejettyProperties
- jetty properties to use if there is a context xml file to applyjava.lang.Exception
- if any I/O exception occurspublic static void fromProperties(JettyWebAppContext webApp, java.io.File propsFile, Server server, java.util.Map<java.lang.String,java.lang.String> jettyProperties) throws java.lang.Exception
webApp
- the webapp to configurepropsFile
- the properties to applyserver
- the Server instance to use if there is a context xml file to applyjettyProperties
- jetty properties to use if there is a context xml file to applyjava.lang.Exception
- if any I/O exception occursCopyright © 1995–2023 Webtide. All rights reserved.