org.codehaus.xfire.annotations.WebServiceAnnotation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xfire-annotations Show documentation
Show all versions of xfire-annotations Show documentation
Annotation support for XFire
package org.codehaus.xfire.annotations;
/**
* 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
{
private String endpointInterface = "";
private String name = "";
private String serviceName = "";
private String targetNamespace = "";
private String portName = "";
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 WebServiceAnnotation
attribute.
*
* @return a string representation.
*/
public String toString()
{
return "WebServiceAnnotation{" +
"endpointInterface='" + endpointInterface + "'" +
", name='" + name + "'" +
", serviceName='" + serviceName + "'" +
", targetNamespace='" + targetNamespace + "'" +
"}";
}
}