com.sun.xml.internal.ws.api.EndpointAddress Java Examples
The following examples show how to use
com.sun.xml.internal.ws.api.EndpointAddress.
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: WsaServerTube.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
@SuppressWarnings("ResultOfObjectAllocationIgnored") private void checkNonAnonymousAddresses(WSEndpointReference replyTo, WSEndpointReference faultTo) { if (!replyTo.isAnonymous()) { try { new EndpointAddress(URI.create(replyTo.getAddress())); } catch (Exception e) { throw new InvalidAddressingHeaderException(addressingVersion.replyToTag, addressingVersion.invalidAddressTag); } } //for now only validate ReplyTo /* if (!faultTo.isAnonymous()) { try { new EndpointAddress(URI.create(faultTo.getAddress())); } catch (IllegalArgumentException e) { throw new InvalidAddressingHeaderException(addressingVersion.faultToTag, addressingVersion.invalidAddressTag); } } */ }
Example #2
Source File: WsaServerTube.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@SuppressWarnings("ResultOfObjectAllocationIgnored") private void checkNonAnonymousAddresses(WSEndpointReference replyTo, WSEndpointReference faultTo) { if (!replyTo.isAnonymous()) { try { new EndpointAddress(URI.create(replyTo.getAddress())); } catch (Exception e) { throw new InvalidAddressingHeaderException(addressingVersion.replyToTag, addressingVersion.invalidAddressTag); } } //for now only validate ReplyTo /* if (!faultTo.isAnonymous()) { try { new EndpointAddress(URI.create(faultTo.getAddress())); } catch (IllegalArgumentException e) { throw new InvalidAddressingHeaderException(addressingVersion.faultToTag, addressingVersion.invalidAddressTag); } } */ }
Example #3
Source File: Packet.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void setEndPointAddressString(String s) { if (s == null) { this.endpointAddress = null; } else { this.endpointAddress = EndpointAddress.create(s); } }
Example #4
Source File: ClientTubeAssemblerContext.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * This constructor should be used only by JAX-WS Runtime and is not meant for external consumption. * @deprecated * Use {@link #ClientTubeAssemblerContext(EndpointAddress, WSDLPort, WSService, WSBindingProvider, WSBinding, Container, Codec, SEIModel, Class)} */ public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding, @NotNull Container container) { // WSBinding is actually BindingImpl this(address, wsdlModel, rootOwner, binding, container, ((BindingImpl)binding).createCodec() ); }
Example #5
Source File: WSServiceDelegate.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void addPort(QName portName, String bindingId, String endpointAddress) throws WebServiceException { if (!ports.containsKey(portName)) { BindingID bid = (bindingId == null) ? BindingID.SOAP11_HTTP : BindingID.parse(bindingId); ports.put(portName, new PortInfo(this, (endpointAddress == null) ? null : EndpointAddress.create(endpointAddress), portName, bid)); } else throw new WebServiceException(DispatchMessages.DUPLICATE_PORT(portName.toString())); }
Example #6
Source File: ClientTubeAssemblerContext.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * This constructor should be used only by JAX-WS Runtime and is not meant for external consumption. * * @since JAX-WS 2.2 */ public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSBindingProvider bindingProvider, @NotNull WSBinding binding, @NotNull Container container, Codec codec, SEIModel seiModel, Class sei) { this(address, wsdlModel, (bindingProvider==null? null: bindingProvider.getPortInfo().getOwner()), bindingProvider, binding, container, codec, seiModel, sei); }
Example #7
Source File: PortInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public PortInfo(WSServiceDelegate owner, EndpointAddress targetEndpoint, QName name, BindingID bindingId) { this.owner = owner; this.targetEndpoint = targetEndpoint; this.portName = name; this.bindingId = bindingId; this.portModel = getPortModel(owner, name); this.policyMap = createPolicyMap(); }
Example #8
Source File: WSServiceDelegate.java From hottub with GNU General Public License v2.0 | 5 votes |
private QName addPortEpr(WSEndpointReference wsepr) { if (wsepr == null) throw new WebServiceException(ProviderApiMessages.NULL_EPR()); QName eprPortName = getPortNameFromEPR(wsepr, null); //add Port, if it does n't exist; // TODO: what if it has different epr address? { PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName, getPortModel(wsdlService, eprPortName).getBinding().getBindingId()); if (!ports.containsKey(eprPortName)) { ports.put(eprPortName, portInfo); } } return eprPortName; }
Example #9
Source File: PortInfo.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public PortInfo(WSServiceDelegate owner, EndpointAddress targetEndpoint, QName name, BindingID bindingId) { this.owner = owner; this.targetEndpoint = targetEndpoint; this.portName = name; this.bindingId = bindingId; this.portModel = getPortModel(owner, name); this.policyMap = createPolicyMap(); }
Example #10
Source File: ClientTubeAssemblerContext.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * This constructor should be used only by JAX-WS Runtime and is not meant for external consumption. * * @since JAX-WS 2.2 */ public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSBindingProvider bindingProvider, @NotNull WSBinding binding, @NotNull Container container, Codec codec, SEIModel seiModel, Class sei) { this(address, wsdlModel, (bindingProvider==null? null: bindingProvider.getPortInfo().getOwner()), bindingProvider, binding, container, codec, seiModel, sei); }
Example #11
Source File: Packet.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void setEndPointAddressString(String s) { if (s == null) { this.endpointAddress = null; } else { this.endpointAddress = EndpointAddress.create(s); } }
Example #12
Source File: WSServiceDelegate.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private QName addPortEpr(WSEndpointReference wsepr) { if (wsepr == null) throw new WebServiceException(ProviderApiMessages.NULL_EPR()); QName eprPortName = getPortNameFromEPR(wsepr, null); //add Port, if it does n't exist; // TODO: what if it has different epr address? { PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName, getPortModel(wsdlService, eprPortName).getBinding().getBindingId()); if (!ports.containsKey(eprPortName)) { ports.put(eprPortName, portInfo); } } return eprPortName; }
Example #13
Source File: RequestContext.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void setEndPointAddressString(String s) { if (s == null) { throw new IllegalArgumentException(); } else { this.endpointAddress = EndpointAddress.create(s); } }
Example #14
Source File: WSServiceDelegate.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void addPort(QName portName, String bindingId, String endpointAddress) throws WebServiceException { if (!ports.containsKey(portName)) { BindingID bid = (bindingId == null) ? BindingID.SOAP11_HTTP : BindingID.parse(bindingId); ports.put(portName, new PortInfo(this, (endpointAddress == null) ? null : EndpointAddress.create(endpointAddress), portName, bid)); } else throw new WebServiceException(DispatchMessages.DUPLICATE_PORT(portName.toString())); }
Example #15
Source File: ClientTubeAssemblerContext.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * This constructor should be used only by JAX-WS Runtime and is not meant for external consumption. * @deprecated * Use {@link #ClientTubeAssemblerContext(EndpointAddress, WSDLPort, WSService, WSBindingProvider, WSBinding, Container, Codec, SEIModel, Class)} */ public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding, @NotNull Container container) { // WSBinding is actually BindingImpl this(address, wsdlModel, rootOwner, binding, container, ((BindingImpl)binding).createCodec() ); }
Example #16
Source File: WSServiceDelegate.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private QName addPortEpr(WSEndpointReference wsepr) { if (wsepr == null) throw new WebServiceException(ProviderApiMessages.NULL_EPR()); QName eprPortName = getPortNameFromEPR(wsepr, null); //add Port, if it does n't exist; // TODO: what if it has different epr address? { PortInfo portInfo = new PortInfo(this, (wsepr.getAddress() == null) ? null : EndpointAddress.create(wsepr.getAddress()), eprPortName, getPortModel(wsdlService, eprPortName).getBinding().getBindingId()); if (!ports.containsKey(eprPortName)) { ports.put(eprPortName, portInfo); } } return eprPortName; }
Example #17
Source File: WSServiceDelegate.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void addPort(QName portName, String bindingId, String endpointAddress) throws WebServiceException { if (!ports.containsKey(portName)) { BindingID bid = (bindingId == null) ? BindingID.SOAP11_HTTP : BindingID.parse(bindingId); ports.put(portName, new PortInfo(this, (endpointAddress == null) ? null : EndpointAddress.create(endpointAddress), portName, bid)); } else throw new WebServiceException(DispatchMessages.DUPLICATE_PORT(portName.toString())); }
Example #18
Source File: Packet.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void setEndPointAddressString(String s) { if (s == null) { this.endpointAddress = null; } else { this.endpointAddress = EndpointAddress.create(s); } }
Example #19
Source File: ClientTubeAssemblerContext.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @Nullable WSService rootOwner, @Nullable WSBindingProvider bindingProvider, @NotNull WSBinding binding, @NotNull Container container, Codec codec, SEIModel seiModel, Class sei) { this.address = address; this.wsdlModel = wsdlModel; this.rootOwner = rootOwner; this.bindingProvider = bindingProvider; this.binding = binding; this.container = container; this.codec = codec; this.seiModel = seiModel; this.sei = sei; }
Example #20
Source File: ClientTubeAssemblerContext.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * This constructor should be used only by JAX-WS Runtime and is not meant for external consumption. * @deprecated * Use {@link #ClientTubeAssemblerContext(EndpointAddress, WSDLPort, WSService, WSBindingProvider, WSBinding, Container, Codec, SEIModel, Class)} */ public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding, @NotNull Container container) { // WSBinding is actually BindingImpl this(address, wsdlModel, rootOwner, binding, container, ((BindingImpl)binding).createCodec() ); }
Example #21
Source File: ClientTubeAssemblerContext.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * This constructor should be used only by JAX-WS Runtime and is not meant for external consumption. * @deprecated * Use {@link #ClientTubeAssemblerContext(EndpointAddress, WSDLPort, WSService, WSBindingProvider, WSBinding, Container, Codec, SEIModel, Class)} */ public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding, @NotNull Container container) { // WSBinding is actually BindingImpl this(address, wsdlModel, rootOwner, binding, container, ((BindingImpl)binding).createCodec() ); }
Example #22
Source File: ClientTubeAssemblerContext.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * This constructor should be used only by JAX-WS Runtime and is not meant for external consumption. * @deprecated * Use {@link #ClientTubeAssemblerContext(EndpointAddress, WSDLPort, WSService, WSBindingProvider, WSBinding, Container, Codec, SEIModel, Class)} */ public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding, @NotNull Container container) { // WSBinding is actually BindingImpl this(address, wsdlModel, rootOwner, binding, container, ((BindingImpl)binding).createCodec() ); }
Example #23
Source File: PortInfo.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public PortInfo(WSServiceDelegate owner, EndpointAddress targetEndpoint, QName name, BindingID bindingId) { this.owner = owner; this.targetEndpoint = targetEndpoint; this.portName = name; this.bindingId = bindingId; this.portModel = getPortModel(owner, name); this.policyMap = createPolicyMap(); }
Example #24
Source File: MonitorBase.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Client monitoring is OFF by default because there is * no standard stub.close() method. Therefore people do * not typically close a stub when they are done with it * (even though the RI does provide a .close). * <pre> * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | off | off | off | on * false | off | off | off | off * true | on | on | off | on * </pre> */ @NotNull public ManagedObjectManager createManagedObjectManager(final Stub stub) { EndpointAddress ea = stub.requestContext.getEndpointAddress(); if (ea == null) { return ManagedObjectManagerFactory.createNOOP(); } String rootName = ea.toString(); final ManagedClientAssertion assertion = ManagedClientAssertion.getAssertion(stub.getPortInfo()); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This client", rootName); } else if (assertion.monitoringAttribute() == Setting.ON && clientMonitoring != Setting.OFF) { return createMOMLoop(rootName, 0); } } if (clientMonitoring == Setting.NOT_SET || clientMonitoring == Setting.OFF) { return disabled("Global client", rootName); } return createMOMLoop(rootName, 0); }
Example #25
Source File: PortInfo.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public PortInfo(WSServiceDelegate owner, EndpointAddress targetEndpoint, QName name, BindingID bindingId) { this.owner = owner; this.targetEndpoint = targetEndpoint; this.portName = name; this.bindingId = bindingId; this.portModel = getPortModel(owner, name); this.policyMap = createPolicyMap(); }
Example #26
Source File: MonitorBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Client monitoring is OFF by default because there is * no standard stub.close() method. Therefore people do * not typically close a stub when they are done with it * (even though the RI does provide a .close). * <pre> * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | off | off | off | on * false | off | off | off | off * true | on | on | off | on * </pre> */ @NotNull public ManagedObjectManager createManagedObjectManager(final Stub stub) { EndpointAddress ea = stub.requestContext.getEndpointAddress(); if (ea == null) { return ManagedObjectManagerFactory.createNOOP(); } String rootName = ea.toString(); final ManagedClientAssertion assertion = ManagedClientAssertion.getAssertion(stub.getPortInfo()); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This client", rootName); } else if (assertion.monitoringAttribute() == Setting.ON && clientMonitoring != Setting.OFF) { return createMOMLoop(rootName, 0); } } if (clientMonitoring == Setting.NOT_SET || clientMonitoring == Setting.OFF) { return disabled("Global client", rootName); } return createMOMLoop(rootName, 0); }
Example #27
Source File: ClientPipeAssemblerContext.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public ClientPipeAssemblerContext(@NotNull EndpointAddress address, @NotNull WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding) { this(address, wsdlModel, rootOwner, binding, Container.NONE); }
Example #28
Source File: ClientPipeAssemblerContext.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public ClientPipeAssemblerContext(@NotNull EndpointAddress address, @NotNull WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding, @NotNull Container container) { super(address, wsdlModel, rootOwner, binding, container); }
Example #29
Source File: WSDLPortImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * Only meant for {@link RuntimeWSDLParser} to call. */ public void setAddress(EndpointAddress address) { assert address!=null; this.address = address; }
Example #30
Source File: Stub.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private Stub(WSServiceDelegate owner, @Nullable Tube master, @Nullable WSPortInfo portInfo, QName portname, BindingImpl binding, @Nullable WSDLPort wsdlPort, EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { Container old = ContainerResolver.getDefault().enterContainer(owner.getContainer()); try { this.owner = owner; this.portInfo = portInfo; this.wsdlPort = wsdlPort != null ? wsdlPort : (portInfo != null ? portInfo.getPort() : null); this.portname = portname; if (portname == null) { if (portInfo != null) { this.portname = portInfo.getPortName(); } else if (wsdlPort != null) { this.portname = wsdlPort.getName(); } } this.binding = binding; ComponentFeature cf = binding.getFeature(ComponentFeature.class); if (cf != null && Target.STUB.equals(cf.getTarget())) { components.add(cf.getComponent()); } ComponentsFeature csf = binding.getFeature(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (Target.STUB.equals(cfi.getTarget())) components.add(cfi.getComponent()); } } // if there is an EPR, EPR's address should be used for invocation instead of default address if (epr != null) { this.requestContext.setEndPointAddressString(epr.getAddress()); } else { this.requestContext.setEndpointAddress(defaultEndPointAddress); } this.engine = new Engine(getStringId(), owner.getContainer(), owner.getExecutor()); this.endpointReference = epr; wsdlProperties = (wsdlPort == null) ? new WSDLDirectProperties(owner.getServiceName(), portname) : new WSDLPortProperties(wsdlPort); this.cleanRequestContext = this.requestContext.copy(); // ManagedObjectManager MUST be created before the pipeline // is constructed. managedObjectManager = new MonitorRootClient(this).createManagedObjectManager(this); if (master != null) { this.tubes = new TubePool(master); } else { this.tubes = new TubePool(createPipeline(portInfo, binding)); } addrVersion = binding.getAddressingVersion(); // This needs to happen after createPipeline. // TBD: Check if it needs to happen outside the Stub constructor. managedObjectManager.resumeJMXRegistration(); } finally { ContainerResolver.getDefault().exitContainer(old); } }