View Javadoc

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, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  package org.apache.hadoop.hbase.rest;
20  
21  import org.apache.hadoop.classification.InterfaceAudience;
22  import org.apache.hadoop.classification.InterfaceStability;
23  
24  /**
25   * Common constants for org.apache.hadoop.hbase.rest
26   */
27  @InterfaceAudience.Public
28  @InterfaceStability.Stable
29  public interface Constants {
30    String VERSION_STRING = "0.0.2";
31  
32    int DEFAULT_MAX_AGE = 60 * 60 * 4;  // 4 hours
33  
34    int DEFAULT_LISTEN_PORT = 8080;
35  
36    String MIMETYPE_TEXT = "text/plain";
37    String MIMETYPE_HTML = "text/html";
38    String MIMETYPE_XML = "text/xml";
39    String MIMETYPE_BINARY = "application/octet-stream";
40    String MIMETYPE_PROTOBUF = "application/x-protobuf";
41    String MIMETYPE_PROTOBUF_IETF = "application/protobuf";
42    String MIMETYPE_JSON = "application/json";
43  
44    String CRLF = "\r\n";
45  
46    static final String REST_KEYTAB_FILE = "hbase.rest.keytab.file";
47    static final String REST_KERBEROS_PRINCIPAL = "hbase.rest.kerberos.principal";
48    static final String REST_AUTHENTICATION_TYPE = "hbase.rest.authentication.type";
49    static final String REST_AUTHENTICATION_PRINCIPAL =
50      "hbase.rest.authentication.kerberos.principal";
51  
52    static final String REST_SSL_ENABLED = "hbase.rest.ssl.enabled";
53    static final String REST_SSL_KEYSTORE_STORE = "hbase.rest.ssl.keystore.store";
54    static final String REST_SSL_KEYSTORE_PASSWORD = "hbase.rest.ssl.keystore.password";
55    static final String REST_SSL_KEYSTORE_KEYPASSWORD =
56      "hbase.rest.ssl.keystore.keypassword";
57  
58    static final String REST_DNS_NAMESERVER = "hbase.rest.dns.nameserver";
59    static final String REST_DNS_INTERFACE = "hbase.rest.dns.interface";
60  
61    public static final String FILTER_CLASSES = "hbase.rest.filter.classes";
62    public static final String SCAN_START_ROW = "startrow";
63    public static final String SCAN_END_ROW = "endrow";
64    public static final String SCAN_COLUMN = "column";
65    public static final String SCAN_START_TIME = "starttime";
66    public static final String SCAN_END_TIME = "endtime";
67    public static final String SCAN_MAX_VERSIONS = "maxversions";
68    public static final String SCAN_BATCH_SIZE = "batchsize";
69    public static final String SCAN_LIMIT = "limit";
70    public static final String SCAN_FETCH_SIZE = "hbase.rest.scan.fetchsize";
71  
72  }