A B C D E F G H I J L M N O P R S T U V

A

AbstractClientCommand - Class in com.mooapi.common.command.client
Common base of all MooAPI input commands.
AbstractClientCommand(ClientCommandType) - Constructor for class com.mooapi.common.command.client.AbstractClientCommand
Initialize.
AbstractMessage<T> - Class in com.mooapi.common.message
Message base type.
AbstractMessage(T) - Constructor for class com.mooapi.common.message.AbstractMessage
 
AbstractServerCommand - Class in com.mooapi.common.command.server
Common base of all MooAPI output commands.
AbstractServerCommand(ServerCommandType) - Constructor for class com.mooapi.common.command.server.AbstractServerCommand
Initialize.
AbstractTypedMessage<T> - Class in com.mooapi.common.message
Typed message base type.
AbstractTypedMessage(T) - Constructor for class com.mooapi.common.message.AbstractTypedMessage
Wrap the specified object.
acquireId() - Method in interface com.mooapi.server.util.IdProvider
Acquire a unique ID from this provider.
acquireId() - Method in class com.mooapi.server.util.PooledIdProvider
Acquire a unique ID from this provider.
acquireId() - Method in class com.mooapi.server.util.SequenceIdProvider
Acquire a unique ID from this provider.
activateConnection(MooConnection) - Method in class com.mooapi.server.MooServer
Activate a MooAPI connection.
afterConnected(MooConnection) - Method in class com.mooapi.server.handler.MooServerAdapter
 
afterConnected(MooConnection) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called once a connection has been established and promoted to a MooAPI connection.
afterOutput(MooConnection, AbstractServerCommand) - Method in class com.mooapi.server.handler.MooServerAdapter
 
afterOutput(MooConnection, AbstractServerCommand) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called after an output command has been sent.
asRawMessage() - Method in class com.mooapi.common.message.AbstractMessage
Generate a raw message equivalent of this message.
asRawMessage() - Method in class com.mooapi.common.message.BinaryMessage
Convert this message into a raw message.
asRawMessage() - Method in class com.mooapi.common.message.IntegerMessage
Convert this message into a raw message.
asRawMessage() - Method in class com.mooapi.common.message.RawMessage
Just return this message.
asRawMessage() - Method in class com.mooapi.common.message.StringMessage
Convert this message into a raw message.

B

beforeConnected(String) - Method in class com.mooapi.server.handler.MooServerAdapter
 
beforeConnected(String) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called after a TCP/IP connection is established, but before it has been promoted to a MooAPI connection.
beforeInput(MooConnection, AbstractClientCommand, CommandProcessor) - Method in class com.mooapi.server.handler.MooServerAdapter
 
beforeInput(MooConnection, AbstractClientCommand, CommandProcessor) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called before an input command is processed.
BinaryMessage - Class in com.mooapi.common.message
Binary message base type.
BinaryMessage(byte[]) - Constructor for class com.mooapi.common.message.BinaryMessage
Wrap the specified byte array.
BUFFER - Static variable in interface com.mooapi.server.IoSessionAttributeKeys
 
BUFFER_SIZE - Static variable in interface com.mooapi.server.IoSessionAttributeKeys
 

C

ChannelDetails - Class in com.mooapi.common.command.server
MooAPI channel join details output command.
ChannelDetails(int, int, int, String, String, String) - Constructor for class com.mooapi.common.command.server.ChannelDetails
 
ChannelJoin - Class in com.mooapi.common.command.client
MooAPI channel join request input command.
ChannelJoin(String) - Constructor for class com.mooapi.common.command.client.ChannelJoin
Create a channel join request command.
ChannelLeave - Class in com.mooapi.common.command.client
MooAPI leave channel input command.
ChannelLeave(int) - Constructor for class com.mooapi.common.command.client.ChannelLeave
Create a new leave channel input command.
ClientCommandCodec - Class in com.mooapi.common.command.client
Utilities for encoding/decoding commands.
ClientCommandCodec() - Constructor for class com.mooapi.common.command.client.ClientCommandCodec
 
clientCommandReceived(MooConnection, AbstractClientCommand) - Method in class com.mooapi.server.MooServer
Process an incoming command.
ClientCommandType - Enum in com.mooapi.common.command.client
MooAPI server client command type.
CodecUtils - Class in com.mooapi.common.command
Encoders and decoders for components of commands.
CodecUtils() - Constructor for class com.mooapi.common.command.CodecUtils
 
com.mooapi.common.command - package com.mooapi.common.command
Provides utilities used by MooAPI codecs.
com.mooapi.common.command.client - package com.mooapi.common.command.client
Provides commands and codecs for MooAPI communication from clients to servers.
com.mooapi.common.command.server - package com.mooapi.common.command.server
Provides commands, message types and codecs for MooAPI communication from servers to clients.
com.mooapi.common.message - package com.mooapi.common.message
Provides MooGame message type support.
com.mooapi.server - package com.mooapi.server
 
com.mooapi.server.handler - package com.mooapi.server.handler
 
com.mooapi.server.protocol.codec - package com.mooapi.server.protocol.codec
 
com.mooapi.server.protocol.sniffer - package com.mooapi.server.protocol.sniffer
 
com.mooapi.server.util - package com.mooapi.server.util
 
Command - Interface in com.mooapi.common.command
Tagging interface.
CommandFilter<C extends Command> - Interface in com.mooapi.server.handler
Client command filter.
CommandProcessor<C extends Command> - Interface in com.mooapi.server
This is a command processor interface.
CONNECTION_ATTRIBUTE - Static variable in interface com.mooapi.server.IoSessionAttributeKeys
 
