Package io.hawt.web

Class ServletHelpers


  • public class ServletHelpers
    extends Object
    Helpers for servlet
    • Constructor Detail

      • ServletHelpers

        public ServletHelpers()
    • Method Detail

      • doForbidden

        public static void doForbidden​(javax.servlet.http.HttpServletResponse response)
      • doForbidden

        public static void doForbidden​(javax.servlet.http.HttpServletResponse response,
                                       ForbiddenReason reason)
      • doAuthPrompt

        public static void doAuthPrompt​(String realm,
                                        javax.servlet.http.HttpServletResponse response)
      • sendJSONResponse

        public static void sendJSONResponse​(javax.servlet.http.HttpServletResponse response,
                                            boolean value)
                                     throws IOException
        Throws:
        IOException
      • sendJSONResponse

        public static void sendJSONResponse​(javax.servlet.http.HttpServletResponse response,
                                            String json)
                                     throws IOException
        Throws:
        IOException
      • writeEmpty

        public static void writeEmpty​(PrintWriter out)
      • writeObject

        public static void writeObject​(org.jolokia.converter.Converters converters,
                                       org.jolokia.converter.json.JsonConvertOptions options,
                                       PrintWriter out,
                                       Object data)
      • populateTableMapForXl

        public static Map populateTableMapForXl​(List listEntry)
      • populateErrorTableMapForXl

        public static Map populateErrorTableMapForXl​(List listEntry)
      • generateCsvString

        public static String generateCsvString​(Map xlData)
      • flatten

        public static List flatten​(List list)
      • flatten

        public static Set flatten​(Set set)
      • removeNoisyString

        public static String removeNoisyString​(Object value)