javax.naming
Class StringRefAddr

java.lang.Object
  extended by javax.naming.RefAddr
      extended by javax.naming.StringRefAddr
All Implemented Interfaces:
Serializable

public class StringRefAddr
extends RefAddr

RefAddr that uses a String as content. This can for example be used to address things through URLs.

Since:
1.3
See Also:
Reference, Serialized Form

Field Summary
 
Fields inherited from class javax.naming.RefAddr
addrType
 
Constructor Summary
StringRefAddr(String addrType, String contents)
          Contructs a new StringRefAddr with the given type and content.
 
Method Summary
 Object getContent()
          Returns the String contents as given to the constructor.
 
Methods inherited from class javax.naming.RefAddr
equals, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringRefAddr

public StringRefAddr(String addrType,
                     String contents)
Contructs a new StringRefAddr with the given type and content.

Method Detail

getContent

public Object getContent()
Returns the String contents as given to the constructor.

Specified by:
getContent in class RefAddr