Class DocumentUtil


  • public final class DocumentUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String encodeUrl​(java.lang.String url)  
      static <T> T getValue​(java.util.Map<java.lang.String,​java.lang.Object> doc, java.lang.String key, java.lang.Class<T> clazz)  
      static <T> T getValue​(java.util.Map<java.lang.String,​java.lang.Object> doc, java.lang.String key, java.lang.Class<T> clazz, T defaultValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getValue

        public static <T> T getValue​(java.util.Map<java.lang.String,​java.lang.Object> doc,
                                     java.lang.String key,
                                     java.lang.Class<T> clazz,
                                     T defaultValue)
      • getValue

        public static <T> T getValue​(java.util.Map<java.lang.String,​java.lang.Object> doc,
                                     java.lang.String key,
                                     java.lang.Class<T> clazz)
      • encodeUrl

        public static java.lang.String encodeUrl​(java.lang.String url)