java.lang.Objectjavax.naming.RefAddr
javax.naming.BinaryRefAddr
public class BinaryRefAddr
This class represents the binary form of the address of a communications end-point.
A BinaryRefAddr consists of a type that describes the communication mechanism and an opaque buffer containing the address description specific to that communication mechanism. The format and interpretation of the address type and the contents of the opaque buffer 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 binary reference address is an BER X.500 presentation address. Another example of a binary reference address is a serialized form of a service's object handle.
A binary reference address is immutable in the sense that its fields once created, cannot be replaced. However, it is possible to access the byte array used to hold the opaque buffer. Programs are strongly recommended against changing this byte array. Changes to this byte array need to be explicitly synchronized.
RefAddr,
StringRefAddr,
Serialized Form| Field Summary |
|---|
| Fields inherited from class javax.naming.RefAddr |
|---|
addrType |
| Constructor Summary | |
|---|---|
BinaryRefAddr(String addrType,
byte[] src)
Constructs a new instance of BinaryRefAddr using its address type and a byte array for contents. |
|
BinaryRefAddr(String addrType,
byte[] src,
int offset,
int count)
Constructs a new instance of BinaryRefAddr using its address type and a region of a byte array for contents. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Determines whether obj is equal to this address. |
Object |
getContent()
Retrieves the contents of this address as an Object. |
int |
hashCode()
Computes the hash code of this address using its address type and contents. |
String |
toString()
Generates the string representation of this address. |
| Methods inherited from class javax.naming.RefAddr |
|---|
getType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryRefAddr(String addrType, byte[] src)
addrType - A non-null string describing the type of the address.src - The non-null contents of the address as a byte array.
The contents of src is copied into the new BinaryRefAddr.public BinaryRefAddr(String addrType, byte[] src, int offset, int count)
addrType - A non-null string describing the type of the address.src - The non-null contents of the address as a byte array.
The contents of src is copied into the new BinaryRefAddr.offset - The starting index in src to get the bytes.
0 <= offset <= src.length.count - The number of bytes to extract from src.
0 <= count <= src.length-offset.| Method Detail |
|---|
public Object getContent()
getContent in class RefAddrpublic boolean equals(Object obj)
obj - The possibly null object to check.
RefAddr.getContent(),
RefAddr.getType()public int hashCode()
Object.hashCode()public String toString()
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
6 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)