ConnectionDetails - Class in com.mooapi.common.command.server
MooAPI connection info output command.
ConnectionDetails(int, int, int, String, String) - Constructor for class com.mooapi.common.command.server.ConnectionDetails
Initialize.
ConnectionIdAssigned - Class in com.mooapi.common.command.server
MooAPI connection ID output command.
ConnectionIdAssigned(int) - Constructor for class com.mooapi.common.command.server.ConnectionIdAssigned
Initialize.
ConnectionJoined - Class in com.mooapi.common.command.server
MooAPI connection join output command.
ConnectionJoined(int, int, int, String, String) - Constructor for class com.mooapi.common.command.server.ConnectionJoined
Initialize.
ConnectionLeft - Class in com.mooapi.common.command.server
MooAPI connection left output command.
ConnectionLeft(int, int, int) - Constructor for class com.mooapi.common.command.server.ConnectionLeft
Initialize.
ConnectionNameChanged - Class in com.mooapi.common.command.server
MooAPI name change output command.
ConnectionNameChanged(int, String) - Constructor for class com.mooapi.common.command.server.ConnectionNameChanged
Initialize.
createChannel(String, MooConnection) - Method in class com.mooapi.server.MooServer
Create a MooAPI channel with the specified name.
createStringMessage(String) - Method in class com.mooapi.common.message.MessageCodec
Create a string message from the specified string, using this codec's current character set to encode it.

D

decode(ByteBuffer) - Static method in class com.mooapi.common.command.client.ChannelJoin
Create a ChannelJoinRequestInputCommand from the specified input buffer.
decode(ByteBuffer) - Static method in class com.mooapi.common.command.client.ChannelLeave
Create a new leave channel input command from the data in the specified input buffer.
decode(ByteBuffer) - Method in class com.mooapi.common.command.client.ClientCommandCodec
Parse the specified byte buffer, returning the encoded client command it contains.
decode(byte) - Static method in enum com.mooapi.common.command.client.ClientCommandType
Decode the specified byte, returning the associated ClientCommandType.
decode(ByteBuffer, MessageCodec) - Static method in class com.mooapi.common.command.client.MessageToChannel
Create a new message to channel input command from the data in the specified input buffer, using the specified codec to decode the message's text.
decode(ByteBuffer, MessageCodec) - Static method in class com.mooapi.common.command.client.MessageToConnection
Create a new message to user input command from the data in the specified input buffer, using the specified codec to decode the message's text.
decode(ByteBuffer, MessageCodec) - Static method in class com.mooapi.common.command.client.MessageToServer
Create a new message to server input command from the data in the specified input buffer, using the specified codec to decode the message's text.
decode(ByteBuffer) - Static method in class com.mooapi.common.command.client.NameChange
Create a new name change input command from the data in the specified input buffer.
decode(ByteBuffer) - Static method in class com.mooapi.common.command.client.NameSet
Create a new name set input command from the data in the specified input buffer.
decode(ByteBuffer) - Static method in class com.mooapi.common.command.client.UnknownClientCommand
Create a new ignore command from the specified input buffer.
decode(ByteBuffer) - Static method in class com.mooapi.common.command.server.ChannelDetails
 
decode(ByteBuffer) - Static method in class com.mooapi.common.command.server.ConnectionDetails
 
decode(ByteBuffer) - Static method in class com.mooapi.common.command.server.ConnectionIdAssigned
 
decode(ByteBuffer) - Static method in class com.mooapi.common.command.server.ConnectionJoined
 
decode(ByteBuffer) - Static method in class com.mooapi.common.command.server.ConnectionLeft
 
decode(ByteBuffer) - Static method in class com.mooapi.common.command.server.ConnectionNameChanged
 
decode(ByteBuffer, MessageCodec) - Static method in class com.mooapi.common.command.server.MessageFromConnection
 
decode(ByteBuffer) - Static method in class com.mooapi.common.command.server.MessageOfTheDay
 
decode(byte) - Static method in enum com.mooapi.common.command.server.ServerCommandType
Decode an output command type as found in a byte stream.
decode(ByteBuffer) - Static method in class com.mooapi.common.message.BinaryMessage
Decode the binary message, including the leading type byte.
decode(ByteBuffer) - Static method in class com.mooapi.common.message.IntegerMessage
Decode the integer message, including the leading type byte.
decode(ByteBuffer) - Method in class com.mooapi.common.message.MessageCodec
Decode a byte-stream message.
decode(byte) - Static method in enum com.mooapi.common.message.MessageType
Decoded a message type byte, returning the message type or null if no match is found.
decode(ByteBuffer) - Static method in class com.mooapi.common.message.RawMessage
Decode the raw message.
decode(ByteBuffer, Charset) - Static method in class com.mooapi.common.message.StringMessage
Decode the string message, including the leading type byte, using the specified character set.
decode(ByteBuffer) - Static method in class com.mooapi.common.message.StringMessage
Decode the string message, including the leading type byte, using the default character set.
decodeBytes(ByteBuffer) - Static method in class com.mooapi.common.command.CodecUtils
Parse an input buffer, extracting a byte array.
decodeText(ByteBuffer) - Static method in class com.mooapi.common.command.CodecUtils
Parse an input buffer, extracting a character string.
disconnect() - Method in class com.mooapi.server.MooChannel
Bidirectionally disassociate this channel from all connections.
disconnect() - Method in class com.mooapi.server.MooConnection
Disconnect cleanly from all channels
disconnect(MooConnection) - Method in class com.mooapi.server.MooServer
Drop the MooAPI connection.
doDecode(IoSession, ByteBuffer, ProtocolDecoderOutput) - Method in class com.mooapi.server.protocol.codec.MooServerProtocolDecoder
Parse a stream of bytes.

E

