org.objectweb.petals.tools.webadmin.bo
Class Message

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Object>
          extended by org.objectweb.petals.tools.webadmin.bo.Message
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class Message
extends java.util.HashMap<java.lang.String,java.lang.Object>

represents a message : HashMap containings time, component, role, type, status

See Also:
Serialized Form

Constructor Summary
Message(java.util.Map<java.lang.String,java.lang.Object> hashMessage)
          Creates a new Message with a HashMap containing base informations
 
Method Summary
 java.lang.String getComponent()
          Returns the component name of the message
 java.lang.String getContainer()
          Returns the container name of the message
 java.lang.String getContent()
          Returns the content of the message
 java.lang.String getEndpointName()
          Returns the name of the endpoint of the message
 java.lang.String getId()
          Returns the id of the message
 java.lang.String getRole()
          Returns the role of the message
 java.lang.String getServiceName()
          Returns the name of the endpoint of the message
 java.lang.String getStatus()
          Returns the status of the message
 long getTime()
          Returns the timestamp of the message
 java.lang.String getType()
          Returns the type of the message
 void setComponent(java.lang.String component)
          Sets the component's name
 void setContainer(java.lang.String container)
          Sets the container's name
 void setContent(java.lang.String content)
          Sets the message's content
 void setEndpointName(java.lang.String endpointName)
          Sets the new name of the endpoint of the message
 void setId(java.lang.String id)
          Sets the message's id
 void setRole(java.lang.String role)
          Sets the message's role
 void setServiceName(java.lang.String serviceName)
          Sets the new name of the service of the message
 void setStatus(java.lang.String status)
          Sets the message's status
 void setTime(long time)
          Sets the message's time
 void setType(java.lang.String type)
          Sets the message's type
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Message

public Message(java.util.Map<java.lang.String,java.lang.Object> hashMessage)
Creates a new Message with a HashMap containing base informations

Parameters:
hashMessage - Map representation of the message
Method Detail

getComponent

public java.lang.String getComponent()
Returns the component name of the message

Returns:
the component name as a String

getContainer

public java.lang.String getContainer()
Returns the container name of the message

Returns:
the container name as a String

getContent

public java.lang.String getContent()
Returns the content of the message

Returns:
the content as a String, null if message has no content

getEndpointName

public java.lang.String getEndpointName()
Returns the name of the endpoint of the message

Returns:
a String representation of the name of the endpoint

getId

public java.lang.String getId()
Returns the id of the message

Returns:
the id as a string

getRole

public java.lang.String getRole()
Returns the role of the message

Returns:
the role as a string

getServiceName

public java.lang.String getServiceName()
Returns the name of the endpoint of the message

Returns:
a String representation of the endpoint's name

getStatus

public java.lang.String getStatus()
Returns the status of the message

Returns:
the status as a string

getTime

public long getTime()
Returns the timestamp of the message

Returns:
a timestamp

getType

public java.lang.String getType()
Returns the type of the message

Returns:
the type as a String, null if message has no type

setComponent

public void setComponent(java.lang.String component)
Sets the component's name

Parameters:
component - the string that is to be the component's name

setContainer

public void setContainer(java.lang.String container)
Sets the container's name

Parameters:
container - the string that is to be the container's name

setContent

public void setContent(java.lang.String content)
Sets the message's content

Parameters:
content - the content, as a String

setEndpointName

public void setEndpointName(java.lang.String endpointName)
Sets the new name of the endpoint of the message

Parameters:
serviceName - a String representation of the new endpoint

setId

public void setId(java.lang.String id)
Sets the message's id

Parameters:
id - the message id

setRole

public void setRole(java.lang.String role)
Sets the message's role

Parameters:
role - the string that is to be the message's role

setServiceName

public void setServiceName(java.lang.String serviceName)
Sets the new name of the service of the message

Parameters:
serviceName - a String representation of the new name

setStatus

public void setStatus(java.lang.String status)
Sets the message's status

Parameters:
status - the string that is to be the message's status

setTime

public void setTime(long time)
Sets the message's time

Parameters:
time - a timestamp

setType

public void setType(java.lang.String type)
Sets the message's type

Parameters:
type - the string that is to be the message's type


Copyright © 2005-2007 ObjectWeb Consortium. All Rights Reserved.