|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProtocolAdaptor
This interface defines the methods that any implementing protocol adaptor must contain:
setParam() to set up configuration params for this adaptor
init() to init the adaptor with the profile in use
setObserver() to configure out an observer (the rule processor) to whom the adaptor will notify
getNextInput() for returning the request (input) that must be processed
getValue() Returns an array of values for the provided param name
discard() Discards the active request
sendElement() for receiving the components and values that are necessary to create a response
| Method Summary | |
|---|---|
void |
discard()
Discards the active element and writes a diagnostic |
java.lang.String |
getNextInput()
Provides the label of the first available input element, and then removes it; the element becomes the active one and overrides the previous. |
java.lang.String[] |
getValue(java.lang.String name)
Gets the values for a given param of the active element |
void |
init(ProfileManager pm)
Inits the adaptor with the information provided by the ProfileManager in use |
void |
sendElement(java.lang.String name,
java.lang.String[] components,
java.lang.String[] values)
Sends an element with the corresponding components and values |
void |
setObserver(java.util.Observer obs)
Sets an observer (the rule processor) for the protocol adaptor in use |
void |
setParam(java.lang.String name,
java.lang.String[] ids,
java.lang.String[] values)
This method is used to set attributes and their respective values for a given param name |
| Method Detail |
|---|
void init(ProfileManager pm)
ProfileManager in use
void setParam(java.lang.String name,
java.lang.String[] ids,
java.lang.String[] values)
throws ProtocolAdaptorConfigException
name
name - The name for the paramids - An array of strings with identificators for the attributesvalues - An array of strings with the values for the attributes
ProtocolAdaptorConfigException
void setObserver(java.util.Observer obs)
throws ProtocolAdaptorConfigException
obs - An java.util.Observer object
ProtocolAdaptorConfigException
java.lang.String getNextInput()
throws ProtocolAdaptorReadException
ProtocolAdaptorReadExceptionvoid discard()
java.lang.String[] getValue(java.lang.String name)
name - the name of the param
void sendElement(java.lang.String name,
java.lang.String[] components,
java.lang.String[] values)
throws ProtocolAdaptorSendException
name - tha name of the element to be sentcomponents - An array of strings containing the components of the element to be sentvalues - The values associated to the components
ProtocolAdaptorSendException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||