01: /* $Id: URLHandler.java,v 1.1.1.1 2002/10/02 18:42:51 wastl Exp $ */
02: package net.wastl.webmail.server;
03:
04: import net.wastl.webmail.ui.*;
05: import net.wastl.webmail.exceptions.*;
06: import net.wastl.webmail.ui.html.*;
07: import net.wastl.webmail.server.http.*;
08:
09: import javax.servlet.ServletException;
10:
11: /**
12: * URLHandler.java
13: *
14: * Created: Aug 1999
15: *
16: * Copyright (C) 1999-2000 Sebastian Schaffert
17: *
18: * This program is free software; you can redistribute it and/or
19: * modify it under the terms of the GNU General Public License
20: * as published by the Free Software Foundation; either version 2
21: * of the License, or (at your option) any later version.
22: *
23: * This program is distributed in the hope that it will be useful,
24: * but WITHOUT ANY WARRANTY; without even the implied warranty of
25: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26: * GNU General Public License for more details.
27: *
28: * You should have received a copy of the GNU General Public License
29: * along with this program; if not, write to the Free Software
30: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31: */
32: /**
33: * Classes that want to register for handling URLs must implement this.
34: *
35: * @author Sebastian Schaffert
36: * @versin $Revision: 1.1.1.1 $
37: */
38: public interface URLHandler extends URLHandlerTreeNode {
39:
40: public String getName();
41:
42: public String getDescription();
43:
44: public HTMLDocument handleURL(String suburl, HTTPSession session,
45: HTTPRequestHeader header) throws WebMailException,
46: ServletException;
47:
48: }
|