encode() - Method in class com.mooapi.common.command.client.AbstractClientCommand
Encode this command to a new byte buffer.
encode() - Method in class com.mooapi.common.command.client.ChannelJoin
Encode this command to a byte buffer.
encode() - Method in class com.mooapi.common.command.client.ChannelLeave
Encode this command to a byte buffer.
encode() - Method in enum com.mooapi.common.command.client.ClientCommandType
Get the command type's encoded value.
encode() - Method in class com.mooapi.common.command.client.MessageToChannel
Encode this command to a byte buffer.
encode() - Method in class com.mooapi.common.command.client.MessageToConnection
Encode this command to a byte buffer.
encode() - Method in class com.mooapi.common.command.client.MessageToServer
Encode this command to a byte buffer.
encode() - Method in class com.mooapi.common.command.client.NameChange
Encode this command to a byte buffer.
encode() - Method in class com.mooapi.common.command.client.NameSet
Encode this command to a byte buffer.
encode() - Method in class com.mooapi.common.command.client.UnknownClientCommand
This operation is unsupported because the client shouldn't send junk to the server.
encode() - Method in class com.mooapi.common.command.server.AbstractServerCommand
Encode this output command into a byte buffer.
encode() - Method in class com.mooapi.common.command.server.ChannelDetails
Encode this command as a byte stream.
encode() - Method in class com.mooapi.common.command.server.ConnectionDetails
Encode this command as a byte stream.
encode() - Method in class com.mooapi.common.command.server.ConnectionIdAssigned
Encode this command as a byte stream.
encode() - Method in class com.mooapi.common.command.server.ConnectionJoined
Encode this command as a byte stream.
encode() - Method in class com.mooapi.common.command.server.ConnectionLeft
Encode this command as a byte stream.
encode() - Method in class com.mooapi.common.command.server.ConnectionNameChanged
Encode this command as a byte stream.
encode() - Method in class com.mooapi.common.command.server.MessageFromConnection
Encode this command as a byte stream.
encode() - Method in class com.mooapi.common.command.server.MessageOfTheDay
Encode this command as a byte stream.
encode() - Method in enum com.mooapi.common.command.server.ServerCommandType
Encode the output command type.
encode() - Method in class com.mooapi.common.message.AbstractMessage
Encode this message to a buffer.
encode() - Method in class com.mooapi.common.message.AbstractTypedMessage
Encode this message.
encode(AbstractMessage) - Method in class com.mooapi.common.message.MessageCodec
Encode a message to a byte stream.
encode() - Method in enum com.mooapi.common.message.MessageType
Get this message type's encoding.
encode() - Method in class com.mooapi.common.message.RawMessage
Encode the raw message.
encode(IoSession, Object, ProtocolEncoderOutput) - Method in class com.mooapi.server.protocol.codec.MooServerProtocolEncoder
Encode an AbstractOutputCommand into a ByteBuffer.
encodeBody() - Method in class com.mooapi.common.message.AbstractTypedMessage
Encode the body of this message.
encodeBody() - Method in class com.mooapi.common.message.BinaryMessage
Encode the binary data, excluding the leading type byte.
encodeBody() - Method in class com.mooapi.common.message.IntegerMessage
Encode the integer, excluding the leading type byte.
encodeBody() - Method in class com.mooapi.common.message.StringMessage
Encode the string message, excluding the leading type byte.
encodeBytes(byte[]) - Static method in class com.mooapi.common.command.CodecUtils
Encode the specified byte array to a new ByteBuffer.
encodeText(String) - Static method in class com.mooapi.common.command.CodecUtils
Encode the specified string to a new ByteBuffer.
equals(Object) - Method in class com.mooapi.common.command.client.AbstractClientCommand
 
equals(Object) - Method in class com.mooapi.common.command.client.ChannelJoin
 
equals(Object) - Method in class com.mooapi.common.command.client.ChannelLeave
 
equals(Object) - Method in class com.mooapi.common.command.client.MessageToChannel
 
equals(Object) - Method in class com.mooapi.common.command.client.MessageToConnection
 
equals(Object) - Method in class com.mooapi.common.command.client.MessageToServer
 
equals(Object) - Method in class com.mooapi.common.command.client.NameChange
 
equals(Object) - Method in class com.mooapi.common.command.client.NameSet
 
equals(Object) - Method in class com.mooapi.common.command.client.UnknownClientCommand
 
equals(Object) - Method in class com.mooapi.common.command.server.AbstractServerCommand
 
equals(Object) - Method in class com.mooapi.common.command.server.ChannelDetails
 
equals(Object) - Method in class com.mooapi.common.command.server.ConnectionDetails
 
equals(Object) - Method in class com.mooapi.common.command.server.ConnectionIdAssigned
 
equals(Object) - Method in class com.mooapi.common.command.server.ConnectionJoined
 
equals(Object) - Method in class com.mooapi.common.command.server.ConnectionLeft
 
equals(Object) - Method in class com.mooapi.common.command.server.ConnectionNameChanged
 
equals(Object) - Method in class com.mooapi.common.command.server.MessageFromConnection
 
equals(Object) - Method in class com.mooapi.common.command.server.MessageOfTheDay
 
equals(Object) - Method in class com.mooapi.common.message.AbstractMessage
 
equals(Object) - Method in class com.mooapi.common.message.AbstractTypedMessage
Compare this message with another object.
equals(Object) - Method in class com.mooapi.common.message.RawMessage
Compare this raw message with another object.
exceptionCaught(IoSession, Throwable) - Method in class com.mooapi.server.MooIoHandler
Log an exception thrown by a MooAPI connection and close the connection.
execute(Runnable) - Method in class com.mooapi.server.util.ExistingThreadExecutor
Execute the command in the caller's thread.
ExistingThreadExecutor - Class in com.mooapi.server.util
This executor executes a command in the caller's thread.
ExistingThreadExecutor() - Constructor for class com.mooapi.server.util.ExistingThreadExecutor
 

F

filter(C) - Method in interface com.mooapi.server.handler.CommandFilter
Process the specified client command, returning the filtered result.
filterWrite(IoFilter.NextFilter, IoSession, IoFilter.WriteRequest) - Method in class com.mooapi.server.protocol.sniffer.SniffFilter
Pass the unmodified contents through to the next filter.

G

getAttachment() - Method in class com.mooapi.server.MooConnection
Get this connection's attachment.
getChannel(int) - Method in class com.mooapi.server.MooServer
Get the MooAPI channel designated by the specified channel ID.
getChannel(String) - Method in class com.mooapi.server.MooServer
Get the MooAPI channel designated by the specified channel name.
getChannelId() - Method in class com.mooapi.common.command.client.ChannelLeave
Get the channel ID to leave.
getChannelId() - Method in class com.mooapi.common.command.client.MessageToChannel
Get the channel to which the message is sent.
getChannelId() - Method in class com.mooapi.common.command.client.MessageToConnection
Get the destination channel ID.
getChannelId() - Method in class com.mooapi.common.command.server.ChannelDetails
Get the channel ID the client just connected to.
getChannelId() - Method in class com.mooapi.common.command.server.ConnectionDetails
Get the channel ID.
getChannelId() - Method in class com.mooapi.common.command.server.ConnectionJoined
Get the channel ID that was joined.
getChannelId() - Method in class com.mooapi.common.command.server.ConnectionLeft
Get the channel ID from which the connection has left.
getChannelId() - Method in class com.mooapi.common.command.server.MessageFromConnection
Get the ID of the channel to which the message is sent.
getChannelIdProvider() - Method in class com.mooapi.server.MooServer
Get the channel ID provider.
getChannelName() - Method in class com.mooapi.common.command.client.ChannelJoin
Get this command's channel name.
getChannelName() - Method in class com.mooapi.common.command.server.ChannelDetails
Get the channel name.
getChannelsById() - Method in class com.mooapi.server.MooServer
Get the map of channels by ID.
getChannelsByName() - Method in class com.mooapi.server.MooServer
Get the map of channels by name.
getConnection(IoSession) - Method in class com.mooapi.server.MooServer
Get the MooAPI connection associated with the specified Apache MINA session.
getConnection(int) - Method in class com.mooapi.server.MooServer
Get the MooAPI connection associated with the specified connection ID.
getConnectionCount() - Method in class com.mooapi.server.MooChannel
Get the number of connections subscribed to this channel.
getConnectionId() - Method in class com.mooapi.common.command.client.MessageToConnection
Get the destination connection ID.
getConnectionId() - Method in class com.mooapi.common.command.server.ChannelDetails
Get the ID of the connection receiving this command.
getConnectionId() - Method in class com.mooapi.common.command.server.ConnectionDetails
Get the connection ID.
getConnectionId() - Method in class com.mooapi.common.command.server.ConnectionIdAssigned
Get the connection ID.
getConnectionId() - Method in class com.mooapi.common.command.server.ConnectionJoined
Get the connection ID that has joined.
getConnectionId() - Method in class com.mooapi.common.command.server.ConnectionLeft
Get the connection ID that has left.
getConnectionId() - Method in class com.mooapi.common.command.server.ConnectionNameChanged
Get the connection ID that has changed its name.
getConnectionIdProvider() - Method in class com.mooapi.server.MooServer
Get the connection ID provider.
getConnectionIpAddress() - Method in class com.mooapi.common.command.server.ChannelDetails
Get the IP address of the connection.
getConnectionIpAddress() - Method in class com.mooapi.common.command.server.ConnectionDetails
Get the connection's IP address.
getConnectionIpAddress() - Method in class com.mooapi.common.command.server.ConnectionJoined
Get the IP address of the connection that has joined.
getConnectionName() - Method in class com.mooapi.common.command.server.ChannelDetails
Get the name of the connection.
getConnectionName() - Method in class com.mooapi.common.command.server.ConnectionDetails
Get the connection name.
getConnectionName() - Method in class com.mooapi.common.command.server.ConnectionJoined
Get the name of the connection that has joined.
getConnectionName() - Method in class com.mooapi.common.command.server.ConnectionNameChanged
Get the connection's new name.
getConnectionName(IoSession) - Static method in class com.mooapi.server.protocol.sniffer.SniffFilter
Get the name of the connection associated with the specified MINA connection.
getConnectionsById() - Method in class com.mooapi.server.MooServer
Get the map of connections by ID.
getEncodedLength() - Method in class com.mooapi.common.message.AbstractMessage
Get the length, in bytes, of this message when encoded.
getEncodedLength() - Method in class com.mooapi.common.message.BinaryMessage
 
getEncodedLength() - Method in class com.mooapi.common.message.IntegerMessage
 
getEncodedLength() - Method in class com.mooapi.common.message.RawMessage
 
getEncodedLength() - Method in class com.mooapi.common.message.StringMessage
 
getId() - Method in class com.mooapi.server.MooChannel
Get this channel's ID.
getId() - Method in class com.mooapi.server.MooConnection
Get this connection's ID.
getIdleTime() - Method in class com.mooapi.server.MooIoHandler
Get the time, in milliseconds, to wait before polling for incoming connections.
getInputBufferSize() - Method in class com.mooapi.server.MooIoHandler
Get the input buffer size in bytes.
getIpAddress() - Method in class com.mooapi.server.MooConnection
Get this connection's IP address.
getMasterConnection() - Method in class com.mooapi.server.MooChannel
Get this channel's master connection.
getMasterConnectionId() - Method in class com.mooapi.common.command.server.ChannelDetails
Get the channel's master connection ID.
getMasterConnectionId() - Method in class com.mooapi.common.command.server.ConnectionDetails
Get the channel's master connection ID.
getMasterConnectionId() - Method in class com.mooapi.common.command.server.ConnectionJoined
Get the channel's master connection ID.
getMasterConnectionId() - Method in class com.mooapi.common.command.server.ConnectionLeft
Get the channel's master connection ID.
getMessage() - Method in class com.mooapi.common.command.client.MessageToChannel
Get the message.
getMessage() - Method in class com.mooapi.common.command.client.MessageToConnection
Get the message.
getMessage() - Method in class com.mooapi.common.command.client.MessageToServer
Get the message.
getMessage() - Method in class com.mooapi.common.command.server.MessageFromConnection
Get the message
getMessage() - Method in class com.mooapi.common.message.AbstractMessage
 
getMessageCodec() - Method in class com.mooapi.common.command.client.ClientCommandCodec
 
