That´s different. Nutch does not depend on the Servlet framework, but it´s
webapp yes, indeed, how you´d expect your PHP webapp depend on the PHP API
for web programming.
The same way this webapp composed by JSP pages and Servlets was made using
the NutchBean class you could have donne a Swing app that uses one instance
of this class too.
Basically all the logic in this Cached Servlet is in the code below:
Hit hit = new Hit(Integer.parseInt(request.getParameter("idx")),
Integer.parseInt(request.getParameter("id")));
HitDetails details = bean.getDetails(hit);
// raw bytes
byte[] bytes = bean.getContent(details);
The 2 calls to the a instance of the NutchBean class to get the cached
content for the chosen hit.
On 11/24/05, Stefan Groschupf <[EMAIL PROTECTED]> wrote:
>
> > There is no dependecy between Nutch and the Servlet framework.
> I do not agree:
> There is:
> public class Cached extends HttpServlet {
> and
> public class OpenSearchServlet extends HttpServlet
>
> May you need to delete this classes, but makes this sense?
>
> Stefan
>
--
"Minds are like parachutes, they work best when open."
Bruno Patini Furtado
Software Developer
webpage: www.bpfurtado.net
blog: http://www.livejournal.com/users/bpfurtado/