private static class MockHttpApiRule.MockHandler extends org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.AbstractHandler
org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandler
org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
private org.apache.hbase.thirdparty.org.eclipse.jetty.util.RegexSet |
regexSet |
private Map<String,BiConsumer<String,javax.servlet.http.HttpServletResponse>> |
responseMapping |
private ReadWriteLock |
responseMappingLock |
Modifier | Constructor and Description |
---|---|
private |
MockHandler() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
clearRegistrations() |
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 |
noMatchFound(String target) |
(package private) void |
register(String pathRegex,
BiConsumer<String,javax.servlet.http.HttpServletResponse> responder) |
destroy, doError, doStart, doStop, getServer, setServer
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
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stop
private final ReadWriteLock responseMappingLock
private final Map<String,BiConsumer<String,javax.servlet.http.HttpServletResponse>> responseMapping
private final org.apache.hbase.thirdparty.org.eclipse.jetty.util.RegexSet regexSet
private MockHandler()
void register(String pathRegex, BiConsumer<String,javax.servlet.http.HttpServletResponse> responder)
void clearRegistrations()
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)
handle
in interface org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler
handle
in class org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.AbstractHandler
private static RuntimeException noMatchFound(String target)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.