public abstract class LocationTransformerObjectSupport extends TransformerObjectSupport
WsdlDefinitionHandlerAdapter
and XsdSchemaHandlerAdapter
that transforms
XSD and WSDL location attributes.Constructor and Description |
---|
LocationTransformerObjectSupport() |
Modifier and Type | Method and Description |
---|---|
protected String |
transformLocation(String location,
HttpServletRequest request)
Transform the given location string to reflect the given request.
|
protected void |
transformLocations(XPathExpression xPathExpression,
Document definitionDocument,
HttpServletRequest request)
Transforms the locations of the given definition document using the given XPath expression.
|
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
protected void transformLocations(XPathExpression xPathExpression, Document definitionDocument, HttpServletRequest request)
xPathExpression
- the XPath expressiondefinitionDocument
- the definition documentrequest
- the request, used to determine the location to transform toprotected String transformLocation(String location, HttpServletRequest request)
For instance, if the location attribute defined in the WSDL is http://localhost:8080/context/services/myService
,
and the request URI for the WSDL is http://example.com:80/context/myService.wsdl
, the location
will be changed to http://example.com:80/context/services/myService
.
If the location attribute defined in the WSDL is /services/myService
, and the request URI for the
WSDL is http://example.com:8080/context/myService.wsdl
, the location will be changed to
http://example.com:8080/context/services/myService
.
This method is only called when the transformLocations
property is true.