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,
javax.servlet.http.HttpServletRequest request)
Transform the given location string to reflect the given request.
|
protected void |
transformLocations(XPathExpression xPathExpression,
Document definitionDocument,
javax.servlet.http.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, javax.servlet.http.HttpServletRequest request)
xPathExpression
- the XPath expressiondefinitionDocument
- the definition documentrequest
- the request, used to determine the location to transform toprotected String transformLocation(String location, javax.servlet.http.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.
Copyright © 2020 Pivotal Software. All rights reserved.