javax.naming
Class StringRefAddr

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.naming.RefAddr sample code for javax.naming.RefAddr definition code for javax.naming.RefAddr 
      extended by javax.naming.StringRefAddr
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class StringRefAddr
extends RefAddr sample code for javax.naming.RefAddr definition code for javax.naming.RefAddr

This class represents the string form of the address of a communications end-point. It consists of a type that describes the communication mechanism and a string contents specific to that communication mechanism. The format and interpretation of the address type and the contents of the address are based on the agreement of three parties: the client that uses the address, the object/server that can be reached using the address, and the administrator or program that creates the address.

An example of a string reference address is a host name. Another example of a string reference address is a URL.

A string reference address is immutable: once created, it cannot be changed. Multithreaded access to a single StringRefAddr need not be synchronized.

Since:
1.3
See Also:
RefAddr sample code for javax.naming.RefAddr definition code for javax.naming.RefAddr , BinaryRefAddr sample code for javax.naming.BinaryRefAddr definition code for javax.naming.BinaryRefAddr , Serialized Form

Field Summary
 
Fields inherited from class javax.naming.RefAddr sample code for javax.naming.RefAddr definition code for javax.naming.RefAddr
addrType sample code for javax.naming.RefAddr.addrType definition code for javax.naming.RefAddr.addrType
 
Constructor Summary
StringRefAddr sample code for javax.naming.StringRefAddr.StringRefAddr(java.lang.String, java.lang.String) definition code for javax.naming.StringRefAddr.StringRefAddr(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  addrType, String sample code for java.lang.String definition code for java.lang.String  addr)
          Constructs a new instance of StringRefAddr using its address type and contents.
 
Method Summary
 Object sample code for java.lang.Object definition code for java.lang.Object getContent sample code for javax.naming.StringRefAddr.getContent() definition code for javax.naming.StringRefAddr.getContent() ()
          Retrieves the contents of this address.
 
Methods inherited from class javax.naming.RefAddr sample code for javax.naming.RefAddr definition code for javax.naming.RefAddr
equals sample code for javax.naming.RefAddr.equals(java.lang.Object) definition code for javax.naming.RefAddr.equals(java.lang.Object) , getType sample code for javax.naming.RefAddr.getType() definition code for javax.naming.RefAddr.getType() , hashCode sample code for javax.naming.RefAddr.hashCode() definition code for javax.naming.RefAddr.hashCode() , toString sample code for javax.naming.RefAddr.toString() definition code for javax.naming.RefAddr.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

StringRefAddr sample code for javax.naming.StringRefAddr(java.lang.String, java.lang.String) definition code for javax.naming.StringRefAddr(java.lang.String, java.lang.String)

public StringRefAddr(String sample code for java.lang.String definition code for java.lang.String  addrType,
                     String sample code for java.lang.String definition code for java.lang.String  addr)
Constructs a new instance of StringRefAddr using its address type and contents.

Parameters:
addrType - A non-null string describing the type of the address.
addr - The possibly null contents of the address in the form of a string.
Method Detail

getContent sample code for javax.naming.StringRefAddr.getContent() definition code for javax.naming.StringRefAddr.getContent()

public Object sample code for java.lang.Object definition code for java.lang.Object  getContent()
Retrieves the contents of this address. The result is a string.

Specified by:
getContent sample code for javax.naming.RefAddr.getContent() definition code for javax.naming.RefAddr.getContent() in class RefAddr sample code for javax.naming.RefAddr definition code for javax.naming.RefAddr
Returns:
The possibly null address contents.