|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChainMessage
This interface is going to be used as the DTO between different actors of "chain of responsibility" patterns implemented here. It
could be used at both "hierarchical" and "chainable" implementations of this patterns. todo: check this statement
It identifies all the necessary methods for working with the chain of responsibility.
Method Summary | |
---|---|
Object |
getInputParam(String name)
Get unout param by its name. |
Object |
getOutputInfo(String param)
Get the info which was put to that IChainMessage object. |
String |
getStatus()
|
String |
getType()
|
void |
setType(String type)
The type of message. |
Method Detail |
---|
String getType()
IllegalArgumentException
would appear).String getStatus()
void setType(String type) throws IllegalStateException
IllegalArgumentException
would appear).
getStatus()
method to understand if we could change the status.
IllegalStateException
- in the case the message is not at the appropriate state to be set with the typObject getInputParam(String name) throws UnsupportedOperationException
name
- name of the input param. Can not be null (otherwise IllegalArgumentException
would appear).
UnsupportedOperationException
- in the case the message could not return the input paramsObject getOutputInfo(String param) throws UnsupportedOperationException
IChainMessage
object.
todo: all the todos of above mentioned method have power here.
Note: the configuration system of implementation may restrict the usage of this method (it is unpermissed)
param
- the name of param using which the object should be obtained. Can not be null (otherwise
IllegalArgumentException
would appear).
UnsupportedOperationException
- in the case the message could not return the input params
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |