PageBoxLib
Class Message

java.lang.Object
  extended byPageBoxLib.Message
All Implemented Interfaces:
java.io.Serializable

public class Message
extends java.lang.Object
implements java.io.Serializable

Describes messages stored in the msgs map of TokenMsg.

alexis.grandemange@pagebox.net

Copyright (c) 2002-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 11
Author:
Alexis Grandemange
See Also:
Serialized Form

Field Summary
 java.util.HashMap codes
          Return code map.
 byte[] data
          Payload
 java.lang.String type
          Request type
 
Constructor Summary
(package private) Message()
          Default constructor
(package private) Message(java.lang.String type, byte[] data)
          Constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public java.lang.String type
Request type


data

public byte[] data
Payload


codes

public java.util.HashMap codes
Return code map.

Constructor Detail

Message

Message()
Default constructor


Message

Message(java.lang.String type,
        byte[] data)
Constructor.

Parameters:
type - request type
data - payload