|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.SearchFilter
public class SearchFilter
Simple bean for an ldap search filter and it's parameters.
| Constructor Summary | |
|---|---|
SearchFilter()
Default constructor. |
|
SearchFilter(String filter)
Creates a new search filter with the supplied filter. |
|
SearchFilter(String filter,
Object[] params)
Creates a new search filter with the supplied filter and parameters. |
|
| Method Summary | |
|---|---|
protected static String |
encode(Object obj)
Hex encodes the supplied object if it is of type byte[], otherwise the string format of the object is escaped. |
static String |
encodeValue(byte[] value)
Hex encodes the supplied byte array for use in a search filter. |
static String |
encodeValue(String value)
Encodes the supplied attribute value for use in a search filter. |
boolean |
equals(Object o)
|
String |
format()
Returns this filter with it's parameters encoded and replaced. |
String |
getFilter()
Gets the filter. |
Map<String,Object> |
getParameters()
Gets the filter parameters. |
int |
hashCode()
|
void |
setFilter(String filter)
Sets the filter. |
void |
setParameter(int position,
Object value)
Sets a positional filter parameter. |
void |
setParameter(String name,
Object value)
Sets a named filter parameter. |
void |
setParameters(Object[] values)
Sets positional filter parameters. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SearchFilter()
public SearchFilter(String filter)
filter - to set
public SearchFilter(String filter,
Object[] params)
filter - to setparams - to set| Method Detail |
|---|
public String getFilter()
public void setFilter(String filter)
filter - to setpublic Map<String,Object> getParameters()
public void setParameter(int position,
Object value)
position - of the parameter in the filtervalue - to set
public void setParameter(String name,
Object value)
name - of the parameter in the filtervalue - to setpublic void setParameters(Object[] values)
values - to setpublic String format()
encode(Object).
public static String encodeValue(byte[] value)
value - to encode
public static String encodeValue(String value)
escape(String).
value - to encode
protected static String encode(Object obj)
escape(String).
obj - to encode
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||