dk.netarkivet.common.distribute
Class HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler

java.lang.Object
  extended by org.mortbay.component.AbstractLifeCycle
      extended by org.mortbay.jetty.handler.AbstractHandler
          extended by 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.


Field Summary
 
Fields inherited from class org.mortbay.jetty.handler.AbstractHandler
_string
 
Fields inherited from interface org.mortbay.jetty.Handler
ALL, DEFAULT, ERROR, FORWARD, INCLUDE, REQUEST
 
Constructor Summary
protected HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler()
           
 
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
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, 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
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop
 

Constructor Detail

HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler

protected HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler()
Method Detail

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)