Package org.apache.cxf.frontend
Class WSDLGetUtils
- java.lang.Object
-
- org.apache.cxf.frontend.WSDLGetUtils
-
public class WSDLGetUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTO_REWRITE_ADDRESSstatic StringAUTO_REWRITE_ADDRESS_ALLstatic StringPUBLISHED_ENDPOINT_URLstatic StringWSDL_CREATE_IMPORTS
-
Constructor Summary
Constructors Constructor Description WSDLGetUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DocumentgetDocument(Message message, String base, Map<String,String> params, String ctxUri, EndpointInfo endpointInfo)StringgetPublishableEndpointUrl(javax.wsdl.Definition def, String epurl, EndpointInfo endpointInfo)Retrieve the published endpoint url from the working information set.protected StringgetPublishedEndpointURL(Message message, String base, EndpointInfo endpointInfo)Retrieve the published endpoint url from the working information set.protected Map<String,javax.wsdl.extensions.schema.SchemaReference>getSchemaKeySchemaReference(EndpointInfo endpointInfo)Retrieve the map of known xsd SchemaReference objects for this endpoint.Map<String,String>getSchemaLocations(Message message, String base, String ctxUri, EndpointInfo endpointInfo)Set<String>getWSDLIds(Message message, String base, String ctxUri, EndpointInfo endpointInfo)protected Map<String,javax.wsdl.Definition>getWSDLKeyDefinition(EndpointInfo endpointInfo)Retrieve the map of known wsdl Definition objects for this endpoint.protected StringmapUri(Bus bus, String base, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String loc, String xsd, String resolvedXsd)protected DocumentreadXSDDocument(Bus bus, String xsd, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String base)Read the schema file and return as a Document object.protected StringresolveWithCatalogs(OASISCatalogManager catalogs, String start, String base)protected voidrewriteAddress(String base, Element el, String soapNS)protected voidrewriteAddressProtocolHostPort(String base, Element el, String httpBasePathProp, String soapNS)protected voidsetSoapAddressLocationOn(javax.wsdl.Port port, String url)protected voidupdateDefinition(Bus bus, javax.wsdl.Definition def, Map<String,javax.wsdl.Definition> done, Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas, String base, String docBase, String parentResolvedLocation)protected voidupdateDoc(Document doc, String base, Map<String,javax.wsdl.Definition> mp, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, Message message, String xsdWsdlPar)protected voidupdateDoc(Document doc, String base, Map<String,javax.wsdl.Definition> mp, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, Message message, String xsd, String wsdl)Deprecated.protected voidupdatePublishedEndpointUrl(String publishingUrl, javax.wsdl.Definition def, QName name)protected voidupdateSchemaImports(Bus bus, javax.wsdl.extensions.schema.Schema schema, String docBase, Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas, String base, String parentResolved)protected voidupdateWSDLKeyDefinition(Bus bus, Map<String,javax.wsdl.Definition> mp, Message message, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String base, EndpointInfo endpointInfo)Create a wsdl Definition object from the endpoint information and register it in the local data structure for future reference.voidupdateWSDLPublishedEndpointAddress(javax.wsdl.Definition def, EndpointInfo endpointInfo)DocumentwriteWSDLDocument(Message message, Map<String,javax.wsdl.Definition> mp, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String wsdl, String base, EndpointInfo endpointInfo)Write the contents of a wsdl Definition object to a file.
-
-
-
Field Detail
-
AUTO_REWRITE_ADDRESS
public static final String AUTO_REWRITE_ADDRESS
- See Also:
- Constant Field Values
-
AUTO_REWRITE_ADDRESS_ALL
public static final String AUTO_REWRITE_ADDRESS_ALL
- See Also:
- Constant Field Values
-
PUBLISHED_ENDPOINT_URL
public static final String PUBLISHED_ENDPOINT_URL
- See Also:
- Constant Field Values
-
WSDL_CREATE_IMPORTS
public static final String WSDL_CREATE_IMPORTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWSDLIds
public Set<String> getWSDLIds(Message message, String base, String ctxUri, EndpointInfo endpointInfo)
-
getSchemaLocations
public Map<String,String> getSchemaLocations(Message message, String base, String ctxUri, EndpointInfo endpointInfo)
-
getDocument
public Document getDocument(Message message, String base, Map<String,String> params, String ctxUri, EndpointInfo endpointInfo)
-
mapUri
protected String mapUri(Bus bus, String base, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String loc, String xsd, String resolvedXsd) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
updateDoc
@Deprecated protected void updateDoc(Document doc, String base, Map<String,javax.wsdl.Definition> mp, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, Message message, String xsd, String wsdl)
Deprecated.
-
updateDoc
protected void updateDoc(Document doc, String base, Map<String,javax.wsdl.Definition> mp, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, Message message, String xsdWsdlPar)
-
rewriteAddressProtocolHostPort
protected void rewriteAddressProtocolHostPort(String base, Element el, String httpBasePathProp, String soapNS)
-
resolveWithCatalogs
protected String resolveWithCatalogs(OASISCatalogManager catalogs, String start, String base)
-
updateDefinition
protected void updateDefinition(Bus bus, javax.wsdl.Definition def, Map<String,javax.wsdl.Definition> done, Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas, String base, String docBase, String parentResolvedLocation)
-
updateWSDLPublishedEndpointAddress
public void updateWSDLPublishedEndpointAddress(javax.wsdl.Definition def, EndpointInfo endpointInfo)
-
updatePublishedEndpointUrl
protected void updatePublishedEndpointUrl(String publishingUrl, javax.wsdl.Definition def, QName name)
-
setSoapAddressLocationOn
protected void setSoapAddressLocationOn(javax.wsdl.Port port, String url)
-
updateSchemaImports
protected void updateSchemaImports(Bus bus, javax.wsdl.extensions.schema.Schema schema, String docBase, Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas, String base, String parentResolved)
-
writeWSDLDocument
public Document writeWSDLDocument(Message message, Map<String,javax.wsdl.Definition> mp, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String wsdl, String base, EndpointInfo endpointInfo) throws javax.wsdl.WSDLException
Write the contents of a wsdl Definition object to a file.- Parameters:
message-mp- a map of known wsdl Definition objectssmp- a map of known xsd SchemaReference objectswsdl- name of the wsdl file to writebase- the request URLendpointInfo- information for a web service 'port' inside of a service- Returns:
- Document
- Throws:
javax.wsdl.WSDLException
-
getPublishableEndpointUrl
public String getPublishableEndpointUrl(javax.wsdl.Definition def, String epurl, EndpointInfo endpointInfo)
Retrieve the published endpoint url from the working information set.- Parameters:
def- a wsdl as class objectsepurl- the request URLendpointInfo- information for a web service 'port' inside of a service- Returns:
- String
-
readXSDDocument
protected Document readXSDDocument(Bus bus, String xsd, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String base) throws XMLStreamException
Read the schema file and return as a Document object.- Parameters:
bus- CXF's hub for access to internal constructsxsd- name of xsd file to be readsmp- a map of known xsd SchemaReference objectsbase- the request URL- Returns:
- Document
- Throws:
XMLStreamException
-
updateWSDLKeyDefinition
protected void updateWSDLKeyDefinition(Bus bus, Map<String,javax.wsdl.Definition> mp, Message message, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String base, EndpointInfo endpointInfo) throws javax.wsdl.WSDLException
Create a wsdl Definition object from the endpoint information and register it in the local data structure for future reference.- Parameters:
bus- CXF's hub for access to internal constructsmp- a map of known wsdl Definition objectsmessage-smp- a map of known xsd SchemaReference objectsbase- the request URLendpointInfo- information for a web service 'port' inside of a service- Throws:
javax.wsdl.WSDLException
-
getSchemaKeySchemaReference
protected Map<String,javax.wsdl.extensions.schema.SchemaReference> getSchemaKeySchemaReference(EndpointInfo endpointInfo)
Retrieve the map of known xsd SchemaReference objects for this endpoint.- Parameters:
endpointInfo- information for a web service 'port' inside of a service- Returns:
- Map
-
getWSDLKeyDefinition
protected Map<String,javax.wsdl.Definition> getWSDLKeyDefinition(EndpointInfo endpointInfo)
Retrieve the map of known wsdl Definition objects for this endpoint.- Parameters:
endpointInfo- information for a web service 'port' inside of a service- Returns:
- Map
-
getPublishedEndpointURL
protected String getPublishedEndpointURL(Message message, String base, EndpointInfo endpointInfo)
Retrieve the published endpoint url from the working information set.- Parameters:
message-base- the request URLendpointInfo- information for a web service 'port' inside of a service- Returns:
- String or NULL if none found
-
-