Class User

  • All Implemented Interfaces:
    Serializable, Referenceable, UserMBean

    public class User
    extends AdministeredObject
    implements UserMBean
    The User class is a utility class needed for administering Joram users.

    The User class is a factory for Joram's users through the create static methods, the User object provides Joram specific administration and monitoring methods.

    The User object provides methods to add and remove Interceptors, such an interceptor can handle each incoming and outgoing message. Interceptors can read and also modify the messages. This enables filtering, transformation or content enrichment, for example adding a property into the message. Also Interceptors can stop the Interceptor chain by simply returning false to their intercept method invocation, in this case the transmission of the message is stopped.

    There is two distinct chains of interceptors:

    • The first one "interceptors_in" handles each message that's entering the server (result of a send method on a connection from the selected user).
    • The second one "interceptors_out" handles each message that's exiting the server (result of a receive method on a connection from the selected user).
    These two interceptor chains are configurable for each user.
    See Also:
    Serialized Form