Class AbstractBinaryAttributeHandler<T>

Type Parameters:
T - type of object to handle
All Implemented Interfaces:
Function<T,T>
Direct Known Subclasses:
ObjectGuidHandler, ObjectSidHandler

public abstract class AbstractBinaryAttributeHandler<T> extends AbstractEntryHandler<T>
Base class for entry handlers that convert a binary attribute to it's string form.
  • Field Details

    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      hash code seed.
      See Also:
    • attributeName

      private String attributeName
      attribute name.
  • Constructor Details

    • AbstractBinaryAttributeHandler

      public AbstractBinaryAttributeHandler()
  • Method Details

    • getAttributeName

      public String getAttributeName()
      Returns the attribute name to convert from binary to string.
      Returns:
      attribute name
    • setAttributeName

      public void setAttributeName(String name)
      Sets the attribute name to convert from binary to string.
      Parameters:
      name - of the attribute
    • handleAttributes

      protected void handleAttributes(LdapEntry entry)
      Description copied from class: AbstractEntryHandler
      Handle the attributes of a search entry.
      Overrides:
      handleAttributes in class AbstractEntryHandler<T>
      Parameters:
      entry - search entry to extract the attributes from
    • convertValue

      protected abstract String convertValue(byte[] value)
      Converts the supplied binary value to it's string form.
      Parameters:
      value - to convert
      Returns:
      string form of the value
    • setRequest

      public void setRequest(SearchRequest request)
      Overrides:
      setRequest in class MessageFunctional<SearchRequest,SearchResponse>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractEntryHandler<T>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class AbstractEntryHandler<T>