EPP 0.4.9

com.neulevel.epp.xri
Class EppXriServiceEndpoint

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.xri.EppXriServiceEndpoint

public class EppXriServiceEndpoint
extends EppEntity

This EppXriServiceEndpoint class defines a service endpoint associated with XRI authority objects. It implements XRI sepAddType and sepInfType defined in the XRI authority schema file.

Version:
$Revision: 1.10 $ $Date: 2008/04/17 04:28:05 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppXriServiceEndpoint()
          Creates an EppXriServiceEndpoint object
EppXriServiceEndpoint(java.lang.String id)
          Creates an EppXriServiceEndpoint object with an identifier
 
Method Summary
 void addLocalID(EppXriSynonym id)
          Adds a LocalID associated with the XRI authority object
 void addMediaType(EppXriServiceEndpointMediaType mediaType)
          Adds a media type object to be associated with this XRI Service Endpoint object
 void addMediaType(java.lang.String mediaType)
          Adds a media type to be associated with this XRI Service Endpoint object
 void addMediaType(java.lang.String mediaType, java.lang.String match, java.lang.Boolean select)
          Adds a media type to be associated with this XRI Service Endpoint object
 void addPath(EppXriServiceEndpointPath path)
          Add a path object to the path list
 void addPath(java.lang.String path)
          Add a path to the path list of this XRI Service Endpoint object
 void addPath(java.lang.String path, java.lang.String match, java.lang.Boolean select)
          Add a path to the path list of this XRI Service Endpoint object
 void addRedirect(EppXriURI redirect)
          Adds a Redirect associated with the XRI authority object
 void addRef(EppXriRef ref)
          Adds a Ref associated with the XRI authority object
 void addType(EppXriServiceEndpointType type)
          Add a service type object to the service type list
 void addType(java.lang.String type)
          Add a service type to the service type list of this XRI Service Endpoint object
 void addType(java.lang.String type, java.lang.String match, java.lang.Boolean select)
          Add a service type to the service type list of this XRI Service Endpoint object
 void addURI(EppXriURI uri)
          Adds a URI to be associated with this XRI Service Endpoint object
 void addURI(java.lang.String uri)
          Adds a URI to be associated with this XRI Service Endpoint object with no priority value
 void addURI(java.lang.String uri, int priority, java.lang.String append)
          Adds a URI to be associated with this XRI Service Endpoint object with a priority value
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppXriServiceEndpoint object.
 java.lang.String getAuthority()
          Gets the identifier of the authority that provides the services of this XRI Service Endpoint object
 java.lang.String getExtension()
          Gets the extension chunk of this XRI Service Endpoint object
 java.lang.String getId()
          Gets the identifier of this XRI Service Endpoint object
 java.util.Vector getLocalID()
          Gets a list of LocalIDs associated with the XRI authority object
 java.util.Vector getMediaType()
          Gets the media types associated with this XRI Service Endpoint object
 java.util.Vector getPath()
          Gets the list of paths of this XRI Service Endpoint object
 int getPriority()
          Gets the priority value for this XRI Service Endpoint object
 java.util.Vector getRedirect()
          Gets a list of Redirects associated with the XRI authority object
 java.util.Vector getRef()
          Gets a list of Refs associated with the XRI authority object
 java.util.Vector getType()
          Gets the list of service types of this XRI Service Endpoint object
 java.util.Vector getURI()
          Gets the URIs associated with this XRI Service Endpoint object
 void setAuthority(java.lang.String authority)
          Sets the identifier of the authority that provides the services of this XRI Service Endpoint object
 void setExtension(java.lang.String extension)
          Sets the extension chunk of this XRI Service Endpoint object
 void setId(java.lang.String id)
          Sets the identifier of this XRI Service Endpoint object
 void setPriority(int priority)
          Sets the priority value for this XRI Service Endpoint object
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppXriServiceEndpoint object into an XML element
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppXriServiceEndpoint

public EppXriServiceEndpoint()
Creates an EppXriServiceEndpoint object


EppXriServiceEndpoint

public EppXriServiceEndpoint(java.lang.String id)
Creates an EppXriServiceEndpoint object with an identifier

Method Detail

getId

