org.ldaptive.handler
Class CaseChangeEntryHandler

java.lang.Object
  extended by org.ldaptive.handler.AbstractSearchEntryHandler
      extended by org.ldaptive.handler.CaseChangeEntryHandler
All Implemented Interfaces:
Handler<SearchRequest,SearchEntry>, SearchEntryHandler

public class CaseChangeEntryHandler
extends AbstractSearchEntryHandler

Provides the ability to modify the case of search entry DNs, attribute names, and attribute values.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Nested Class Summary
static class CaseChangeEntryHandler.CaseChange
          Enum to define the type of case change.
 
Field Summary
 
Fields inherited from class org.ldaptive.handler.AbstractSearchEntryHandler
logger
 
Constructor Summary
CaseChangeEntryHandler()
           
 
Method Summary
 CaseChangeEntryHandler.CaseChange getAttributeNameCaseChange()
          Returns the attribute name case change.
 CaseChangeEntryHandler.CaseChange getAttributeValueCaseChange()
          Returns the attribute value case change.
 CaseChangeEntryHandler.CaseChange getDnCaseChange()
          Returns the DN case change.
protected  String handleAttributeName(Connection conn, SearchRequest request, String name)
          Returns the supplied attribute name unaltered.
protected  byte[] handleAttributeValue(Connection conn, SearchRequest request, byte[] value)
          Returns the supplied attribute value unaltered.
protected  String handleAttributeValue(Connection conn, SearchRequest request, String value)
          Returns the supplied attribute value unaltered.
protected  String handleDn(Connection conn, SearchRequest request, SearchEntry entry)
          Handle the dn of a search entry.
 int hashCode()
          
 void setAttributeNameCaseChange(CaseChangeEntryHandler.CaseChange cc)
          Sets the attribute name case change.
 void setAttributeValueCaseChange(CaseChangeEntryHandler.CaseChange cc)
          Sets the attribute value case change.
 void setDnCaseChange(CaseChangeEntryHandler.CaseChange cc)
          Sets the DN case change.
 String toString()
          
 
Methods inherited from class org.ldaptive.handler.AbstractSearchEntryHandler
equals, handle, handleAttribute, handleAttributes, initializeRequest
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CaseChangeEntryHandler

public CaseChangeEntryHandler()
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

handleDn

protected String handleDn(Connection conn,
                          SearchRequest request,
                          SearchEntry entry)
Handle the dn of a search entry.

Overrides:
handleDn in class AbstractSearchEntryHandler
Parameters:
conn - the search was performed on
request - used to find the search entry
entry - search entry to extract the dn from
Returns:
handled dn

handleAttributeName

protected String handleAttributeName(Connection conn,
                                     SearchRequest request,
                                     String name)
Returns the supplied attribute name unaltered.

Overrides:
handleAttributeName in class AbstractSearchEntryHandler
Parameters:
conn - the search was performed on
request - used to find the search entry
name - to handle
Returns:
handled name

handleAttributeValue

protected String handleAttributeValue(Connection conn,
                                      SearchRequest request,
                                      String value)
Returns the supplied attribute value unaltered.

Overrides:
handleAttributeValue in class AbstractSearchEntryHandler
Parameters:
conn - the search was performed on
request - used to find the search entry
value - to handle
Returns:
handled value

handleAttributeValue

protected byte[] handleAttributeValue(Connection conn,
                                      SearchRequest request,
                                      byte[] value)
Returns the supplied attribute value unaltered.

Overrides:
handleAttributeValue in class AbstractSearchEntryHandler
Parameters:
conn - the search was performed on
request - used to find the search entry
value - to handle
Returns:
handled value

hashCode

public int hashCode()

Specified by:
hashCode in class AbstractSearchEntryHandler

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.