Package com.sun.xml.ws.developer
Class EPRRecipe
- java.lang.Object
-
- com.sun.xml.ws.developer.EPRRecipe
-
public final class EPRRecipe extends Object
Represents additional data to be added to EPRs created fromStatefulWebServiceManager(for advanced users).Occasionally it is convenient to be able to control the data to be present on
EndpointReferences created byStatefulWebServiceManager. 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.
- Since:
- 2.1.1
- Author:
- Kohsuke Kawaguchi
- See Also:
StatefulWebServiceManager,Headers
-
-
Constructor Summary
Constructors Constructor Description EPRRecipe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EPRRecipeaddMetadata(Iterable<? extends Source> sources)EPRRecipeaddMetadata(Source source)Adds a new metadata.EPRRecipeaddMetadata(Source... sources)EPRRecipeaddReferenceParameter(Header h)Adds a new reference parameter.EPRRecipeaddReferenceParameters(Header... headers)Adds all the headers as reference parameters.EPRRecipeaddReferenceParameters(Iterable<? extends Header> headers)Adds all the headers as reference parameters.List<Source>getMetadata()Gets all the metadata added so far.List<Header>getReferenceParameters()Gets all the reference parameters added so far.
-
-
-
Method Detail
-
getReferenceParameters
@NotNull public List<Header> getReferenceParameters()
Gets all the reference parameters added so far.
-
addReferenceParameter
public EPRRecipe addReferenceParameter(Header h)
Adds a new reference parameter.
-
addReferenceParameters
public EPRRecipe addReferenceParameters(Header... headers)
Adds all the headers as reference parameters.
-
addReferenceParameters
public EPRRecipe addReferenceParameters(Iterable<? extends Header> headers)
Adds all the headers as reference parameters.
-
-