com.zion.jbuddy.bots
Class BotContent

java.lang.Object
  extended by com.zion.jbuddy.bots.BotContent
All Implemented Interfaces:
BotCall

public class BotContent
extends Object
implements BotCall

Sends content to a user.

Content is sent in the form of a BotMessage with type IM. Successive content for a particular message or event is automatically combined into a single message before being sent.


Constructor Summary
BotContent(RichContent body)
          Creates content.
BotContent(String xhtml)
          Creates content, using the specified XHTML as its body.
 
Method Summary
 Object clone()
          Returns an exact copy of this call.
 RichContent getBody()
          Returns this content's body.
 void setBody(RichContent body)
          Sets this content's body.
 void setBody(String xhtml)
          Sets this content's body, using the specified XHTML.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BotContent

public BotContent(RichContent body)
Creates content.


BotContent

public BotContent(String xhtml)
Creates content, using the specified XHTML as its body.

For more information on the XHTML's format, consult the XML documentation included with the framework.

Method Detail

getBody

public RichContent getBody()
Returns this content's body.


setBody

public void setBody(RichContent body)
Sets this content's body.


setBody

public void setBody(String xhtml)
Sets this content's body, using the specified XHTML.

For more information on the XHTML's format, consult the XML documentation included with the framework.


clone

public Object clone()
Returns an exact copy of this call.

Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object


JBuddy is a trademark of Zion Software, LLC in the US and other countries.
Copyright 2000-2008 Zion Software, LLC All Rights Reserved.