• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java WSEndpoint类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.xml.internal.ws.api.server.WSEndpoint的典型用法代码示例。如果您正苦于以下问题:Java WSEndpoint类的具体用法?Java WSEndpoint怎么用?Java WSEndpoint使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WSEndpoint类属于com.sun.xml.internal.ws.api.server包,在下文中一共展示了WSEndpoint类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: ServerTubeAssemblerContext

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
public ServerTubeAssemblerContext(@Nullable SEIModel seiModel,
                                  @Nullable WSDLPort wsdlModel, @NotNull WSEndpoint endpoint,
                                  @NotNull Tube terminal, boolean isSynchronous) {
    this.seiModel = seiModel;
    this.wsdlModel = wsdlModel;
    this.endpoint = endpoint;
    this.terminal = terminal;
    // WSBinding is actually BindingImpl
    this.binding = (BindingImpl)endpoint.getBinding();
    this.isSynchronous = isSynchronous;
    this.codec = this.binding.createCodec();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:ServerTubeAssemblerContext.java


示例2: getAssertion

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
/**
 * Return ManagedService assertion if there is one associated with the endpoint.
 *
 * @param endpoint The endpoint. Must not be null.
 * @return The policy assertion if found. Null otherwise.
 * @throws WebServiceException If computing the effective policy of the endpoint failed.
 */
public static ManagedServiceAssertion getAssertion(WSEndpoint endpoint) throws WebServiceException {
    LOGGER.entering(endpoint);
    // getPolicyMap is deprecated because it is only supposed to be used by Metro code
    // and not by other clients.
    @SuppressWarnings("deprecation")
    final PolicyMap policyMap = endpoint.getPolicyMap();
    final ManagedServiceAssertion assertion = ManagementAssertion.getAssertion(MANAGED_SERVICE_QNAME,
            policyMap, endpoint.getServiceName(), endpoint.getPortName(), ManagedServiceAssertion.class);
    LOGGER.exiting(assertion);
    return assertion;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:ManagedServiceAssertion.java


示例3: HttpAdapter

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
protected HttpAdapter(WSEndpoint endpoint,
                      HttpAdapterList<? extends HttpAdapter> owner,
                      String urlPattern) {
    super(endpoint);
    this.owner = owner;
    this.urlPattern = urlPattern;

    initWSDLMap(endpoint.getServiceDefinition());
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:HttpAdapter.java


示例4: createAdapter

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
@Override
public T createAdapter(String name, String urlPattern, WSEndpoint<?> endpoint) {
    T t = createHttpAdapter(name, urlPattern, endpoint);
    adapters.add(t);
    WSDLPort port = endpoint.getPort();
    if (port != null) {
        PortInfo portInfo = new PortInfo(port.getOwner().getName(),port.getName().getLocalPart(), endpoint.getImplementationClass());
        addressMap.put(portInfo, getValidPath(urlPattern));
    }
    return t;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:HttpAdapterList.java


示例5: getEPRAddress

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
public @Override @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) {
    PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass());
    String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart());
    if(address==null) {
        throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName()));
    }
    return address;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:PortableConnectionImpl.java


示例6: getWSDLAddress

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
@Override
public String getWSDLAddress(@NotNull Packet request, @NotNull WSEndpoint endpoint) {
    String eprAddress = getEPRAddress(request,endpoint);
    if(adapter.getEndpoint().getPort() != null) {
        return eprAddress+"?wsdl";
    } else {
        return null;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:PortableConnectionImpl.java


示例7: ServerAdapter

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
protected ServerAdapter(String name, String urlPattern, WSEndpoint endpoint, ServerAdapterList owner) {
    super(endpoint, owner, urlPattern);
    this.name = name;
    // registers itself with the container
    Module module = endpoint.getContainer().getSPI(Module.class);
    if(module==null)
        LOGGER.log(Level.WARNING, "Container {0} doesn''t support {1}",
                new Object[]{endpoint.getContainer(), Module.class});
    else {
        module.getBoundEndpoints().add(this);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:ServerAdapter.java


示例8: getEPRAddress

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
public @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) {
    //return WSHttpHandler.getRequestAddress(httpExchange);

    PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass());
    String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart());
    if(address==null)
        throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName()));
    return address;

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:ServerConnectionImpl.java


