webserviceannotation.java

来自「Xfire文件 用于开发web service 的一个开源工具 很好用的」· Java 代码 · 共 145 行

JAVA
145
字号
package org.codehaus.xfire.annotations;import java.io.Serializable;/** * Represents an common representation of a web service annotation. Specifies that the given method is exposed as a Web * Service operation, making it part of the Web Service�s public contract. A WebMethod annotation is required for each * method that is published by the Web Service. * * @author Arjen Poutsma */public class WebServiceAnnotation implements Serializable{    private String endpointInterface = "";    private String name = "";    private String serviceName = "";    private String targetNamespace = "";    private String portName = "";    private String wsdlLocation;    /**     * The location of the WSDL for the service.     * @return     */    public String getWsdlLocation()    {        return wsdlLocation;    }    public void setWsdlLocation(String wsdlLocation)    {        this.wsdlLocation = wsdlLocation;    }    public String getPortName()    {        return portName;    }    public void setPortName(String portName)    {        this.portName = portName;    }    /**     * Returns the name of the Web Service. Used as the name of the wsdl:portType when mapped to WSDL 1.1.  Defaults to     * the simple name of the Java class or interface.     *     * @return the name of the Web Service.     */    public String getName()    {        return name;    }    /**     * Sets the name of the Web Service. Used as the name of the wsdl:portType when mapped to WSDL 1.1.  Defaults to the     * simple name of the Java class or interface.     *     * @param name The new name of the Web Service.     */    public void setName(String name)    {        this.name = name;    }    /**     * Returns the complete name of the service endpoint interface defining the service�s abstract Web Service     * contract.     *     * @return the name of the service endpoint interface.     */    public String getEndpointInterface()    {        return endpointInterface;    }    /**     * Sets the complete name of the service endpoint interface defining the service�s abstract Web Service contract.     *     * @param endpointInterface the new name of the service endpoint interface.     */    public void setEndpointInterface(String endpointInterface)    {        this.endpointInterface = endpointInterface;    }    /**     * Returns the service name of the Web Service. Used as the name of the wsdl:service when mapped to WSDL 1.1.  Not     * allowed on interfaces. Defaults to the simple name of the Java class + �Service".     *     * @return the service name of the Web Service.     */    public String getServiceName()    {        return serviceName;    }    /**     * Sets the service name of the Web Service. Used as the name of the wsdl:service when mapped to WSDL 1.1.  Not     * allowed on interfaces. Defaults to the simple name of the Java class + �Service".     *     * @param serviceName the new service name of the Web Service.     */    public void setServiceName(String serviceName)    {        this.serviceName = serviceName;    }    /**     * Returns the XML namespace used for the WSDL and XML elements generated from this Web Service.     *     * @return the XML namespace used.     */    public String getTargetNamespace()    {        return targetNamespace;    }    /**     * Sets the XML namespace used for the WSDL and XML elements generated from this Web Service.     *     * @param targetNamespace the new XML namespace used.     */    public void setTargetNamespace(String targetNamespace)    {        this.targetNamespace = targetNamespace;    }    /**     * Returns a String representation of this <code>WebServiceAnnotation</code> attribute.     *     * @return a string representation.     */    public String toString()    {        return "WebServiceAnnotation{" +                "endpointInterface='" + endpointInterface + "'" +                ", name='" + name + "'" +                ", serviceName='" + serviceName + "'" +                ", targetNamespace='" + targetNamespace + "'" +                "}";    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?