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 voidcreateRealmFile(List<User> users, String etcDir, FileHandler fileHandler)Create realm (user, password and role) file.static StringgetExtraClasspath(WAR war, boolean xml)Gets the extra classpath for the WAR as a single string suitable for use within the JettyWebAppContextconfiguration.
-
-
-
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 JettyWebAppContextconfiguration.- Parameters:
war- The WAR being deployed, must not benull.xml-trueto escape XML markup in the result,falseto return a plain string.- Returns:
- The WAR's extra classpath or
nullif 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- Theetcdirectory of the configuration.fileHandler- File handler for writing the file.
-
-