getMooServer() - Method in class com.mooapi.server.MooIoHandler
Get the MooAPI server instance.
getMooServer() - Method in class com.mooapi.server.protocol.codec.MooServerProtocolEncoder
Get the MooAPI server instance.
getMooServerHandler() - Method in class com.mooapi.server.MooServer
Get this server's event handler.
getMotd() - Method in class com.mooapi.common.command.server.MessageOfTheDay
Get the message of the day.
getMotd() - Method in class com.mooapi.server.MooServer
Get the message of the day.
getName() - Method in class com.mooapi.common.command.client.NameChange
Get the connection's new name.
getName() - Method in class com.mooapi.common.command.client.NameSet
Get the connection's name
getName() - Method in class com.mooapi.server.MooChannel
Get this channel's name.
getName() - Method in class com.mooapi.server.MooConnection
Get this connection's name.
getNextId() - Method in class com.mooapi.server.util.SequenceIdProvider
Get the next value that will be returned from a call to acquireId().
getPeer() - Method in class com.mooapi.server.MooConnection
Get this connection's peer, which is a MINA connection.
getSourceConnectionId() - Method in class com.mooapi.common.command.server.MessageFromConnection
Get the connection ID of the message sender.
getSubchannel() - Method in class com.mooapi.common.command.client.MessageToChannel
Get the subchannel on which the message is sent.
getSubchannel() - Method in class com.mooapi.common.command.client.MessageToConnection
Get the subchannel on which the message is sent.
getSubchannel() - Method in class com.mooapi.common.command.client.MessageToServer
Get the subchannel on which the message is sent.
getSubchannel() - Method in class com.mooapi.common.command.server.MessageFromConnection
Get the subchannel on which the message is sent.
getType() - Method in class com.mooapi.common.command.client.AbstractClientCommand
Get this input command's type.
getType() - Method in class com.mooapi.common.command.server.AbstractServerCommand
Get this output command's type.
getType() - Method in class com.mooapi.common.message.AbstractTypedMessage
Get this message's type.
getType() - Method in class com.mooapi.common.message.BinaryMessage
 
getType() - Method in class com.mooapi.common.message.IntegerMessage
 
getType() - Method in class com.mooapi.common.message.StringMessage
 
go() - Method in class com.mooapi.server.Launcher
Launch the MooAPI game server.

H

hashCode() - Method in class com.mooapi.common.command.client.AbstractClientCommand
 
hashCode() - Method in class com.mooapi.common.command.client.ChannelJoin
 
hashCode() - Method in class com.mooapi.common.command.client.ChannelLeave
 
hashCode() - Method in class com.mooapi.common.command.client.MessageToChannel
 
hashCode() - Method in class com.mooapi.common.command.client.MessageToConnection
 
hashCode() - Method in class com.mooapi.common.command.client.MessageToServer
 
hashCode() - Method in class com.mooapi.common.command.client.NameChange
 
hashCode() - Method in class com.mooapi.common.command.client.NameSet
 
hashCode() - Method in class com.mooapi.common.command.client.UnknownClientCommand
 
hashCode() - Method in class com.mooapi.common.command.server.AbstractServerCommand
 
hashCode() - Method in class com.mooapi.common.command.server.ChannelDetails
 
hashCode() - Method in class com.mooapi.common.command.server.ConnectionDetails
 
hashCode() - Method in class com.mooapi.common.command.server.ConnectionIdAssigned
 
hashCode() - Method in class com.mooapi.common.command.server.ConnectionJoined
 
hashCode() - Method in class com.mooapi.common.command.server.ConnectionLeft
 
hashCode() - Method in class com.mooapi.common.command.server.ConnectionNameChanged
 
hashCode() - Method in class com.mooapi.common.command.server.MessageFromConnection
 
hashCode() - Method in class com.mooapi.common.command.server.MessageOfTheDay
 
hashCode() - Method in class com.mooapi.common.message.AbstractMessage
 
hashCode() - Method in class com.mooapi.common.message.AbstractTypedMessage
Return the hashcode of this message's raw message equivalent's array.
hashCode() - Method in class com.mooapi.common.message.RawMessage
Return this message's array's hashcode.

I

IdProvider<T> - Interface in com.mooapi.server.util
This interface defines a service that provides unique IDs of the specified type.
IntegerMessage - Class in com.mooapi.common.message
Integer message base type.
IntegerMessage(Integer) - Constructor for class com.mooapi.common.message.IntegerMessage
Wrap the specified integer.
IoSessionAttributeKeys - Interface in com.mooapi.server
Keys to attributes attached to IoSessions

J

join(MooConnection) - Method in class com.mooapi.server.MooChannel
Notify this session that a connection has joined.
join(MooChannel) - Method in class com.mooapi.server.MooConnection
Add a channel to this connection's channel list

L

Launcher - Class in com.mooapi.server
This class provides entry points into the MooAPI Game Server.
Launcher(String...) - Constructor for class com.mooapi.server.Launcher
Initialize this MooAPI server launcher, specifying the Spring Framework configuration file to use.
Launcher() - Constructor for class com.mooapi.server.Launcher
Initialize this MooAPI server launcher, using the default configuration options.
leave(MooConnection) - Method in class com.mooapi.server.MooChannel
Remove the specified connection from this channel, notifying all the remaining connections.
leave(MooChannel) - Method in class com.mooapi.server.MooConnection
Remove a channel from this connection's channel list
leaveAll() - Method in class com.mooapi.server.MooConnection
Leave all channels.
logger - Static variable in class com.mooapi.server.Launcher
 

M

main(String[]) - Static method in class com.mooapi.server.Launcher
Launch the MooAPI game server.
MessageCodec - Class in com.mooapi.common.message
 
