- java.lang.Object
-
- javax.naming.RefAddr
-
- javax.naming.StringRefAddr
-
- All Implemented Interfaces:
- Serializable
public class StringRefAddr extends 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
,BinaryRefAddr
, Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.naming.RefAddr
addrType
-
-
Constructor Summary
Constructors Constructor and Description StringRefAddr(String addrType, String addr)
Constructs a new instance of StringRefAddr using its address type and contents.
-
Method Summary
Methods Modifier and Type Method and Description Object
getContent()
Retrieves the contents of this address.
-
-
-
Method Detail
-
getContent
public Object getContent()
Retrieves the contents of this address. The result is a string.- Specified by:
getContent
in classRefAddr
- Returns:
- The possibly null address contents.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/naming/stringrefaddr.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.