-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for using SearchResultHandler with send.
Add enum to define whether a SearchResultHandler is being used with the send or execute method. Update DefaultSearchOperationHandle to process handlers configured for send.
- Loading branch information
Showing
8 changed files
with
249 additions
and
35 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
core/src/main/java/org/ldaptive/handler/AbstractSearchResultHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* See LICENSE for licensing and NOTICE for copyright. */ | ||
package org.ldaptive.handler; | ||
|
||
/** | ||
* Base class for search result handlers. | ||
* | ||
* @author Middleware Services | ||
*/ | ||
public abstract class AbstractSearchResultHandler implements SearchResultHandler | ||
{ | ||
|
||
/** Handler usage. */ | ||
private final Usage usage; | ||
|
||
|
||
/** | ||
* Creates a new abstract search result handler. | ||
* | ||
* @param u handler usage | ||
*/ | ||
public AbstractSearchResultHandler(final Usage u) | ||
{ | ||
usage = u; | ||
} | ||
|
||
|
||
@Override | ||
public Usage getUsage() | ||
{ | ||
return usage; | ||
} | ||
|
||
|
||
@Override | ||
public String toString() | ||
{ | ||
return getClass().getName() + "@" + hashCode() + "::" + "usage=" + usage; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.