Package org.eclipse.jetty.maven.plugin
Class WebAppPropertyConverter
- java.lang.Object
-
- org.eclipse.jetty.maven.plugin.WebAppPropertyConverter
-
public class WebAppPropertyConverter extends java.lang.Object
WebAppPropertyConverter Converts a webapp's configuration to a properties file, and vice versa.
-
-
Constructor Summary
Constructors Constructor Description WebAppPropertyConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 filestatic 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.
-
-
-
Method Detail
-
toProperties
public static void toProperties(JettyWebAppContext webApp, java.io.File propsFile, java.lang.String contextXml) throws java.lang.Exception
Convert a webapp to properties stored in a file.- Parameters:
webApp
- the webapp to convertpropsFile
- the file to put the properties intocontextXml
- the optional context xml file related to the webApp- Throws:
java.lang.Exception
- if any I/O exception occurs
-
fromProperties
public 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
Configure a webapp from a properties file.- Parameters:
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 apply- Throws:
java.lang.Exception
- if any I/O exception occurs
-
fromProperties
public 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
Configure a webapp from a properties file- Parameters:
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 apply- Throws:
java.lang.Exception
- if any I/O exception occurs
-
-