org.jboss.naming
Class LinkRefPair

java.lang.Object
  extended by javax.naming.Reference
      extended by org.jboss.naming.LinkRefPair
All Implemented Interfaces:
Serializable, Cloneable

public class LinkRefPair
extends Reference

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

Version:
$Revision: 1.2 $
Author:
Adrian Brock (adrian@jboss.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.naming.Reference
addrs, classFactory, classFactoryLocation, className
 
Constructor Summary
LinkRefPair(String remote, String local)
          Create a new link ref pair with the give remote and local names.
 
Method Summary
 String getGUID()
          Get the guid link name
 String getLocalLinkName()
          Get the local link name
 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(String remote,
                   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 String getGUID()
               throws MalformedLinkException
Get the guid link name

Returns:
the guid
Throws:
MalformedLinkException - when the reference is malformed

getRemoteLinkName

public String getRemoteLinkName()
                         throws MalformedLinkException
Get the remote link name

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

getLocalLinkName

public String getLocalLinkName()
                        throws MalformedLinkException
Get the local link name

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.