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 rt Show documentation
Show all versions of rt Show documentation
JAX-WS Reference Implementation Runtime
The newest version!
/*
* Copyright (c) 1997, 2022 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 jakarta.xml.ws.EndpointReference;
import jakarta.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