MessageCodec(Charset) - Constructor for class com.mooapi.common.message.MessageCodec
Create a message codec using the specified character set for string decoding/encoding.
MessageCodec() - Constructor for class com.mooapi.common.message.MessageCodec
Create a message codec using the default character set for string decoding/encoding.
MessageFromConnection<T extends AbstractMessage> - Class in com.mooapi.common.command.server
MooAPI message output command.
MessageFromConnection(short, int, int, T) - Constructor for class com.mooapi.common.command.server.MessageFromConnection
Initialize.
MessageFromServer<T extends AbstractMessage> - Class in com.mooapi.common.command.server
MooAPI server message output command.
MessageFromServer(short, T) - Constructor for class com.mooapi.common.command.server.MessageFromServer
Initialize.
MessageOfTheDay - Class in com.mooapi.common.command.server
MooAPI MOTD output command.
MessageOfTheDay(String) - Constructor for class com.mooapi.common.command.server.MessageOfTheDay
Initialize.
messageReceived(IoSession, Object) - Method in class com.mooapi.server.MooIoHandler
Convert the incoming byte stream into a MooAPI command and process it.
messageReceived(IoFilter.NextFilter, IoSession, Object) - Method in class com.mooapi.server.protocol.sniffer.SniffFilter
Print the received message to standard output.
messageSent(IoSession, Object) - Method in class com.mooapi.server.MooIoHandler
This is called by MINA to handle outgoing data.
messageSent(IoFilter.NextFilter, IoSession, Object) - Method in class com.mooapi.server.protocol.sniffer.SniffFilter
Print the sent message to standard output.
MessageToChannel<T extends AbstractMessage> - Class in com.mooapi.common.command.client
MooAPI message to channel input command.
MessageToChannel(T, int, short) - Constructor for class com.mooapi.common.command.client.MessageToChannel
Create a new message to channel input command.
MessageToConnection<T extends AbstractMessage> - Class in com.mooapi.common.command.client
MooAPI message to user input command.
MessageToConnection(T, int, int, short) - Constructor for class com.mooapi.common.command.client.MessageToConnection
Create a new message to user input command.
MessageToServer<T extends AbstractMessage> - Class in com.mooapi.common.command.client
MooAPI message to server input command.
MessageToServer(T, short) - Constructor for class com.mooapi.common.command.client.MessageToServer
Create a new message to server input command.
MessageType - Enum in com.mooapi.common.message
MooAPI message type.
MooChannel - Class in com.mooapi.server
This class implements MooAPI channels.
MooChannel(int, String) - Constructor for class com.mooapi.server.MooChannel
Initialize a MooAPI channel.
MooConnection - Class in com.mooapi.server
This class implements MooAPI connections.
MooConnection(int, String, IoSession, MooServer) - Constructor for class com.mooapi.server.MooConnection
Create a MooAPI connection.
MooIoHandler - Class in com.mooapi.server
Apache MINA IoHandler implementation for the MooAPI server.
MooIoHandler(MooServer, String, int, int) - Constructor for class com.mooapi.server.MooIoHandler
Initialize this handler.
MooIoHandler() - Constructor for class com.mooapi.server.MooIoHandler
Delegate initialization to the relevant property setters.
MooServer - Class in com.mooapi.server
 
MooServer(IdProvider<Integer>, IdProvider<Integer>, MooServerHandler) - Constructor for class com.mooapi.server.MooServer
Initialize this MooAPI server.
MooServer() - Constructor for class com.mooapi.server.MooServer
Create a MooServer object, delegating initialization to the relevant property setters.
MooServerAdapter - Class in com.mooapi.server.handler
This is a default implementation of MooConnectionHandler.
MooServerAdapter() - Constructor for class com.mooapi.server.handler.MooServerAdapter
 
MooServerHandler - Interface in com.mooapi.server.handler
Implement this interface to provide command filtering, server-side gameplay or for any reason you see fit.
MooServerProtocolDecoder - Class in com.mooapi.server.protocol.codec
MooAPI input parser.
MooServerProtocolDecoder(MooServer) - Constructor for class com.mooapi.server.protocol.codec.MooServerProtocolDecoder
Initialize.
MooServerProtocolDecoder() - Constructor for class com.mooapi.server.protocol.codec.MooServerProtocolDecoder
Delegate initialization to the relevant property setters.
MooServerProtocolEncoder - Class in com.mooapi.server.protocol.codec
An encoder for commands from the server to clients
MooServerProtocolEncoder(MooServer) - Constructor for class com.mooapi.server.protocol.codec.MooServerProtocolEncoder
Initialize.
MooServerProtocolEncoder() - Constructor for class com.mooapi.server.protocol.codec.MooServerProtocolEncoder
Delegate initialization to the appropriate property setters.

N

NameChange - Class in com.mooapi.common.command.client
MooAPI name change input command.
NameChange(String) - Constructor for class com.mooapi.common.command.client.NameChange
Create a new name change input command.
NameSet - Class in com.mooapi.common.command.client
MooAPI name set input command.
NameSet(String) - Constructor for class com.mooapi.common.command.client.NameSet
Create a new name set input command.

O

onChannelCreated(MooConnection, MooChannel) - Method in class com.mooapi.server.handler.MooServerAdapter
 
onChannelCreated(MooConnection, MooChannel) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called when a channel has been created.
onChannelDestroyed(MooChannel) - Method in class com.mooapi.server.handler.MooServerAdapter
 
onChannelDestroyed(MooChannel) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called when a channel has been destroyed.
onChannelJoined(MooConnection, MooChannel) - Method in class com.mooapi.server.handler.MooServerAdapter
 
onChannelJoined(MooConnection, MooChannel) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called when a connection has joined a channel.
onChannelLeft(MooConnection, MooChannel) - Method in class com.mooapi.server.handler.MooServerAdapter
 
onChannelLeft(MooConnection, MooChannel) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called when a connection has left a channel.
onChannelLimitReached() - Method in class com.mooapi.server.handler.MooServerAdapter
 
onChannelLimitReached() - Method in interface com.mooapi.server.handler.MooServerHandler
This is called when the channel limit has been reached.
onConnectionLimitReached() - Method in class com.mooapi.server.handler.MooServerAdapter
 
