public class DescriptionRepository
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes the entire content of the WSDL repository.
|
static DescriptionRepository |
createInstance(java.lang.String comManId,
java.lang.String repoPathPrefix) |
void |
delete(QName portType) |
static DescriptionRepository |
getInstance(java.lang.String comManId)
Gets the WSDLRepository for a CommunicationManager.
|
Iterator |
getPortTypes() |
java.lang.String |
getRepoPath() |
Schema |
getSchema(java.lang.String schemaLocation,
CredentialInfo credentialInfo,
java.lang.String namespace)
Method returns an schema object.
|
WSDL |
getWSDL(QName portType,
CredentialInfo credentialInfo)
Method load and return an WSDL object.
|
WSDL |
getWSDL(java.lang.String fileName) |
java.io.InputStream |
getWsdlInputStream(QName portType) |
WSDL |
loadAndStore(java.io.InputStream in,
CredentialInfo credentialInfo,
java.lang.String fileName)
Method loads, stores and returns an wsdl object.
|
static WSDL |
loadWsdl(URI wsdlUri,
CredentialInfo credentialInfo,
java.lang.String comManId)
Method load and return an WSDL object.
|
void |
store(Resource resource,
java.lang.String fileName) |
void |
store(URI wsdlUri,
CredentialInfo credentialInfo)
Method loads, stores and returns an wsdl object.
|
void |
store(URI fromLocation,
CredentialInfo credentialInfo,
java.lang.String fileName)
Imports a WSDL including any referenced WSDL and XML Schema files from the specified location
fromLocation. |
void |
store(WSDL wsdl,
java.lang.String fileName)
Method stores the given wsdl in the wsdl repository on the file system.
|
void |
storeSchema(URI fromLocation,
CredentialInfo credentialInfo,
java.lang.String fileName)
Imports an XML Schema including any referenced XML Schema files from the specified location
fromLocation. |
public static DescriptionRepository getInstance(java.lang.String comManId)
comManId - CommunicationManagerId.public static DescriptionRepository createInstance(java.lang.String comManId, java.lang.String repoPathPrefix)
public static WSDL loadWsdl(URI wsdlUri, CredentialInfo credentialInfo, java.lang.String comManId) throws java.io.IOException
wsdlUri - credentialInfo - java.io.IOExceptionpublic java.lang.String getRepoPath()
public java.io.InputStream getWsdlInputStream(QName portType)
public WSDL getWSDL(QName portType, CredentialInfo credentialInfo)
portType - credentialInfo - public Schema getSchema(java.lang.String schemaLocation, CredentialInfo credentialInfo, java.lang.String namespace)
schemaLocation - credentialInfo - namespace - public Iterator getPortTypes()
public WSDL loadAndStore(java.io.InputStream in, CredentialInfo credentialInfo, java.lang.String fileName) throws java.io.IOException
in - credentialInfo - fileName - java.io.IOExceptionpublic void store(URI wsdlUri, CredentialInfo credentialInfo) throws java.io.IOException
wsdlUri - credentialInfo - java.io.IOExceptionpublic void store(WSDL wsdl, java.lang.String fileName)
wsdl - fileName - public void store(Resource resource, java.lang.String fileName)
public void store(URI fromLocation, CredentialInfo credentialInfo, java.lang.String fileName) throws java.io.IOException
fromLocation. If fileName is neither null nor equal to
the empty String "", the WSDL will be stored within the repository to a
file with that name. Otherwise, if it is null, a file name will be derived from
the URI the WSDL is loaded from (fromLocation). Finally, if fileName
is equal to the empty String, the WSDL file will be searched for its target namespace and a
file name will be derived there from. The credential info in needed if file is not on local
file system.fromLocation - the location to load the file fromfileName - the name of the file to store the imported WSDL to within the repository; may be null or the
empty Stringjava.io.IOException - if either accessing the WSDL or any of the files it references or writing into the repository failspublic void storeSchema(URI fromLocation, CredentialInfo credentialInfo, java.lang.String fileName) throws java.io.IOException
fromLocation. If fileName is neither null nor equal to
the empty String "", the schema will be stored within the repository to
a file with that name. Otherwise, if it is null, a file name will be derived from
the URI the schema is loaded from (fromLocation). Finally, if fileName
is equal to the empty String, the schema file will be searched for its target namespace
and a file name will be derived there from. The credential info in needed if schema is not on
local file system.fromLocation - the location to load the file fromfileName - the name of the file to store the imported schema to within the repository; may be null or
the empty Stringjava.io.IOException - if either accessing the schema or any of the files it references or writing into the repository failspublic WSDL getWSDL(java.lang.String fileName)
public void delete(QName portType)
public void clear()