de.jiac.micro.core.io
Interface IMessage

All Superinterfaces:
IFact, com.github.libxjava.io.ISerialisable

public interface IMessage
extends IFact

The IMessage interface introduces the features for a application message. With the aid of this interface the application is able to set the message content or the message header. It's also possible to read the content from the message and evaluate it.

Author:
Vladimir Schöner

Nested Class Summary
static interface IMessage.DefaultHeader
           
 
Method Summary
 Object getContent()
          The getter method for message content.
 String getHeader(String key)
          The getter method for the given key.
 Enumeration getHeaderKeys()
          The getter method for all keys which exists in the header.
 void setContent(Object content)
          The setter method for the header.
 void setHeader(String key, String value)
          The setter method for the header.
 
Methods inherited from interface com.github.libxjava.io.ISerialisable
deserialise, serialise
 

Method Detail

setHeader

void setHeader(String key,
               String value)
The setter method for the header.

Parameters:
key - the key for that header.
value - the value for the header.

setContent

void setContent(Object content)
The setter method for the header.

Parameters:
content - the content for the header.

getHeaderKeys

Enumeration getHeaderKeys()
The getter method for all keys which exists in the header.

Returns:
the value for all header keys.

getContent

Object getContent()
The getter method for message content.

Returns:
the message content.

getHeader

String getHeader(String key)
The getter method for the given key.

Parameters:
key - the key for that header.
Returns:
the value for the given key.


Copyright © 2008-2011 DAI-Labor. All Rights Reserved.