Package org.ldaptive.handler
Class CaseChangeEntryHandler
- java.lang.Object
-
- org.ldaptive.transport.MessageFunctional<Q,S>
-
- org.ldaptive.transport.MessageFunctional.Function<SearchRequest,SearchResponse,T,T>
-
- org.ldaptive.handler.AbstractEntryHandler<LdapEntry>
-
- org.ldaptive.handler.CaseChangeEntryHandler
-
- All Implemented Interfaces:
java.util.function.Function<LdapEntry,LdapEntry>,LdapEntryHandler
public class CaseChangeEntryHandler extends AbstractEntryHandler<LdapEntry> implements LdapEntryHandler
Provides the ability to modify the case of search entry DNs, attribute names, and attribute values.- Author:
- Middleware Services
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCaseChangeEntryHandler.CaseChangeEnum to define the type of case change.
-
Field Summary
-
Fields inherited from class org.ldaptive.handler.AbstractEntryHandler
logger
-
-
Constructor Summary
Constructors Constructor Description CaseChangeEntryHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapEntryapply(LdapEntry entry)booleanequals(java.lang.Object o)CaseChangeEntryHandler.CaseChangegetAttributeNameCaseChange()Returns the attribute name case change.java.lang.String[]getAttributeNames()Returns the attribute names.CaseChangeEntryHandler.CaseChangegetAttributeValueCaseChange()Returns the attribute value case change.CaseChangeEntryHandler.CaseChangegetDnCaseChange()Returns the DN case change.protected java.lang.StringhandleAttributeName(java.lang.String name)Returns the supplied attribute name unaltered.protected voidhandleAttributes(LdapEntry entry)Handle the attributes of a search entry.protected byte[]handleAttributeValue(byte[] value)Returns the supplied attribute value unaltered.protected java.lang.StringhandleAttributeValue(java.lang.String value)Returns the supplied attribute value unaltered.protected java.lang.StringhandleDn(LdapEntry entry)Handle the dn of a search entry.inthashCode()voidsetAttributeNameCaseChange(CaseChangeEntryHandler.CaseChange cc)Sets the attribute name case change.voidsetAttributeNames(java.lang.String... names)Sets the attribute names.voidsetAttributeValueCaseChange(CaseChangeEntryHandler.CaseChange cc)Sets the attribute value case change.voidsetDnCaseChange(CaseChangeEntryHandler.CaseChange cc)Sets the DN case change.java.lang.StringtoString()-
Methods inherited from class org.ldaptive.handler.AbstractEntryHandler
handleAttribute, handleEntry
-
Methods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, setConnection, setHandle, setRequest
-
-
-
-
Method Detail
-
getDnCaseChange
public CaseChangeEntryHandler.CaseChange getDnCaseChange()
Returns the DN case change.- Returns:
- case change
-
setDnCaseChange
public void setDnCaseChange(CaseChangeEntryHandler.CaseChange cc)
Sets the DN case change.- Parameters:
cc- case change
-
getAttributeNameCaseChange
public CaseChangeEntryHandler.CaseChange getAttributeNameCaseChange()
Returns the attribute name case change.- Returns:
- case change
-
setAttributeNameCaseChange
public void setAttributeNameCaseChange(CaseChangeEntryHandler.CaseChange cc)
Sets the attribute name case change.- Parameters:
cc- case change
-
getAttributeValueCaseChange
public CaseChangeEntryHandler.CaseChange getAttributeValueCaseChange()
Returns the attribute value case change.- Returns:
- case change
-
setAttributeValueCaseChange
public void setAttributeValueCaseChange(CaseChangeEntryHandler.CaseChange cc)
Sets the attribute value case change.- Parameters:
cc- case change
-
getAttributeNames
public java.lang.String[] getAttributeNames()
Returns the attribute names.- Returns:
- attribute names
-
setAttributeNames
public void setAttributeNames(java.lang.String... names)
Sets the attribute names.- Parameters:
names- of the attributes
-
handleDn
protected java.lang.String handleDn(LdapEntry entry)
Description copied from class:AbstractEntryHandlerHandle the dn of a search entry.- Overrides:
handleDnin classAbstractEntryHandler<LdapEntry>- Parameters:
entry- search entry to extract the dn from- Returns:
- handled dn
-
handleAttributes
protected void handleAttributes(LdapEntry entry)
Description copied from class:AbstractEntryHandlerHandle the attributes of a search entry.- Overrides:
handleAttributesin classAbstractEntryHandler<LdapEntry>- Parameters:
entry- search entry to extract the attributes from
-
handleAttributeName
protected java.lang.String handleAttributeName(java.lang.String name)
Description copied from class:AbstractEntryHandlerReturns the supplied attribute name unaltered.- Overrides:
handleAttributeNamein classAbstractEntryHandler<LdapEntry>- Parameters:
name- to handle- Returns:
- handled name
-
handleAttributeValue
protected java.lang.String handleAttributeValue(java.lang.String value)
Description copied from class:AbstractEntryHandlerReturns the supplied attribute value unaltered.- Overrides:
handleAttributeValuein classAbstractEntryHandler<LdapEntry>- Parameters:
value- to handle- Returns:
- handled value
-
handleAttributeValue
protected byte[] handleAttributeValue(byte[] value)
Description copied from class:AbstractEntryHandlerReturns the supplied attribute value unaltered.- Overrides:
handleAttributeValuein classAbstractEntryHandler<LdapEntry>- Parameters:
value- to handle- Returns:
- handled value
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractEntryHandler<LdapEntry>
-
hashCode
public int hashCode()
- Specified by:
hashCodein classAbstractEntryHandler<LdapEntry>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-