javax.naming

Class StringRefAddr

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

Constructor Summary
StringRefAddr(String addrType, String contents)
Contructs a new StringRefAddr with the given type and content.
Method Summary
ObjectgetContent()
Returns the String contents as given to the constructor.

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.