public class DocumentOutputHandler
extends org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
Modifier and Type | Field and Description |
---|---|
private DocumentOutputStorage |
storage
The storage of print outputs.
|
private static java.util.regex.Pattern |
TARGET_REGEXP
The regular expression that is matched against the request path.
|
Constructor and Description |
---|
DocumentOutputHandler(DocumentOutputStorage storage)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(java.lang.String s,
org.eclipse.jetty.server.Request request,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
The main logic of the handler.
|
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 static final java.util.regex.Pattern TARGET_REGEXP
private DocumentOutputStorage storage
public DocumentOutputHandler(DocumentOutputStorage storage)
storage
- The storage of print outputs.public void handle(java.lang.String s, org.eclipse.jetty.server.Request request, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws java.io.IOException, javax.servlet.ServletException
s
- The target path.request
- The request.httpServletRequest
- The original request.httpServletResponse
- The response.java.io.IOException
- when an IO error occursjavax.servlet.ServletException
- when a servlet error occurs