|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_PublishFilter
This interface hides the real implementation used to intercept published messages.
The interface may be used to filter/check/manipulate messages arriving with publish(). Only messages where the intercept() method returns "OK" or "" are accepted and passed to the xmlBlaster core for processing. Note that you can manipulate the content of a message with your plugin but changing the XmlKey or QoS is not allowed. The plugin with your filter rules must implement this interface. Steps to add a new plugin:
Method Summary | |
---|---|
java.lang.String[] |
getMimeExtended()
Get the content MIME version number for which this plugin applies. |
java.lang.String[] |
getMimeTypes()
Get the content MIME types for which this plugin applies, "*" is for all mime types |
java.lang.String |
getName()
Get a human readable name of this filter implementation |
void |
initialize(ServerScope glob)
This is called after instantiation of the plugin |
java.lang.String |
intercept(SubjectInfo publisher,
MsgUnit msgUnit)
Add your business code with your implementation of inercept(). |
void |
shutdown()
|
Method Detail |
---|
void initialize(ServerScope glob)
glob
- The Global handle of this xmlBlaster server instance.java.lang.String getName()
java.lang.String[] getMimeTypes()
java.lang.String[] getMimeExtended()
java.lang.String intercept(SubjectInfo publisher, MsgUnit msgUnit) throws XmlBlasterException
publisher
- The subject object describing the publishermsgUnit
- The message to check
XmlBlasterException
- Is thrown on problems, for example if the MIME type
does not fit to message content.void shutdown()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |