1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 *
19 */
20 package org.apache.directory.api.ldap.model.message;
21
22
23 /**
24 * An enum to store the Ldap message type.
25 *
26 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
27 */
28 public enum MessageTypeEnum
29 {
30 ABANDON_REQUEST(0),
31 ADD_REQUEST(1),
32 ADD_RESPONSE(2),
33 BIND_REQUEST(3),
34 BIND_RESPONSE(4),
35 COMPARE_REQUEST(5),
36 COMPARE_RESPONSE(6),
37 DEL_REQUEST(7),
38 DEL_RESPONSE(8),
39 EXTENDED_REQUEST(9),
40 EXTENDED_RESPONSE(10),
41 MODIFYDN_REQUEST(11),
42 MODIFYDN_RESPONSE(12),
43 MODIFY_REQUEST(13),
44 MODIFY_RESPONSE(14),
45 SEARCH_REQUEST(15),
46 SEARCH_RESULT_DONE(16),
47 SEARCH_RESULT_ENTRY(17),
48 SEARCH_RESULT_REFERENCE(18),
49 UNBIND_REQUEST(19),
50 INTERMEDIATE_RESPONSE(20);
51
52 /** The internal value */
53 @SuppressWarnings("unused")
54 private int value;
55
56
57 private MessageTypeEnum( int value )
58 {
59 this.value = value;
60 }
61 }