org.deegree.services
Interface OGCWebServiceEvent

All Known Implementing Classes:
OGCWebServiceEvent_Impl

public interface OGCWebServiceEvent

This is the defining interface for event objects that contains a request, a response, a message or an exception the 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

Field Summary
static int REQUEST
           
static int RESPONSE
           
 
Method Summary
 OGCWebServiceClient getDestination()
          returns the client where to write the result/response or an error message to
 java.lang.String getId()
          returns the id of the of the request which performance caused the event.
 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 An EXCEPTION will allways be a response to a request or a message.
 

Field Detail

REQUEST

public static final int REQUEST
See Also:
Constant Field Values

RESPONSE

public static final int RESPONSE
See Also:
Constant Field Values
Method Detail

getId

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


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.


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.


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.


getDestination

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