public final class EPRRecipe extends Object
StatefulWebServiceManager (for advanced users).
Occasionally it is convenient to be able to control the data to be
present on EndpointReferences created by StatefulWebServiceManager.
You can do so by using this class like this:
statefulWebServiceManager.export(W3CEndpointReference.class,myObject, new EPRRecipe().addReferenceParameter(Headers.create(...)) .addReferenceParameter(Headers.create(...)));
The methods on this class follows the fluent interface design to allow construction without using a variable.
See WS-Addressing EPR information model for more details.
StatefulWebServiceManager,
Headers| Constructor and Description |
|---|
EPRRecipe() |
| Modifier and Type | Method and Description |
|---|---|
EPRRecipe |
addMetadata(Iterable<? extends Source> sources) |
EPRRecipe |
addMetadata(Source... sources) |
EPRRecipe |
addMetadata(Source source)
Adds a new metadata.
|
EPRRecipe |
addReferenceParameter(com.sun.xml.ws.api.message.Header h)
Adds a new reference parameter.
|
EPRRecipe |
addReferenceParameters(com.sun.xml.ws.api.message.Header... headers)
Adds all the headers as reference parameters.
|
EPRRecipe |
addReferenceParameters(Iterable<? extends com.sun.xml.ws.api.message.Header> headers)
Adds all the headers as reference parameters.
|
List<Source> |
getMetadata()
Gets all the metadata added so far.
|
List<com.sun.xml.ws.api.message.Header> |
getReferenceParameters()
Gets all the reference parameters added so far.
|
@NotNull public List<com.sun.xml.ws.api.message.Header> getReferenceParameters()
public EPRRecipe addReferenceParameter(com.sun.xml.ws.api.message.Header h)
public EPRRecipe addReferenceParameters(com.sun.xml.ws.api.message.Header... headers)
public EPRRecipe addReferenceParameters(Iterable<? extends com.sun.xml.ws.api.message.Header> headers)
Copyright © 2015 Oracle Corporation. All rights reserved.