Class EndpointImpl
- java.lang.Object
-
- org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
-
- org.wso2.carbon.governance.api.endpoints.dataobjects.EndpointImpl
-
- All Implemented Interfaces:
GovernanceArtifact,Endpoint
public class EndpointImpl extends GovernanceArtifactImpl implements Endpoint
This represents an endpoint artifact stored on the Registry. Endpoint artifacts are created as a result of importing or uploading a WSDL, or when a service is created..
-
-
Field Summary
-
Fields inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
attributes, properties
-
-
Constructor Summary
Constructors Constructor Description EndpointImpl(String url, String id)Constructor accepting resource identifier and the endpoint URL.EndpointImpl(String id, org.wso2.carbon.registry.core.Registry registry)Constructor accepting resource path, identifier and a registry instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.axiom.om.OMElementbuildOMElement(String content)QNamegetQName()Returns the QName of the artifact.StringgetUrl()Method to obtain the endpoint URL.voidloadEndpointDetails()Method to load the endpoint details into this artifact.voidsetQName(QName qName)Set the QName of the artifact.-
Methods inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
addAssociation, addAssociation, addAttribute, addBidirectionalAssociation, addTag, addTags, associateRegistry, attach, attach, attachLifecycle, checkLCItem, checkRegistryResourceAssociation, compareTo, create, create, create, create, createVersion, detach, detachLifecycle, equals, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAllVotingItems, getArtifactPath, getAssociatedArtifactIds, getAssociatedRegistry, getAssociations, getAttribute, getAttributeKeys, getAttributes, getCurrentStateDuration, getDependencies, getDependents, getId, getLcName, getLcState, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getMediaType, getPath, getPropertyKeys, getUniqueAttributes, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setArtifactPath, setAttribute, setAttributes, setId, setLcName, setLcState, setUniqueAttributes, toString, uncheckLCItem, uniqueTo, unvote, unvote, updatePath, updatePath, vote, vote
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
addAssociation, addAssociation, addAttribute, addBidirectionalAssociation, addTag, addTags, attach, attach, attachLifecycle, checkLCItem, compareTo, detach, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAllVotingItems, getAssociatedArtifactIds, getAssociations, getAttribute, getAttributeKeys, getAttributes, getCurrentStateDuration, getDependencies, getDependents, getId, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getMediaType, getPath, getPropertyKeys, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setAttribute, setAttributes, setId, uncheckLCItem, uniqueTo, unvote, unvote, vote, vote
-
-
-
-
Constructor Detail
-
EndpointImpl
public EndpointImpl(String id, org.wso2.carbon.registry.core.Registry registry) throws GovernanceException
Constructor accepting resource path, identifier and a registry instance. This constructor should be used only when the endpoint already saved in the registry.- Parameters:
id- the resource identifier.registry- the registry instance.- Throws:
GovernanceException- if the construction fails.
-
-
Method Detail
-
getUrl
public String getUrl()
Method to obtain the endpoint URL.
-
getQName
public QName getQName()
Description copied from interface:GovernanceArtifactReturns the QName of the artifact.- Specified by:
getQNamein interfaceGovernanceArtifact- Returns:
- the QName of the artifact
-
setQName
public void setQName(QName qName) throws GovernanceException
Description copied from interface:GovernanceArtifactSet the QName of the artifact.- Specified by:
setQNamein interfaceGovernanceArtifact- Parameters:
qName- of the artifact- Throws:
GovernanceException
-
loadEndpointDetails
public void loadEndpointDetails() throws GovernanceExceptionMethod to load the endpoint details into this artifact.- Throws:
GovernanceException- if the operation failed.
-
buildOMElement
public org.apache.axiom.om.OMElement buildOMElement(String content) throws GovernanceException
- Throws:
GovernanceException
-
-