- java.lang.Object
-
- javax.naming.RefAddr
-
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BinaryRefAddr, StringRefAddr
public abstract class RefAddr extends Object implements Serializable
This class represents the address of a communications end-point. It consists of a type that describes the communication mechanism and an address contents determined by an RefAddr subclass.For example, an address type could be "BSD Printer Address", which specifies that it is an address to be used with the BSD printing protocol. Its contents could be the machine name identifying the location of the printer server that understands this protocol.
A RefAddr is contained within a Reference.
RefAddr is an abstract class. Concrete implementations of it determine its synchronization properties.
- Since:
- 1.3
- See Also:
Reference
,LinkRef
,StringRefAddr
,BinaryRefAddr
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description protected String
addrType
Contains the type of this address.
-
Constructor Summary
Constructors Modifier Constructor and Description protected
RefAddr(String addrType)
Constructs a new instance of RefAddr using its address type.
-
Method Summary
Methods Modifier and Type Method and Description boolean
equals(Object obj)
Determines whether obj is equal to this RefAddr.abstract Object
getContent()
Retrieves the contents of this address.String
getType()
Retrieves the address type of this address.int
hashCode()
Computes the hash code of this address using its address type and contents.String
toString()
Generates the string representation of this address.
-
-
-
Field Detail
-
addrType
protected String addrType
Contains the type of this address.
-
-
Constructor Detail
-
RefAddr
protected RefAddr(String addrType)
Constructs a new instance of RefAddr using its address type.- Parameters:
addrType
- A non-null string describing the type of the address.
-
-
Method Detail
-
getType
public String getType()
Retrieves the address type of this address.- Returns:
- The non-null address type of this address.
-
getContent
public abstract Object getContent()
Retrieves the contents of this address.- Returns:
- The possibly null address contents.
-
equals
public boolean equals(Object obj)
Determines whether obj is equal to this RefAddr.obj is equal to this RefAddr all of these conditions are true
- non-null
- instance of RefAddr
- obj has the same address type as this RefAddr (using String.compareTo())
- both obj and this RefAddr's contents are null or they are equal (using the equals() test).
- Overrides:
equals
in classObject
- Parameters:
obj
- possibly null obj to check.- Returns:
- true if obj is equal to this refaddr; false otherwise.
- See Also:
getContent()
,getType()
-
hashCode
public int hashCode()
Computes the hash code of this address using its address type and contents. The hash code is the sum of the hash code of the address type and the hash code of the address contents.- Overrides:
hashCode
in classObject
- Returns:
- The hash code of this address as an int.
- See Also:
Object.hashCode()
-
toString
public String toString()
Generates the string representation of this address. The string consists of the address's type and contents with labels. This representation is intended for display only and not to be parsed.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
22/11/2024 03:25:35 Cette version de la page est en cache (à la date du 22/11/2024 03:25:35) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 29/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/naming/RefAddr.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.