Class MkmAPIConfig

java.lang.Object
org.api.mkm.tools.MkmAPIConfig

public class MkmAPIConfig
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    MkmAPIConfig()  
  • Method Summary

    Modifier and Type Method Description
    AuthenticationServices getAuthenticator()  
    int getCountCall()  
    static MkmAPIConfig getInstance()  
    int getMaxCall()  
    void init​(java.io.File magicCardMaketPropFile)  
    void init​(java.lang.String accessSecret, java.lang.String accessToken, java.lang.String appSecret, java.lang.String appToken)  
    void init​(java.util.Properties magicCardMaketPropFile)  
    void updateCount​(java.net.HttpURLConnection connection)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MkmAPIConfig

      public MkmAPIConfig()
  • Method Details

    • init

      public void init​(java.lang.String accessSecret, java.lang.String accessToken, java.lang.String appSecret, java.lang.String appToken) throws MkmException
      Throws:
      MkmException
    • init

      public void init​(java.util.Properties magicCardMaketPropFile) throws MkmException
      Throws:
      MkmException
    • init

      public void init​(java.io.File magicCardMaketPropFile) throws java.io.IOException
      Throws:
      java.io.IOException
    • getInstance

      public static MkmAPIConfig getInstance()
    • getAuthenticator

      public AuthenticationServices getAuthenticator()
    • updateCount

      public void updateCount​(java.net.HttpURLConnection connection)
    • getCountCall

      public int getCountCall()
    • getMaxCall

      public int getMaxCall()