org.instrumentmiddleware.cima.parcel
Interface IParcelHandler

All Known Subinterfaces:
IDescriptionController, IPluginController, ISubscriptionController
All Known Implementing Classes:
DefaultController, DescriptionController, PluginController, SubscriptionController

public interface IParcelHandler


Method Summary
 org.instrumentmiddleware.cima.parcel.ResponseBodyType handleParcel(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel request, org.instrumentmiddleware.cima.parcel.ResponseBodyType responseBody)
          Handle a parcel.
 void handleResponse(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel response, org.instrumentmiddleware.cima.parcel.EndpointType endpoint)
           
 

Method Detail

handleParcel

org.instrumentmiddleware.cima.parcel.ResponseBodyType handleParcel(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel request,
                                                                   org.instrumentmiddleware.cima.parcel.ResponseBodyType responseBody)
                                                                   throws ProcessException
Handle a parcel. This is a very generic interface and should be implemented by all classes that expect to touch a parcel (apart from IParcelCreators). The ResponseType return value is need because of the possibility that the handler will change the schema type of the response (see XMLObject.changeType()). NOTE: if a ProcessException is going to be thrown, then the response type MUST NOT have been changed prior to the throwing - this will induce a failure in the CIMADirector

Parameters:
request - The incoming request
responseBody - A semi-complete response
Returns:
The completed response to be sent
Throws:
ProcessException

handleResponse

void handleResponse(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel response,
                    org.instrumentmiddleware.cima.parcel.EndpointType endpoint)
                    throws ProcessException
Throws:
ProcessException


Copyright © 2008. All Rights Reserved.