|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.governance.api.endpoints.EndpointManager
public class EndpointManager
This provides the management functionality for endpoint artifacts stored on the registry.
Constructor Summary | |
---|---|
EndpointManager(org.wso2.carbon.registry.core.Registry registry)
Constructor accepting an instance of the registry to use. |
Method Summary | |
---|---|
void |
addEndpoint(Endpoint endpoint)
Adds the given endpoint artifact to the registry. |
Endpoint |
getEndpoint(String endpointId)
Fetches the given endpoint artifact on the registry. |
Endpoint |
getEndpointByUrl(String url)
Finds the endpoint artifact that matches the given URL. |
Endpoint |
newEndpoint(String url)
Creates a new endpoint artifact from the given URL. |
void |
removeEndpoint(String endpointId)
Removes the given endpoint artifact from the registry. |
void |
setContent(Endpoint endpoint,
org.wso2.carbon.registry.core.Resource endpointResource)
Sets content of the given endpoint artifact to the given resource on the registry. |
void |
updateEndpoint(Endpoint endpoint)
Updates the given endpoint 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 EndpointManager(org.wso2.carbon.registry.core.Registry registry)
registry
- the instance of the registry.Method Detail |
---|
public Endpoint newEndpoint(String url) throws GovernanceException
url
- the given URL.
GovernanceException
- if the operation failed.public void addEndpoint(Endpoint endpoint) throws GovernanceException
endpoint
- the endpoint artifact.
GovernanceException
- if the operation failed.public void updateEndpoint(Endpoint endpoint) throws GovernanceException
endpoint
- the endpoint artifact.
GovernanceException
- if the operation failed.public Endpoint getEndpoint(String endpointId) throws GovernanceException
endpointId
- the identifier of the endpoint artifact.
GovernanceException
- if the operation failed.public void removeEndpoint(String endpointId) throws GovernanceException
endpointId
- the identifier of the endpoint artifact.
GovernanceException
- if the operation failed.public void setContent(Endpoint endpoint, org.wso2.carbon.registry.core.Resource endpointResource) throws GovernanceException
endpoint
- the endpoint artifact.endpointResource
- the content resource.
GovernanceException
- if the operation failed.public Endpoint getEndpointByUrl(String url) throws GovernanceException
url
- the URL.
GovernanceException
- if the operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |