org.wso2.carbon.governance.api.endpoints.dataobjects
Class Endpoint

java.lang.Object
  extended by org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
      extended by org.wso2.carbon.governance.api.endpoints.dataobjects.Endpoint

public class Endpoint
extends GovernanceArtifact

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.GovernanceArtifact
attributes
 
Constructor Summary
Endpoint(String id, org.wso2.carbon.registry.core.Registry registry)
          Constructor accepting resource path, identifier and a registry instance.
Endpoint(String url, String id)
          Constructor accepting resource identifier and the endpoint URL.
 
Method Summary
 QName getQName()
          Returns the QName of the artifact.
 String getUrl()
          Method to obtain the endpoint URL.
 void loadEndpointDetails()
          Method to load the endpoint details into this artifact.
 
Methods inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
addAttribute, associateRegistry, attach, checkRegistryResourceAssociation, createVersion, detach, getAssociatedRegistry, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getPath, removeAttribute, setAttribute, setAttributes, setId, updatePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Endpoint

public Endpoint(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:
path - the resource path.
id - the resource identifier.
registry - the registry instance.
Throws:
GovernanceException - if the construction fails.

Endpoint

public Endpoint(String url,
                String id)
Constructor accepting resource identifier and the endpoint URL.

Parameters:
id - the resource identifier.
url - the endpoint URL.
Method Detail

getUrl

public String getUrl()
Method to obtain the endpoint URL.

Returns:
the endpoint URL.

getQName

public QName getQName()
Description copied from class: GovernanceArtifact
Returns the QName of the artifact.

Specified by:
getQName in class GovernanceArtifact
Returns:
the QName of the artifact

loadEndpointDetails

public void loadEndpointDetails()
                         throws GovernanceException
Method to load the endpoint details into this artifact.

Throws:
GovernanceException - if the operation failed.


Copyright © 2011 WSO2 Inc. All Rights Reserved.