com.seeyon.client
类 CTPServiceClientManager

java.lang.Object
  继承者 com.seeyon.client.CTPServiceClientManager

public class CTPServiceClientManager
extends java.lang.Object

CTP远程服务访问客户端管理。

从以下版本开始:
V5.1
作者:
wangwenyou

方法摘要
 CTPAxis2Client getAxis2Client()
          取得Axis2 SOAP动态客户机。
 java.lang.String getBaseUrl()
           
static CTPServiceClientManager getInstance(java.lang.String baseUrl)
          取得指定服务主机的客户端管理器。
 CTPRestClient getRestClient()
          取得REST动态客户机。
<T> T
getStub(java.lang.Class<T> clazz)
          取得指定服务的客户端存根。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getBaseUrl

public java.lang.String getBaseUrl()

getInstance

public static CTPServiceClientManager getInstance(java.lang.String baseUrl)
取得指定服务主机的客户端管理器。

参数:
baseUrl - 服务主机地址,包含{协议}{Ip}:{端口},如http://127.0.0.1:80
返回:
客户端实例。

getRestClient

public CTPRestClient getRestClient()
取得REST动态客户机。

返回:
REST客户机实例。

getAxis2Client

public CTPAxis2Client getAxis2Client()
取得Axis2 SOAP动态客户机。

返回:
SOAP客户机实例。

getStub

public <T> T getStub(java.lang.Class<T> clazz)
          throws java.lang.Exception
取得指定服务的客户端存根。

参数:
clazz - 服务接口,如AuthorityService、OrganizationDataService。
返回:
指定服务接口的客户端实例。
抛出:
java.lang.Exception - 创建实例失败抛出异常。