Regain 2.1.0-STABLE API

net.sf.regain.ui.desktop
Class FileService

java.lang.Object
  extended by simple.http.serve.BasicResource
      extended by simple.http.load.BasicService
          extended by net.sf.regain.ui.desktop.FileService
All Implemented Interfaces:
simple.http.load.Service, simple.http.serve.Resource

public class FileService
extends simple.http.load.BasicService

A simpleweb service providing files. For security reasons this service only provides files that are in the index.

Author:
Til Schneider, www.murfman.de

Field Summary
 
Fields inherited from class simple.http.serve.BasicResource
context
 
Constructor Summary
FileService(simple.http.serve.Context context)
          Creates a new instance of FileService.
 
Method Summary
 void process(simple.http.Request req, simple.http.Response resp)
          Processes a request.
 
Methods inherited from class simple.http.load.BasicService
prepare
 
Methods inherited from class simple.http.serve.BasicResource
handle, handle, process, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface simple.http.serve.Resource
handle, handle
 

Constructor Detail

FileService

public FileService(simple.http.serve.Context context)
Creates a new instance of FileService.

Parameters:
context - The context of this service.
Method Detail

process

public void process(simple.http.Request req,
                    simple.http.Response resp)
             throws Exception
Processes a request.

Specified by:
process in class simple.http.serve.BasicResource
Parameters:
req - The request.
resp - The response.
Throws:
Exception - If executing the JSP page failed.

Regain 2.1.0-STABLE API

Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info