dk.netarkivet.common.distribute
Class HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler
java.lang.Object
org.mortbay.component.AbstractLifeCycle
org.mortbay.jetty.handler.AbstractHandler
dk.netarkivet.common.distribute.HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler
- All Implemented Interfaces:
- org.mortbay.component.LifeCycle, org.mortbay.jetty.Handler
- Enclosing class:
- HTTPRemoteFileRegistry
protected class HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler
- extends org.mortbay.jetty.handler.AbstractHandler
A handler for the registry.
It has three ways to behave:
Serve registered files, return 404 on unknown files, and unregister
registered files, depending on the URL.
Nested classes/interfaces inherited from interface org.mortbay.component.LifeCycle |
org.mortbay.component.LifeCycle.Listener |
Fields inherited from class org.mortbay.jetty.handler.AbstractHandler |
_string |
Fields inherited from class org.mortbay.component.AbstractLifeCycle |
_listeners |
Fields inherited from interface org.mortbay.jetty.Handler |
ALL, DEFAULT, ERROR, FORWARD, INCLUDE, REQUEST |
Method Summary |
void |
handle(java.lang.String string,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
int i)
A method for handling Jetty requests. |
Methods inherited from class org.mortbay.jetty.handler.AbstractHandler |
destroy, doStart, doStop, getServer, setServer, toString |
Methods inherited from class org.mortbay.component.AbstractLifeCycle |
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mortbay.component.LifeCycle |
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler
protected HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler()
handle
public void handle(java.lang.String string,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
int i)
throws java.io.IOException,
javax.servlet.ServletException
- A method for handling Jetty requests.
- Parameters:
string
- Unused domain.httpServletRequest
- request object.httpServletResponse
- the response to write to.i
- Unused state.
- Throws:
java.io.IOException
- On trouble in communication.
javax.servlet.ServletException
- On servlet trouble.- See Also:
Handler.handle(String, HttpServletRequest,
HttpServletResponse, int)