|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.messaging.MessageManagerImpl
public class MessageManagerImpl
Field Summary |
---|
Fields inherited from interface org.gudy.azureus2.plugins.messaging.MessageManager |
---|
STREAM_ENCRYPTION_NONE, STREAM_ENCRYPTION_RC4_PREFERRED, STREAM_ENCRYPTION_RC4_REQUIRED |
Method Summary | |
---|---|
void |
cancelCompatiblePeersLocation(MessageManagerListener orig_listener)
Cancel registration for compatible-peer notification. |
void |
deregisterMessageType(Message message)
Remove registration of given message type from manager. |
protected GenericMessageHandler |
getHandler(java.lang.String type)
|
java.lang.String |
getName()
|
NATTraverser |
getNATTraverser()
|
static MessageManagerImpl |
getSingleton(AzureusCore core)
|
int |
getType()
|
void |
locateCompatiblePeers(PluginInterface plug_interface,
Message message,
MessageManagerListener listener)
Globally register for notification of peers that support the given message type. |
java.util.Map |
process(java.net.InetSocketAddress originator,
java.util.Map message)
|
GenericMessageRegistration |
registerGenericMessageType(java.lang.String _type,
java.lang.String description,
int stream_crypto,
GenericMessageHandler handler)
Register a peer-independent message handler |
void |
registerMessageType(Message message)
Register the given message type with the manager for processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MessageManagerImpl getSingleton(AzureusCore core)
public NATTraverser getNATTraverser()
public void registerMessageType(Message message) throws MessageException
MessageManager
registerMessageType
in interface MessageManager
message
- instance to use for decoding
MessageException
- if this message type has already been registeredpublic void deregisterMessageType(Message message)
MessageManager
deregisterMessageType
in interface MessageManager
message
- type to removepublic void locateCompatiblePeers(PluginInterface plug_interface, Message message, MessageManagerListener listener)
MessageManager
locateCompatiblePeers
in interface MessageManager
plug_interface
- to get the download managermessage
- to matchlistener
- to notifypublic void cancelCompatiblePeersLocation(MessageManagerListener orig_listener)
MessageManager
cancelCompatiblePeersLocation
in interface MessageManager
orig_listener
- listener used for registrationpublic GenericMessageRegistration registerGenericMessageType(java.lang.String _type, java.lang.String description, int stream_crypto, GenericMessageHandler handler) throws MessageException
MessageManager
registerGenericMessageType
in interface MessageManager
MessageException
protected GenericMessageHandler getHandler(java.lang.String type)
public int getType()
getType
in interface NATTraversalHandler
public java.lang.String getName()
getName
in interface NATTraversalHandler
public java.util.Map process(java.net.InetSocketAddress originator, java.util.Map message)
process
in interface NATTraversalHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |