com.sun.xml.ws.api.wsdl.writer.WSDLGenExtnContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxws-rt Show documentation
Show all versions of jaxws-rt Show documentation
JAX-WS Runtime with module descriptor
/*
* 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.api.wsdl.writer;
import com.sun.xml.txw2.TypedXmlWriter;
import com.sun.xml.ws.api.model.SEIModel;
import com.sun.xml.ws.api.WSBinding;
import com.sun.xml.ws.api.server.Container;
import com.sun.istack.NotNull;
import com.sun.istack.Nullable;
/**
* WSDLGeneatorContext provides a context for the WSDLGeneratorExtension and is used in
* {@link WSDLGeneratorExtension#start(WSDLGenExtnContext)}. This context consists of TXW, {@link SEIModel},
* {@link WSBinding}, {@link Container}, and implementation class. WSDL extensions are used to
* extend the generated WSDL by adding implementation specific extensions.
*
* @author Jitendra Kotamraju
*/
public class WSDLGenExtnContext {
private final TypedXmlWriter root;
private final SEIModel model;
private final WSBinding binding;
private final Container container;
private final Class endpointClass;
/**
* Constructs WSDL Generation context for the extensions
*
* @param root This is the root element of the generated WSDL.
* @param model WSDL is being generated from this {@link SEIModel}.
* @param binding The binding for which we generate WSDL. the binding {@link WSBinding} represents a particular
* configuration of JAXWS. This can be typically be overriden by
* @param container The entry point to the external environment.
* If this extension is used at the runtime to generate WSDL, you get a {@link Container}
* that was given to {@link com.sun.xml.ws.api.server.WSEndpoint#create}.
*/
public WSDLGenExtnContext(@NotNull TypedXmlWriter root, @NotNull SEIModel model, @NotNull WSBinding binding,
@Nullable Container container, @NotNull Class endpointClass) {
this.root = root;
this.model = model;
this.binding = binding;
this.container = container;
this.endpointClass = endpointClass;
}
public TypedXmlWriter getRoot() {
return root;
}
public SEIModel getModel() {
return model;
}
public WSBinding getBinding() {
return binding;
}
public Container getContainer() {
return container;
}
public Class getEndpointClass() {
return endpointClass;
}
}