onConnectionLimitReached() - Method in interface com.mooapi.server.handler.MooServerHandler
This is called when the connection limit has been reached.
onDisconnected(MooConnection) - Method in class com.mooapi.server.handler.MooServerAdapter
 
onDisconnected(MooConnection) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called when a connection has disconnected from the server.
onError(MooConnection, Throwable) - Method in class com.mooapi.server.handler.MooServerAdapter
 
onError(MooConnection, Throwable) - Method in interface com.mooapi.server.handler.MooServerHandler
This is called when an error is thrown.

P

PooledIdProvider - Class in com.mooapi.server.util
This class implements a pool-based integer ID provider.
PooledIdProvider(int, int) - Constructor for class com.mooapi.server.util.PooledIdProvider
Initialize the ID pool with a sequence of size IDs starting at firstId and incrementing by 1.
PooledIdProvider(int) - Constructor for class com.mooapi.server.util.PooledIdProvider
Equivalent to PooledIdProvider(0, size).
process(MooConnection, C) - Method in interface com.mooapi.server.CommandProcessor
Process the specified input or output command.
process(MooConnection, C) - Method in class com.mooapi.server.handler.ThreadedCommandFilter
Process the specified command.
process(MooConnection, AbstractClientCommand) - Method in class com.mooapi.server.MooServer
Send the specified command to the specified connection.
processCommand(AbstractClientCommand) - Method in class com.mooapi.server.MooConnection
Process a command from this connection.

R

RawMessage - Class in com.mooapi.common.message
Raw message type.
RawMessage(byte[]) - Constructor for class com.mooapi.common.message.RawMessage
Wrap a byte array.
releaseId(T) - Method in interface com.mooapi.server.util.IdProvider
Release an ID to this provider.
releaseId(Integer) - Method in class com.mooapi.server.util.PooledIdProvider
Release an ID to this provider.
releaseId(Integer) - Method in class com.mooapi.server.util.SequenceIdProvider
Release an ID to this provider.
removeChannel(MooChannel) - Method in class com.mooapi.server.MooServer
Remove the specified MooAPI channel.
removeChannel(int) - Method in class com.mooapi.server.MooServer
Remove the MooAPI channel associated with the specified ID.
removeChannel(String) - Method in class com.mooapi.server.MooServer
Remove the MooAPI channel with the specified name.

S

