01: /* CVS ID: $Id: HTTPSession.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.server.http.*;
05: import java.net.*;
06: import java.util.*;
07: import net.wastl.webmail.exceptions.*;
08:
09: import org.w3c.dom.Document;
10:
11: /*
12: * HTTPSession.java
13: *
14: *
15: * Created: Thu Sep 9 17:20:37 1999
16: *
17: * Copyright (C) 1999-2000 Sebastian Schaffert
18: *
19: * This program is free software; you can redistribute it and/or
20: * modify it under the terms of the GNU General Public License
21: * as published by the Free Software Foundation; either version 2
22: * of the License, or (at your option) any later version.
23: *
24: * This program is distributed in the hope that it will be useful,
25: * but WITHOUT ANY WARRANTY; without even the implied warranty of
26: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27: * GNU General Public License for more details.
28: *
29: * You should have received a copy of the GNU General Public License
30: * along with this program; if not, write to the Free Software
31: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32: */
33: /**
34: *
35: * @author Sebastian Schaffert
36: * @version
37: */
38:
39: public interface HTTPSession extends TimeableConnection {
40:
41: public void login(HTTPRequestHeader h)
42: throws InvalidPasswordException;
43:
44: public void login();
45:
46: public void logout();
47:
48: public String getSessionCode();
49:
50: public Locale getLocale();
51:
52: public long getLastAccess();
53:
54: public void setLastAccess();
55:
56: public String getEnv(String key);
57:
58: public void setEnv(String key, String value);
59:
60: public void setEnv();
61:
62: public InetAddress getRemoteAddress();
63:
64: public void saveData();
65:
66: public Document getModel();
67:
68: public boolean isLoggedOut();
69:
70: public void setException(Exception ex);
71:
72: } // HTTPSession
|