hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [43/51] [partial] hbase-site git commit: Published site at f2e0aca2b6925cdd1f2896052f4b4e847ee4e1fd.
Date Mon, 18 Apr 2016 21:05:23 GMT
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 @@
 <span class="sourceLineNo">375</span><a name="line.375"></a>
 <span class="sourceLineNo">376</span>  /**<a name="line.376"></a>
 <span class="sourceLineNo">377</span>   * Send a PUT request<a name="line.377"></a>
-<span class="sourceLineNo">378</span>   * @param cluster the cluster definition<a name="line.378"></a>
-<span class="sourceLineNo">379</span>   * @param path the path or URI<a name="line.379"></a>
-<span class="sourceLineNo">380</span>   * @param contentType the content MIME type<a name="line.380"></a>
-<span class="sourceLineNo">381</span>   * @param content the content bytes<a name="line.381"></a>
+<span class="sourceLineNo">378</span>   * @param path the path or URI<a name="line.378"></a>
+<span class="sourceLineNo">379</span>   * @param contentType the content MIME type<a name="line.379"></a>
+<span class="sourceLineNo">380</span>   * @param content the content bytes<a name="line.380"></a>
+<span class="sourceLineNo">381</span>   * @param extraHdr extra Header to send<a name="line.381"></a>
 <span class="sourceLineNo">382</span>   * @return a Response object with response detail<a name="line.382"></a>
 <span class="sourceLineNo">383</span>   * @throws IOException<a name="line.383"></a>
 <span class="sourceLineNo">384</span>   */<a name="line.384"></a>
-<span class="sourceLineNo">385</span>  public Response put(Cluster cluster, String path, String contentType, <a name="line.385"></a>
-<span class="sourceLineNo">386</span>      byte[] content) throws IOException {<a name="line.386"></a>
-<span class="sourceLineNo">387</span>    Header[] headers = new Header[1];<a name="line.387"></a>
-<span class="sourceLineNo">388</span>    headers[0] = new Header("Content-Type", contentType);<a name="line.388"></a>
-<span class="sourceLineNo">389</span>    return put(cluster, path, headers, content);<a name="line.389"></a>
-<span class="sourceLineNo">390</span>  }<a name="line.390"></a>
-<span class="sourceLineNo">391</span><a name="line.391"></a>
-<span class="sourceLineNo">392</span>  /**<a name="line.392"></a>
-<span class="sourceLineNo">393</span>   * Send a PUT request<a name="line.393"></a>
-<span class="sourceLineNo">394</span>   * @param path the path or URI<a name="line.394"></a>
-<span class="sourceLineNo">395</span>   * @param headers the HTTP headers to include, &lt;tt&gt;Content-Type&lt;/tt&gt; must be<a name="line.395"></a>
-<span class="sourceLineNo">396</span>   * supplied<a name="line.396"></a>
-<span class="sourceLineNo">397</span>   * @param content the content bytes<a name="line.397"></a>
-<span class="sourceLineNo">398</span>   * @return a Response object with response detail<a name="line.398"></a>
-<span class="sourceLineNo">399</span>   * @throws IOException<a name="line.399"></a>
-<span class="sourceLineNo">400</span>   */<a name="line.400"></a>
-<span class="sourceLineNo">401</span>  public Response put(String path, Header[] headers, byte[] content) <a name="line.401"></a>
-<span class="sourceLineNo">402</span>      throws IOException {<a name="line.402"></a>
+<span class="sourceLineNo">385</span>  public Response put(String path, String contentType, byte[] content, Header extraHdr)<a name="line.385"></a>
+<span class="sourceLineNo">386</span>      throws IOException {<a name="line.386"></a>
+<span class="sourceLineNo">387</span>    return put(cluster, path, contentType, content, extraHdr);<a name="line.387"></a>
+<span class="sourceLineNo">388</span>  }<a name="line.388"></a>
+<span class="sourceLineNo">389</span><a name="line.389"></a>
+<span class="sourceLineNo">390</span>  /**<a name="line.390"></a>
+<span class="sourceLineNo">391</span>   * Send a PUT request<a name="line.391"></a>
+<span class="sourceLineNo">392</span>   * @param cluster the cluster definition<a name="line.392"></a>
+<span class="sourceLineNo">393</span>   * @param path the path or URI<a name="line.393"></a>
+<span class="sourceLineNo">394</span>   * @param contentType the content MIME type<a name="line.394"></a>
+<span class="sourceLineNo">395</span>   * @param content the content bytes<a name="line.395"></a>
+<span class="sourceLineNo">396</span>   * @return a Response object with response detail<a name="line.396"></a>
+<span class="sourceLineNo">397</span>   * @throws IOException for error<a name="line.397"></a>
+<span class="sourceLineNo">398</span>   */<a name="line.398"></a>
+<span class="sourceLineNo">399</span>  public Response put(Cluster cluster, String path, String contentType, <a name="line.399"></a>
+<span class="sourceLineNo">400</span>      byte[] content) throws IOException {<a name="line.400"></a>
+<span class="sourceLineNo">401</span>    Header[] headers = new Header[1];<a name="line.401"></a>
+<span class="sourceLineNo">402</span>    headers[0] = new Header("Content-Type", contentType);<a name="line.402"></a>
 <span class="sourceLineNo">403</span>    return put(cluster, path, headers, content);<a name="line.403"></a>
 <span class="sourceLineNo">404</span>  }<a name="line.404"></a>
 <span class="sourceLineNo">405</span><a name="line.405"></a>
@@ -415,122 +415,223 @@
 <span class="sourceLineNo">407</span>   * Send a PUT request<a name="line.407"></a>
 <span class="sourceLineNo">408</span>   * @param cluster the cluster definition<a name="line.408"></a>
 <span class="sourceLineNo">409</span>   * @param path the path or URI<a name="line.409"></a>
-<span class="sourceLineNo">410</span>   * @param headers the HTTP headers to include, &lt;tt&gt;Content-Type&lt;/tt&gt; must be<a name="line.410"></a>
-<span class="sourceLineNo">411</span>   * supplied<a name="line.411"></a>
-<span class="sourceLineNo">412</span>   * @param content the content bytes<a name="line.412"></a>
+<span class="sourceLineNo">410</span>   * @param contentType the content MIME type<a name="line.410"></a>
+<span class="sourceLineNo">411</span>   * @param content the content bytes<a name="line.411"></a>
+<span class="sourceLineNo">412</span>   * @param extraHdr additional Header to send<a name="line.412"></a>
 <span class="sourceLineNo">413</span>   * @return a Response object with response detail<a name="line.413"></a>
-<span class="sourceLineNo">414</span>   * @throws IOException<a name="line.414"></a>
+<span class="sourceLineNo">414</span>   * @throws IOException for error<a name="line.414"></a>
 <span class="sourceLineNo">415</span>   */<a name="line.415"></a>
-<span class="sourceLineNo">416</span>  public Response put(Cluster cluster, String path, Header[] headers, <a name="line.416"></a>
-<span class="sourceLineNo">417</span>      byte[] content) throws IOException {<a name="line.417"></a>
-<span class="sourceLineNo">418</span>    PutMethod method = new PutMethod();<a name="line.418"></a>
-<span class="sourceLineNo">419</span>    try {<a name="line.419"></a>
-<span class="sourceLineNo">420</span>      method.setRequestEntity(new ByteArrayRequestEntity(content));<a name="line.420"></a>
-<span class="sourceLineNo">421</span>      int code = execute(cluster, method, headers, path);<a name="line.421"></a>
-<span class="sourceLineNo">422</span>      headers = method.getResponseHeaders();<a name="line.422"></a>
-<span class="sourceLineNo">423</span>      content = method.getResponseBody();<a name="line.423"></a>
-<span class="sourceLineNo">424</span>      return new Response(code, headers, content);<a name="line.424"></a>
-<span class="sourceLineNo">425</span>    } finally {<a name="line.425"></a>
-<span class="sourceLineNo">426</span>      method.releaseConnection();<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    }<a name="line.427"></a>
-<span class="sourceLineNo">428</span>  }<a name="line.428"></a>
-<span class="sourceLineNo">429</span><a name="line.429"></a>
-<span class="sourceLineNo">430</span>  /**<a name="line.430"></a>
-<span class="sourceLineNo">431</span>   * Send a POST request<a name="line.431"></a>
-<span class="sourceLineNo">432</span>   * @param path the path or URI<a name="line.432"></a>
-<span class="sourceLineNo">433</span>   * @param contentType the content MIME type<a name="line.433"></a>
-<span class="sourceLineNo">434</span>   * @param content the content bytes<a name="line.434"></a>
-<span class="sourceLineNo">435</span>   * @return a Response object with response detail<a name="line.435"></a>
-<span class="sourceLineNo">436</span>   * @throws IOException<a name="line.436"></a>
-<span class="sourceLineNo">437</span>   */<a name="line.437"></a>
-<span class="sourceLineNo">438</span>  public Response post(String path, String contentType, byte[] content)<a name="line.438"></a>
-<span class="sourceLineNo">439</span>      throws IOException {<a name="line.439"></a>
-<span class="sourceLineNo">440</span>    return post(cluster, path, contentType, content);<a name="line.440"></a>
-<span class="sourceLineNo">441</span>  }<a name="line.441"></a>
-<span class="sourceLineNo">442</span><a name="line.442"></a>
-<span class="sourceLineNo">443</span>  /**<a name="line.443"></a>
-<span class="sourceLineNo">444</span>   * Send a POST request<a name="line.444"></a>
-<span class="sourceLineNo">445</span>   * @param cluster the cluster definition<a name="line.445"></a>
-<span class="sourceLineNo">446</span>   * @param path the path or URI<a name="line.446"></a>
-<span class="sourceLineNo">447</span>   * @param contentType the content MIME type<a name="line.447"></a>
-<span class="sourceLineNo">448</span>   * @param content the content bytes<a name="line.448"></a>
-<span class="sourceLineNo">449</span>   * @return a Response object with response detail<a name="line.449"></a>
-<span class="sourceLineNo">450</span>   * @throws IOException<a name="line.450"></a>
-<span class="sourceLineNo">451</span>   */<a name="line.451"></a>
-<span class="sourceLineNo">452</span>  public Response post(Cluster cluster, String path, String contentType, <a name="line.452"></a>
-<span class="sourceLineNo">453</span>      byte[] content) throws IOException {<a name="line.453"></a>
-<span class="sourceLineNo">454</span>    Header[] headers = new Header[1];<a name="line.454"></a>
-<span class="sourceLineNo">455</span>    headers[0] = new Header("Content-Type", contentType);<a name="line.455"></a>
-<span class="sourceLineNo">456</span>    return post(cluster, path, headers, content);<a name="line.456"></a>
-<span class="sourceLineNo">457</span>  }<a name="line.457"></a>
-<span class="sourceLineNo">458</span><a name="line.458"></a>
-<span class="sourceLineNo">459</span>  /**<a name="line.459"></a>
-<span class="sourceLineNo">460</span>   * Send a POST request<a name="line.460"></a>
-<span class="sourceLineNo">461</span>   * @param path the path or URI<a name="line.461"></a>
-<span class="sourceLineNo">462</span>   * @param headers the HTTP headers to include, &lt;tt&gt;Content-Type&lt;/tt&gt; must be<a name="line.462"></a>
-<span class="sourceLineNo">463</span>   * supplied<a name="line.463"></a>
-<span class="sourceLineNo">464</span>   * @param content the content bytes<a name="line.464"></a>
-<span class="sourceLineNo">465</span>   * @return a Response object with response detail<a name="line.465"></a>
-<span class="sourceLineNo">466</span>   * @throws IOException<a name="line.466"></a>
-<span class="sourceLineNo">467</span>   */<a name="line.467"></a>
-<span class="sourceLineNo">468</span>  public Response post(String path, Header[] headers, byte[] content) <a name="line.468"></a>
-<span class="sourceLineNo">469</span>      throws IOException {<a name="line.469"></a>
-<span class="sourceLineNo">470</span>    return post(cluster, path, headers, content);<a name="line.470"></a>
-<span class="sourceLineNo">471</span>  }<a name="line.471"></a>
-<span class="sourceLineNo">472</span><a name="line.472"></a>
-<span class="sourceLineNo">473</span>  /**<a name="line.473"></a>
-<span class="sourceLineNo">474</span>   * Send a POST request<a name="line.474"></a>
-<span class="sourceLineNo">475</span>   * @param cluster the cluster definition<a name="line.475"></a>
-<span class="sourceLineNo">476</span>   * @param path the path or URI<a name="line.476"></a>
-<span class="sourceLineNo">477</span>   * @param headers the HTTP headers to include, &lt;tt&gt;Content-Type&lt;/tt&gt; must be<a name="line.477"></a>
-<span class="sourceLineNo">478</span>   * supplied<a name="line.478"></a>
-<span class="sourceLineNo">479</span>   * @param content the content bytes<a name="line.479"></a>
-<span class="sourceLineNo">480</span>   * @return a Response object with response detail<a name="line.480"></a>
-<span class="sourceLineNo">481</span>   * @throws IOException<a name="line.481"></a>
-<span class="sourceLineNo">482</span>   */<a name="line.482"></a>
-<span class="sourceLineNo">483</span>  public Response post(Cluster cluster, String path, Header[] headers, <a name="line.483"></a>
-<span class="sourceLineNo">484</span>      byte[] content) throws IOException {<a name="line.484"></a>
-<span class="sourceLineNo">485</span>    PostMethod method = new PostMethod();<a name="line.485"></a>
-<span class="sourceLineNo">486</span>    try {<a name="line.486"></a>
-<span class="sourceLineNo">487</span>      method.setRequestEntity(new ByteArrayRequestEntity(content));<a name="line.487"></a>
-<span class="sourceLineNo">488</span>      int code = execute(cluster, method, headers, path);<a name="line.488"></a>
-<span class="sourceLineNo">489</span>      headers = method.getResponseHeaders();<a name="line.489"></a>
-<span class="sourceLineNo">490</span>      content = method.getResponseBody();<a name="line.490"></a>
-<span class="sourceLineNo">491</span>      return new Response(code, headers, content);<a name="line.491"></a>
-<span class="sourceLineNo">492</span>    } finally {<a name="line.492"></a>
-<span class="sourceLineNo">493</span>      method.releaseConnection();<a name="line.493"></a>
-<span class="sourceLineNo">494</span>    }<a name="line.494"></a>
-<span class="sourceLineNo">495</span>  }<a name="line.495"></a>
-<span class="sourceLineNo">496</span><a name="line.496"></a>
-<span class="sourceLineNo">497</span>  /**<a name="line.497"></a>
-<span class="sourceLineNo">498</span>   * Send a DELETE request<a name="line.498"></a>
-<span class="sourceLineNo">499</span>   * @param path the path or URI<a name="line.499"></a>
-<span class="sourceLineNo">500</span>   * @return a Response object with response detail<a name="line.500"></a>
-<span class="sourceLineNo">501</span>   * @throws IOException<a name="line.501"></a>
-<span class="sourceLineNo">502</span>   */<a name="line.502"></a>
-<span class="sourceLineNo">503</span>  public Response delete(String path) throws IOException {<a name="line.503"></a>
-<span class="sourceLineNo">504</span>    return delete(cluster, path);<a name="line.504"></a>
-<span class="sourceLineNo">505</span>  }<a name="line.505"></a>
-<span class="sourceLineNo">506</span><a name="line.506"></a>
-<span class="sourceLineNo">507</span>  /**<a name="line.507"></a>
-<span class="sourceLineNo">508</span>   * Send a DELETE request<a name="line.508"></a>
-<span class="sourceLineNo">509</span>   * @param cluster the cluster definition<a name="line.509"></a>
-<span class="sourceLineNo">510</span>   * @param path the path or URI<a name="line.510"></a>
-<span class="sourceLineNo">511</span>   * @return a Response object with response detail<a name="line.511"></a>
-<span class="sourceLineNo">512</span>   * @throws IOException<a name="line.512"></a>
-<span class="sourceLineNo">513</span>   */<a name="line.513"></a>
-<span class="sourceLineNo">514</span>  public Response delete(Cluster cluster, String path) throws IOException {<a name="line.514"></a>
-<span class="sourceLineNo">515</span>    DeleteMethod method = new DeleteMethod();<a name="line.515"></a>
-<span class="sourceLineNo">516</span>    try {<a name="line.516"></a>
-<span class="sourceLineNo">517</span>      int code = execute(cluster, method, null, path);<a name="line.517"></a>
-<span class="sourceLineNo">518</span>      Header[] headers = method.getResponseHeaders();<a name="line.518"></a>
-<span class="sourceLineNo">519</span>      byte[] content = method.getResponseBody();<a name="line.519"></a>
-<span class="sourceLineNo">520</span>      return new Response(code, headers, content);<a name="line.520"></a>
-<span class="sourceLineNo">521</span>    } finally {<a name="line.521"></a>
-<span class="sourceLineNo">522</span>      method.releaseConnection();<a name="line.522"></a>
-<span class="sourceLineNo">523</span>    }<a name="line.523"></a>
-<span class="sourceLineNo">524</span>  }<a name="line.524"></a>
-<span class="sourceLineNo">525</span>}<a name="line.525"></a>
+<span class="sourceLineNo">416</span>  public Response put(Cluster cluster, String path, String contentType, <a name="line.416"></a>
+<span class="sourceLineNo">417</span>      byte[] content, Header extraHdr) throws IOException {<a name="line.417"></a>
+<span class="sourceLineNo">418</span>    int cnt = extraHdr == null ? 1 : 2;<a name="line.418"></a>
+<span class="sourceLineNo">419</span>    Header[] headers = new Header[cnt];<a name="line.419"></a>
+<span class="sourceLineNo">420</span>    headers[0] = new Header("Content-Type", contentType);<a name="line.420"></a>
+<span class="sourceLineNo">421</span>    if (extraHdr != null) {<a name="line.421"></a>
+<span class="sourceLineNo">422</span>      headers[1] = extraHdr;<a name="line.422"></a>
+<span class="sourceLineNo">423</span>    }<a name="line.423"></a>
+<span class="sourceLineNo">424</span>    return put(cluster, path, headers, content);<a name="line.424"></a>
+<span class="sourceLineNo">425</span>  }<a name="line.425"></a>
+<span class="sourceLineNo">426</span><a name="line.426"></a>
+<span class="sourceLineNo">427</span>  /**<a name="line.427"></a>
+<span class="sourceLineNo">428</span>   * Send a PUT request<a name="line.428"></a>
+<span class="sourceLineNo">429</span>   * @param path the path or URI<a name="line.429"></a>
+<span class="sourceLineNo">430</span>   * @param headers the HTTP headers to include, &lt;tt&gt;Content-Type&lt;/tt&gt; must be<a name="line.430"></a>
+<span class="sourceLineNo">431</span>   * supplied<a name="line.431"></a>
+<span class="sourceLineNo">432</span>   * @param content the content bytes<a name="line.432"></a>
+<span class="sourceLineNo">433</span>   * @return a Response object with response detail<a name="line.433"></a>
+<span class="sourceLineNo">434</span>   * @throws IOException<a name="line.434"></a>
+<span class="sourceLineNo">435</span>   */<a name="line.435"></a>
+<span class="sourceLineNo">436</span>  public Response put(String path, Header[] headers, byte[] content) <a name="line.436"></a>
+<span class="sourceLineNo">437</span>      throws IOException {<a name="line.437"></a>
+<span class="sourceLineNo">438</span>    return put(cluster, path, headers, content);<a name="line.438"></a>
+<span class="sourceLineNo">439</span>  }<a name="line.439"></a>
+<span class="sourceLineNo">440</span><a name="line.440"></a>
+<span class="sourceLineNo">441</span>  /**<a name="line.441"></a>
+<span class="sourceLineNo">442</span>   * Send a PUT request<a name="line.442"></a>
+<span class="sourceLineNo">443</span>   * @param cluster the cluster definition<a name="line.443"></a>
+<span class="sourceLineNo">444</span>   * @param path the path or URI<a name="line.444"></a>
+<span class="sourceLineNo">445</span>   * @param headers the HTTP headers to include, &lt;tt&gt;Content-Type&lt;/tt&gt; must be<a name="line.445"></a>
+<span class="sourceLineNo">446</span>   * supplied<a name="line.446"></a>
+<span class="sourceLineNo">447</span>   * @param content the content bytes<a name="line.447"></a>
+<span class="sourceLineNo">448</span>   * @return a Response object with response detail<a name="line.448"></a>
+<span class="sourceLineNo">449</span>   * @throws IOException<a name="line.449"></a>
+<span class="sourceLineNo">450</span>   */<a name="line.450"></a>
+<span class="sourceLineNo">451</span>  public Response put(Cluster cluster, String path, Header[] headers, <a name="line.451"></a>
+<span class="sourceLineNo">452</span>      byte[] content) throws IOException {<a name="line.452"></a>
+<span class="sourceLineNo">453</span>    PutMethod method = new PutMethod();<a name="line.453"></a>
+<span class="sourceLineNo">454</span>    try {<a name="line.454"></a>
+<span class="sourceLineNo">455</span>      method.setRequestEntity(new ByteArrayRequestEntity(content));<a name="line.455"></a>
+<span class="sourceLineNo">456</span>      int code = execute(cluster, method, headers, path);<a name="line.456"></a>
+<span class="sourceLineNo">457</span>      headers = method.getResponseHeaders();<a name="line.457"></a>
+<span class="sourceLineNo">458</span>      content = method.getResponseBody();<a name="line.458"></a>
+<span class="sourceLineNo">459</span>      return new Response(code, headers, content);<a name="line.459"></a>
+<span class="sourceLineNo">460</span>    } finally {<a name="line.460"></a>
+<span class="sourceLineNo">461</span>      method.releaseConnection();<a name="line.461"></a>
+<span class="sourceLineNo">462</span>    }<a name="line.462"></a>
+<span class="sourceLineNo">463</span>  }<a name="line.463"></a>
+<span class="sourceLineNo">464</span><a name="line.464"></a>
+<span class="sourceLineNo">465</span>  /**<a name="line.465"></a>
+<span class="sourceLineNo">466</span>   * Send a POST request<a name="line.466"></a>
+<span class="sourceLineNo">467</span>   * @param path the path or URI<a name="line.467"></a>
+<span class="sourceLineNo">468</span>   * @param contentType the content MIME type<a name="line.468"></a>
+<span class="sourceLineNo">469</span>   * @param content the content bytes<a name="line.469"></a>
+<span class="sourceLineNo">470</span>   * @return a Response object with response detail<a name="line.470"></a>
+<span class="sourceLineNo">471</span>   * @throws IOException<a name="line.471"></a>
+<span class="sourceLineNo">472</span>   */<a name="line.472"></a>
+<span class="sourceLineNo">473</span>  public Response post(String path, String contentType, byte[] content)<a name="line.473"></a>
+<span class="sourceLineNo">474</span>      throws IOException {<a name="line.474"></a>
+<span class="sourceLineNo">475</span>    return post(cluster, path, contentType, content);<a name="line.475"></a>
+<span class="sourceLineNo">476</span>  }<a name="line.476"></a>
+<span class="sourceLineNo">477</span><a name="line.477"></a>
+<span class="sourceLineNo">478</span>  /**<a name="line.478"></a>
+<span class="sourceLineNo">479</span>   * Send a POST request<a name="line.479"></a>
+<span class="sourceLineNo">480</span>   * @param path the path or URI<a name="line.480"></a>
+<span class="sourceLineNo">481</span>   * @param contentType the content MIME type<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   * @param content the content bytes<a name="line.482"></a>
+<span class="sourceLineNo">483</span>   * @param extraHdr additional Header to send<a name="line.483"></a>
+<span class="sourceLineNo">484</span>   * @return a Response object with response detail<a name="line.484"></a>
+<span class="sourceLineNo">485</span>   * @throws IOException<a name="line.485"></a>
+<span class="sourceLineNo">486</span>   */<a name="line.486"></a>
+<span class="sourceLineNo">487</span>  public Response post(String path, String contentType, byte[] content, Header extraHdr)<a name="line.487"></a>
+<span class="sourceLineNo">488</span>      throws IOException {<a name="line.488"></a>
+<span class="sourceLineNo">489</span>    return post(cluster, path, contentType, content, extraHdr);<a name="line.489"></a>
+<span class="sourceLineNo">490</span>  }<a name="line.490"></a>
+<span class="sourceLineNo">491</span><a name="line.491"></a>
+<span class="sourceLineNo">492</span>  /**<a name="line.492"></a>
+<span class="sourceLineNo">493</span>   * Send a POST request<a name="line.493"></a>
+<span class="sourceLineNo">494</span>   * @param cluster the cluster definition<a name="line.494"></a>
+<span class="sourceLineNo">495</span>   * @param path the path or URI<a name="line.495"></a>
+<span class="sourceLineNo">496</span>   * @param contentType the content MIME type<a name="line.496"></a>
+<span class="sourceLineNo">497</span>   * @param content the content bytes<a name="line.497"></a>
+<span class="sourceLineNo">498</span>   * @return a Response object with response detail<a name="line.498"></a>
+<span class="sourceLineNo">499</span>   * @throws IOException for error<a name="line.499"></a>
+<span class="sourceLineNo">500</span>   */<a name="line.500"></a>
+<span class="sourceLineNo">501</span>  public Response post(Cluster cluster, String path, String contentType, <a name="line.501"></a>
+<span class="sourceLineNo">502</span>      byte[] content) throws IOException {<a name="line.502"></a>
+<span class="sourceLineNo">503</span>    Header[] headers = new Header[1];<a name="line.503"></a>
+<span class="sourceLineNo">504</span>    headers[0] = new Header("Content-Type", contentType);<a name="line.504"></a>
+<span class="sourceLineNo">505</span>    return post(cluster, path, headers, content);<a name="line.505"></a>
+<span class="sourceLineNo">506</span>  }<a name="line.506"></a>
+<span class="sourceLineNo">507</span><a name="line.507"></a>
+<span class="sourceLineNo">508</span>  /**<a name="line.508"></a>
+<span class="sourceLineNo">509</span>   * Send a POST request<a name="line.509"></a>
+<span class="sourceLineNo">510</span>   * @param cluster the cluster definition<a name="line.510"></a>
+<span class="sourceLineNo">511</span>   * @param path the path or URI<a name="line.511"></a>
+<span class="sourceLineNo">512</span>   * @param contentType the content MIME type<a name="line.512"></a>
+<span class="sourceLineNo">513</span>   * @param content the content bytes<a name="line.513"></a>
+<span class="sourceLineNo">514</span>   * @param extraHdr additional Header to send<a name="line.514"></a>
+<span class="sourceLineNo">515</span>   * @return a Response object with response detail<a name="line.515"></a>
+<span class="sourceLineNo">516</span>   * @throws IOException for error<a name="line.516"></a>
+<span class="sourceLineNo">517</span>   */<a name="line.517"></a>
+<span class="sourceLineNo">518</span>  public Response post(Cluster cluster, String path, String contentType, <a name="line.518"></a>
+<span class="sourceLineNo">519</span>      byte[] content, Header extraHdr) throws IOException {<a name="line.519"></a>
+<span class="sourceLineNo">520</span>    int cnt = extraHdr == null ? 1 : 2;<a name="line.520"></a>
+<span class="sourceLineNo">521</span>    Header[] headers = new Header[cnt];<a name="line.521"></a>
+<span class="sourceLineNo">522</span>    headers[0] = new Header("Content-Type", contentType);<a name="line.522"></a>
+<span class="sourceLineNo">523</span>    if (extraHdr != null) {<a name="line.523"></a>
+<span class="sourceLineNo">524</span>      headers[1] = extraHdr;<a name="line.524"></a>
+<span class="sourceLineNo">525</span>    }<a name="line.525"></a>
+<span class="sourceLineNo">526</span>    return post(cluster, path, headers, content);<a name="line.526"></a>
+<span class="sourceLineNo">527</span>  }<a name="line.527"></a>
+<span class="sourceLineNo">528</span><a name="line.528"></a>
+<span class="sourceLineNo">529</span>  /**<a name="line.529"></a>
+<span class="sourceLineNo">530</span>   * Send a POST request<a name="line.530"></a>
+<span class="sourceLineNo">531</span>   * @param path the path or URI<a name="line.531"></a>
+<span class="sourceLineNo">532</span>   * @param headers the HTTP headers to include, &lt;tt&gt;Content-Type&lt;/tt&gt; must be<a name="line.532"></a>
+<span class="sourceLineNo">533</span>   * supplied<a name="line.533"></a>
+<span class="sourceLineNo">534</span>   * @param content the content bytes<a name="line.534"></a>
+<span class="sourceLineNo">535</span>   * @return a Response object with response detail<a name="line.535"></a>
+<span class="sourceLineNo">536</span>   * @throws IOException<a name="line.536"></a>
+<span class="sourceLineNo">537</span>   */<a name="line.537"></a>
+<span class="sourceLineNo">538</span>  public Response post(String path, Header[] headers, byte[] content) <a name="line.538"></a>
+<span class="sourceLineNo">539</span>      throws IOException {<a name="line.539"></a>
+<span class="sourceLineNo">540</span>    return post(cluster, path, headers, content);<a name="line.540"></a>
+<span class="sourceLineNo">541</span>  }<a name="line.541"></a>
+<span class="sourceLineNo">542</span><a name="line.542"></a>
+<span class="sourceLineNo">543</span>  /**<a name="line.543"></a>
+<span class="sourceLineNo">544</span>   * Send a POST request<a name="line.544"></a>
+<span class="sourceLineNo">545</span>   * @param cluster the cluster definition<a name="line.545"></a>
+<span class="sourceLineNo">546</span>   * @param path the path or URI<a name="line.546"></a>
+<span class="sourceLineNo">547</span>   * @param headers the HTTP headers to include, &lt;tt&gt;Content-Type&lt;/tt&gt; must be<a name="line.547"></a>
+<span class="sourceLineNo">548</span>   * supplied<a name="line.548"></a>
+<span class="sourceLineNo">549</span>   * @param content the content bytes<a name="line.549"></a>
+<span class="sourceLineNo">550</span>   * @return a Response object with response detail<a name="line.550"></a>
+<span class="sourceLineNo">551</span>   * @throws IOException<a name="line.551"></a>
+<span class="sourceLineNo">552</span>   */<a name="line.552"></a>
+<span class="sourceLineNo">553</span>  public Response post(Cluster cluster, String path, Header[] headers, <a name="line.553"></a>
+<span class="sourceLineNo">554</span>      byte[] content) throws IOException {<a name="line.554"></a>
+<span class="sourceLineNo">555</span>    PostMethod method = new PostMethod();<a name="line.555"></a>
+<span class="sourceLineNo">556</span>    try {<a name="line.556"></a>
+<span class="sourceLineNo">557</span>      method.setRequestEntity(new ByteArrayRequestEntity(content));<a name="line.557"></a>
+<span class="sourceLineNo">558</span>      int code = execute(cluster, method, headers, path);<a name="line.558"></a>
+<span class="sourceLineNo">559</span>      headers = method.getResponseHeaders();<a name="line.559"></a>
+<span class="sourceLineNo">560</span>      content = method.getResponseBody();<a name="line.560"></a>
+<span class="sourceLineNo">561</span>      return new Response(code, headers, content);<a name="line.561"></a>
+<span class="sourceLineNo">562</span>    } finally {<a name="line.562"></a>
+<span class="sourceLineNo">563</span>      method.releaseConnection();<a name="line.563"></a>
+<span class="sourceLineNo">564</span>    }<a name="line.564"></a>
+<span class="sourceLineNo">565</span>  }<a name="line.565"></a>
+<span class="sourceLineNo">566</span><a name="line.566"></a>
+<span class="sourceLineNo">567</span>  /**<a name="line.567"></a>
+<span class="sourceLineNo">568</span>   * Send a DELETE request<a name="line.568"></a>
+<span class="sourceLineNo">569</span>   * @param path the path or URI<a name="line.569"></a>
+<span class="sourceLineNo">570</span>   * @return a Response object with response detail<a name="line.570"></a>
+<span class="sourceLineNo">571</span>   * @throws IOException<a name="line.571"></a>
+<span class="sourceLineNo">572</span>   */<a name="line.572"></a>
+<span class="sourceLineNo">573</span>  public Response delete(String path) throws IOException {<a name="line.573"></a>
+<span class="sourceLineNo">574</span>    return delete(cluster, path);<a name="line.574"></a>
+<span class="sourceLineNo">575</span>  }<a name="line.575"></a>
+<span class="sourceLineNo">576</span><a name="line.576"></a>
+<span class="sourceLineNo">577</span>  /**<a name="line.577"></a>
+<span class="sourceLineNo">578</span>   * Send a DELETE request<a name="line.578"></a>
+<span class="sourceLineNo">579</span>   * @param path the path or URI<a name="line.579"></a>
+<span class="sourceLineNo">580</span>   * @param extraHdr additional Header to send<a name="line.580"></a>
+<span class="sourceLineNo">581</span>   * @return a Response object with response detail<a name="line.581"></a>
+<span class="sourceLineNo">582</span>   * @throws IOException<a name="line.582"></a>
+<span class="sourceLineNo">583</span>   */<a name="line.583"></a>
+<span class="sourceLineNo">584</span>  public Response delete(String path, Header extraHdr) throws IOException {<a name="line.584"></a>
+<span class="sourceLineNo">585</span>    return delete(cluster, path, extraHdr);<a name="line.585"></a>
+<span class="sourceLineNo">586</span>  }<a name="line.586"></a>
+<span class="sourceLineNo">587</span><a name="line.587"></a>
+<span class="sourceLineNo">588</span>  /**<a name="line.588"></a>
+<span class="sourceLineNo">589</span>   * Send a DELETE request<a name="line.589"></a>
+<span class="sourceLineNo">590</span>   * @param cluster the cluster definition<a name="line.590"></a>
+<span class="sourceLineNo">591</span>   * @param path the path or URI<a name="line.591"></a>
+<span class="sourceLineNo">592</span>   * @return a Response object with response detail<a name="line.592"></a>
+<span class="sourceLineNo">593</span>   * @throws IOException for error<a name="line.593"></a>
+<span class="sourceLineNo">594</span>   */<a name="line.594"></a>
+<span class="sourceLineNo">595</span>  public Response delete(Cluster cluster, String path) throws IOException {<a name="line.595"></a>
+<span class="sourceLineNo">596</span>    DeleteMethod method = new DeleteMethod();<a name="line.596"></a>
+<span class="sourceLineNo">597</span>    try {<a name="line.597"></a>
+<span class="sourceLineNo">598</span>      int code = execute(cluster, method, null, path);<a name="line.598"></a>
+<span class="sourceLineNo">599</span>      Header[] headers = method.getResponseHeaders();<a name="line.599"></a>
+<span class="sourceLineNo">600</span>      byte[] content = method.getResponseBody();<a name="line.600"></a>
+<span class="sourceLineNo">601</span>      return new Response(code, headers, content);<a name="line.601"></a>
+<span class="sourceLineNo">602</span>    } finally {<a name="line.602"></a>
+<span class="sourceLineNo">603</span>      method.releaseConnection();<a name="line.603"></a>
+<span class="sourceLineNo">604</span>    }<a name="line.604"></a>
+<span class="sourceLineNo">605</span>  }<a name="line.605"></a>
+<span class="sourceLineNo">606</span><a name="line.606"></a>
+<span class="sourceLineNo">607</span>  /**<a name="line.607"></a>
+<span class="sourceLineNo">608</span>   * Send a DELETE request<a name="line.608"></a>
+<span class="sourceLineNo">609</span>   * @param cluster the cluster definition<a name="line.609"></a>
+<span class="sourceLineNo">610</span>   * @param path the path or URI<a name="line.610"></a>
+<span class="sourceLineNo">611</span>   * @return a Response object with response detail<a name="line.611"></a>
+<span class="sourceLineNo">612</span>   * @throws IOException for error<a name="line.612"></a>
+<span class="sourceLineNo">613</span>   */<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  public Response delete(Cluster cluster, String path, Header extraHdr) throws IOException {<a name="line.614"></a>
+<span class="sourceLineNo">615</span>    DeleteMethod method = new DeleteMethod();<a name="line.615"></a>
+<span class="sourceLineNo">616</span>    try {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>      Header[] headers = { extraHdr };<a name="line.617"></a>
+<span class="sourceLineNo">618</span>      int code = execute(cluster, method, headers, path);<a name="line.618"></a>
+<span class="sourceLineNo">619</span>      headers = method.getResponseHeaders();<a name="line.619"></a>
+<span class="sourceLineNo">620</span>      byte[] content = method.getResponseBody();<a name="line.620"></a>
+<span class="sourceLineNo">621</span>      return new Response(code, headers, content);<a name="line.621"></a>
+<span class="sourceLineNo">622</span>    } finally {<a name="line.622"></a>
+<span class="sourceLineNo">623</span>      method.releaseConnection();<a name="line.623"></a>
+<span class="sourceLineNo">624</span>    }<a name="line.624"></a>
+<span class="sourceLineNo">625</span>  }<a name="line.625"></a>
+<span class="sourceLineNo">626</span>}<a name="line.626"></a>
 
 
 

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
 </dd>
 </dl>
 </div>
