public final class DefaultServerEntry extends AbstractEntry<AttributeType> implements ServerEntry
attributes, dn
Constructor and Description |
---|
DefaultServerEntry()
Creates a new instance of DefaultServerEntry.
|
DefaultServerEntry(SchemaManager schemaManager)
Creates a new instance of DefaultServerEntry, with registries.
|
DefaultServerEntry(SchemaManager schemaManager,
DN dn)
Creates a new instance of DefaultServerEntry, with a
DN and registries.
|
DefaultServerEntry(SchemaManager schemaManager,
DN dn,
AttributeType... attributeTypes)
Creates a new instance of DefaultServerEntry, with a
DN, registries and a list of attributeTypes.
|
DefaultServerEntry(SchemaManager schemaManager,
DN dn,
AttributeType attributeType,
String upId)
Creates a new instance of DefaultServerEntry, with a
DN, registries and an attributeType with the user provided ID.
|
DefaultServerEntry(SchemaManager schemaManager,
DN dn,
EntryAttribute... attributes)
Creates a new instance of DefaultServerEntry, with a
DN, registries and a list of ServerAttributes.
|
DefaultServerEntry(SchemaManager schemaManager,
DN dn,
String... upIds)
Creates a new instance of DefaultServerEntry, with a
DN, registries and a list of IDs.
|
DefaultServerEntry(SchemaManager schemaManager,
Entry entry)
Creates a new instance of DefaultServerEntry, copying
another entry, which can be a ClientEntry.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AttributeType attributeType,
byte[]... values)
Add an attribute (represented by its AttributeType and some binary values) into an
entry.
|
void |
add(AttributeType attributeType,
String... values)
Add an attribute (represented by its AttributeType and some String values) into an
entry.
|
void |
add(AttributeType attributeType,
Value<?>... values)
Add an attribute (represented by its AttributeType and some values) into an
entry.
|
void |
add(EntryAttribute... attributes)
Add some EntryAttributes to the current Entry.
|
void |
add(String upId,
AttributeType attributeType,
byte[]... values)
Add an attribute (represented by its AttributeType and some binary values) into an
entry.
|
void |
add(String upId,
AttributeType attributeType,
String... values)
Adds a new attribute with some String values into an entry, setting
the User Provided ID in the same time.
|
void |
add(String upId,
AttributeType attributeType,
Value<?>... values)
Add an attribute (represented by its AttributeType and some values) into an
entry.
|
void |
add(String upId,
byte[]... values)
Add an attribute (represented by its ID and binary values) into an entry.
|
void |
add(String upId,
String... values)
Add an attribute (represented by its ID and string values) into an entry.
|
void |
add(String upId,
Value<?>... values)
Add an attribute (represented by its ID and Value values) into an entry.
|
Entry |
clone()
Clone an entry.
|
boolean |
contains(AttributeType attributeType,
byte[]... values)
Checks if an entry contains an attribute with some given binary values.
|
boolean |
contains(AttributeType attributeType,
String... values)
Checks if an entry contains an attribute with some given String values.
|
boolean |
contains(AttributeType attributeType,
Value<?>... values)
Checks if an entry contains an attribute with some given binary values.
|
boolean |
contains(EntryAttribute... attributes)
Checks if an entry contains a list of attributes.
|
boolean |
contains(String id,
byte[]... values)
Checks if an entry contains an attribute with some binary values.
|
boolean |
contains(String id,
String... values)
Checks if an entry contains an attribute with some String values.
|
boolean |
contains(String id,
Value<?>... values)
Checks if an entry contains an attribute with some values.
|
boolean |
containsAttribute(AttributeType attributeType)
Checks if an entry contains a specific AttributeType.
|
boolean |
containsAttribute(String... attributes)
Checks if an entry contains some specific attributes.
|
void |
deserialize(ObjectInput in)
Deserialize a server entry.
|
boolean |
equals(Object o) |
EntryAttribute |
get(AttributeType attributeType)
Returns the attribute associated with an AttributeType
|
EntryAttribute |
get(String alias)
Returns the attribute with the specified alias.
|
Set<AttributeType> |
getAttributeTypes()
Gets all the attributes type
|
static String |
getUpId(String upId,
AttributeType attributeType)
Get the UpId if it was null.
|
int |
hashCode()
Gets the hashCode of this ServerEntry.
|
boolean |
hasObjectClass(EntryAttribute objectClass)
Tells if an entry has a specific ObjectClass Attribute
|
boolean |
hasObjectClass(String objectClass)
Tells if an entry has a specific ObjectClass value
|
boolean |
isValid()
Fail fast check performed to determine entry consistency according to schema
characteristics.
|
boolean |
isValid(EntryAttribute objectClass)
Check performed to determine entry consistency according to the schema
requirements of a particular objectClass.
|
boolean |
isValid(String objectClass)
Check performed to determine entry consistency according to the schema
requirements of a particular objectClass.
|
EntryAttribute |
put(AttributeType attributeType,
byte[]... values)
Places a new attribute with the supplied AttributeType and binary values
into the attribute collection.
|
EntryAttribute |
put(AttributeType attributeType,
String... values)
Places a new attribute with the supplied AttributeType and String values
into the attribute collection.
|
EntryAttribute |
put(AttributeType attributeType,
Value<?>... values)
Places a new attribute with the supplied AttributeType and some values
into the attribute collection.
|
List<EntryAttribute> |
put(EntryAttribute... attributes)
Places attributes in the attribute collection.
|
EntryAttribute |
put(String upId,
AttributeType attributeType,
byte[]... values)
Places a new attribute with the supplied AttributeType and some binary values
into the attribute collection.
|
EntryAttribute |
put(String upId,
AttributeType attributeType,
String... values)
Places a new attribute with the supplied AttributeType and some String values
into the attribute collection.
|
EntryAttribute |
put(String upId,
AttributeType attributeType,
Value<?>... values)
Places a new attribute with the supplied AttributeType and some values
into the attribute collection.
|
EntryAttribute |
put(String upId,
byte[]... values)
Put an attribute (represented by its ID and some binary values) into an entry.
|
EntryAttribute |
put(String upId,
String... values)
Put an attribute (represented by its ID and some String values) into an entry.
|
EntryAttribute |
put(String upId,
Value<?>... values)
Put an attribute (represented by its ID and some values) into an entry.
|
void |
readExternal(ObjectInput in) |
boolean |
remove(AttributeType attributeType,
byte[]... values)
Removes the specified binary values from an attribute.
|
boolean |
remove(AttributeType attributeType,
String... values)
Removes the specified String values from an attribute.
|
boolean |
remove(AttributeType attributeType,
Value<?>... values)
Removes the specified values from an attribute.
|
List<EntryAttribute> |
remove(EntryAttribute... attributes)
Removes the specified attributes.
|
boolean |
remove(String upId,
byte[]... values)
Removes the specified binary values from an attribute.
|
boolean |
remove(String upId,
String... values)
Removes the specified String values from an attribute.
|
boolean |
remove(String upId,
Value<?>... values)
Removes the specified Value values from an attribute.
|
List<EntryAttribute> |
removeAttributes(AttributeType... attributes)
Removes the attribute with the specified AttributeTypes.
|
List<EntryAttribute> |
removeAttributes(String... attributes)
Removes the attribute with the specified alias.
|
void |
serialize(ObjectOutput out)
Serialize a server entry.
|
List<EntryAttribute> |
set(AttributeType... attributeTypes)
Put some new attributes using the attributeTypes.
|
List<EntryAttribute> |
set(String... upIds)
Put some new EntryAttribute using the User Provided ID.
|
Entry |
toClientEntry()
Convert the ServerEntry to a ClientEntry
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
clear, getDn, iterator, setDn, size
public DefaultServerEntry()
Creates a new instance of DefaultServerEntry.
This entry must be initialized before being used !
public DefaultServerEntry(SchemaManager schemaManager)
Creates a new instance of DefaultServerEntry, with registries.
No attributes will be created.
registries
- The reference to the global registriespublic DefaultServerEntry(SchemaManager schemaManager, Entry entry)
Creates a new instance of DefaultServerEntry, copying another entry, which can be a ClientEntry.
No attributes will be created.
registries
- The reference to the global registriesentry
- the entry to copypublic DefaultServerEntry(SchemaManager schemaManager, DN dn)
Creates a new instance of DefaultServerEntry, with a DN and registries.
No attributes will be created.
registries
- The reference to the global registriesdn
- The DN for this serverEntry. Can be null.public DefaultServerEntry(SchemaManager schemaManager, DN dn, AttributeType... attributeTypes)
Creates a new instance of DefaultServerEntry, with a DN, registries and a list of attributeTypes.
The newly created entry is fed with the list of attributeTypes. No values are associated with those attributeTypes.
If any of the AttributeType does not exist, they it's simply discarded.
registries
- The reference to the global registriesdn
- The DN for this serverEntry. Can be null.attributeTypes
- The list of attributes to create, without value.public DefaultServerEntry(SchemaManager schemaManager, DN dn, AttributeType attributeType, String upId)
Creates a new instance of DefaultServerEntry, with a DN, registries and an attributeType with the user provided ID.
The newly created entry is fed with the given attributeType. No values are associated with this attributeType.
If the AttributeType does not exist, they it's simply discarded.
We also check that the normalized upID equals the AttributeType ID
registries
- The reference to the global registriesdn
- The DN for this serverEntry. Can be null.attributeType
- The attribute to create, without value.upId
- The User Provided ID fro this AttributeTypepublic DefaultServerEntry(SchemaManager schemaManager, DN dn, String... upIds)
No attributes will be created except the ObjectClass attribute, which will contains "top".
If any of the AttributeType does not exist, they are simply discarded.
registries
- The reference to the global registriesdn
- The DN for this serverEntry. Can be null.upIds
- The list of attributes to create.public DefaultServerEntry(SchemaManager schemaManager, DN dn, EntryAttribute... attributes)
No attributes will be created except the ObjectClass attribute, which will contains "top".
If any of the AttributeType does not exist, they are simply discarded.
registries
- The reference to the global registriesdn
- The DN for this serverEntry. Can be nullattributes
- The list of attributes to createpublic static String getUpId(String upId, AttributeType attributeType)
public void add(AttributeType attributeType, byte[]... values) throws LdapException
Add an attribute (represented by its AttributeType and some binary values) into an entry.
If we already have an attribute with the same values, nothing is done (duplicated values are not allowed)
If the value cannot be added, or if the AttributeType is null or invalid, a LdapException is thrown.
add
in interface ServerEntry
attributeType
- The attribute Type.values
- The list of binary values to inject. It can be empty.LdapException
- If the attribute does not existpublic void add(AttributeType attributeType, String... values) throws LdapException
Add an attribute (represented by its AttributeType and some String values) into an entry.
If we already have an attribute with public the same value, nothing is done (duplicated values are not allowed)
public If the value cannot be added, or if the AttributeType is null or invalid, a LdapException is thrown.
publicadd
in interface ServerEntry
attributeType
- The attribute Typevalues
- The list of binary values to inject. It can be emptyLdapException
- If the attribute does not existpublic void add(AttributeType attributeType, Value<?>... values) throws LdapException
Add an attribute (represented by its AttributeType and some values) into an entry.
If we already have an attribute with the same value, nothing is done. (duplicated values are not allowed)
If the value cannot be added, or if the AttributeType is null or invalid, a LdapException is thrown.
add
in interface ServerEntry
attributeType
- The attribute Typevalues
- The list of binary values to inject. It can be emptyLdapException
- If the attribute does not existpublic void add(EntryAttribute... attributes) throws LdapException
add
in interface Entry
attributes
- The attributes to addLdapException
- If we can't add any of the attributespublic void add(String upId, AttributeType attributeType, byte[]... values) throws LdapException
Add an attribute (represented by its AttributeType and some binary values) into an entry. Set the User Provider ID at the same time
If we already have an attribute with the same values, nothing is done (duplicated values are not allowed)
If the value cannot be added, or if the AttributeType is null or invalid, a LdapException is thrown.
add
in interface ServerEntry
upId
- The user provided ID for the added AttributeTypeattributeType
- The attribute Type.values
- The list of binary values to add. It can be empty.LdapException
- If the attribute does not existpublic void add(String upId, AttributeType attributeType, Value<?>... values) throws LdapException
Add an attribute (represented by its AttributeType and some values) into an entry. Set the User Provider ID at the same time
If we already have an attribute with the same values, nothing is done (duplicated values are not allowed)
If the value cannot be added, or if the AttributeType is null or invalid, a LdapException is thrown.
add
in interface ServerEntry
upId
- The user provided ID for the added AttributeTypeattributeType
- The attribute Type.values
- The list of values to add. It can be empty.LdapException
- If the attribute does not existpublic void add(String upId, AttributeType attributeType, String... values) throws LdapException
add
in interface ServerEntry
upId
- The User provided IDattributeType
- The associated AttributeTypevalues
- The String values to store into the new AttributeLdapException
public void add(String upId, byte[]... values) throws LdapException
add
in interface Entry
upId
- The attribute IDvalues
- The list of binary values to inject. It can be emptyLdapException
- If the attribute does not existpublic void add(String upId, String... values) throws LdapException
add
in interface Entry
upId
- The attribute IDvalues
- The list of string values to inject. It can be emptyLdapException
- If the attribute does not existpublic void add(String upId, Value<?>... values) throws LdapException
add
in interface Entry
upId
- The attribute IDvalues
- The list of Value values to inject. It can be emptyLdapException
- If the attribute does not existpublic boolean contains(AttributeType attributeType, byte[]... values)
contains
in interface ServerEntry
attributeType
- The Attribute we are looking for.values
- The searched values.true
if all the values are found within the attribute,
false
otherwise, or if the attributes does not exist.public boolean contains(AttributeType attributeType, String... values)
contains
in interface ServerEntry
attributeType
- The Attribute we are looking for.values
- The searched values.true
if all the values are found within the attribute,
false
otherwise, or if the attributes does not exist.public boolean contains(AttributeType attributeType, Value<?>... values)
contains
in interface ServerEntry
attributeType
- The Attribute we are looking for.values
- The searched values.true
if all the values are found within the attribute,
false
otherwise, or if the attributes does not exist.public boolean contains(EntryAttribute... attributes) throws LdapException
Checks if an entry contains a list of attributes.
If the list is null or empty, this method will return true
if the entry has no attribute, false
otherwise.
contains
in interface Entry
attributes
- The Attributes to look fortrue
if all the attributes are found within
the entry, false
if at least one of them is not present.LdapException
- If the attribute does not existpublic boolean contains(String id, byte[]... values)
public boolean contains(String id, String... values)
public boolean contains(String id, Value<?>... values)
public boolean containsAttribute(AttributeType attributeType)
containsAttribute
in interface ServerEntry
attributeType
- The AttributeType to look for.true
if the attribute is found within the entry.public boolean containsAttribute(String... attributes)
containsAttribute
in interface Entry
attributes
- The Attributes to look for.true
if the attributes are all found within the entry.public EntryAttribute get(AttributeType attributeType)
get
in interface ServerEntry
attributeType
- the AttributeType we are looking forpublic EntryAttribute get(String alias)
Returns the attribute with the specified alias. The return value
is null
if no match is found.
An Attribute with an id different from the supplied alias may be returned: for example a call with 'cn' may in some implementations return an Attribute whose getId() field returns 'commonName'.
If the attributeType is not found, returns null.
public Set<AttributeType> getAttributeTypes()
getAttributeTypes
in interface ServerEntry
public boolean hasObjectClass(String objectClass)
hasObjectClass
in interface Entry
objectClass
- The ObjectClass ID we want to checktrue
if the ObjectClass value is present
in the ObjectClass attributepublic boolean hasObjectClass(EntryAttribute objectClass)
hasObjectClass
in interface ServerEntry
objectClass
- The ObjectClass we want to checktrue
if the ObjectClass value is present
in the ObjectClass attributepublic boolean isValid()
isValid
in interface ServerEntry
public boolean isValid(EntryAttribute objectClass)
isValid
in interface ServerEntry
objectClass
- the objectClass to use while checking for validitypublic boolean isValid(String objectClass)
isValid
in interface ServerEntry
objectClass
- the objectClass to use while checking for validitypublic EntryAttribute put(AttributeType attributeType, byte[]... values) throws LdapException
Places a new attribute with the supplied AttributeType and binary values into the attribute collection.
If there is already an attribute with the same AttributeType, the old one is removed from the collection and is returned by this method.
This method provides a mechanism to put an attribute with a
null
value: the value may be null
.
put
in interface ServerEntry
attributeType
- the type of the new attribute to be putvalues
- the binary values of the new attribute to be putnull
LdapException
- if there are failurespublic EntryAttribute put(AttributeType attributeType, String... values) throws LdapException
Places a new attribute with the supplied AttributeType and String values into the attribute collection.
If there is already an attribute with the same AttributeType, the old one is removed from the collection and is returned by this method.
This method provides a mechanism to put an attribute with a
null
value: the value may be null
.
put
in interface ServerEntry
attributeType
- the type of the new attribute to be putvalues
- the String values of the new attribute to be putnull
LdapException
- if there are failurespublic EntryAttribute put(AttributeType attributeType, Value<?>... values) throws LdapException
Places a new attribute with the supplied AttributeType and some values into the attribute collection.
If there is already an attribute with the same AttributeType, the old one is removed from the collection and is returned by this method.
This method provides a mechanism to put an attribute with a
null
value: the value may be null
.
put
in interface ServerEntry
attributeType
- the type of the new attribute to be putvalues
- the values of the new attribute to be putnull
LdapException
- if there are failurespublic List<EntryAttribute> put(EntryAttribute... attributes) throws LdapException
Places attributes in the attribute collection.
If there is already an attribute with the same ID as any of the
new attributes, the old ones are removed from the collection and
are returned by this method. If there was no attribute with the
same ID the return value is null
.
put
in interface Entry
attributes
- the attributes to be putnull
LdapException
- if the operation failspublic EntryAttribute put(String upId, AttributeType attributeType, byte[]... values) throws LdapException
Places a new attribute with the supplied AttributeType and some binary values into the attribute collection.
The given User provided ID will be used for this new AttributeEntry.
If there is already an attribute with the same AttributeType, the old one is removed from the collection and is returned by this method.
This method provides a mechanism to put an attribute with a
null
value: the value may be null
.
put
in interface ServerEntry
upId
- The User Provided ID to be stored into the AttributeEntryattributeType
- the type of the new attribute to be putvalues
- the binary values of the new attribute to be putnull
LdapException
- if there are failures.public EntryAttribute put(String upId, AttributeType attributeType, String... values) throws LdapException
Places a new attribute with the supplied AttributeType and some String values into the attribute collection.
The given User provided ID will be used for this new AttributeEntry.
If there is already an attribute with the same AttributeType, the old one is removed from the collection and is returned by this method.
This method provides a mechanism to put an attribute with a
null
value: the value may be null
.
put
in interface ServerEntry
upId
- The User Provided ID to be stored into the AttributeEntryattributeType
- the type of the new attribute to be putvalues
- the String values of the new attribute to be putnull
LdapException
- if there are failures.public EntryAttribute put(String upId, AttributeType attributeType, Value<?>... values) throws LdapException
Places a new attribute with the supplied AttributeType and some values into the attribute collection.
The given User provided ID will be used for this new AttributeEntry.
If there is already an attribute with the same AttributeType, the old one is removed from the collection and is returned by this method.
This method provides a mechanism to put an attribute with a
null
value: the value may be null
.
put
in interface ServerEntry
upId
- The User Provided ID to be stored into the AttributeEntryattributeType
- the type of the new attribute to be putvalues
- the values of the new attribute to be putnull
LdapException
- if there are failures.public EntryAttribute put(String upId, byte[]... values)
Put an attribute (represented by its ID and some binary values) into an entry.
If the attribute already exists, the previous attribute will be replaced and returned.
If the upId is not the ID of an existing AttributeType, an IllegalArgumentException is thrown.
public EntryAttribute put(String upId, String... values)
Put an attribute (represented by its ID and some String values) into an entry.
If the attribute already exists, the previous attribute will be replaced and returned.
If the upId is not the ID of an existing AttributeType, an IllegalArgumentException is thrown.
public EntryAttribute put(String upId, Value<?>... values)
Put an attribute (represented by its ID and some values) into an entry.
If the attribute already exists, the previous attribute will be replaced and returned.
If the upId is not the ID of an existing AttributeType, an IllegalArgumentException is thrown.
public boolean remove(AttributeType attributeType, byte[]... values) throws LdapException
Removes the specified binary values from an attribute.
If at least one value is removed, this method returns true
.
If there is no more value after having removed the values, the attribute will be removed too.
If the attribute does not exist, nothing is done and the method returns
false
remove
in interface ServerEntry
attributeType
- The attribute typevalues
- the values to be removedtrue
if at least a value is removed, false
if not all the values have been removed or if the attribute does not exist.LdapException
public boolean remove(AttributeType attributeType, String... values) throws LdapException
Removes the specified String values from an attribute.
If at least one value is removed, this method returns true
.
If there is no more value after having removed the values, the attribute will be removed too.
If the attribute does not exist, nothing is done and the method returns
false
remove
in interface ServerEntry
attributeType
- The attribute typevalues
- the values to be removedtrue
if at least a value is removed, false
if not all the values have been removed or if the attribute does not exist.LdapException
public boolean remove(AttributeType attributeType, Value<?>... values) throws LdapException
Removes the specified values from an attribute.
If at least one value is removed, this method returns true
.
If there is no more value after having removed the values, the attribute will be removed too.
If the attribute does not exist, nothing is done and the method returns
false
remove
in interface ServerEntry
attributeType
- The attribute typevalues
- the values to be removedtrue
if at least a value is removed, false
if not all the values have been removed or if the attribute does not exist.LdapException
public List<EntryAttribute> remove(EntryAttribute... attributes) throws LdapException
ServerEntry
null
.remove
in interface Entry
remove
in interface ServerEntry
attributes
- the attributes to be removednull
LdapException
public boolean remove(String upId, byte[]... values) throws LdapException
Removes the specified binary values from an attribute.
If at least one value is removed, this method returns true
.
If there is no more value after having removed the values, the attribute will be removed too.
If the attribute does not exist, nothing is done and the method returns
false
remove
in interface Entry
upId
- The attribute IDvalues
- the values to be removedtrue
if at least a value is removed, false
if not all the values have been removed or if the attribute does not exist.LdapException
public boolean remove(String upId, String... values) throws LdapException
Removes the specified String values from an attribute.
If at least one value is removed, this method returns true
.
If there is no more value after having removed the values, the attribute will be removed too.
If the attribute does not exist, nothing is done and the method returns
false
remove
in interface Entry
upId
- The attribute IDvalues
- the values to be removedtrue
if at least a value is removed, false
if not all the values have been removed or if the attribute does not exist.LdapException
public boolean remove(String upId, Value<?>... values) throws LdapException
Removes the specified Value values from an attribute.
If at least one value is removed, this method returns true
.
If there is no more value after having removed the values, the attribute will be removed too.
If the attribute does not exist, nothing is done and the method returns
false
remove
in interface Entry
upId
- The attribute IDvalues
- the values to be removedtrue
if at least a value is removed, false
if not all the values have been removed or if the attribute does not exist.LdapException
public List<EntryAttribute> removeAttributes(AttributeType... attributes)
Removes the attribute with the specified AttributeTypes.
The removed attribute are returned by this method.
If there is no attribute with the specified AttributeTypes,
the return value is null
.
removeAttributes
in interface ServerEntry
attributes
- the AttributeTypes to be removednull
public List<EntryAttribute> removeAttributes(String... attributes)
Removes the attribute with the specified alias.
The removed attribute are returned by this method.
If there is no attribute with the specified alias,
the return value is null
.
removeAttributes
in interface Entry
attributes
- an aliased name of the attribute to be removednull
public List<EntryAttribute> set(AttributeType... attributeTypes)
Put some new attributes using the attributeTypes. No value is inserted.
If an existing Attribute is found, it will be replaced by an empty attribute, and returned to the caller.
set
in interface ServerEntry
attributeTypes
- The AttributeTypes to add.null
if no attribute are removed.public List<EntryAttribute> set(String... upIds)
Put some new EntryAttribute using the User Provided ID. No value is inserted.
If an existing Attribute is found, it will be replaced by an empty attribute, and returned to the caller.
public Entry toClientEntry() throws LdapException
toClientEntry
in interface ServerEntry
LdapException
public Entry clone()
clone
in interface Entry
clone
in interface ServerEntry
clone
in class AbstractEntry<AttributeType>
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
We can't use this method for a ServerEntry, as we have to feed the entry
with an registries reference
public void serialize(ObjectOutput out) throws IOException
out
- the buffer in which the data will be serializedIOException
- if the serialization failedpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
We can't use this method for a ServerEntry, as we have to feed the entry
with an registries reference
public void deserialize(ObjectInput in) throws IOException, ClassNotFoundException
in
- The buffer containing the serialized serverEntryIOException
- if there was a problem when deserializingClassNotFoundException
- if we can't deserialize an expected objectpublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object o)
equals
in class Object
Object.equals(Object)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.