org.apache.camel.component.snmp
Class SnmpMessage

java.lang.Object
  extended by org.apache.camel.impl.MessageSupport
      extended by org.apache.camel.impl.DefaultMessage
          extended by org.apache.camel.component.snmp.SnmpMessage
All Implemented Interfaces:
Message

public class SnmpMessage
extends DefaultMessage


Constructor Summary
SnmpMessage()
           
SnmpMessage(org.snmp4j.PDU pdu)
           
 
Method Summary
protected  Object createBody()
          A factory method to allow a provider to lazily create the message body for inbound messages from other sources
 org.snmp4j.PDU getSnmpMessage()
          Returns the underlying SNMP message
 SnmpMessage newInstance()
          Returns a new instance
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.DefaultMessage
addAttachment, copyFrom, createAttachments, createExchangeId, createHeaders, getAttachment, getAttachmentNames, getAttachments, getHeader, getHeader, getHeader, getHeader, getHeaders, hasAttachments, hasHeaders, hasPopulatedHeaders, isFault, populateInitialAttachments, populateInitialHeaders, removeAttachment, removeHeader, removeHeaders, setAttachments, setFault, setHeader, setHeaders
 
Methods inherited from class org.apache.camel.impl.MessageSupport
copy, createMessageId, getBody, getBody, getBody, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, setBody, setBody, setExchange, setMessageId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpMessage

public SnmpMessage()

SnmpMessage

public SnmpMessage(org.snmp4j.PDU pdu)
Method Detail

toString

public String toString()
Overrides:
toString in class DefaultMessage

getSnmpMessage

public org.snmp4j.PDU getSnmpMessage()
Returns the underlying SNMP message


newInstance

public SnmpMessage newInstance()
Description copied from class: MessageSupport
Returns a new instance

Overrides:
newInstance in class DefaultMessage

createBody

protected Object createBody()
Description copied from class: MessageSupport
A factory method to allow a provider to lazily create the message body for inbound messages from other sources

Overrides:
createBody in class MessageSupport
Returns:
the value of the message body or null if there is no value available


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.