com.sun.xml.internal.ws.api.server.WSEndpoint Java Examples
The following examples show how to use
com.sun.xml.internal.ws.api.server.WSEndpoint.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ServerTubeAssemblerContext.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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(); }
Example #2
Source File: ServerAdapter.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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); } }
Example #3
Source File: ServerTubeAssemblerContext.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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(); }
Example #4
Source File: ManagedServiceAssertion.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example #5
Source File: ManagedServiceAssertion.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example #6
Source File: ServerTubeAssemblerContext.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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(); }
Example #7
Source File: ServerAdapter.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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); } }
Example #8
Source File: EndpointFactory.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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, boolean isStandard) { EndpointFactory factory = container != null ? container.getSPI(EndpointFactory.class) : null; if (factory == null) factory = EndpointFactory.getInstance(); return factory.create( implType,processHandlerAnnotation, invoker,serviceName,portName,container,binding,primaryWsdl,metadata,resolver,isTransportSynchronous,isStandard); }
Example #9
Source File: HttpAdapterList.java From hottub with GNU General Public License v2.0 | 5 votes |
@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; }
Example #10
Source File: ServerSchemaValidationTube.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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; }
Example #11
Source File: ServerTubeAssemblerContext.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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(); }
Example #12
Source File: ServerSchemaValidationTube.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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; }
Example #13
Source File: ManagedServiceAssertion.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example #14
Source File: ManagedServiceAssertion.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example #15
Source File: PortableConnectionImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@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; } }
Example #16
Source File: HttpAdapter.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected HttpAdapter(WSEndpoint endpoint, HttpAdapterList<? extends HttpAdapter> owner, String urlPattern) { super(endpoint); this.owner = owner; this.urlPattern = urlPattern; initWSDLMap(endpoint.getServiceDefinition()); }
Example #17
Source File: ServerConnectionImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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; }
Example #18
Source File: HttpAdapter.java From hottub with GNU General Public License v2.0 | 5 votes |
protected HttpAdapter(WSEndpoint endpoint, HttpAdapterList<? extends HttpAdapter> owner, String urlPattern) { super(endpoint); this.owner = owner; this.urlPattern = urlPattern; initWSDLMap(endpoint.getServiceDefinition()); }
Example #19
Source File: HttpAdapterList.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@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; }
Example #20
Source File: ServerAdapter.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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); } }
Example #21
Source File: ServerConnectionImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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; }
Example #22
Source File: WSEndpointMOMProxy.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public boolean equalsProxiedInstance(WSEndpoint endpoint) { if (wsEndpoint == null) { return (endpoint == null); } return wsEndpoint.equals(endpoint); }
Example #23
Source File: PortableConnectionImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@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; } }
Example #24
Source File: HttpAdapterList.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@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; }
Example #25
Source File: HttpAdapterList.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@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; }
Example #26
Source File: ServerTubeAssemblerContext.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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(); }
Example #27
Source File: ServerAdapter.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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); } }
Example #28
Source File: EndpointFactory.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected <T> WSEndpoint<T> create(QName serviceName, QName portName, WSBinding binding, Container container, SEIModel seiModel, WSDLPort wsdlPort, Class<T> implType, ServiceDefinitionImpl serviceDefinition, EndpointAwareTube terminal, boolean isTransportSynchronous, PolicyMap policyMap) { return new WSEndpointImpl<T>(serviceName, portName, binding, container, seiModel, wsdlPort, implType, serviceDefinition, terminal, isTransportSynchronous, policyMap); }
Example #29
Source File: AbstractMultiInstanceResolver.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@Override public void start(WSWebServiceContext wsc, WSEndpoint endpoint) { resourceInjector = getResourceInjector(endpoint); this.webServiceContext = wsc; this.owner = endpoint; }
Example #30
Source File: W3CWsaServerTube.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public W3CWsaServerTube(WSEndpoint endpoint, @NotNull WSDLPort wsdlPort, WSBinding binding, Tube next) { super(endpoint, wsdlPort, binding, next); af = binding.getFeature(AddressingFeature.class); }