public abstract class AbstractHandlerCommons
extends org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandlerorg.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerorg.eclipse.jetty.util.component.LifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
private byte[] |
buffer
Data buffer.
|
private static int |
BUFFER_SIZE
Buffer size.
|
| Constructor and Description |
|---|
AbstractHandlerCommons() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
detectContentType(java.lang.String module)
Detect content type based on module file extension.
|
protected void |
sendResponse(javax.servlet.http.HttpServletResponse response,
java.net.URLConnection conn,
java.lang.String module)
Build HTTP response.
|
destroy, doError, doStart, doStop, getServer, handle, 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, stopprivate static final int BUFFER_SIZE
private byte[] buffer
protected void sendResponse(javax.servlet.http.HttpServletResponse response,
java.net.URLConnection conn,
java.lang.String module)
throws java.io.IOException
response - The object or a wrapper of the response.conn - Module resource.module - Module name.java.io.IOException - On I/O errors.protected java.lang.String detectContentType(java.lang.String module)
module - Module name.