This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.naming
class RefAddr

java.lang.Object extended by javax.naming.RefAddr
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BinaryRefAddr, StringRefAddr

Most common way to construct:

Enumeration addrs = …;

RefAddr addr = (RefAddr)addrs.nextElement();

Based on 75 examples


public abstract class RefAddr
extends Object
implements Serializable

This class represents the address of a communications end-point. It consists of a type that describes the communication mechanism and an address contents determined by an RefAddr subclass.

For example, an address type could be "BSD Printer Address", which specifies that it is an address to be used with the BSD printing protocol. Its contents could be the machine name identifying the location of the printer server that understands this protocol.

A RefAddr is contained within a Reference.

RefAddr is an abstract class. Concrete implementations of it determine its synchronization properties.


Field Summary
protected String addrType
          Contains the type of this address.
 
Constructor Summary
protected
RefAddr(String addrType)

          Constructs a new instance of RefAddr using its address type.
 
Method Summary
 boolean

          Determines whether obj is equal to this RefAddr.
abstract Object

          Retrieves the contents of this address.
 String

          Retrieves the address type of this address.
 int

          Computes the hash code of this address using its address type and contents.
 String

          Generates the string representation of this address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addrType

protected String addrType
Contains the type of this address.
Constructor Detail

RefAddr

protected RefAddr(String addrType)
Constructs a new instance of RefAddr using its address type.

Parameters:
addrType - A non-null string describing the type of the address.
Method Detail

equals

public boolean equals(Object obj)
Determines whether obj is equal to this RefAddr.

obj is equal to this RefAddr all of these conditions are true

Overrides:
equals in class Object
Parameters:
obj - possibly null obj to check.
Returns:
true if obj is equal to this refaddr; false otherwise.

getContent

public abstract Object getContent()
Retrieves the contents of this address.

Returns:
The possibly null address contents.

getType

public String getType()
Retrieves the address type of this address.

Returns:
The non-null address type of this address.

hashCode

public int hashCode()
Computes the hash code of this address using its address type and contents. The hash code is the sum of the hash code of the address type and the hash code of the address contents.

Overrides:
hashCode in class Object
Returns:
The hash code of this address as an int.

toString

public String toString()
Generates the string representation of this address. The string consists of the address's type and contents with labels. This representation is intended for display only and not to be parsed.

Overrides:
toString in class Object
Returns:
The non-null string representation of this address.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.