Class MockHttpApiRule.MockHandler

java.lang.Object
org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle
org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle
org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.AbstractHandler
org.apache.hadoop.hbase.MockHttpApiRule.MockHandler
All Implemented Interfaces:
org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler, org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Container, org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Destroyable, org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Dumpable, org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.LifeCycle
Enclosing class:
MockHttpApiRule

private static class MockHttpApiRule.MockHandler extends org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.AbstractHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.AbstractHandler

    org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandler

    Nested classes/interfaces inherited from class org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle

    org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener

    Nested classes/interfaces inherited from interface org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Container

    org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Container.InheritedListener, org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Container.Listener

    Nested classes/interfaces inherited from interface org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Dumpable

    org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    Nested classes/interfaces inherited from interface org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.LifeCycle

    org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.LifeCycle.Listener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.hbase.thirdparty.org.eclipse.jetty.util.RegexSet
     
    private final Map<String,BiConsumer<String,javax.servlet.http.HttpServletResponse>>
     
    private final ReadWriteLock
     

    Fields inherited from class org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING

    Fields inherited from interface org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Dumpable

    KEY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
     
    void
    handle(String target, org.apache.hbase.thirdparty.org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    private static RuntimeException
     
    (package private) void
    register(String pathRegex, BiConsumer<String,javax.servlet.http.HttpServletResponse> responder)
     

    Methods inherited from class org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.AbstractHandler

    destroy, doError, doStart, doStop, getServer, setServer

    Methods inherited from class org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle

    addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans

    Methods inherited from class org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle

    addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Dumpable

    dumpSelf

    Methods inherited from interface org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    isDumpable

    Methods inherited from interface org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.LifeCycle

    addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
  • Field Details

  • Constructor Details

  • Method Details

    • register

      void register(String pathRegex, BiConsumer<String,javax.servlet.http.HttpServletResponse> responder)
    • clearRegistrations

    • handle

      public void handle(String target, org.apache.hbase.thirdparty.org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Specified by:
      handle in interface org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler
      Specified by:
      handle in class org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.AbstractHandler
    • noMatchFound

      private static RuntimeException noMatchFound(String target)