com.sun.xml.ws.api.model.JavaMethod Maven / Gradle / Ivy
/*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the license at
* https://glassfish.dev.java.net/public/CDDLv1.0.html.
* See the License for the specific language governing
* permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at https://glassfish.dev.java.net/public/CDDLv1.0.html.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* you own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* Copyright 2006 Sun Microsystems Inc. All Rights Reserved
*/
package com.sun.xml.ws.api.model;
import com.sun.istack.NotNull;
import com.sun.istack.Nullable;
import com.sun.xml.ws.api.model.soap.SOAPBinding;
import java.lang.reflect.Method;
/**
* Abstracts the annotated {@link Method} of a SEI.
*
* @author Vivek Pandey
*/
public interface JavaMethod {
/**
* Gets the root {@link SEIModel} that owns this model.
*/
SEIModel getOwner();
/**
* On the server side, it uses this for invocation of the web service
*
*
* {@link @WebService}(endpointInterface="I")
* class A { }
*
* In this case, it retuns A's method
*
*
* {@link @WebService}(endpointInterface="I")
* class A implements I { }
* In this case, it returns A's method
*
*
* {@link @WebService}
* class A { }
* In this case, it returns A's method
*
* @return Returns the java {@link Method}
*/
@NotNull Method getMethod();
/**
* This should be used if you want to access annotations on WebMethod
* Returns the SEI method if there is one.
*
*
* {@link @WebService}(endpointInterface="I")
* class A { }
* In this case, it retuns I's method
*
*
* {@link @WebService}(endpointInterface="I")
* class A implements I { }
* In this case, it returns I's method
*
*
* {@link @WebService}
* class A { }
* In this case, it returns A's method
*
* @return Returns the java {@link Method}
*/
@NotNull Method getSEIMethod();
/**
* @return Returns the {@link MEP}.
*/
MEP getMEP();
/**
* Binding object - a {@link SOAPBinding} isntance.
*
* @return the Binding object
*/
SOAPBinding getBinding();
/**
* Gives the wsdl:operation@name value
*/
@NotNull String getOperationName();
/**
* Gives the request wsdl:message@name value
*/
@NotNull String getRequestMessageName();
/**
* Gives the response wsdl:messageName value
* @return null if its a oneway operation that is getMEP().isOneWay()==true.
* @see com.sun.xml.ws.api.model.MEP#isOneWay()
*/
@Nullable String getResponseMessageName();
}