类 BaseService
- java.lang.Object
-
- top.xcphoenix.jfjw.service.BaseService
-
public abstract class BaseService extends java.lang.Object服务抽象类,调用具体服务必须先使用init()方法初始化- 版本:
- 1.0
- 作者:
- xuanc
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.apache.http.client.protocol.HttpClientContextcontextprotected java.lang.Stringdomainprotected org.apache.http.impl.client.CloseableHttpClienthttpClientprotected UrlManagerurlManager
-
构造器概要
构造器 构造器 说明 BaseService()BaseService(ServiceConfig config)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected LoginStatusgetErrLoginStatus(java.lang.String html)protected java.lang.StringgetResp(@NonNull org.apache.http.client.methods.CloseableHttpResponse response)protected voidinit(ServiceConfig config)初始化服务protected booleanisNeedLogin(@NonNull org.apache.http.client.methods.CloseableHttpResponse response)
-
-
-
字段详细资料
-
domain
protected java.lang.String domain
-
context
protected org.apache.http.client.protocol.HttpClientContext context
-
urlManager
protected UrlManager urlManager
-
httpClient
protected org.apache.http.impl.client.CloseableHttpClient httpClient
-
-
构造器详细资料
-
BaseService
public BaseService()
-
BaseService
public BaseService(ServiceConfig config)
-
-
方法详细资料
-
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.IOExceptionNotLoggedInException
-
isNeedLogin
protected boolean isNeedLogin(@NonNull @NonNull org.apache.http.client.methods.CloseableHttpResponse response)
-
getErrLoginStatus
protected LoginStatus getErrLoginStatus(java.lang.String html)
-
-