Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.naming
Class StringRefAddr  view StringRefAddr download StringRefAddr.java

java.lang.Object
  extended byjavax.naming.RefAddr
      extended byjavax.naming.StringRefAddr
All Implemented Interfaces:
java.io.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

Field Summary
private  java.lang.String contents
          The possibly null content of this RefAddr.
private static long serialVersionUID
           
 
Fields inherited from class javax.naming.RefAddr
addrType
 
Constructor Summary
StringRefAddr(java.lang.String addrType, java.lang.String contents)
          Contructs a new StringRefAddr with the given type and content.
 
Method Summary
 java.lang.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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

contents

private final java.lang.String contents
The possibly null content of this RefAddr. Set by the constructor and returned by getContent.

Constructor Detail

StringRefAddr

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

Method Detail

getContent

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

Specified by:
getContent in class RefAddr