Class ShrinkWrapManipulator

java.lang.Object
com.flowlogix.util.ShrinkWrapManipulator

public class ShrinkWrapManipulator extends Object
modifies web.xml according to xpath and function
Author:
lprimak
  • Field Details

  • Constructor Details

    • ShrinkWrapManipulator

      public ShrinkWrapManipulator()
  • Method Details

    • webXmlXPath

      public void webXmlXPath(WebArchive archive, List<ShrinkWrapManipulator.Action> actions)
      modified web.xml according to xpath and method
      Parameters:
      archive - to modify
      actions - list of actions to perform
    • isClientStateSavingIntegrationTest

      public static boolean isClientStateSavingIntegrationTest()
    • isShiroNativeSessionsIntegrationTest

      public static boolean isShiroNativeSessionsIntegrationTest()
    • toHttpsURL

      public static URL toHttpsURL(URL httpUrl)
      Transform http to https URL using sslPort system property, and default port 8181 if system property is not defined
      Parameters:
      httpUrl - http URL
      Returns:
      https URL
    • toHttpsURL

      public static URL toHttpsURL(URL httpUrl, String sslPortPropertyName, int defaultPort)
    • getContextParamValue

      public static String getContextParamValue(String paramName)