Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5.internal.events » [javadoc | source]
    1   //  Copyright 2008 The Apache Software Foundation
    2   //
    3   // Licensed under the Apache License, Version 2.0 (the "License");
    4   // you may not use this file except in compliance with the License.
    5   // You may obtain a copy of the License at
    6   //
    7   //     http://www.apache.org/licenses/LICENSE-2.0
    8   //
    9   // Unless required by applicable law or agreed to in writing, software
   10   // distributed under the License is distributed on an "AS IS" BASIS,
   11   // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   12   // See the License for the specific language governing permissions and
   13   // limitations under the License.
   14   
   15   package org.apache.tapestry5.internal.events;
   16   
   17   import org.apache.tapestry5.services.Request;
   18   
   19   import java.util.EventObject;
   20   
   21   public final class EndOfRequestEvent extends EventObject
   22   {
   23       private final Request request;
   24   
   25   
   26       /**
   27        * Constructs a prototypical Event.
   28        *
   29        * @param source The Request which is completing.
   30        * @throws IllegalArgumentException if source is null.
   31        */
   32       public EndOfRequestEvent(Request source)
   33       {
   34           super(source);
   35   
   36           this.request = source;
   37       }
   38   
   39       /**
   40        * The Request object (the source of the event).
   41        */
   42       public Request getRequest()
   43       {
   44           return request;
   45       }
   46   }

Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5.internal.events » [javadoc | source]