org.deegree_impl.services
Class OGCWebServiceEvent_Impl

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.deegree_impl.services.OGCWebServiceEvent_Impl
All Implemented Interfaces:
OGCWebServiceEvent, java.io.Serializable

public final class OGCWebServiceEvent_Impl
extends java.util.EventObject
implements OGCWebServiceEvent

This is the defining interface for event objects that contains a request, a response that should be made available for a service.

the kind of contained imformation can be determined by calling the getType method.

--------------------------------------------------------------------

Version:
2002-04-16
Author:
Andreas Poth
See Also:
Serialized Form

Field Summary
private  OGCWebServiceClient client
           
private  java.lang.String id
           
private  java.lang.String message
           
private  OGCWebServiceRequest request
           
private  OGCWebServiceResponse response
           
private  int type
           
 
Fields inherited from class java.util.EventObject
source
 
Fields inherited from interface org.deegree.services.OGCWebServiceEvent
REQUEST, RESPONSE
 
Constructor Summary
OGCWebServiceEvent_Impl(java.lang.Object source, OGCWebServiceRequest request, java.lang.String message)
          Creates a new OGCWebServiceEvent_Impl object.
OGCWebServiceEvent_Impl(java.lang.Object source, OGCWebServiceRequest request, java.lang.String message, OGCWebServiceClient client)
          Creates a new OGCWebServiceEvent_Impl object.
OGCWebServiceEvent_Impl(java.lang.Object source, OGCWebServiceResponse response, java.lang.String message)
          Creates a new OGCWebServiceEvent_Impl object.
 
Method Summary
 OGCWebServiceClient getDestination()
          returns the client where to write the result/response or an error message to
 OGCWebService getEventSource()
          returns the instance of the OGCWebService that is the source of the event.
 java.lang.String getId()
          returns the id of the of the request which performance caused the event.
 java.lang.String getMessage()
           
 OGCWebServiceRequest getRequest()
          if the event is a REQUEST type the method returns the request transported by the event. otherwise null will be returned.
 OGCWebServiceResponse getResponse()
          if the event is a RESPONSE type the method returns the response transported by the event. otherwise null will be returned.
 int getType()
          returns the type of event. possible values are: REQUSET RESPONSE MESSAGE EXCEPTION An EXCEPTION will allways be a response to a request or a message.
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

client

private OGCWebServiceClient client

request

private OGCWebServiceRequest request

response

private OGCWebServiceResponse response

id

private java.lang.String id

type

private int type

message

private java.lang.String message
Constructor Detail

OGCWebServiceEvent_Impl

public OGCWebServiceEvent_Impl(java.lang.Object source,
                               OGCWebServiceRequest request,
                               java.lang.String message)
Creates a new OGCWebServiceEvent_Impl object.

Parameters:
source -
request -
message -

OGCWebServiceEvent_Impl

public OGCWebServiceEvent_Impl(java.lang.Object source,
                               OGCWebServiceRequest request,
                               java.lang.String message,
                               OGCWebServiceClient client)
Creates a new OGCWebServiceEvent_Impl object.

Parameters:
source -
request -
message -
client -

OGCWebServiceEvent_Impl

public OGCWebServiceEvent_Impl(java.lang.Object source,
                               OGCWebServiceResponse response,
                               java.lang.String message)
Creates a new OGCWebServiceEvent_Impl object.

Parameters:
source -
response -
message -
Method Detail

getId

public java.lang.String getId()
returns the id of the of the request which performance caused the event.

Specified by:
getId in interface OGCWebServiceEvent

getType

public int getType()
returns the type of event. possible values are: An EXCEPTION will allways be a response to a request or a message.

Specified by:
getType in interface OGCWebServiceEvent

getRequest

public OGCWebServiceRequest getRequest()
if the event is a REQUEST type the method returns the request transported by the event. otherwise null will be returned.

Specified by:
getRequest in interface OGCWebServiceEvent

getResponse

public OGCWebServiceResponse getResponse()
if the event is a RESPONSE type the method returns the response transported by the event. otherwise null will be returned.

Specified by:
getResponse in interface OGCWebServiceEvent

getEventSource

public OGCWebService getEventSource()
returns the instance of the OGCWebService that is the source of the event.


getDestination

public OGCWebServiceClient getDestination()
returns the client where to write the result/response or an error message to

Specified by:
getDestination in interface OGCWebServiceEvent

getMessage

public java.lang.String getMessage()

toString

public java.lang.String toString()
Returns: