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


Java InfoAdminServiceStub类代码示例

本文整理汇总了Java中org.wso2.carbon.registry.info.stub.InfoAdminServiceStub的典型用法代码示例。如果您正苦于以下问题:Java InfoAdminServiceStub类的具体用法?Java InfoAdminServiceStub怎么用?Java InfoAdminServiceStub使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


InfoAdminServiceStub类属于org.wso2.carbon.registry.info.stub包,在下文中一共展示了InfoAdminServiceStub类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: InfoServiceAdminClient

import org.wso2.carbon.registry.info.stub.InfoAdminServiceStub; //导入依赖的package包/类
public InfoServiceAdminClient(String backEndUrl, String sessionCookie)
        throws RegistryException, AxisFault {
    String serviceName = "InfoAdminService";
    String endPoint = backEndUrl + serviceName;
    try {
        infoAdminServiceStub = new InfoAdminServiceStub(endPoint);
        AuthenticateStub.authenticateStub(sessionCookie, infoAdminServiceStub);
    } catch (AxisFault axisFault) {
        log.error("infoAdminServiceStub Initialization fail " + axisFault.getMessage());
        throw new AxisFault("infoAdminServiceStub Initialization fail " + axisFault.getMessage());
    }

}
 
开发者ID:wso2,项目名称:product-ei,代码行数:14,代码来源:InfoServiceAdminClient.java

示例2: InfoServiceClient

import org.wso2.carbon.registry.info.stub.InfoAdminServiceStub; //导入依赖的package包/类
public InfoServiceClient(String cookie, ServletConfig config, HttpSession session)
        throws RegistryException {
    this.session =session;
    if (proxy == null) {
        String backendServerURL = CarbonUIUtil.getServerURL(config.getServletContext(),
                session);
        ConfigurationContext configContext = (ConfigurationContext) config.
                getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
        String epr = backendServerURL + "InfoAdminService";

        try {
            stub = new InfoAdminServiceStub(configContext, epr);

            ServiceClient client = stub._getServiceClient();
            Options option = client.getOptions();
            option.setManageSession(true);
            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING,
                    cookie);

        } catch (AxisFault axisFault) {
            String msg = "Failed to initiate comment service client. " + axisFault.getMessage();
            log.error(msg, axisFault);
            throw new RegistryException(msg, axisFault);
        }
        proxy = this;
    }
}
 
开发者ID:wso2,项目名称:carbon-registry,代码行数:28,代码来源:InfoServiceClient.java


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