org.krakenapps.filter
Interface Message

All Known Implementing Classes:
DefaultMessage

public interface Message

Represents the communication unit of filter. Composed of header and properties. Message is immutable.

Since:
1.0.0
Author:
xeraph

Method Summary
 boolean containsHeader(java.lang.String key)
          Checks if specific header is contained.
 boolean containsKey(java.lang.String key)
          Checks if specific key is contained.
 java.lang.Object get(java.lang.String key)
          Returns the value of the property
 java.lang.Object getHeader(java.lang.String key)
          Returns the value of the header.
 MessageSpec getMessageSpec()
          Returns the message specification.
 java.util.Set<java.lang.String> headerKeySet()
          Returns a Set of header keys.
 java.util.Set<java.lang.String> keySet()
          Returns a Set of property keys.
 

Method Detail

getMessageSpec

MessageSpec getMessageSpec()
Returns the message specification.


keySet

java.util.Set<java.lang.String> keySet()
Returns a Set of property keys.


containsKey

boolean containsKey(java.lang.String key)
Checks if specific key is contained.

Parameters:
key - the name of property
Returns:
true if key exists.

get

java.lang.Object get(java.lang.String key)
Returns the value of the property

Parameters:
key - the name of property

headerKeySet

java.util.Set<java.lang.String> headerKeySet()
Returns a Set of header keys.


containsHeader

boolean containsHeader(java.lang.String key)
Checks if specific header is contained.

Parameters:
key - the name of header
Returns:
true if header key exists

getHeader

java.lang.Object getHeader(java.lang.String key)
Returns the value of the header.

Parameters:
key - the name of header
Returns:
the value of the header. null if not exists.


Copyright © 2008-2009 Kraken Project. All Rights Reserved.