示例9: getWSDLAddress

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
public String getWSDLAddress(@NotNull Packet request, @NotNull WSEndpoint endpoint) {
    String eprAddress = getEPRAddress(request,endpoint);
    if(adapter.getEndpoint().getPort() != null)
        return eprAddress+"?wsdl";
    else
        return null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:ServerConnectionImpl.java


示例10: equalsProxiedInstance

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
@Override
public boolean equalsProxiedInstance(WSEndpoint endpoint) {
    if (wsEndpoint == null) {
        return (endpoint == null);
    }
    return wsEndpoint.equals(endpoint);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:WSEndpointMOMProxy.java


示例11: createEndpoint

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
/**
 * Implements {@link WSEndpoint#create}.
 *
 * No need to take WebServiceContext implementation. When InvokerPipe is
 * instantiated, it calls InstanceResolver to set up a WebServiceContext.
 * We shall only take delegate to getUserPrincipal and isUserInRole from adapter.
 *
 * <p>
 * Nobody else should be calling this method.
 */
public static <T> WSEndpoint<T> createEndpoint(
    Class<T> implType, boolean processHandlerAnnotation, @Nullable Invoker invoker,
    @Nullable QName serviceName, @Nullable QName portName,
    @Nullable Container container, @Nullable WSBinding binding,
    @Nullable SDDocumentSource primaryWsdl,
    @Nullable Collection<? extends SDDocumentSource> metadata,
    EntityResolver resolver, boolean isTransportSynchronous) {
    return createEndpoint(implType, processHandlerAnnotation, invoker, serviceName,
                    portName, container, binding, primaryWsdl, metadata, resolver, isTransportSynchronous, true);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:EndpointFactory.java


示例12: create

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
/**
 * Implements {@link WSEndpoint#create}.
 *
 * No need to take WebServiceContext implementation. When InvokerPipe is
 * instantiated, it calls InstanceResolver to set up a WebServiceContext.
 * We shall only take delegate to getUserPrincipal and isUserInRole from adapter.
 *
 * <p>
 * Nobody else should be calling this method.
 */
public <T> WSEndpoint<T> create(
        Class<T> implType, boolean processHandlerAnnotation, @Nullable Invoker invoker,
        @Nullable QName serviceName, @Nullable QName portName,
        @Nullable Container container, @Nullable WSBinding binding,
        @Nullable SDDocumentSource primaryWsdl,
        @Nullable Collection<? extends SDDocumentSource> metadata,
        EntityResolver resolver, boolean isTransportSynchronous) {
    return create(implType, processHandlerAnnotation, invoker, serviceName,
                    portName, container, binding, primaryWsdl, metadata, resolver, isTransportSynchronous,
                    true);

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:23,代码来源:EndpointFactory.java


示例13: ServerSchemaValidationTube

import com.sun.xml.internal.ws.api.server.WSEndpoint; //导入依赖的package包/类
public ServerSchemaValidationTube(WSEndpoint endpoint, WSBinding binding,
        SEIModel seiModel, WSDLPort wsdlPort, Tube next) {
    super(binding, next);
    this.seiModel = seiModel;
    this.wsdlPort = wsdlPort;

    if (endpoint.getServiceDefinition() != null) {
        MetadataResolverImpl mdresolver = new MetadataResolverImpl(endpoint.getServiceDefinition());
        Source[] sources = getSchemaSources(endpoint.getServiceDefinition(), mdresolver);
        for(Source source : sources) {
            LOGGER.fine("Constructing service validation schema from = "+source.getSystemId());
            //printDOM((DOMSource)source);
        }
        if (sources.length != 0) {
            noValidation = false;
            sf.setResourceResolver(mdresolver);
            try {
                schema = sf.newSchema(sources);
            } catch(SAXException e) {
                throw new WebServiceException(e);
            }
            validator = schema.newValidator();
            return;
        }
    }
    noValidation = true;
    schema = null;
    validator = null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:ServerSchemaValidationTube.java



注:本文中的com.sun.xml.internal.ws.api.server.WSEndpoint类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ResultHandler类代码示例发布时间:2022-05-23
下一篇:
Java Reference类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap