All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.xml.ws.api.model.SEIModel Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show 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.api.model;

import com.sun.istack.NotNull;
import org.glassfish.jaxb.runtime.api.Bridge;
import org.glassfish.jaxb.runtime.api.JAXBRIContext;
import com.sun.xml.ws.api.model.wsdl.WSDLPort;
import com.sun.xml.ws.util.Pool;

import jakarta.xml.bind.JAXBContext;
import javax.xml.namespace.QName;
import jakarta.xml.ws.Dispatch;
import jakarta.xml.ws.Provider;
import java.lang.reflect.Method;
import java.util.Collection;

/**
 * Represents abstraction of SEI.
 *
 * 

* This interface would be used to access which Java concepts correspond to * which WSDL concepts, such as which wsdl:port corresponds to * a SEI, or which wsdl:operation corresponds to {@link JavaMethod}. * *

* It also retains information about the databinding done for a SEI; * such as {@link JAXBRIContext} and {@link Bridge}. * *

* This model is constructed only when there is a Java SEI. Therefore it's * not available with {@link Dispatch} or {@link Provider}. Technologies that * need to work regardless of such surface API difference shall not be using * this model. * * @author Vivek Pandey */ public interface SEIModel { Pool.Marshaller getMarshallerPool(); /** * JAXBContext that will be used to marshall/unmarshall the java classes found in the SEI. * * @return the {@link JAXBRIContext} * @deprecated Why do you need this? */ JAXBContext getJAXBContext(); /* Get the Bridge associated with the {@link TypeReference} @param type * @return the {@link Bridge} for the type */ // Bridge getBridge(TypeReference type); /* Its a known fault if the exception thrown by {@link Method} is annotated with the {@link jakarta.xml.ws.WebFault#name()} thas equal to the name passed as parameter. @param name is the qualified name of fault detail element as specified by wsdl:fault@element value. * @param method is the Java {@link Method} * @return true if name is the name * of a known fault name for the method */ // boolean isKnownFault(QName name, Method method); /* Checks if the {@link JavaMethod} for the {@link Method} knowns the exception class. @param m {@link Method} to pickup the right {@link JavaMethod} model * @param ex exception class * @return true if ex is a Checked Exception * for m */ // boolean isCheckedException(Method m, Class ex); /** * This method will be useful to get the {@link JavaMethod} corrrespondiong to * a {@link Method} - such as on the client side. * * @param method for which {@link JavaMethod} is asked for * @return the {@link JavaMethod} representing the method */ JavaMethod getJavaMethod(Method method); /** * Gives a {@link JavaMethod} for a given {@link QName}. The {@link QName} will * be equivalent to the SOAP Body or Header block or can simply be the name of an * infoset that corresponds to the payload. * @return the JavaMethod associated with the * operation named name */ public JavaMethod getJavaMethod(QName name); /** * Gives the JavaMethod associated with the wsdl operation * @param operationName QName of the wsdl operation */ public JavaMethod getJavaMethodForWsdlOperation(QName operationName); /** * Gives all the {@link JavaMethod} for a wsdl:port for which this {@link SEIModel} is * created. * * @return a {@link Collection} of {@link JavaMethod} * associated with the {@link SEIModel} */ Collection getJavaMethods(); /** * Location of the WSDL that defines the port associated with the {@link SEIModel} * * @return wsdl location uri - always non-null */ @NotNull String getWSDLLocation(); /** * wsdl:service qualified name for the port associated with the {@link SEIModel} * * @return wsdl:service@name value - always non-null */ @NotNull QName getServiceQName(); /** * Gets the {@link WSDLPort} that represents the port that this SEI binds to. */ @NotNull WSDLPort getPort(); /** * Value of the wsdl:port name associated with the {@link SEIModel} * * @return wsdl:service/wsdl:port@name value, always non-null */ @NotNull QName getPortName(); /** * Value of wsdl:portType bound to the port associated with the {@link SEIModel} * */ @NotNull QName getPortTypeName(); /** * Gives the wsdl:binding@name value */ @NotNull QName getBoundPortTypeName(); /** * Namespace of the wsd;:port associated with the {@link SEIModel} */ @NotNull String getTargetNamespace(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy