org.apache.hadoop.hbase.rest
Class TableHandler

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.GenericHandler
      extended by org.apache.hadoop.hbase.rest.TableHandler

public class TableHandler
extends GenericHandler

TableHandler fields all requests that deal with an individual table. That means all requests that start with /api/[table_name]/... go to this handler.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.rest.GenericHandler
GenericHandler.ContentType
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.rest.GenericHandler
ACCEPT, admin, COLUMN, conf, CONTENT_TYPE, END_ROW, LOG, REGIONS, ROW, START_ROW, TIMESTAMP
 
Constructor Summary
TableHandler(HBaseConfiguration conf, HBaseAdmin admin)
           
 
Method Summary
 void doDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String[] pathSegments)
           
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String[] pathSegments)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String[] pathSegments)
           
 void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String[] pathSegments)
           
 
Methods inherited from class org.apache.hadoop.hbase.rest.GenericHandler
doElement, doMethodNotAllowed, doNotAcceptable, doNotAcceptable, doNotFound, doNotFound, getTable, getTableName, getXMLOutputter, outputColumnsMime, outputColumnsXml, setResponseHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableHandler

public TableHandler(HBaseConfiguration conf,
                    HBaseAdmin admin)
             throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response,
                  String[] pathSegments)
           throws javax.servlet.ServletException,
                  IOException
Throws:
javax.servlet.ServletException
IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   String[] pathSegments)
            throws javax.servlet.ServletException,
                   IOException
Throws:
javax.servlet.ServletException
IOException

doPut

public void doPut(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response,
                  String[] pathSegments)
           throws javax.servlet.ServletException,
                  IOException
Throws:
javax.servlet.ServletException
IOException

doDelete

public void doDelete(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     String[] pathSegments)
              throws javax.servlet.ServletException,
                     IOException
Throws:
javax.servlet.ServletException
IOException


Copyright © 2006 The Apache Software Foundation