|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.interfaceware.iguana.plugin.SourceMessageRequestedEventOutputs
public class SourceMessageRequestedEventOutputs
This class is used to send response data from messageRequested
event handlers back to Iguana.
Source plugins are provided with an instance of this class as an argument to
their messageRequested
event handler.
The event handler uses the properties and methods of the provided instance to
craft a suitable response to send back to Iguana. After the event handler
returns, the response is sent back to Iguana.
At a minimum, the event handler should set the OutboundMessage
and
PluginMessageId
properties to appropriate values.
The plugin event handler may request that the Iguana channel be stopped via
the StopChannelFlag
, StopChannelErrorFlag
and StopChannelReason
properties.
The plugin event handler may add log messages to Iguana's logs using the
addErrorLogMessage
, addWarningLogMessage
,
addInfoLogMessage
and addDebugLogMessage
methods.
Constructor Summary | |
---|---|
SourceMessageRequestedEventOutputs()
|
|
SourceMessageRequestedEventOutputs(long Handle)
|
Method Summary | |
---|---|
void |
addDebugLogMessage(java.lang.String DebugLogMessage)
Adds a debug log message to Iguana's logs. |
void |
addErrorLogMessage(java.lang.String ErrorLogMessage)
Adds an error log message to Iguana's logs. |
void |
addInfoLogMessage(java.lang.String InfoLogMessage)
Adds an info log message to Iguana's logs. |
void |
addWarningLogMessage(java.lang.String WarningLogMessage)
Adds a warning log message to Iguana's logs. |
protected void |
finalize()
|
java.lang.String |
getOutboundMessage()
Message to send back to Iguana, or an empty string if a message is not presently available. |
java.lang.String |
getPluginMessageId()
Id to be assigned by the plugin to uniquely identify OutboundMessage . |
boolean |
getStopChannelErrorFlag()
When combined with StopChannelFlag , requests
that Iguana stop the channel with the channel status set to 'error'. |
boolean |
getStopChannelFlag()
Requests that Iguana stop the channel to which the plugin is connected. |
java.lang.String |
getStopChannelReason()
Describes the reason for the 'stop channel' request. |
void |
release()
|
void |
setOutboundMessage(java.lang.String Value)
Set method for OutboundMessage. |
void |
setPluginMessageId(java.lang.String Value)
Set method for PluginMessageId. |
void |
setStopChannelErrorFlag(boolean Value)
Set method for StopChannelErrorFlag. |
void |
setStopChannelFlag(boolean Value)
Set method for StopChannelFlag. |
void |
setStopChannelReason(java.lang.String Value)
Set method for StopChannelReason. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceMessageRequestedEventOutputs() throws PluginException
PluginException
public SourceMessageRequestedEventOutputs(long Handle) throws PluginException
PluginException
Method Detail |
---|
public void release() throws PluginException
PluginException
protected void finalize() throws PluginException
finalize
in class java.lang.Object
PluginException
public java.lang.String getOutboundMessage() throws PluginException
Message to send back to Iguana, or an empty string if a message is not presently available.
See also the setOutboundMessage
method.
PluginException
public void setOutboundMessage(java.lang.String Value) throws PluginException
Set method for OutboundMessage.
See OutboundMessage
.
Value
- Value to set OutboundMessage to.
PluginException
public java.lang.String getPluginMessageId() throws PluginException
Id to be assigned by the plugin to uniquely identify OutboundMessage
.
Iguana sends the provided PluginMessageId back to the plugin's messageRequestCompleted
event handler
via PluginMessageId
property. This allows the plugin to associate each message
request completed notification with the message sent to Iguana.
The format of the PluginMessageId is to be determined by the plugin author. Iguana does not interpret this value, other than by adding it to logs, and sending it back to the plugin.
See also the setPluginMessageId
method.
PluginException
public void setPluginMessageId(java.lang.String Value) throws PluginException
Set method for PluginMessageId.
See PluginMessageId
.
Value
- Value to set PluginMessageId to.
PluginException
public boolean getStopChannelFlag() throws PluginException
Requests that Iguana stop the channel to which the plugin is connected.
Default value: false.
See also: StopChannelErrorFlag
and StopChannelReason
.
See also the setStopChannelFlag
method.
PluginException
public void setStopChannelFlag(boolean Value) throws PluginException
Set method for StopChannelFlag.
See StopChannelFlag
.
Value
- Value to set StopChannelFlag to.
PluginException
public boolean getStopChannelErrorFlag() throws PluginException
When combined with StopChannelFlag
, requests
that Iguana stop the channel with the channel status set to 'error'.
Default value: false.
Only applicable if StopChannelFlag
is set to
true.
See also the setStopChannelErrorFlag
method.
PluginException
public void setStopChannelErrorFlag(boolean Value) throws PluginException
Set method for StopChannelErrorFlag.
See StopChannelErrorFlag
.
Value
- Value to set StopChannelErrorFlag to.
PluginException
public java.lang.String getStopChannelReason() throws PluginException
Describes the reason for the 'stop channel' request.
Only applicable if StopChannelFlag
is set to
true.
See also the setStopChannelReason
method.
PluginException
public void setStopChannelReason(java.lang.String Value) throws PluginException
Set method for StopChannelReason.
See StopChannelReason
.
Value
- Value to set StopChannelReason to.
PluginException
public void addErrorLogMessage(java.lang.String ErrorLogMessage) throws PluginException
Adds an error log message to Iguana's logs.
ErrorLogMessage
- Log message text.
PluginException
public void addWarningLogMessage(java.lang.String WarningLogMessage) throws PluginException
Adds a warning log message to Iguana's logs.
WarningLogMessage
- Log message text.
PluginException
public void addInfoLogMessage(java.lang.String InfoLogMessage) throws PluginException
Adds an info log message to Iguana's logs.
InfoLogMessage
- Log message text.
PluginException
public void addDebugLogMessage(java.lang.String DebugLogMessage) throws PluginException
Adds a debug log message to Iguana's logs.
DebugLogMessage
- Log message text.
PluginException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |