Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AE1719FF8 for ; Mon, 18 Apr 2016 21:04:51 +0000 (UTC) Received: (qmail 46623 invoked by uid 500); 18 Apr 2016 21:04:44 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 46530 invoked by uid 500); 18 Apr 2016 21:04:44 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 45065 invoked by uid 99); 18 Apr 2016 21:04:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2016 21:04:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DC2E4E0556; Mon, 18 Apr 2016 21:04:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: misty@apache.org To: commits@hbase.apache.org Date: Mon, 18 Apr 2016 21:05:23 -0000 Message-Id: <558f01f271bc47ffaeaabb1bbea68495@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [43/51] [partial] hbase-site git commit: Published site at f2e0aca2b6925cdd1f2896052f4b4e847ee4e1fd. http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9f9a078f/apidocs/src-html/org/apache/hadoop/hbase/rest/client/Client.html ---------------------------------------------------------------------- diff --git a/apidocs/src-html/org/apache/hadoop/hbase/rest/client/Client.html b/apidocs/src-html/org/apache/hadoop/hbase/rest/client/Client.html index 4e979be..ebac866 100644 --- a/apidocs/src-html/org/apache/hadoop/hbase/rest/client/Client.html +++ b/apidocs/src-html/org/apache/hadoop/hbase/rest/client/Client.html @@ -383,31 +383,31 @@ 375 376 /** 377 * Send a PUT request -378 * @param cluster the cluster definition -379 * @param path the path or URI -380 * @param contentType the content MIME type -381 * @param content the content bytes +378 * @param path the path or URI +379 * @param contentType the content MIME type +380 * @param content the content bytes +381 * @param extraHdr extra Header to send 382 * @return a Response object with response detail 383 * @throws IOException 384 */ -385 public Response put(Cluster cluster, String path, String contentType, -386 byte[] content) throws IOException { -387 Header[] headers = new Header[1]; -388 headers[0] = new Header("Content-Type", contentType); -389 return put(cluster, path, headers, content); -390 } -391 -392 /** -393 * Send a PUT request -394 * @param path the path or URI -395 * @param headers the HTTP headers to include, <tt>Content-Type</tt> must be -396 * supplied -397 * @param content the content bytes -398 * @return a Response object with response detail -399 * @throws IOException -400 */ -401 public Response put(String path, Header[] headers, byte[] content) -402 throws IOException { +385 public Response put(String path, String contentType, byte[] content, Header extraHdr) +386 throws IOException { +387 return put(cluster, path, contentType, content, extraHdr); +388 } +389 +390 /** +391 * Send a PUT request +392 * @param cluster the cluster definition +393 * @param path the path or URI +394 * @param contentType the content MIME type +395 * @param content the content bytes +396 * @return a Response object with response detail +397 * @throws IOException for error +398 */ +399 public Response put(Cluster cluster, String path, String contentType, +400 byte[] content) throws IOException { +401 Header[] headers = new Header[1]; +402 headers[0] = new Header("Content-Type", contentType); 403 return put(cluster, path, headers, content); 404 } 405 @@ -415,122 +415,223 @@ 407 * Send a PUT request 408 * @param cluster the cluster definition 409 * @param path the path or URI -410 * @param headers the HTTP headers to include, <tt>Content-Type</tt> must be -411 * supplied -412 * @param content the content bytes +410 * @param contentType the content MIME type +411 * @param content the content bytes +412 * @param extraHdr additional Header to send 413 * @return a Response object with response detail -414 * @throws IOException +414 * @throws IOException for error 415 */ -416 public Response put(Cluster cluster, String path, Header[] headers, -417 byte[] content) throws IOException { -418 PutMethod method = new PutMethod(); -419 try { -420 method.setRequestEntity(new ByteArrayRequestEntity(content)); -421 int code = execute(cluster, method, headers, path); -422 headers = method.getResponseHeaders(); -423 content = method.getResponseBody(); -424 return new Response(code, headers, content); -425 } finally { -426 method.releaseConnection(); -427 } -428 } -429 -430 /** -431 * Send a POST request -432 * @param path the path or URI -433 * @param contentType the content MIME type -434 * @param content the content bytes -435 * @return a Response object with response detail -436 * @throws IOException -437 */ -438 public Response post(String path, String contentType, byte[] content) -439 throws IOException { -440 return post(cluster, path, contentType, content); -441 } -442 -443 /** -444 * Send a POST request -445 * @param cluster the cluster definition -446 * @param path the path or URI -447 * @param contentType the content MIME type -448 * @param content the content bytes -449 * @return a Response object with response detail -450 * @throws IOException -451 */ -452 public Response post(Cluster cluster, String path, String contentType, -453 byte[] content) throws IOException { -454 Header[] headers = new Header[1]; -455 headers[0] = new Header("Content-Type", contentType); -456 return post(cluster, path, headers, content); -457 } -458 -459 /** -460 * Send a POST request -461 * @param path the path or URI -462 * @param headers the HTTP headers to include, <tt>Content-Type</tt> must be -463 * supplied -464 * @param content the content bytes -465 * @return a Response object with response detail -466 * @throws IOException -467 */ -468 public Response post(String path, Header[] headers, byte[] content) -469 throws IOException { -470 return post(cluster, path, headers, content); -471 } -472 -473 /** -474 * Send a POST request -475 * @param cluster the cluster definition -476 * @param path the path or URI -477 * @param headers the HTTP headers to include, <tt>Content-Type</tt> must be -478 * supplied -479 * @param content the content bytes -480 * @return a Response object with response detail -481 * @throws IOException -482 */ -483 public Response post(Cluster cluster, String path, Header[] headers, -484 byte[] content) throws IOException { -485 PostMethod method = new PostMethod(); -486 try { -487 method.setRequestEntity(new ByteArrayRequestEntity(content)); -488 int code = execute(cluster, method, headers, path); -489 headers = method.getResponseHeaders(); -490 content = method.getResponseBody(); -491 return new Response(code, headers, content); -492 } finally { -493 method.releaseConnection(); -494 } -495 } -496 -497 /** -498 * Send a DELETE request -499 * @param path the path or URI -500 * @return a Response object with response detail -501 * @throws IOException -502 */ -503 public Response delete(String path) throws IOException { -504 return delete(cluster, path); -505 } -506 -507 /** -508 * Send a DELETE request -509 * @param cluster the cluster definition -510 * @param path the path or URI -511 * @return a Response object with response detail -512 * @throws IOException -513 */ -514 public Response delete(Cluster cluster, String path) throws IOException { -515 DeleteMethod method = new DeleteMethod(); -516 try { -517 int code = execute(cluster, method, null, path); -518 Header[] headers = method.getResponseHeaders(); -519 byte[] content = method.getResponseBody(); -520 return new Response(code, headers, content); -521 } finally { -522 method.releaseConnection(); -523 } -524 } -525} +416 public Response put(Cluster cluster, String path, String contentType, +417 byte[] content, Header extraHdr) throws IOException { +418 int cnt = extraHdr == null ? 1 : 2; +419 Header[] headers = new Header[cnt]; +420 headers[0] = new Header("Content-Type", contentType); +421 if (extraHdr != null) { +422 headers[1] = extraHdr; +423 } +424 return put(cluster, path, headers, content); +425 } +426 +427 /** +428 * Send a PUT request +429 * @param path the path or URI +430 * @param headers the HTTP headers to include, <tt>Content-Type</tt> must be +431 * supplied +432 * @param content the content bytes +433 * @return a Response object with response detail +434 * @throws IOException +435 */ +436 public Response put(String path, Header[] headers, byte[] content) +437 throws IOException { +438 return put(cluster, path, headers, content); +439 } +440 +441 /** +442 * Send a PUT request +443 * @param cluster the cluster definition +444 * @param path the path or URI +445 * @param headers the HTTP headers to include, <tt>Content-Type</tt> must be +446 * supplied +447 * @param content the content bytes +448 * @return a Response object with response detail +449 * @throws IOException +450 */ +451 public Response put(Cluster cluster, String path, Header[] headers, +452 byte[] content) throws IOException { +453 PutMethod method = new PutMethod(); +454 try { +455 method.setRequestEntity(new ByteArrayRequestEntity(content)); +456 int code = execute(cluster, method, headers, path); +457 headers = method.getResponseHeaders(); +458 content = method.getResponseBody(); +459 return new Response(code, headers, content); +460 } finally { +461 method.releaseConnection(); +462 } +463 } +464 +465 /** +466 * Send a POST request +467 * @param path the path or URI +468 * @param contentType the content MIME type +469 * @param content the content bytes +470 * @return a Response object with response detail +471 * @throws IOException +472 */ +473 public Response post(String path, String contentType, byte[] content) +474 throws IOException { +475 return post(cluster, path, contentType, content); +476 } +477 +478 /** +479 * Send a POST request +480 * @param path the path or URI +481 * @param contentType the content MIME type +482 * @param content the content bytes +483 * @param extraHdr additional Header to send +484 * @return a Response object with response detail +485 * @throws IOException +486 */ +487 public Response post(String path, String contentType, byte[] content, Header extraHdr) +488 throws IOException { +489 return post(cluster, path, contentType, content, extraHdr); +490 } +491 +492 /** +493 * Send a POST request +494 * @param cluster the cluster definition +495 * @param path the path or URI +496 * @param contentType the content MIME type +497 * @param content the content bytes +498 * @return a Response object with response detail +499 * @throws IOException for error +500 */ +501 public Response post(Cluster cluster, String path, String contentType, +502 byte[] content) throws IOException { +503 Header[] headers = new Header[1]; +504 headers[0] = new Header("Content-Type", contentType); +505 return post(cluster, path, headers, content); +506 } +507 +508 /** +509 * Send a POST request +510 * @param cluster the cluster definition +511 * @param path the path or URI +512 * @param contentType the content MIME type +513 * @param content the content bytes +514 * @param extraHdr additional Header to send +515 * @return a Response object with response detail +516 * @throws IOException for error +517 */ +518 public Response post(Cluster cluster, String path, String contentType, +519 byte[] content, Header extraHdr) throws IOException { +520 int cnt = extraHdr == null ? 1 : 2; +521 Header[] headers = new Header[cnt]; +522 headers[0] = new Header("Content-Type", contentType); +523 if (extraHdr != null) { +524 headers[1] = extraHdr; +525 } +526 return post(cluster, path, headers, content); +527 } +528 +529 /** +530 * Send a POST request +531 * @param path the path or URI +532 * @param headers the HTTP headers to include, <tt>Content-Type</tt> must be +533 * supplied +534 * @param content the content bytes +535 * @return a Response object with response detail +536 * @throws IOException +537 */ +538 public Response post(String path, Header[] headers, byte[] content) +539 throws IOException { +540 return post(cluster, path, headers, content); +541 } +542 +543 /** +544 * Send a POST request +545 * @param cluster the cluster definition +546 * @param path the path or URI +547 * @param headers the HTTP headers to include, <tt>Content-Type</tt> must be +548 * supplied +549 * @param content the content bytes +550 * @return a Response object with response detail +551 * @throws IOException +552 */ +553 public Response post(Cluster cluster, String path, Header[] headers, +554 byte[] content) throws IOException { +555 PostMethod method = new PostMethod(); +556 try { +557 method.setRequestEntity(new ByteArrayRequestEntity(content)); +558 int code = execute(cluster, method, headers, path); +559 headers = method.getResponseHeaders(); +560 content = method.getResponseBody(); +561 return new Response(code, headers, content); +562 } finally { +563 method.releaseConnection(); +564 } +565 } +566 +567 /** +568 * Send a DELETE request +569 * @param path the path or URI +570 * @return a Response object with response detail +571 * @throws IOException +572 */ +573 public Response delete(String path) throws IOException { +574 return delete(cluster, path); +575 } +576 +577 /** +578 * Send a DELETE request +579 * @param path the path or URI +580 * @param extraHdr additional Header to send +581 * @return a Response object with response detail +582 * @throws IOException +583 */ +584 public Response delete(String path, Header extraHdr) throws IOException { +585 return delete(cluster, path, extraHdr); +586 } +587 +588 /** +589 * Send a DELETE request +590 * @param cluster the cluster definition +591 * @param path the path or URI +592 * @return a Response object with response detail +593 * @throws IOException for error +594 */ +595 public Response delete(Cluster cluster, String path) throws IOException { +596 DeleteMethod method = new DeleteMethod(); +597 try { +598 int code = execute(cluster, method, null, path); +599 Header[] headers = method.getResponseHeaders(); +600 byte[] content = method.getResponseBody(); +601 return new Response(code, headers, content); +602 } finally { +603 method.releaseConnection(); +604 } +605 } +606 +607 /** +608 * Send a DELETE request +609 * @param cluster the cluster definition +610 * @param path the path or URI +611 * @return a Response object with response detail +612 * @throws IOException for error +613 */ +614 public Response delete(Cluster cluster, String path, Header extraHdr) throws IOException { +615 DeleteMethod method = new DeleteMethod(); +616 try { +617 Header[] headers = { extraHdr }; +618 int code = execute(cluster, method, headers, path); +619 headers = method.getResponseHeaders(); +620 byte[] content = method.getResponseBody(); +621 return new Response(code, headers, content); +622 } finally { +623 method.releaseConnection(); +624 } +625 } +626} http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9f9a078f/book.html ---------------------------------------------------------------------- diff --git a/book.html b/book.html index cd4c7bd..0f4ea99 100644 --- a/book.html +++ b/book.html @@ -4568,6 +4568,36 @@ Configuration that it is thought rare anyone would change can exist only in code +
+
+
hbase.rest.csrf.enabled
+
+
+
Description
+

