public class Invoker extends Object
| Constructor and Description |
|---|
Invoker() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getOmIdMap(String tenantId,
String prodName,
Map<String,String> eocId) |
static ResponseModel |
invokeRestFasync(String hostProd,
String hostVer,
String hostId,
String hostAcct,
String tenantId,
String serviceProd,
String serviceProdUid,
String serviceName,
Map<String,String> datakey,
Map<String,String> headers,
String bodyJsonString)
以全異步模式(fasync)調用服務池(RESTful)
|
static ResponseModel |
invokeRestFasync(String hostProd,
String hostVer,
String hostId,
String hostAcct,
String tenantId,
String serviceProd,
String serviceProdUid,
String serviceName,
Map<String,String> datakey,
Map<String,String> headers,
String bodyJsonString,
Map<String,String> eocId)
以全異步模式(fasync)調用服務池(RESTful)
|
static String |
invokeRestSync(String hostProd,
String hostVer,
String hostId,
String hostAcct,
String tenantId,
String serviceProd,
String serviceProdUid,
String serviceName,
Map<String,String> datakey,
Map<String,String> headers,
String bodyJsonString)
以同步模式(sync)調用服務池(RESTful)
|
static String |
invokeRestSync(String hostProd,
String hostVer,
String hostId,
String hostAcct,
String tenantId,
String serviceProd,
String serviceProdUid,
String serviceName,
Map<String,String> datakey,
Map<String,String> headers,
String bodyJsonString,
Map<String,String> eocId)
以同步模式(sync)調用服務池(RESTful)
|
public static String invokeRestSync(String hostProd, String hostVer, String hostId, String hostAcct, String tenantId, String serviceProd, String serviceProdUid, String serviceName, Map<String,String> datakey, Map<String,String> headers, String bodyJsonString) throws org.apache.http.client.ClientProtocolException, IOException
hostProd - 發起方產品hostVer - 發起方產品版本號hostId - 發起方產品識別碼(ID)hostAcct - 應用程式帳戶資訊tenantId - 租戶IDserviceProd - 服務方產品serviceProdUid - 服務方產品唯一識別碼(UID)serviceName - 調用服務名稱datakey - datakeyheaders - 自定義headerbodyJsonString - 應用內容Json字串IOExceptionorg.apache.http.client.ClientProtocolExceptionpublic static String invokeRestSync(String hostProd, String hostVer, String hostId, String hostAcct, String tenantId, String serviceProd, String serviceProdUid, String serviceName, Map<String,String> datakey, Map<String,String> headers, String bodyJsonString, Map<String,String> eocId) throws ProductOperationIdNotFoundException, org.apache.http.client.ClientProtocolException, IOException
hostProd - 發起方產品hostVer - 發起方產品版本號hostId - 發起方產品識別碼(ID)hostAcct - 應用程式帳戶資訊tenantId - 租戶IDserviceProd - 服務方產品serviceProdUid - 服務方產品唯一識別碼(UID)serviceName - 調用服務名稱datakey - datakeyheaders - 自定義headerbodyJsonString - 應用內容Json字串eocId - 運營單元EOC代碼ProductOperationIdNotFoundException - 找不到EOC運營單元對應的地端產品組織代號IOExceptionorg.apache.http.client.ClientProtocolExceptionpublic static ResponseModel invokeRestFasync(String hostProd, String hostVer, String hostId, String hostAcct, String tenantId, String serviceProd, String serviceProdUid, String serviceName, Map<String,String> datakey, Map<String,String> headers, String bodyJsonString) throws org.apache.http.client.ClientProtocolException, IOException
hostProd - 發起方產品hostVer - 發起方產品版本號hostId - 發起方產品識別碼(ID)hostAcct - 應用程式帳戶資訊tenantId - 租戶IDserviceProd - 服務方產品serviceProdUid - 服務方產品唯一識別碼(UID)serviceName - 調用服務名稱datakey - datakeyheaders - 自定義headerbodyJsonString - 應用內容Json字串IOExceptionorg.apache.http.client.ClientProtocolExceptionpublic static ResponseModel invokeRestFasync(String hostProd, String hostVer, String hostId, String hostAcct, String tenantId, String serviceProd, String serviceProdUid, String serviceName, Map<String,String> datakey, Map<String,String> headers, String bodyJsonString, Map<String,String> eocId) throws ProductOperationIdNotFoundException, org.apache.http.client.ClientProtocolException, IOException
hostProd - 發起方產品hostVer - 發起方產品版本號hostId - 發起方產品識別碼(ID)hostAcct - 應用程式帳戶資訊tenantId - 租戶IDserviceProd - 服務方產品serviceProdUid - 服務方產品唯一識別碼(UID)serviceName - 調用服務名稱datakey - datakeyheaders - 自定義headerbodyJsonString - 應用內容Json字串eocId - 運營單元EOC代碼ProductOperationIdNotFoundException - 找不到EOC運營單元對應的地端產品組織代號IOExceptionorg.apache.http.client.ClientProtocolExceptionpublic static Map<String,String> getOmIdMap(String tenantId, String prodName, Map<String,String> eocId) throws ProductOperationIdNotFoundException, org.apache.http.client.ClientProtocolException, IOException
ProductOperationIdNotFoundExceptionorg.apache.http.client.ClientProtocolExceptionIOExceptionCopyright © 2020. All rights reserved.