| | |
| | | import org.forgerock.opendj.io.ASN1Writer; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.RawFilter; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.forgerock.util.Utils; |
| | | import org.opends.server.types.RawFilter; |
| | | |
| | | import static org.opends.server.protocols.ldap.LDAPConstants.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | |
| | | return attributes; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the BER type for this protocol op. |
| | | * |
| | | * @return The BER type for this protocol op. |
| | | */ |
| | | @Override |
| | | public byte getType() |
| | | { |
| | | return OP_TYPE_SEARCH_REQUEST; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the name for this protocol op type. |
| | | * |
| | | * @return The name for this protocol op type. |
| | | */ |
| | | @Override |
| | | public String getProtocolOpName() |
| | | { |
| | | return "Search Request"; |
| | | } |
| | | |
| | | /** |
| | | * Writes this protocol op to an ASN.1 output stream. |
| | | * |
| | | * @param stream The ASN.1 output stream to write to. |
| | | * @throws IOException If a problem occurs while writing to the stream. |
| | | */ |
| | | @Override |
| | | public void write(ASN1Writer stream) throws IOException |
| | | { |
| | |
| | | stream.writeEndSequence(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Appends a string representation of this LDAP protocol op to the provided |
| | | * buffer. |
| | | * |
| | | * @param buffer The buffer to which the string should be appended. |
| | | */ |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | |
| | | |
| | | if (attributes != null && ! attributes.isEmpty()) |
| | | { |
| | | buffer.append(Utils.joinAsString(", ", attributes)); |
| | | Utils.joinAsString(buffer, ", ", attributes); |
| | | } |
| | | |
| | | buffer.append("})"); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Appends a multi-line string representation of this LDAP protocol op to the |
| | | * provided buffer. |
| | | * |
| | | * @param buffer The buffer to which the information should be appended. |
| | | * @param indent The number of spaces from the margin that the lines should |
| | | * be indented. |
| | | */ |
| | | @Override |
| | | public void toString(StringBuilder buffer, int indent) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | |