public abstract class AbstractModulesHandler extends AbstractHandlerCommons
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandlerorg.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerorg.eclipse.jetty.util.component.LifeCycle.Listener| Constructor and Description |
|---|
AbstractModulesHandler() |
| Modifier and Type | Method and Description |
|---|---|
private void |
deliverModule(java.lang.String target,
javax.servlet.http.HttpServletResponse response)
Deliver a module directly from zip file that MUST be on CLASSPATH.
|
void |
handle(java.lang.String target,
org.eclipse.jetty.server.Request base,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Return a requested module if found or empty response and
HttpServletResponse.SC_NOT_FOUND if the module was not found. |
abstract boolean |
isModuleRequest(java.lang.String target,
org.eclipse.jetty.server.Request base,
javax.servlet.http.HttpServletRequest request)
Returns true if this handler is responsible for this request, otherwise false.
|
abstract java.lang.String |
mapToResource(java.lang.String target)
Maps the target of the request to its resource name.
|
detectContentType, sendResponsedestroy, doError, doStart, doStop, getServer, setServeraddBean, 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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stoppublic abstract boolean isModuleRequest(java.lang.String target,
org.eclipse.jetty.server.Request base,
javax.servlet.http.HttpServletRequest request)
target - The target of the request - either a URI or a name.base - The base request.request - The object or a wrapper of the request.public abstract java.lang.String mapToResource(java.lang.String target)
target - The target of the request - either a URI or a name.public void handle(java.lang.String target,
org.eclipse.jetty.server.Request base,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
HttpServletResponse.SC_NOT_FOUND if the module was not found.handle in interface org.eclipse.jetty.server.Handlerhandle in class org.eclipse.jetty.server.handler.AbstractHandlertarget - The target of the request - either a URI or a name.base - The base request.request - The object or a wrapper of the request.response - The object or a wrapper of the response.java.io.IOExceptionjavax.servlet.ServletExceptionprivate void deliverModule(java.lang.String target,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
target - The target of the request - either a URI or a name.response - The details and state of the response.java.io.IOException - ServletException
If any error conditions occur.javax.servlet.ServletException