com.sun.xml.ws.developer.EPRRecipe Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-rt Show documentation
Show all versions of webservices-rt Show documentation
This module contains the Metro runtime code.
/*
* Copyright (c) 1997, 2019 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.developer;
import com.sun.istack.NotNull;
import com.sun.xml.ws.api.message.Header;
import com.sun.xml.ws.api.message.Headers;
import javax.xml.transform.Source;
import javax.xml.ws.EndpointReference;
import javax.xml.ws.wsaddressing.W3CEndpointReference;
import java.util.ArrayList;
import java.util.List;
/**
* Represents additional data to be added to EPRs
* created from {@link StatefulWebServiceManager} (for advanced users).
*
*
* Occasionally it is convenient to be able to control the data to be
* present on {@link EndpointReference}s created by {@link StatefulWebServiceManager}.
* You can do so by using this class like this:
*
*
* statefulWebServiceManager.export({@link W3CEndpointReference}.class,myObject,
* new EPRRecipe().addReferenceParameter({@link Headers}.create(...))
* .addReferenceParameter({@link 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.
*
* @author Kohsuke Kawaguchi
* @since 2.1.1
* @see StatefulWebServiceManager
* @see Headers
*/
public final class EPRRecipe {
private final List referenceParameters = new ArrayList();
private final List