tigase.component.modules

## Interface Module

- All Known Implementing Classes:
    AbstractEventBusModule, AbstractModule, AdHocCommandModule, AdHocCommandMonitorModule, DiscoveryModule, DiscoveryMonitorModule, EventPublisherModule, EventReceiverModule, JabberVersionModule, SubscribeModule, UnsubscribeModule, XmppPingModule

      public interface Module

  Basic interface to implement component module. Single module should implement fragment of component logic. Is easy to add or remove in component (Server) configuration.
  Author:
    bmalkow

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String[]` | `getFeatures()` Returns XMPP features offered by module.
    `Criteria` | `getModuleCriteria()` Returns critera used by Component to select module to handle incoming stanza.
    `void` | `process(Packet packet)` Process incoming stanza.

- - ### Method Detail

    - #### getFeatures

          String[] getFeatures()

      Returns XMPP features offered by module. Features will be returned by Service Discovery.
      Returns:
        array of features or `null`.

    - #### getModuleCriteria

          Criteria getModuleCriteria()

      Returns critera used by Component to select module to handle incoming stanza.
      Returns:
        criteria of selecting module.

    - #### process

          void process(Packet packet)
                throws ComponentException,
                       TigaseStringprepException

      Process incoming stanza.
      Parameters:
        `packet` - received `stanza`.
      Throws:
        `ComponentException` - if stanza can't be processed correctly. ComponentException is converted to error stanza and returned to stanza sender.
        `TigaseStringprepException` - if there was an error during stringprep processing.

Copyright © 2018 "Tigase, Inc.". All rights reserved.