public class WSDLGetUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AUTO_REWRITE_ADDRESS |
static String |
AUTO_REWRITE_ADDRESS_ALL |
static String |
PUBLISHED_ENDPOINT_URL |
static String |
WSDL_CREATE_IMPORTS |
Constructor and Description |
---|
WSDLGetUtils() |
Modifier and Type | Method and Description |
---|---|
Document |
getDocument(Message message,
String base,
Map<String,String> params,
String ctxUri,
EndpointInfo endpointInfo) |
String |
getPublishableEndpointUrl(javax.wsdl.Definition def,
String epurl,
EndpointInfo endpointInfo)
Retrieve the published endpoint url from the working information set.
|
protected String |
getPublishedEndpointURL(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 String |
mapUri(String base,
Map<String,javax.wsdl.extensions.schema.SchemaReference> smp,
String loc,
String xsd) |
protected Document |
readXSDDocument(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 String |
resolveWithCatalogs(OASISCatalogManager catalogs,
String start,
String base) |
protected void |
rewriteAddress(String base,
Element el,
String soapNS) |
protected void |
rewriteAddressProtocolHostPort(String base,
Element el,
String httpBasePathProp,
String soapNS) |
protected void |
setSoapAddressLocationOn(javax.wsdl.Port port,
String url) |
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) |
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) |
protected void |
updatePublishedEndpointUrl(String publishingUrl,
javax.wsdl.Definition def,
QName name) |
protected void |
updateSchemaImports(Bus bus,
javax.wsdl.extensions.schema.Schema schema,
String docBase,
Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas,
String base,
String parent) |
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)
Create a wsdl Definition object from the endpoint information and register
it in the local data structure for future reference.
|
void |
updateWSDLPublishedEndpointAddress(javax.wsdl.Definition def,
EndpointInfo endpointInfo) |
Document |
writeWSDLDocument(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.
|
public static final String AUTO_REWRITE_ADDRESS
public static final String AUTO_REWRITE_ADDRESS_ALL
public static final String PUBLISHED_ENDPOINT_URL
public static final String WSDL_CREATE_IMPORTS
public Set<String> getWSDLIds(Message message, String base, String ctxUri, EndpointInfo endpointInfo)
public Map<String,String> getSchemaLocations(Message message, String base, String ctxUri, EndpointInfo endpointInfo)
public Document getDocument(Message message, String base, Map<String,String> params, String ctxUri, EndpointInfo endpointInfo)
protected String mapUri(String base, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String loc, String xsd) throws UnsupportedEncodingException
UnsupportedEncodingException
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)
protected void rewriteAddressProtocolHostPort(String base, Element el, String httpBasePathProp, String soapNS)
protected String resolveWithCatalogs(OASISCatalogManager catalogs, String start, String base)
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)
public void updateWSDLPublishedEndpointAddress(javax.wsdl.Definition def, EndpointInfo endpointInfo)
protected void updatePublishedEndpointUrl(String publishingUrl, javax.wsdl.Definition def, QName name)
protected void setSoapAddressLocationOn(javax.wsdl.Port port, String url)
protected void updateSchemaImports(Bus bus, javax.wsdl.extensions.schema.Schema schema, String docBase, Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas, String base, String parent)
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
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 servicejavax.wsdl.WSDLException
public String getPublishableEndpointUrl(javax.wsdl.Definition def, String epurl, EndpointInfo endpointInfo)
def
- a wsdl as class objectsepurl
- the request URLendpointInfo
- information for a web service 'port' inside of a serviceprotected Document readXSDDocument(Bus bus, String xsd, Map<String,javax.wsdl.extensions.schema.SchemaReference> smp, String base) throws XMLStreamException
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 URLXMLStreamException
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
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 servicejavax.wsdl.WSDLException
protected Map<String,javax.wsdl.extensions.schema.SchemaReference> getSchemaKeySchemaReference(EndpointInfo endpointInfo)
endpointInfo
- information for a web service 'port' inside of a serviceprotected Map<String,javax.wsdl.Definition> getWSDLKeyDefinition(EndpointInfo endpointInfo)
endpointInfo
- information for a web service 'port' inside of a serviceprotected String getPublishedEndpointURL(Message message, String base, EndpointInfo endpointInfo)
message
- base
- the request URLendpointInfo
- information for a web service 'port' inside of a serviceApache CXF