Set to true to enable protection against cross-site request forgery (CSRF)

+
+
+
Default
+

false

+
+
+
+
+
+
+
hbase.rest-csrf.browser-useragents-regex
+
+
+
Description
+

A comma-separated list of regular expressions used to match against an HTTP request’s User-Agent header when protection against cross-site request forgery (CSRF) is enabled for REST server by setting hbase.rest.csrf.enabled to true. If the incoming User-Agent matches any of these regular expressions, then the request is considered to be sent by a browser, and therefore CSRF prevention is enforced. If the request’s User-Agent does not match any of these regular expressions, then the request is considered to be sent by something other than a browser, such as scripted automation. In this case, CSRF is not a potential attack vector, so the prevention is not enforced. This helps achieve backwards-compatibility with existing automation that has not been updated to send the CSRF prevention header.

+
+
+
Default
+

Mozilla.,Opera.

+
+
+
+
hbase.security.exec.permission.checks
@@ -32298,7 +32328,7 @@ The server will return cellblocks compressed using this same compressor as long http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9f9a078f/bulk-loads.html ---------------------------------------------------------------------- diff --git a/bulk-loads.html b/bulk-loads.html index 9319a26..0528ba2 100644 --- a/bulk-loads.html +++ b/bulk-loads.html @@ -7,7 +7,7 @@ - + Apache HBase – Bulk Loads in Apache HBase (TM) @@ -305,7 +305,7 @@ under the License. --> <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2016-04-14</li> + <li id="publishDate" class="pull-right">Last Published: 2016-04-18</li> </p> </div>