public class AgentChatHistory extends IQ
Modifier and Type | Class and Description |
---|---|
static class |
AgentChatHistory.InternalProvider
Packet extension provider for AgentHistory packets.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
Element name of the packet extension.
|
static java.lang.String |
NAMESPACE
Namespace of the packet extension.
|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
Constructor and Description |
---|
AgentChatHistory() |
AgentChatHistory(java.lang.String agentJID,
int maxSessions) |
AgentChatHistory(java.lang.String agentJID,
int maxSessions,
java.util.Date startDate) |
Modifier and Type | Method and Description |
---|---|
void |
addChatSession(AgentChatSession chatSession) |
java.util.Collection<AgentChatSession> |
getAgentChatSessions() |
java.lang.String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
createErrorResponse, createResultIQ, getType, setType, toXML
addCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toString
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String NAMESPACE
public AgentChatHistory(java.lang.String agentJID, int maxSessions, java.util.Date startDate)
public AgentChatHistory(java.lang.String agentJID, int maxSessions)
public AgentChatHistory()
public void addChatSession(AgentChatSession chatSession)
public java.util.Collection<AgentChatSession> getAgentChatSessions()
public java.lang.String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