Package net.ME1312.SubData.Server
Class DataProtocol
java.lang.Object
net.ME1312.SubData.Server.DataProtocol
- Direct Known Subclasses:
SubDataProtocol
SubData Protocol API Class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessage(String channel, String handle) Grab MessageIn Instance via handleabstract StringgetName()Get the Network Protocol Nameabstract VersionGet the Network Protocol VersionvoidregisterMessage(String channel, String handle, Class<? extends MessageOut> message) Register MessageOut to the NetworkvoidregisterMessage(String channel, String handle, MessageIn message) Register MessageIn to the NetworkvoidunregisterMessage(String channel, Class<? extends MessageOut> message) Unregister MessageOut to the NetworkvoidunregisterMessage(String channel, MessageIn message) Unregister MessageIn from the Networkvoidunwhitelist(String address) Revoke Access from an Address (Global)voidAllow Access from an Address (Global)
-
Constructor Details
-
DataProtocol
public DataProtocol()
-
-
Method Details
-
getName
Get the Network Protocol Name- Returns:
- Protocol Name
-
getVersion
Get the Network Protocol Version- Returns:
- Protocol Version
-
registerMessage
Register MessageIn to the Network- Parameters:
channel- Message Channelhandle- Handle to Bindmessage- MessageIn to register
-
unregisterMessage
Unregister MessageIn from the Network- Parameters:
channel- Message Channelmessage- MessageIn to unregister
-
registerMessage
Register MessageOut to the Network- Parameters:
channel- Message Channelhandle- Handle to bindmessage- MessageOut to register
-
unregisterMessage
Unregister MessageOut to the Network- Parameters:
channel- Message Channelmessage- MessageOut to unregister
-
getMessage
Grab MessageIn Instance via handle- Parameters:
channel- Message Channelhandle- Handle- Returns:
- MessageIn
-
whitelist
Allow Access from an Address (Global)- Parameters:
address- Address to allow
-
unwhitelist
Revoke Access from an Address (Global)- Parameters:
address- Address to deny
-