Changed @since 1.1.0 to @since 1.5.0

This commit is contained in:
Arjen Poutsma
2007-11-14 20:18:39 +00:00
parent 7097746897
commit 277e465d97
34 changed files with 184 additions and 99 deletions

View File

@@ -22,14 +22,13 @@ import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.core.JdkVersion;
import org.springframework.util.ClassUtils;
import org.springframework.util.StringUtils;
import org.w3c.dom.Element;
/**
* Parser for the <code>&lt;sws:marshalling-endpoints/&gt; element.
*
* @author Arjen Poutsma
* @since 1.1.0
* @since 1.5.0
*/
class MarshallingEndpointsBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser {

View File

@@ -23,7 +23,7 @@ import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
* {@link NamespaceHandler} for the '<code>sws</code>' namespace.
*
* @author Arjen Poutsma
* @since 1.1.0
* @since 1.5.0
*/
public class SwsNamespaceHandler extends NamespaceHandlerSupport {

View File

@@ -24,14 +24,13 @@ import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.util.xml.DomUtils;
import org.w3c.dom.Element;
/**
* Parser for the <code>&lt;sws:xpath-endpoints/&gt; element.
*
* @author Arjen Poutsma
* @since 1.1.0
* @since 1.5.0
*/
class XPathEndpointsBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser {

View File

@@ -45,7 +45,7 @@ import javax.xml.namespace.QName;
* @author Arjen Poutsma
* @author Alex Marshall
* @see #setLocationUri(String)
* @since 1.1.0
* @since 1.5.0
*/
public abstract class AbstractSoap12Wsdl4jDefinitionBuilder extends AbstractBindingWsdl4jDefinitionBuilder {
@@ -53,7 +53,9 @@ public abstract class AbstractSoap12Wsdl4jDefinitionBuilder extends AbstractBind
private static final String WSDL_SOAP_PREFIX = "soap12";
/** The default soap12:binding transport attribute value. */
/**
* The default soap12:binding transport attribute value.
*/
public static final String DEFAULT_TRANSPORT_URI = "http://schemas.xmlsoap.org/soap/http";
private String transportUri = DEFAULT_TRANSPORT_URI;
@@ -70,12 +72,16 @@ public abstract class AbstractSoap12Wsdl4jDefinitionBuilder extends AbstractBind
this.transportUri = transportUri;
}
/** Sets the value used for the soap12:address location attribute value. */
/**
* Sets the value used for the soap12:address location attribute value.
*/
public void setLocationUri(String locationUri) {
this.locationUri = locationUri;
}
/** Adds the WSDL SOAP namespace to the definition. */
/**
* Adds the WSDL SOAP namespace to the definition.
*/
protected void populateDefinition(Definition definition) throws WSDLException {
definition.addNamespace(WSDL_SOAP_PREFIX, WSDL_SOAP_NAMESPACE_URI);
}

View File

@@ -81,27 +81,39 @@ import org.xml.sax.SAXException;
* @see #setPortTypeName(String)
* @see #setRequestSuffix(String)
* @see #setResponseSuffix(String)
* @since 1.1.0
* @since 1.5.0
*/
public class XsdBasedSoap12Wsdl4jDefinitionBuilder extends AbstractSoap12Wsdl4jDefinitionBuilder
implements InitializingBean {
/** The default suffix used to detect request elements in the schema. */
/**
* The default suffix used to detect request elements in the schema.
*/
public static final String DEFAULT_REQUEST_SUFFIX = "Request";
/** The default suffix used to detect response elements in the schema. */
/**
* The default suffix used to detect response elements in the schema.
*/
public static final String DEFAULT_RESPONSE_SUFFIX = "Response";
/** The default suffix used to detect fault elements in the schema. */
/**
* The default suffix used to detect fault elements in the schema.
*/
public static final String DEFAULT_FAULT_SUFFIX = "Fault";
/** The default prefix used to register the schema namespace in the WSDL. */
/**
* The default prefix used to register the schema namespace in the WSDL.
*/
public static final String DEFAULT_SCHEMA_PREFIX = "schema";
/** The default prefix used to register the target namespace in the WSDL. */
/**
* The default prefix used to register the target namespace in the WSDL.
*/
public static final String DEFAULT_PREFIX = "tns";
/** The suffix used to create a service name from a port type name. */
/**
* The suffix used to create a service name from a port type name.
*/
public static final String SERVICE_SUFFIX = "Service";
private Resource schemaResource;
@@ -153,12 +165,16 @@ public class XsdBasedSoap12Wsdl4jDefinitionBuilder extends AbstractSoap12Wsdl4jD
this.faultSuffix = faultSuffix;
}
/** Sets the port type name used for this definition. Required. */
/**
* Sets the port type name used for this definition. Required.
*/
public void setPortTypeName(String portTypeName) {
this.portTypeName = portTypeName;
}
/** Sets the target namespace used for this definition. */
/**
* Sets the target namespace used for this definition.
*/
public void setTargetNamespace(String targetNamespace) {
this.targetNamespace = targetNamespace;
}
@@ -181,7 +197,9 @@ public class XsdBasedSoap12Wsdl4jDefinitionBuilder extends AbstractSoap12Wsdl4jD
this.prefix = prefix;
}
/** Sets the XSD schema to use for generating the WSDL. */
/**
* Sets the XSD schema to use for generating the WSDL.
*/
public void setSchema(Resource schemaResource) {
Assert.notNull(schemaResource, "'schema' must not be null");
Assert.isTrue(schemaResource.exists(), "schema \"" + schemaResource + "\" does not exit");
@@ -214,7 +232,9 @@ public class XsdBasedSoap12Wsdl4jDefinitionBuilder extends AbstractSoap12Wsdl4jD
}
}
/** Adds the target namespace and schema namespace to the definition. */
/**
* Adds the target namespace and schema namespace to the definition.
*/
protected void populateDefinition(Definition definition) throws WSDLException {
super.populateDefinition(definition);
definition.setTargetNamespace(targetNamespace);
@@ -224,7 +244,9 @@ public class XsdBasedSoap12Wsdl4jDefinitionBuilder extends AbstractSoap12Wsdl4jD
}
}
/** Does nothing. */
/**
* Does nothing.
*/
protected void buildImports(Definition definition) throws WSDLException {
}
@@ -495,7 +517,9 @@ public class XsdBasedSoap12Wsdl4jDefinitionBuilder extends AbstractSoap12Wsdl4jD
operation.setName(operationName);
}
/** Sets the name of the service to the name of the port type, with "Service" appended to it. */
/**
* Sets the name of the service to the name of the port type, with "Service" appended to it.
*/
protected void populateService(Service service) throws WSDLException {
service.setQName(new QName(targetNamespace, portTypeName + SERVICE_SUFFIX));
}

View File

@@ -24,10 +24,6 @@ import org.springframework.oxm.Marshaller;
import org.springframework.oxm.Unmarshaller;
import org.springframework.oxm.XmlMappingException;
/**
* @author Arjen Poutsma
* @since 1.1.0
*/
public class DummyMarshaller implements Marshaller, Unmarshaller {
public void marshal(Object graph, Result result) throws XmlMappingException, IOException {