public class WsdlManager extends Object
Constructor and Description |
---|
WsdlManager(org.wso2.carbon.registry.core.Registry registry)
Constructor accepting an instance of the registry to use.
|
Modifier and Type | Method and Description |
---|---|
void |
addWsdl(Wsdl wsdl)
Adds the given WSDL artifact to the registry.
|
Wsdl[] |
findWsdls(WsdlFilter criteria)
Finds all WSDL artifacts matching the given filter criteria.
|
Wsdl[] |
getAllWsdls()
Finds all WSDL artifacts on the registry.
|
Wsdl |
getWsdl(String wsdlId)
Fetches the given WSDL artifact on the registry.
|
Wsdl |
newWsdl(byte[] content)
Create a new WSDL based on content either embedded or passed to a service.
|
Wsdl |
newWsdl(byte[] content,
String name)
Create a new WSDL based on content either embedded or passed to a service.
|
Wsdl |
newWsdl(String url)
Adds a new WSDL artifact from the given URL.
|
void |
removeWsdl(String wsdlId)
Removes the given WSDL artifact from the registry.
|
protected void |
setContent(Wsdl wsdl,
org.wso2.carbon.registry.core.Resource wsdlResource)
Sets content of the given WSDL artifact to the given resource on the
registry.
|
void |
updateWsdl(Wsdl wsdl)
Updates the given WSDL artifact on the registry.
|
public WsdlManager(org.wso2.carbon.registry.core.Registry registry)
registry
- the instance of the registry.public Wsdl newWsdl(String url) throws GovernanceException
url
- the given URL.GovernanceException
- if the operation failed.public Wsdl newWsdl(byte[] content) throws org.wso2.carbon.registry.core.exceptions.RegistryException
content
- the WSDL contentGovernanceException
- if the operation failed.org.wso2.carbon.registry.core.exceptions.RegistryException
public Wsdl newWsdl(byte[] content, String name) throws org.wso2.carbon.registry.core.exceptions.RegistryException
content
- the WSDL contentname
- the WSDL nameGovernanceException
- if the operation failed.org.wso2.carbon.registry.core.exceptions.RegistryException
public void addWsdl(Wsdl wsdl) throws GovernanceException
wsdl
- the WSDL artifact.GovernanceException
- if the operation failed.public void updateWsdl(Wsdl wsdl) throws GovernanceException
wsdl
- the WSDL artifact.GovernanceException
- if the operation failed.public Wsdl getWsdl(String wsdlId) throws GovernanceException
wsdlId
- the identifier of the WSDL artifact.GovernanceException
- if the operation failed.public void removeWsdl(String wsdlId) throws GovernanceException
wsdlId
- the identifier of the WSDL artifact.GovernanceException
- if the operation failed.protected void setContent(Wsdl wsdl, org.wso2.carbon.registry.core.Resource wsdlResource) throws GovernanceException
wsdl
- the WSDL artifact.wsdlResource
- the content resource.GovernanceException
- if the operation failed.public Wsdl[] findWsdls(WsdlFilter criteria) throws GovernanceException
criteria
- the filter criteria to be matched.GovernanceException
- if the operation failed.public Wsdl[] getAllWsdls() throws GovernanceException
GovernanceException
- if the operation failed.Copyright © 2017 WSO2. All Rights Reserved.