当前位置: 首页>>代码示例>>Java>>正文


Java WorkListServiceStub类代码示例

本文整理汇总了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);
        }
    }

}
 
开发者ID:wso2,项目名称:carbon-registry,代码行数:18,代码来源:RegistryEventDispatcher.java

示例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);
}
 
开发者ID:wso2,项目名称:carbon-governance,代码行数:18,代码来源:HumanTaskClient.java

示例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);
}
 
开发者ID:wso2,项目名称:product-es,代码行数:11,代码来源:HumanTaskAdminClient.java


注:本文中的org.wso2.carbon.governance.notifications.worklist.stub.WorkListServiceStub类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。