Methods Summary |
---|
public javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder | address(java.lang.String address)Sets the address to the
W3CEndpointReference instance's
wsa:Address .
The address MUST be set to a non-null
value when building a W3CEndpointReference for a
web service endpoint that is not published by the same
Java EE application or when running on Java SE.
this.address = address;
return this;
|
public javax.xml.ws.wsaddressing.W3CEndpointReference | build()Builds a W3CEndpointReference from the accumulated
properties set on this W3CEndpointReferenceBuilder
instance.
This method can be used to create a W3CEndpointReference
for any endpoint by specifying the address property along
with any other desired properties. This method
can also be used to create a W3CEndpointReference for
an endpoint that is published by the same Java EE application.
This method can automatically determine the address of
an endpoint published by the same Java EE application that is identified by the
serviceName and
endpointName properties. If the address is
null and the serviceName and
endpointName
do not identify an endpoint published by the same Java EE application, a
java.lang.IllegalStateException MUST be thrown.
return Provider.provider().createW3CEndpointReference(address,
serviceName, endpointName, metadata, wsdlDocumentLocation,
referenceParameters);
|
public javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder | endpointName(javax.xml.namespace.QName endpointName)Sets the endpointName of the endpoint to
be targeted by the returned W3CEndpointRefernce .
This method can only
be called after the {@link #serviceName} method has been called.
if (serviceName == null) {
throw new IllegalStateException("The W3CEndpointReferenceBuilder's serviceName must be set before setting the endpointName: "+endpointName);
}
this.endpointName = endpointName;
return this;
|
public javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder | metadata(org.w3c.dom.Element metadataElement)Adds the metadataElement to the
W3CEndpointReference instance's
wsa:Metadata element.
if (metadataElement == null)
throw new java.lang.IllegalArgumentException("The metadataElement cannot be null.");
metadata.add(metadataElement);
return this;
|
public javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder | referenceParameter(org.w3c.dom.Element referenceParameter)Adds the referenceParameter to the
W3CEndpointReference instance
wsa:ReferenceParameters element.
if (referenceParameter == null)
throw new java.lang.IllegalArgumentException("The referenceParameter cannot be null.");
referenceParameters.add(referenceParameter);
return this;
|
public javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder | serviceName(javax.xml.namespace.QName serviceName)Sets the serviceName of the endpoint to be targeted
by the returned W3CEndpointReference .
this.serviceName = serviceName;
return this;
|
public javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder | wsdlDocumentLocation(java.lang.String wsdlDocumentLocation)Sets the wsdlDocumentLocation associated with the targeted
W3CEndpointReference .
this.wsdlDocumentLocation = wsdlDocumentLocation;
return this;
|