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.
RefAddr, BinaryRefAddr
| Modifier and Type | Field and Description |
|---|---|
| private String | contents
Contains the contents of this address. |
| private static final long | serialVersionUID
Use serialVersionUID from JNDI 1.1.1 for interoperability
|
| Access | Constructor and Description |
|---|---|
| public | StringRefAddr(String
A non-null string describing the type of the address. addrType, String The possibly null contents of the address in the form of a string. addr)Constructs a new instance of StringRefAddr using its address type and contents. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: The possibly null address contents.Implements abstract javax. Retrieves the contents of this address. |
| contents | back to summary |
|---|---|
| private String contents Contains the contents of this address. Can be null. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. Use serialVersionUID from JNDI 1.1.1 for interoperability | |
| StringRefAddr | back to summary |
|---|---|
| public StringRefAddr(String addrType, String addr) Constructs a new instance of StringRefAddr using its address type and contents. | |
| getContent | back to summary |
|---|---|
| public Object getContent() Implements abstract javax. Retrieves the contents of this address. The result is a string.
| |