Class SortResponseImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.AbstractControl
-
- org.apache.directory.api.ldap.model.message.controls.SortResponseImpl
-
- All Implemented Interfaces:
Control
,SortResponse
public class SortResponseImpl extends AbstractControl implements SortResponse
Implementation of SortResponseControl.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.model.message.controls.SortResponse
OID
-
-
Constructor Summary
Constructors Constructor Description SortResponseImpl()
Creates a new SortResponseControlImpl instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAttributeName()
SortResultCode
getSortResult()
int
hashCode()
void
setAttributeName(String attributeName)
Sets the name of the first offending attributevoid
setSortResult(SortResultCode result)
sets the sort resultString
toString()
Return a String representing a Control-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Constructor Detail
-
SortResponseImpl
public SortResponseImpl()
Creates a new SortResponseControlImpl instance
-
-
Method Detail
-
setSortResult
public void setSortResult(SortResultCode result)
sets the sort result- Specified by:
setSortResult
in interfaceSortResponse
- Parameters:
result
- The sort result code
-
getSortResult
public SortResultCode getSortResult()
- Specified by:
getSortResult
in interfaceSortResponse
- Returns:
- the sort result
-
setAttributeName
public void setAttributeName(String attributeName)
Sets the name of the first offending attribute- Specified by:
setAttributeName
in interfaceSortResponse
- Parameters:
attributeName
- The attribute's name
-
getAttributeName
public String getAttributeName()
- Specified by:
getAttributeName
in interfaceSortResponse
- Returns:
- the name of the first offending attribute
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractControl
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractControl
- See Also:
Object.equals(Object)
-
toString
public String toString()
Return a String representing a Control- Overrides:
toString
in classAbstractControl
-
-