+<div id="hbase.rest.csrf.enabled" class="dlist">
+<dl>
+<dt class="hdlist1"><code>hbase.rest.csrf.enabled</code></dt>
+<dd>
+<div class="paragraph">
+<div class="title">Description</div>
+<p>Set to true to enable protection against cross-site request forgery (CSRF)</p>
+</div>
+<div class="paragraph">
+<div class="title">Default</div>
+<p><code>false</code></p>
+</div>
+</dd>
+</dl>
+</div>
+<div id="hbase.rest-csrf.browser-useragents-regex" class="dlist">
+<dl>
+<dt class="hdlist1"><code>hbase.rest-csrf.browser-useragents-regex</code></dt>
+<dd>
+<div class="paragraph">
+<div class="title">Description</div>
+<p>A comma-separated list of regular expressions used to match against an HTTP request&#8217;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&#8217;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.</p>
+</div>
+<div class="paragraph">
+<div class="title">Default</div>
+<p><code><sup>Mozilla.<strong>,</sup>Opera.</strong></code></p>
+</div>
+</dd>
+</dl>
+</div>
 <div id="hbase.security.exec.permission.checks" class="dlist">
 <dl>
 <dt class="hdlist1"><code>hbase.security.exec.permission.checks</code></dt>
@@ -32298,7 +32328,7 @@ The server will return cellblocks compressed using this same compressor as long
 <div id="footer">
 <div id="footer-text">
 Version 2.0.0-SNAPSHOT<br>
-Last updated 2016-04-14 14:31:11 UTC
+Last updated 2016-04-18 14:31:26 UTC
 </div>
 </div>
 </body>

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 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20160414" />
+    <meta name="Date-Revision-yyyymmdd" content="20160418" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013;  
       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>
 


Mime
View raw message