Class JettyUtils
- java.lang.Object
-
- org.codehaus.cargo.container.jetty.internal.JettyUtils
-
public final class JettyUtils extends Object
A utility class to assist the Jetty containers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createRealmFile(List<User> users, String etcDir, FileHandler fileHandler)
Create realm (user, password and role) file.static String
getExtraClasspath(WAR war, boolean xml)
Gets the extra classpath for the WAR as a single string suitable for use within the JettyWebAppContext
configuration.
-
-
-
Method Detail
-
getExtraClasspath
public static String getExtraClasspath(WAR war, boolean xml)
Gets the extra classpath for the WAR as a single string suitable for use within the JettyWebAppContext
configuration.- Parameters:
war
- The WAR being deployed, must not benull
.xml
-true
to escape XML markup in the result,false
to return a plain string.- Returns:
- The WAR's extra classpath or
null
if none.
-
createRealmFile
public static void createRealmFile(List<User> users, String etcDir, FileHandler fileHandler)
Create realm (user, password and role) file.- Parameters:
users
- Users for which to create the file.etcDir
- Theetc
directory of the configuration.fileHandler
- File handler for writing the file.
-
-