|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.governance.api.wsdls.WsdlManager
public class WsdlManager
This provides the management functionality for WSDL artifacts stored on the registry.
| Constructor Summary | |
|---|---|
WsdlManager(org.wso2.carbon.registry.core.Registry registry)
Constructor accepting an instance of the registry to use. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WsdlManager(org.wso2.carbon.registry.core.Registry registry)
registry - the instance of the registry.| Method Detail |
|---|
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 content
GovernanceException - 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 name
GovernanceException - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||