com.syncbuilder.service
Class ServiceMessage

java.lang.Object
  |
  +--com.syncbuilder.service.ServiceMessage

public class ServiceMessage
extends java.lang.Object

A message from a service. Contains message-text as well as a level of severity.


Field Summary
static int LVL_DEBUG
           
static int LVL_FAILURE
           
static int LVL_NORMAL
           
static int LVL_WARNING
           
 
Constructor Summary
ServiceMessage(java.lang.String msg)
          Construct a ServiceMessage with the specified message-text and a NORMAL level of severity.
ServiceMessage(java.lang.String msg, int level)
          Construct a ServiceMessage with the specified message-text and the specified level of severity (use the LVL_* constants).
 
Method Summary
 int getLevel()
           
 java.lang.String getLevelName()
           
 java.lang.String getMessageText()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LVL_DEBUG

public static final int LVL_DEBUG

LVL_NORMAL

public static final int LVL_NORMAL

LVL_WARNING

public static final int LVL_WARNING

LVL_FAILURE

public static final int LVL_FAILURE
Constructor Detail

ServiceMessage

public ServiceMessage(java.lang.String msg)
Construct a ServiceMessage with the specified message-text and a NORMAL level of severity.

ServiceMessage

public ServiceMessage(java.lang.String msg,
                      int level)
Construct a ServiceMessage with the specified message-text and the specified level of severity (use the LVL_* constants).
Method Detail

getMessageText

public java.lang.String getMessageText()

getLevel

public int getLevel()

getLevelName

public java.lang.String getLevelName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.