public java.lang.String getId()
Gets the identifier of this XRI Service Endpoint object


setId

public void setId(java.lang.String id)
Sets the identifier of this XRI Service Endpoint object


getPriority

public int getPriority()
Gets the priority value for this XRI Service Endpoint object


setPriority

public void setPriority(int priority)
Sets the priority value for this XRI Service Endpoint object


getAuthority

public java.lang.String getAuthority()
Gets the identifier of the authority that provides the services of this XRI Service Endpoint object


setAuthority

public void setAuthority(java.lang.String authority)
Sets the identifier of the authority that provides the services of this XRI Service Endpoint object


getType

public java.util.Vector getType()
Gets the list of service types of this XRI Service Endpoint object


addType

public void addType(java.lang.String type)
Add a service type to the service type list of this XRI Service Endpoint object


addType

public void addType(java.lang.String type,
                    java.lang.String match,
                    java.lang.Boolean select)
Add a service type to the service type list of this XRI Service Endpoint object


addType

public void addType(EppXriServiceEndpointType type)
Add a service type object to the service type list


getPath

public java.util.Vector getPath()
Gets the list of paths of this XRI Service Endpoint object


addPath

public void addPath(java.lang.String path)
Add a path to the path list of this XRI Service Endpoint object


addPath

public void addPath(java.lang.String path,
                    java.lang.String match,
                    java.lang.Boolean select)
Add a path to the path list of this XRI Service Endpoint object


addPath

public void addPath(EppXriServiceEndpointPath path)
Add a path object to the path list


getURI

public java.util.Vector getURI()
Gets the URIs associated with this XRI Service Endpoint object


addURI

public void addURI(java.lang.String uri)
Adds a URI to be associated with this XRI Service Endpoint object with no priority value


addURI

public void addURI(java.lang.String uri,
                   int priority,
                   java.lang.String append)
Adds a URI to be associated with this XRI Service Endpoint object with a priority value


addURI

public void addURI(EppXriURI uri)
Adds a URI to be associated with this XRI Service Endpoint object


getMediaType

public java.util.Vector getMediaType()
Gets the media types associated with this XRI Service Endpoint object


addMediaType

public void addMediaType(java.lang.String mediaType)
Adds a media type to be associated with this XRI Service Endpoint object


addMediaType

public void addMediaType(java.lang.String mediaType,
                         java.lang.String match,
                         java.lang.Boolean select)
Adds a media type to be associated with this XRI Service Endpoint object


addMediaType

public void addMediaType(EppXriServiceEndpointMediaType mediaType)
Adds a media type object to be associated with this XRI Service Endpoint object


getRef

public java.util.Vector getRef()
Gets a list of Refs associated with the XRI authority object


addRef

public void addRef(EppXriRef ref)
Adds a Ref associated with the XRI authority object

Note: This method should be only called by the EPP server, and an EPP client should not perform this operation.


getRedirect

public java.util.Vector getRedirect()
Gets a list of Redirects associated with the XRI authority object


addRedirect

public void addRedirect(EppXriURI redirect)
Adds a Redirect associated with the XRI authority object

Note: This method should be only called by the EPP server, and an EPP client should not perform this operation.


getLocalID

public java.util.Vector getLocalID()
Gets a list of LocalIDs associated with the XRI authority object


addLocalID

public void addLocalID(EppXriSynonym id)
Adds a LocalID associated with the XRI authority object

Note: This method should be only called by the EPP server, and an EPP client should not perform this operation.


getExtension

public java.lang.String getExtension()
Gets the extension chunk of this XRI Service Endpoint object


setExtension

public void setExtension(java.lang.String extension)
Sets the extension chunk of this XRI Service Endpoint object


toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppXriServiceEndpoint object into an XML element

Specified by:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppXriServiceEndpoint object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppXriServiceEndpoint object. The caller of this method must make sure that the root node is of the EPP XRI sepAddType or sepInfType.

Parameters:
root - root node for an EppXriServiceEndpoint object in XML format
Returns:
an EppXriServiceEndpoint object, or null if the node is invalid

toString

public java.lang.String toString()
Specified by:
toString in class EppEntity

EPP 0.4.9

Copyright © 2001-2006 NeuStar, Inc. All Rights Reserved.