本文整理汇总了Java中org.wso2.carbon.governance.notifications.worklist.stub.WorkListServiceStub类的典型用法代码示例。如果您正苦于以下问题:Java WorkListServiceStub类的具体用法?Java WorkListServiceStub怎么用?Java WorkListServiceStub使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WorkListServiceStub类属于org.wso2.carbon.governance.notifications.worklist.stub包,在下文中一共展示了WorkListServiceStub类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sendWorkListNotification
import org.wso2.carbon.governance.notifications.worklist.stub.WorkListServiceStub; //导入依赖的package包/类
private void sendWorkListNotification(Message event, String endpoint, String username, byte[] password, String url)
throws RemoteException, UnsupportedEncodingException, RegistryException {
try {
WorkListServiceStub stub = new WorkListServiceStub(configContext, url + "WorkListService");
ServiceClient client = stub._getServiceClient();
CarbonUtils.setBasicAccessSecurityHeaders(username, new String(password, "UTF-8"), client);
client.getOptions().setManageSession(true);
stub.addTask(endpoint.substring(7),event.getMessage().getFirstElement().getText(), 5);
} catch (Exception ex) {
if (url.startsWith("local") && ex.getMessage().equals("The input stream for an incoming message is null.")) {
//ignore exception from the local transport since empty response
} else {
throw new RegistryException(ex.getMessage(), ex);
}
}
}
示例2: HumanTaskClient
import org.wso2.carbon.governance.notifications.worklist.stub.WorkListServiceStub; //导入依赖的package包/类
public HumanTaskClient(ServletConfig config, HttpSession session) throws AxisFault {
ConfigurationContext configContext =
(ConfigurationContext) config.getServletContext().getAttribute(
CarbonConstants.CONFIGURATION_CONTEXT);
String backendServerURL =
workListConfig.getServerURL() != null ? workListConfig.getServerURL() :
CarbonUIUtil.getServerURL(config.getServletContext(), session);
htStub = new HumanTaskClientAPIAdminStub(configContext, backendServerURL + "HumanTaskClientAPIAdmin");
configureServiceClient(htStub, session);
umStub = new UserAdminStub(configContext, backendServerURL + "UserAdmin");
configureServiceClient(umStub, session);
wlStub = new WorkListServiceStub(configContext, backendServerURL + "WorkListService");
configureServiceClient(wlStub, session);
}
示例3: HumanTaskAdminClient
import org.wso2.carbon.governance.notifications.worklist.stub.WorkListServiceStub; //导入依赖的package包/类
public HumanTaskAdminClient(String backEndUrl, String sessionCookie) throws AxisFault {
htStub = new HumanTaskClientAPIAdminStub(backEndUrl + "HumanTaskClientAPIAdmin");
AuthenticateStub.authenticateStub(sessionCookie, htStub);
umStub = new UserAdminStub(backEndUrl + "UserAdmin");
AuthenticateStub.authenticateStub(sessionCookie, umStub);
wlStub = new WorkListServiceStub(backEndUrl + "WorkListService");
AuthenticateStub.authenticateStub(sessionCookie, wlStub);
}