类 BaseService

    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected org.apache.http.client.protocol.HttpClientContext context  
      protected java.lang.String domain  
      protected org.apache.http.impl.client.CloseableHttpClient httpClient  
      protected UrlManager urlManager  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected LoginStatus getErrLoginStatus​(java.lang.String html)  
      protected java.lang.String getResp​(@NonNull org.apache.http.client.methods.CloseableHttpResponse response)  
      protected void init​(ServiceConfig config)
      初始化服务
      protected boolean isNeedLogin​(@NonNull org.apache.http.client.methods.CloseableHttpResponse response)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • domain

        protected java.lang.String domain
      • context

        protected org.apache.http.client.protocol.HttpClientContext context
      • httpClient

        protected org.apache.http.impl.client.CloseableHttpClient httpClient
    • 构造器详细资料

      • BaseService

        public BaseService()
    • 方法详细资料

      • init

        protected void init​(ServiceConfig config)
        初始化服务
        参数:
        config - 配置信息
      • getResp

        protected java.lang.String getResp​(@NonNull
                                           @NonNull org.apache.http.client.methods.CloseableHttpResponse response)
                                    throws java.io.IOException,
                                           NotLoggedInException
        抛出:
        java.io.IOException
        NotLoggedInException
      • isNeedLogin

        protected boolean isNeedLogin​(@NonNull
                                      @NonNull org.apache.http.client.methods.CloseableHttpResponse response)
      • getErrLoginStatus

        protected LoginStatus getErrLoginStatus​(java.lang.String html)