sendChannelJoinDetails(MooChannel) - Method in class com.mooapi.server.MooConnection
Notify this connection that it has joined a channel.
sendConnectionInfo(MooConnection, MooChannel) - Method in class com.mooapi.server.MooConnection
Notify this connection of an existing connection in the specified channel.
sendConnectionJoin(MooConnection, MooChannel) - Method in class com.mooapi.server.MooConnection
Notify this connection of a new connection in the specified channel.
sendConnectionLeft(MooConnection, MooChannel) - Method in class com.mooapi.server.MooConnection
Notify this MooConnection that another MooConnection has left a MooChannel to which they are both subscribed.
sendMessage(MooConnection, short, T) - Method in class com.mooapi.server.MooChannel
Send a message to this channel from a connection.
sendMessage(MooConnection, MooChannel, short, T) - Method in class com.mooapi.server.MooConnection
Send a message from a MooAPI connection.
sendMessageFromServer(T, short) - Method in class com.mooapi.server.MooConnection
Send message from the server (i.e.
sendMotd(String) - Method in class com.mooapi.server.MooConnection
Send the message of the day.
sendNameChange(MooConnection, String) - Method in class com.mooapi.server.MooChannel
Notify this channel of a connection name change.
sendNameChange(MooConnection) - Method in class com.mooapi.server.MooConnection
Notify this MooConnection that another MooConnection changed its name.
sendUserId() - Method in class com.mooapi.server.MooConnection
Send the ID of this connection.
SequenceIdProvider - Class in com.mooapi.server.util
This class implements a sequence-based integer ID provider.
SequenceIdProvider() - Constructor for class com.mooapi.server.util.SequenceIdProvider
Initialize the sequence generator such that the first call to acquireId() will return 0;
SequenceIdProvider(int) - Constructor for class com.mooapi.server.util.SequenceIdProvider
Initialize the sequence generator such that the first call to acquireId() will return nextId
ServerCommandCodec - Class in com.mooapi.common.command.server
 
ServerCommandCodec() - Constructor for class com.mooapi.common.command.server.ServerCommandCodec
 
ServerCommandType - Enum in com.mooapi.common.command.server
MooAPI server output command type.
sessionClosed(IoSession) - Method in class com.mooapi.server.MooIoHandler
Remove the MooAPI connection associated with the MINA connection.
sessionCreated(IoSession) - Method in class com.mooapi.server.MooIoHandler
Initialize the incoming connection.
sessionIdle(IoSession, IdleStatus) - Method in class com.mooapi.server.MooIoHandler
Called by MINA.
sessionOpened(IoSession) - Method in class com.mooapi.server.MooIoHandler
Create a MooAPI connection from the inbound MINA connection.
setAttachment(Object) - Method in class com.mooapi.server.MooConnection
Set this connection's attachment.
setChannelIdProvider(IdProvider<Integer>) - Method in class com.mooapi.server.MooServer
Set the channel ID provider.
setChannelsById(Map<Integer, MooChannel>) - Method in class com.mooapi.server.MooServer
Set the map of channels by ID.
setChannelsByName(Map<String, MooChannel>) - Method in class com.mooapi.server.MooServer
Set the map of channels by name.
setCharset(Charset) - Method in class com.mooapi.common.message.MessageCodec
Set the character set used to decode string messages.
setClientCommandCodec(ClientCommandCodec) - Method in class com.mooapi.server.protocol.codec.MooServerProtocolDecoder
Set the codec used to encode/decode client commands.
setConnectionIdProvider(IdProvider<Integer>) - Method in class com.mooapi.server.MooServer
Set the connection ID provider.
setConnectionsById(Map<Integer, MooConnection>) - Method in class com.mooapi.server.MooServer
Set the map of connections by ID.
setDebug(boolean) - Method in class com.mooapi.server.protocol.codec.MooServerProtocolDecoder
Set the debugging status.
setDebug(boolean) - Method in class com.mooapi.server.protocol.codec.MooServerProtocolEncoder
Set the debugging status.
setDebug(boolean) - Method in class com.mooapi.server.protocol.sniffer.SniffFilter
Set the debugging status.
setIdleTime(int) - Method in class com.mooapi.server.MooIoHandler
Set the time, in milliseconds, to wait before polling for incoming connections.
setInputBufferSize(int) - Method in class com.mooapi.server.MooIoHandler
Set the input buffer size in bytes.
setMessageCodec(MessageCodec) - Method in class com.mooapi.common.command.client.ClientCommandCodec
 
setMessageCodec(MessageCodec) - Method in class com.mooapi.server.protocol.codec.MooServerProtocolDecoder
Set the codec used to encode/decode messages.
setMooServer(MooServer) - Method in class com.mooapi.server.MooIoHandler
Set the MooAPI server instance.
setMooServer(MooServer) - Method in class com.mooapi.server.protocol.codec.MooServerProtocolDecoder
Set the MooAPI server instance.
setMooServer(MooServer) - Method in class com.mooapi.server.protocol.codec.MooServerProtocolEncoder
Set the MooAPI server instance.
setMooServerHandler(MooServerHandler) - Method in class com.mooapi.server.MooServer
Set this server's event handler.
setMotd(String) - Method in class com.mooapi.server.MooServer
Set the message of the day.
setNextId(int) - Method in class com.mooapi.server.util.SequenceIdProvider
Set the next value to be returned by acquireId().
SniffFilter - Class in com.mooapi.server.protocol.sniffer
A protocol sniffer for debugging purposes.
SniffFilter() - Constructor for class com.mooapi.server.protocol.sniffer.SniffFilter
 
stop() - Method in class com.mooapi.server.Launcher
Stop the MooAPI game server.
StringMessage - Class in com.mooapi.common.message
This class represents a string message that can be sent as part of a message command between MooAPI clients and servers.
StringMessage(String, Charset) - Constructor for class com.mooapi.common.message.StringMessage
Create a string message from a string, using the specified character set to encode it.
StringMessage(String) - Constructor for class com.mooapi.common.message.StringMessage
Create a string message from a string, using the default character set to encode it.
StringMessage(byte[], Charset) - Constructor for class com.mooapi.common.message.StringMessage
Create a string message from a byte array, using the specified character set to decode it.
StringMessage(byte[]) - Constructor for class com.mooapi.common.message.StringMessage
Create a string message from a byte array, using the default character set to decode it.

T

ThreadedCommandFilter<C extends Command> - Class in com.mooapi.server.handler
This class implements a threaded filtering command processor.
ThreadedCommandFilter(CommandFilter, CommandProcessor, int) - Constructor for class com.mooapi.server.handler.ThreadedCommandFilter
 
toString() - Method in class com.mooapi.common.command.client.AbstractClientCommand
Ensure concrete descendants implement toString().
toString() - Method in class com.mooapi.common.command.client.ChannelJoin
Generate a string representation of this command.
toString() - Method in class com.mooapi.common.command.client.ChannelLeave
Generate a string representation of this command.
toString() - Method in class com.mooapi.common.command.client.MessageToChannel
Generate a string representation of this command.
toString() - Method in class com.mooapi.common.command.client.MessageToConnection
Generate a string representation of this command.
toString() - Method in class com.mooapi.common.command.client.MessageToServer
Generate a string representation of this command.
toString() - Method in class com.mooapi.common.command.client.NameChange
Generate a string representation of this command.
toString() - Method in class com.mooapi.common.command.client.NameSet
Generate a string representation of this command.
toString() - Method in class com.mooapi.common.command.client.UnknownClientCommand
Generate a string representation of this command.
toString() - Method in class com.mooapi.common.command.server.AbstractServerCommand
 
toString() - Method in class com.mooapi.common.command.server.ChannelDetails
Generate a string representation of this message.
toString() - Method in class com.mooapi.common.command.server.ConnectionDetails
Generate a string representation of this message.
toString() - Method in class com.mooapi.common.command.server.ConnectionIdAssigned
Generate a string representation of this message.
toString() - Method in class com.mooapi.common.command.server.ConnectionJoined
Generate a string representation of this message.
toString() - Method in class com.mooapi.common.command.server.ConnectionLeft
Generate a string representation of this message.
toString() - Method in class com.mooapi.common.command.server.ConnectionNameChanged
Generate a string representation of this message.
toString() - Method in class com.mooapi.common.command.server.MessageFromConnection
Generate a string representation of this message.
toString() - Method in class com.mooapi.common.command.server.MessageOfTheDay
Generate a string representation of this message.
toString() - Method in class com.mooapi.common.message.AbstractTypedMessage
Generate a string representation of this message.
toString() - Method in class com.mooapi.common.message.RawMessage
Generate a string representation of this message.
toString() - Method in class com.mooapi.server.MooChannel
 
toString() - Method in class com.mooapi.server.MooConnection
 

U

UnknownClientCommand - Class in com.mooapi.common.command.client
MooAPI ignore command.
UnknownClientCommand() - Constructor for class com.mooapi.common.command.client.UnknownClientCommand
Create a new ignore input command.

V

valueOf(String) - Static method in enum com.mooapi.common.command.client.ClientCommandType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mooapi.common.command.server.ServerCommandType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mooapi.common.message.MessageType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.mooapi.common.command.client.ClientCommandType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mooapi.common.command.server.ServerCommandType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mooapi.common.message.MessageType
Returns an array containing the constants of this enum type, in the order they are declared.

A B C D E F G H I J L M N O P R S T U V

Copyright © 2009. All Rights Reserved.