org.jboss.naming
Class LinkRefPair

java.lang.Object
  extended byjavax.naming.Reference
      extended byorg.jboss.naming.LinkRefPair
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class LinkRefPair
extends javax.naming.Reference

A pair of addresses, one to be used in the local machine, the other in remote machines.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.naming.Reference
addrs, classFactory, classFactoryLocation, className
 
Constructor Summary
LinkRefPair(java.lang.String remote, java.lang.String local)
          Create a new link ref pair with the give remote and local names.
 
Method Summary
 java.lang.String getGUID()
          Get the guid link name
 java.lang.String getLocalLinkName()
          Get the local link name
 java.lang.String getRemoteLinkName()
          Get the remote link name
 
Methods inherited from class javax.naming.Reference
add, add, clear, clone, equals, get, get, getAll, getClassName, getFactoryClassLocation, getFactoryClassName, hashCode, remove, size, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkRefPair

public LinkRefPair(java.lang.String remote,
                   java.lang.String local)
Create a new link ref pair with the give remote and local names.

Parameters:
remote - the remote name
local - the local name
Method Detail

getGUID

public java.lang.String getGUID()
                         throws javax.naming.MalformedLinkException
Get the guid link name

Returns:
the guid
Throws:
javax.naming.MalformedLinkException - when the reference is malformed

getRemoteLinkName

public java.lang.String getRemoteLinkName()
                                   throws javax.naming.MalformedLinkException
Get the remote link name

Returns:
the remote link
Throws:
javax.naming.MalformedLinkException - when the reference is malformed

getLocalLinkName

public java.lang.String getLocalLinkName()
                                  throws javax.naming.MalformedLinkException
Get the local link name

Returns:
the remote link
Throws:
javax.naming.MalformedLinkException - when the reference is malformed