PageBoxLib
Class TokenMsg

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

class TokenMsg
extends java.lang.Object
implements java.io.Serializable

Token ring message.

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

Field Summary
 java.lang.String archive
          Archive name
 java.util.HashMap msgs
          Message map.
 java.lang.String origin
          URL of the Deploy Web service of the origin PageBox
 java.lang.String target
          URL of the Deploy Web service of the target PageBox, null in case of broadcast
 
Constructor Summary
(package private) TokenMsg()
          Default constructor.
(package private) TokenMsg(java.lang.String o, java.lang.String t, java.lang.String a)
          Constructor.
 
Method Summary
(package private)  void add(java.lang.String type, int corrid, byte[] data)
          Add a new message to TokenMsg.
(package private)  void trace(Log log)
          Trace the message content for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

origin

public java.lang.String origin
URL of the Deploy Web service of the origin PageBox


target

public java.lang.String target
URL of the Deploy Web service of the target PageBox, null in case of broadcast


archive

public java.lang.String archive
Archive name


msgs

public java.util.HashMap msgs
Message map.
Constructor Detail

TokenMsg

TokenMsg()
Default constructor.


TokenMsg

TokenMsg(java.lang.String o,
         java.lang.String t,
         java.lang.String a)
Constructor.

Parameters:
o - URL of the Deploy Web service of the origin PageBox
t - URL of the Deploy Web service of the target PageBox, null in case of broadcast
a - archive name
Method Detail

add

void add(java.lang.String type,
         int corrid,
         byte[] data)
Add a new message to TokenMsg.

Parameters:
corrid - correlation ID
data - payload

trace

void trace(Log log)
Trace the message content for debugging. Called by TokenCallbackImpl and TokenFrame.

Parameters:
log - logging object