Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: jac/aspects/gui/web/Request.java


1   /*
2     Copyright (C) 2001-2002 Laurent Martelli, Renaud Pawlak
3   
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU Lesser General Public License as
6     published by the Free Software Foundation; either version 2 of the
7     License, or (at your option) any later version.
8   
9     This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU Lesser General Public License for more details.
13  
14    You should have received a copy of the GNU Lesser General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
17  
18  package jac.aspects.gui.web;
19  
20  import jac.aspects.gui.View;
21  
22  /**
23   * This class defines requests that come from web clients.
24   *
25   * <p>When a request is performed to a <code>AbstractServer</code>,
26   * a new instance of this class is created and is pushed on the
27   * request stack of the current session.
28   */
29  
30  public class Request implements java.io.Serializable {
31  
32     /* the view for this request (jac.aspects.gui.View) */
33     View view;
34  
35     /**
36      * A constuctor that initializes the request with all the needed
37      * information.
38      *
39      * @param view
40      */
41  
42     public Request(View view) {
43        this.view = view;
44     }
45  
46     /**
47      * Returns the view that is involved by this request.
48      *
49      * @return the view that is involved by the request */
50  
51     public Object getView() {
52        return view;
53     }
54  
55     /**
56      * Returns a printable string representation of the current
57      * request.
58      *
59      * @return a printable string */ 
60  
61     public String toString() {
62        return "Request:"+view;
63     }
64  }