uk.org.ogsadai.service.resource
Class ResourceEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--uk.org.ogsadai.service.resource.ResourceEvent
All Implemented Interfaces:
java.io.Serializable

public class ResourceEvent
extends java.util.EventObject

An event representing some kind of occurence involving a data service resource.

Author:
The OGSA-DAI Project Team
See Also:
Serialized Form

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement.
private  Session mSession
          The session involved in the event, if there was one.
private static long serialVersionUID
          Required to get rid of Java serialization warning.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ResourceEvent(java.lang.Object source, Session session)
          Constructs an event involving an event originator and an associated session within which the event occurred.
 
Method Summary
 Session getSession()
          Returns the Session that was involved in the event.
 boolean hasSession()
          Indicates whether or not a session was involved in the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement.

See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
Required to get rid of Java serialization warning.

See Also:
Constant Field Values

mSession

private Session mSession
The session involved in the event, if there was one.

Constructor Detail

ResourceEvent

public ResourceEvent(java.lang.Object source,
                     Session session)
Constructs an event involving an event originator and an associated session within which the event occurred.

Parameters:
source - The object that originated the event.
session - The session involved in the event.
Method Detail

getSession

public Session getSession()
Returns the Session that was involved in the event.

Returns:
Session.

hasSession

public boolean hasSession()
Indicates whether or not a session was involved in the event.

Returns:
true if so, otherwise false.