public abstract class MessageHandler
extends java.lang.Object
Represents a base type for message handlers.
Modifier | Constructor and Description |
---|---|
protected |
MessageHandler()
Initializes a new instance of the
MessageHandler class. |
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.Collections.ObjectModel.Collection<MessageFilter> |
getFilters()
Gets the filters list that are corresponding to the specified handler type.
|
abstract void |
invoke(INetworkOperationContext context)
When overridden in a derived class is used to implement the message handling.
|
protected void |
next(INetworkOperationContext context)
Invokes the next
MessageHandler in chain of handlers, if any. |
void |
set(MessageHandlerCollection messageHandlers)
Sets the specified message handlers.
|
protected MessageHandler()
Initializes a new instance of the MessageHandler
class.
public com.aspose.ms.System.Collections.ObjectModel.Collection<MessageFilter> getFilters()
Gets the filters list that are corresponding to the specified handler type.
Value: The filters.protected void next(INetworkOperationContext context)
Invokes the next MessageHandler
in chain of handlers, if any.
context
- The context.public abstract void invoke(INetworkOperationContext context)
When overridden in a derived class is used to implement the message handling.
context
- The context.public void set(MessageHandlerCollection messageHandlers)
Sets the specified message handlers.
messageHandlers
- The message handlers.