|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IParcelBodyHandler
A handler for a particular body type implementation.
A class implementing this interface declares if it can handle thus process a particular body type
implementation.
When a PLUGIN typed parcel is received by a plugin, this plugin asks the ExtensionManager
to find a handler that can process the body enclosed in the parcel. The ExtensionManager uses IParcelBodyHandler
canHandle method to find such handler among existing handlers.
If an IParcelBodyHandler is found, processParcel
method is called to handle the body.
| Method Summary | |
|---|---|
boolean |
canHandle(org.instrumentmiddleware.cima.parcel.BodyType body)
Returns true if this handler can handle the given body type |
org.instrumentmiddleware.cima.parcel.ResponseType |
processBody(IPlugin plugin,
org.instrumentmiddleware.cima.parcel.BodyType body,
java.util.Calendar creationTime,
ISession session,
org.instrumentmiddleware.cima.parcel.ResponseType response)
Process the given body. |
| Method Detail |
|---|
org.instrumentmiddleware.cima.parcel.ResponseType processBody(IPlugin plugin,
org.instrumentmiddleware.cima.parcel.BodyType body,
java.util.Calendar creationTime,
ISession session,
org.instrumentmiddleware.cima.parcel.ResponseType response)
throws PluginException
plugin - The PLUGIN typed parcel recipient.body - The body enclosed within the PLUGIN typed parcelsession - the session this communication belongs toresponse - the partly built response containing top level elements
PluginException - if something goes wong when processing the parcelboolean canHandle(org.instrumentmiddleware.cima.parcel.BodyType body)
body -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||