| | |
| | | public static LDAPPreReadResponseControl decodeControl(Control control) |
| | | throws LDAPException |
| | | { |
| | | |
| | | if (! control.hasValue()) |
| | | { |
| | | int msgID = MSGID_PREREADRESP_NO_CONTROL_VALUE; |
| | |
| | | */ |
| | | private static ASN1OctetString encodeEntry(SearchResultEntry searchEntry) |
| | | { |
| | | |
| | | |
| | | SearchResultEntryProtocolOp protocolOp = |
| | | new SearchResultEntryProtocolOp(searchEntry); |
| | | return new ASN1OctetString(protocolOp.encode().encode()); |
| | |
| | | */ |
| | | public SearchResultEntry getSearchEntry() |
| | | { |
| | | |
| | | return searchEntry; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setSearchEntry(SearchResultEntry searchEntry) |
| | | { |
| | | |
| | | this.searchEntry = searchEntry; |
| | | setValue(encodeEntry(searchEntry)); |
| | | } |
| | |
| | | */ |
| | | public String toString() |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toString(buffer); |
| | | return buffer.toString(); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("LDAPPreReadResponseControl(criticality="); |
| | | buffer.append(isCritical()); |
| | | buffer.append(",entry="); |