@InterfaceAudience.LimitedPrivate(value="Tools") public class RESTServer extends Object implements Constants
The following options are supported:
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.conf.Configuration |
conf |
private InfoServer |
infoServer |
(package private) static org.slf4j.Logger |
LOG |
private static String |
PATH_SPEC_ANY |
(package private) static String |
REST_CSRF_BROWSER_USERAGENTS_REGEX_KEY |
(package private) static String |
REST_CSRF_CUSTOM_HEADER_DEFAULT |
(package private) static String |
REST_CSRF_CUSTOM_HEADER_KEY |
(package private) static boolean |
REST_CSRF_ENABLED_DEFAULT |
(package private) static String |
REST_CSRF_ENABLED_KEY |
(package private) static String |
REST_CSRF_METHODS_TO_IGNORE_DEFAULT |
(package private) static String |
REST_CSRF_METHODS_TO_IGNORE_KEY |
(package private) static String |
REST_HTTP_ALLOW_OPTIONS_METHOD |
private static boolean |
REST_HTTP_ALLOW_OPTIONS_METHOD_DEFAULT |
(package private) boolean |
restCSRFEnabled |
private org.eclipse.jetty.server.Server |
server |
static String |
SKIP_LOGIN_KEY |
private UserProvider |
userProvider |
CRLF, CUSTOM_FILTERS, DEFAULT_LISTEN_PORT, DEFAULT_MAX_AGE, FILTER_CLASSES, MIMETYPE_BINARY, MIMETYPE_HTML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF, MIMETYPE_TEXT, MIMETYPE_XML, NOCACHE_PARAM_NAME, REST_AUTHENTICATION_PRINCIPAL, REST_AUTHENTICATION_TYPE, REST_CONNECTOR_ACCEPT_QUEUE_SIZE, REST_DNS_INTERFACE, REST_DNS_NAMESERVER, REST_KERBEROS_PRINCIPAL, REST_KEYTAB_FILE, REST_SSL_ENABLED, REST_SSL_EXCLUDE_CIPHER_SUITES, REST_SSL_EXCLUDE_PROTOCOLS, REST_SSL_INCLUDE_CIPHER_SUITES, REST_SSL_INCLUDE_PROTOCOLS, REST_SSL_KEYSTORE_KEYPASSWORD, REST_SSL_KEYSTORE_PASSWORD, REST_SSL_KEYSTORE_STORE, REST_THREAD_POOL_TASK_QUEUE_SIZE, REST_THREAD_POOL_THREAD_IDLE_TIMEOUT, REST_THREAD_POOL_THREADS_MAX, REST_THREAD_POOL_THREADS_MIN, ROW_KEYS_PARAM_NAME, SCAN_BATCH_SIZE, SCAN_CACHE_BLOCKS, SCAN_COLUMN, SCAN_END_ROW, SCAN_END_TIME, SCAN_FETCH_SIZE, SCAN_FILTER, SCAN_LIMIT, SCAN_MAX_VERSIONS, SCAN_REVERSED, SCAN_START_ROW, SCAN_START_TIME, VERSION_STRING
Constructor and Description |
---|
RESTServer(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addCSRFFilter(org.eclipse.jetty.servlet.ServletContextHandler ctxHandler,
org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getInfoPort() |
int |
getPort() |
void |
join() |
private static Pair<org.eclipse.jetty.servlet.FilterHolder,Class<? extends org.glassfish.jersey.servlet.ServletContainer>> |
loginServerPrincipal(UserProvider userProvider,
org.apache.hadoop.conf.Configuration conf) |
static void |
main(String[] args)
The main method for the HBase rest server.
|
private static void |
parseCommandLine(String[] args,
org.apache.hadoop.conf.Configuration conf) |
private static void |
printUsageAndExit(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options,
int exitCode) |
void |
run()
Runs the REST server.
|
void |
stop() |
static org.slf4j.Logger LOG
static final String REST_CSRF_ENABLED_KEY
static final boolean REST_CSRF_ENABLED_DEFAULT
boolean restCSRFEnabled
static final String REST_CSRF_CUSTOM_HEADER_KEY
static final String REST_CSRF_CUSTOM_HEADER_DEFAULT
static final String REST_CSRF_METHODS_TO_IGNORE_KEY
static final String REST_CSRF_METHODS_TO_IGNORE_DEFAULT
public static final String SKIP_LOGIN_KEY
private static final String PATH_SPEC_ANY
static final String REST_HTTP_ALLOW_OPTIONS_METHOD
private static boolean REST_HTTP_ALLOW_OPTIONS_METHOD_DEFAULT
static final String REST_CSRF_BROWSER_USERAGENTS_REGEX_KEY
public static org.apache.hadoop.conf.Configuration conf
private final UserProvider userProvider
private org.eclipse.jetty.server.Server server
private InfoServer infoServer
public RESTServer(org.apache.hadoop.conf.Configuration conf)
private static void printUsageAndExit(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options, int exitCode)
void addCSRFFilter(org.eclipse.jetty.servlet.ServletContextHandler ctxHandler, org.apache.hadoop.conf.Configuration conf)
private static Pair<org.eclipse.jetty.servlet.FilterHolder,Class<? extends org.glassfish.jersey.servlet.ServletContainer>> loginServerPrincipal(UserProvider userProvider, org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
private static void parseCommandLine(String[] args, org.apache.hadoop.conf.Configuration conf)
public int getPort()
public int getInfoPort()
public org.apache.hadoop.conf.Configuration getConf()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.