|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChainHandler
This class is served as handler of the messages by types and by my implementations of IChainMessage
specified. It could
also see not only the implementation of the message but also its type and composition of the inout params. It allows to provide
output params (in that view IChainMessage is Data Trasnfer Object).
todo: method for checking the permissions on the changing inputs/outputs
todo: method answering the questions: forward/include/ next chain ???
todo: method saying if it rewriting output/ does this extend the input.
todo: !!! we could chain the handlers using appropriate parents' handlers of this type of message or could chain the handlers
of this chain item
todo: IHandlersChain running all the hadnlers of this chain item for appropriate type of message and then passing the control
above.
dfvgsdg
$Author:: zmicer $
Method Summary | |
---|---|
boolean |
doesMessageFit(IChainMessage message)
Answers the question if the specified message fits this handler (could be handled by it). |
boolean |
doesMessageFit(String message)
Answers the question if the specified message fits this handler (could be handled by it). |
String |
getType()
|
void |
handleMessage(IChainMessage message,
IHierarchyItem chainItem)
Handle the message. |
void |
handleMessage(String message)
Handle the message. |
void |
handleMessage(String message,
IHierarchyItem chainItem)
Handle the message. |
Method Detail |
---|
String getType()
boolean doesMessageFit(String message)
message
- for which we need to answer the question above. Can not be null (otherwise
IllegalArgumentException
would appear).
true
if message could handle the message and false
otherwise.boolean doesMessageFit(IChainMessage message)
message
- for which we need to answer the question above. Can not be null (otherwise
IllegalArgumentException
would appear).
true
if message could handle the message and false
otherwise.void handleMessage(String message) throws UnsupportedOperationException
message
- which we need to handle. Can not be null (otherwise IllegalArgumentException
would appear).
UnsupportedOperationException
- in the case it can not handle the message (not permissions/illegal type of message etc.)void handleMessage(String message, IHierarchyItem chainItem) throws UnsupportedOperationException
message
- which we need to handle. Can not be null (otherwise IllegalArgumentException
would appear).chainItem
- the current chain item calling this
UnsupportedOperationException
- in the case it can not handle the message (not permissions/illegal type of message etc.)void handleMessage(IChainMessage message, IHierarchyItem chainItem) throws UnsupportedOperationException
message
- which we need to handle. Can not be null (otherwise IllegalArgumentException
would appear).
UnsupportedOperationException
- in the case it can not handle the message (not permissions/illegal type of message etc.)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |