Class SortControl2
- java.lang.Object
-
- javax.naming.ldap.BasicControl
-
- org.openehealth.ipf.commons.ihe.hpd.controls.sorting.SortControl2
-
- All Implemented Interfaces:
Serializable,Control
public class SortControl2 extends BasicControl
This class is necessary because:- JDK does not provide a BER parser for SortControl
- SortControl does not expose sorting keys
- Since:
- 4.3
- Author:
- Dmytro Rud
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.naming.ldap.BasicControl
criticality, id, value
-
Fields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL
-
-
Constructor Summary
Constructors Constructor Description SortControl2(boolean criticality, SortKey... keys)SortControl2(byte[] berBytes, boolean criticality)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)byte[]getEncodedValue()SortKey[]getKeys()StringtoString()-
Methods inherited from class javax.naming.ldap.BasicControl
getID, isCritical
-
-
-
-
Constructor Detail
-
SortControl2
public SortControl2(boolean criticality, SortKey... keys) throws IOException- Throws:
IOException
-
SortControl2
public SortControl2(byte[] berBytes, boolean criticality) throws IOException- Throws:
IOException
-
-
Method Detail
-
getEncodedValue
public byte[] getEncodedValue()
- Specified by:
getEncodedValuein interfaceControl- Overrides:
getEncodedValuein classBasicControl
-
getKeys
public SortKey[] getKeys()
-
-