Class RequestHandler


  • public class RequestHandler
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      static RequestHandler instance()  
      Status login​(java.lang.String userName, char[] password)  
      Status logout()  
      java.util.List<MyManga> myManga()
      List of favorite maga of user if logged in.
      <T> T query​(java.lang.String param, java.lang.Class<T> type)  
      <T> T readJsonStream​(java.io.InputStream in, java.lang.Class<T> type)  
      • Methods inherited from class java.lang.Object

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

      • readJsonStream

        public <T> T readJsonStream​(java.io.InputStream in,
                                    java.lang.Class<T> type)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • login

        public Status login​(java.lang.String userName,
                            char[] password)
        Parameters:
        userName - user name of user in string
        password - password of user in char array
        Returns:
        Status
        See Also:
        JEdenManga.login(String, char[])
      • query

        public <T> T query​(java.lang.String param,
                           java.lang.Class<T> type)
                    throws java.io.IOException
        Throws:
        java.io.IOException