private static class MockHttpApiRule.MockHandler extends org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
Modifier and Type | Field and Description |
---|---|
private 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.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, doStart, doStop, dumpThis, getServer, setServer
addBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, 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
private final ReadWriteLock responseMappingLock
private final Map<String,BiConsumer<String,javax.servlet.http.HttpServletResponse>> responseMapping
private final 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.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
private static RuntimeException noMatchFound(String target)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.