171 private final 172 @NotNull 173 WSDLProperties wsdlProperties; 174 protected OperationDispatcher operationDispatcher = null; 175 private final 176 @NotNull 177 ManagedObjectManager managedObjectManager; 178 private boolean managedObjectManagerClosed = false; 179 180 private final Set<Component> components = new CopyOnWriteArraySet<Component>(); 181 182 /** 183 * @param master The created stub will send messages to this pipe. 184 * @param binding As a {@link BindingProvider}, this object will 185 * return this binding from {@link BindingProvider#getBinding()}. 186 * @param defaultEndPointAddress The destination of the message. The actual destination 187 * could be overridden by {@link RequestContext}. 188 * @param epr To create a stub that sends out reference parameters 189 * of a specific EPR, give that instance. Otherwise null. 190 * Its address field will not be used, and that should be given 191 * separately as the <tt>defaultEndPointAddress</tt>. 192 */ 193 @Deprecated 194 protected Stub(WSServiceDelegate owner, Tube master, BindingImpl binding, WSDLPort wsdlPort, EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 195 this(owner, master, null, null, binding, wsdlPort, defaultEndPointAddress, epr); 196 } 197 198 /** 199 * @param portname The name of this port 200 * @param master The created stub will send messages to this pipe. 201 * @param binding As a {@link BindingProvider}, this object will 202 * return this binding from {@link BindingProvider#getBinding()}. 203 * @param defaultEndPointAddress The destination of the message. The actual destination 204 * could be overridden by {@link RequestContext}. 205 * @param epr To create a stub that sends out reference parameters 206 * of a specific EPR, give that instance. Otherwise null. 207 * Its address field will not be used, and that should be given 208 * separately as the <tt>defaultEndPointAddress</tt>. 209 */ 210 @Deprecated 211 protected Stub(QName portname, WSServiceDelegate owner, Tube master, BindingImpl binding, WSDLPort wsdlPort, EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 212 this(owner, master, null, portname, binding, wsdlPort, defaultEndPointAddress, epr); 213 } 214 215 /** 216 * @param portInfo PortInfo for this stub 217 * @param binding As a {@link BindingProvider}, this object will 218 * return this binding from {@link BindingProvider#getBinding()}. 219 * @param master The created stub will send messages to this pipe. 220 * @param defaultEndPointAddress The destination of the message. The actual destination 221 * could be overridden by {@link RequestContext}. 222 * @param epr To create a stub that sends out reference parameters 223 * of a specific EPR, give that instance. Otherwise null. 224 * Its address field will not be used, and that should be given 225 * separately as the <tt>defaultEndPointAddress</tt>. 226 */ 227 protected Stub(WSPortInfo portInfo, BindingImpl binding, Tube master,EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 228 this((WSServiceDelegate) portInfo.getOwner(), master, portInfo, null, binding,portInfo.getPort(), defaultEndPointAddress, epr); 229 } 230 231 /** 232 * @param portInfo PortInfo for this stub 233 * @param binding As a {@link BindingProvider}, this object will 234 * return this binding from {@link BindingProvider#getBinding()}. 235 * @param defaultEndPointAddress The destination of the message. The actual destination 236 * could be overridden by {@link RequestContext}. 237 * @param epr To create a stub that sends out reference parameters 238 * of a specific EPR, give that instance. Otherwise null. 239 * Its address field will not be used, and that should be given 240 * separately as the <tt>defaultEndPointAddress</tt>. 241 */ 242 protected Stub(WSPortInfo portInfo, BindingImpl binding, EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 243 this(portInfo,binding,null, defaultEndPointAddress,epr); 244 245 } 246 247 private Stub(WSServiceDelegate owner, @Nullable Tube master, @Nullable WSPortInfo portInfo, QName portname, BindingImpl binding, @Nullable WSDLPort wsdlPort, EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 248 Container old = ContainerResolver.getDefault().enterContainer(owner.getContainer()); 249 try { 250 this.owner = owner; 251 this.portInfo = portInfo; 252 this.wsdlPort = wsdlPort != null ? wsdlPort : (portInfo != null ? portInfo.getPort() : null); 253 this.portname = portname; 254 if (portname == null) { 255 if (portInfo != null) { 256 this.portname = portInfo.getPortName(); 257 } else if (wsdlPort != null) { 258 this.portname = wsdlPort.getName(); 259 } 260 } | 171 private final 172 @NotNull 173 WSDLProperties wsdlProperties; 174 protected OperationDispatcher operationDispatcher = null; 175 private final 176 @NotNull 177 ManagedObjectManager managedObjectManager; 178 private boolean managedObjectManagerClosed = false; 179 180 private final Set<Component> components = new CopyOnWriteArraySet<Component>(); 181 182 /** 183 * @param master The created stub will send messages to this pipe. 184 * @param binding As a {@link BindingProvider}, this object will 185 * return this binding from {@link BindingProvider#getBinding()}. 186 * @param defaultEndPointAddress The destination of the message. The actual destination 187 * could be overridden by {@link RequestContext}. 188 * @param epr To create a stub that sends out reference parameters 189 * of a specific EPR, give that instance. Otherwise null. 190 * Its address field will not be used, and that should be given 191 * separately as the {@code defaultEndPointAddress}. 192 */ 193 @Deprecated 194 protected Stub(WSServiceDelegate owner, Tube master, BindingImpl binding, WSDLPort wsdlPort, EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 195 this(owner, master, null, null, binding, wsdlPort, defaultEndPointAddress, epr); 196 } 197 198 /** 199 * @param portname The name of this port 200 * @param master The created stub will send messages to this pipe. 201 * @param binding As a {@link BindingProvider}, this object will 202 * return this binding from {@link BindingProvider#getBinding()}. 203 * @param defaultEndPointAddress The destination of the message. The actual destination 204 * could be overridden by {@link RequestContext}. 205 * @param epr To create a stub that sends out reference parameters 206 * of a specific EPR, give that instance. Otherwise null. 207 * Its address field will not be used, and that should be given 208 * separately as the {@code defaultEndPointAddress}. 209 */ 210 @Deprecated 211 protected Stub(QName portname, WSServiceDelegate owner, Tube master, BindingImpl binding, WSDLPort wsdlPort, EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 212 this(owner, master, null, portname, binding, wsdlPort, defaultEndPointAddress, epr); 213 } 214 215 /** 216 * @param portInfo PortInfo for this stub 217 * @param binding As a {@link BindingProvider}, this object will 218 * return this binding from {@link BindingProvider#getBinding()}. 219 * @param master The created stub will send messages to this pipe. 220 * @param defaultEndPointAddress The destination of the message. The actual destination 221 * could be overridden by {@link RequestContext}. 222 * @param epr To create a stub that sends out reference parameters 223 * of a specific EPR, give that instance. Otherwise null. 224 * Its address field will not be used, and that should be given 225 * separately as the {@code defaultEndPointAddress}. 226 */ 227 protected Stub(WSPortInfo portInfo, BindingImpl binding, Tube master,EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 228 this((WSServiceDelegate) portInfo.getOwner(), master, portInfo, null, binding,portInfo.getPort(), defaultEndPointAddress, epr); 229 } 230 231 /** 232 * @param portInfo PortInfo for this stub 233 * @param binding As a {@link BindingProvider}, this object will 234 * return this binding from {@link BindingProvider#getBinding()}. 235 * @param defaultEndPointAddress The destination of the message. The actual destination 236 * could be overridden by {@link RequestContext}. 237 * @param epr To create a stub that sends out reference parameters 238 * of a specific EPR, give that instance. Otherwise null. 239 * Its address field will not be used, and that should be given 240 * separately as the {@code defaultEndPointAddress}. 241 */ 242 protected Stub(WSPortInfo portInfo, BindingImpl binding, EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 243 this(portInfo,binding,null, defaultEndPointAddress,epr); 244 245 } 246 247 private Stub(WSServiceDelegate owner, @Nullable Tube master, @Nullable WSPortInfo portInfo, QName portname, BindingImpl binding, @Nullable WSDLPort wsdlPort, EndpointAddress defaultEndPointAddress, @Nullable WSEndpointReference epr) { 248 Container old = ContainerResolver.getDefault().enterContainer(owner.getContainer()); 249 try { 250 this.owner = owner; 251 this.portInfo = portInfo; 252 this.wsdlPort = wsdlPort != null ? wsdlPort : (portInfo != null ? portInfo.getPort() : null); 253 this.portname = portname; 254 if (portname == null) { 255 if (portInfo != null) { 256 this.portname = portInfo.getPortName(); 257 } else if (wsdlPort != null) { 258 this.portname = wsdlPort.getName(); 259 } 260 } |