Class LandingPages

java.lang.Object
com.ocient.auth.LandingPages

public class LandingPages extends Object
  • Constructor Details

    • LandingPages

      public LandingPages()
  • Method Details

    • successHTML

      public static String successHTML(String message)
      Generates an HTML document encoding the success response
      Parameters:
      message - the success message
      Returns:
      an HTML document
    • errorHTML

      public static String errorHTML(Map<String,Object> details)
      Generates an HTML document encoding the error response
      Parameters:
      details - the error details as key-value pairs
      Returns:
      an HTML document
    • getLogoFavicon

      public static String getLogoFavicon()
      These get functions should be used exclusively for testing This is not neccesarily good practice- but I went on a hunt for 2 weeks when these broke, so please don't use these gets outside of testing invalid input: '<'3
    • getLogoPNG

      public static String getLogoPNG()
    • getBootstrapCSS

      public static String getBootstrapCSS()
    • getFontsCSS

      public static String getFontsCSS()