Package 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HTTPRemoteFileRegistryHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(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
-
-
-
-
Method Detail
-
handle
public void handle(String string, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, int i) throws IOException, javax.servlet.ServletException
A method for handling Jetty requests.- Parameters:
string
- Unused domain.httpServletRequest
- request object.httpServletResponse
- the response to write to.- Throws:
IOException
- On trouble in communication.javax.servlet.ServletException
- On servlet trouble.
-
-