Overview
Package
Class
Tree
Deprecated
Index
Help
Smack
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
R
S
T
U
X
A
accept(Packet)
- Method in class org.jivesoftware.smack.filter.
ToContainsFilter
accept(Packet)
- Method in class org.jivesoftware.smack.filter.
ThreadFilter
accept(Packet)
- Method in class org.jivesoftware.smack.filter.
PacketTypeFilter
accept(Packet)
- Method in class org.jivesoftware.smack.filter.
PacketIDFilter
accept(Packet)
- Method in interface org.jivesoftware.smack.filter.
PacketFilter
Tests whether or not the specified packet should pass the filter.
accept(Packet)
- Method in class org.jivesoftware.smack.filter.
PacketExtensionFilter
accept(Packet)
- Method in class org.jivesoftware.smack.filter.
OrFilter
accept(Packet)
- Method in class org.jivesoftware.smack.filter.
NotFilter
accept(Packet)
- Method in class org.jivesoftware.smack.filter.
FromContainsFilter
accept(Packet)
- Method in class org.jivesoftware.smack.filter.
AndFilter
AccountManager
- class org.jivesoftware.smack.
AccountManager
.
Allows creation and management of accounts on an XMPP server.
AccountManager(XMPPConnection)
- Constructor for class org.jivesoftware.smack.
AccountManager
Creates a new AccountManager instance.
addEntry(RosterEntry)
- Method in class org.jivesoftware.smack.
RosterGroup
Adds a roster entry to this group.
addExtension(PacketExtension)
- Method in class org.jivesoftware.smack.packet.
Packet
Adds a packet extension to the packet.
addGroupName(String)
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Adds a group name.
addMessageListener(PacketListener)
- Method in class org.jivesoftware.smack.
GroupChat
Adds a packet listener that will be notified of any new messages in the group chat.
addMessageListener(PacketListener)
- Method in class org.jivesoftware.smack.
Chat
Adds a packet listener that will be notified of any new messages in the chat.
addPacketListener(PacketListener, PacketFilter)
- Method in class org.jivesoftware.smack.
XMPPConnection
Registers a packet listener with this connection.
addParticipantListener(PacketListener)
- Method in class org.jivesoftware.smack.
GroupChat
Adds a packet listener that will be notified of any new Presence packets sent to the group chat.
addRosterItem(RosterPacket.Item)
- Method in class org.jivesoftware.smack.packet.
RosterPacket
Adds a roster item to the packet.
addRosterListener(RosterListener)
- Method in class org.jivesoftware.smack.
Roster
Adds a listener to this roster.
AndFilter
- class org.jivesoftware.smack.filter.
AndFilter
.
Implements the logical AND operation over two packet filters.
AndFilter(PacketFilter, PacketFilter)
- Constructor for class org.jivesoftware.smack.filter.
AndFilter
Creates an AND filter using the specified filters.
Authentication
- class org.jivesoftware.smack.packet.
Authentication
.
Authentication packet, which can be used to login to a XMPP server as well as discover login information from the server.
Authentication()
- Constructor for class org.jivesoftware.smack.packet.
Authentication
Create a new authentication packet.
AVAILABLE
- Static variable in class org.jivesoftware.smack.packet.
Presence.Type
AVAILABLE
- Static variable in class org.jivesoftware.smack.packet.
Presence.Mode
AWAY
- Static variable in class org.jivesoftware.smack.packet.
Presence.Mode
B
BOTH
- Static variable in class org.jivesoftware.smack.packet.
RosterPacket.ItemType
The user and subscriber have a mutual interest in each other's presence.
C
cancel()
- Method in class org.jivesoftware.smack.
PacketCollector
Explicitly cancels the packet collector so that no more results are queued up.
changePassword(String)
- Method in class org.jivesoftware.smack.
AccountManager
Changes the password of the currently logged-in account.
Chat
- class org.jivesoftware.smack.
Chat
.
A chat is a series of messages sent between two users.
CHAT
- Static variable in class org.jivesoftware.smack.packet.
Presence.Mode
CHAT
- Static variable in class org.jivesoftware.smack.packet.
Message.Type
Typically short text message used in line-by-line chat interfaces.
Chat(XMPPConnection, String)
- Constructor for class org.jivesoftware.smack.
Chat
Creates a new chat with the specified user.
Chat(XMPPConnection, String, String)
- Constructor for class org.jivesoftware.smack.
Chat
Creates a new chat with the specified user and chat ID (the XMPP "thread).
close()
- Method in class org.jivesoftware.smack.
XMPPConnection
Closes the connection by setting presence to unavailable then closing the stream to the XMPP server.
contains(RosterEntry)
- Method in class org.jivesoftware.smack.
RosterGroup
Returns true if an entry is part of this group.
createAccount(String, String)
- Method in class org.jivesoftware.smack.
AccountManager
Creates a new account using the specified username and password.
createAccount(String, String, Map)
- Method in class org.jivesoftware.smack.
AccountManager
Creates a new account using the specified username, password and account attributes.
createChat(String)
- Method in class org.jivesoftware.smack.
XMPPConnection
Creates a new chat with the specified participant.
createEntry(String, String, String[])
- Method in class org.jivesoftware.smack.
Roster
Cretaes a new roster entry and prsence subscription.
createGroup(String)
- Method in class org.jivesoftware.smack.
Roster
Creates a new group.
createGroupChat(String)
- Method in class org.jivesoftware.smack.
XMPPConnection
Creates a new group chat connected to the specified room.
createMessage()
- Method in class org.jivesoftware.smack.
GroupChat
Creates a new Message to send to the chat room.
createMessage()
- Method in class org.jivesoftware.smack.
Chat
Creates a new Message to the chat participant.
createPacketCollector(PacketFilter)
- Method in class org.jivesoftware.smack.
XMPPConnection
Creates a new packet collector for this connection.
D
DEBUG_ENABLED
- Static variable in class org.jivesoftware.smack.
XMPPConnection
Value that indicates whether debugging is enabled.
decodeBase64(String)
- Static method in class org.jivesoftware.smack.util.
StringUtils
Decodes a base64 String.
DefaultPacketExtension
- class org.jivesoftware.smack.packet.
DefaultPacketExtension
.
Default implementation of the PacketExtension interface.
DefaultPacketExtension(String, String)
- Constructor for class org.jivesoftware.smack.packet.
DefaultPacketExtension
Creates a new generic packet extension.
deleteAccount()
- Method in class org.jivesoftware.smack.
AccountManager
Deletes the currently logged-in account from the server.
deleteProperty(String)
- Method in class org.jivesoftware.smack.packet.
Packet
Deletes a property.
DO_NOT_DISTURB
- Static variable in class org.jivesoftware.smack.packet.
Presence.Mode
E
encodeBase64(byte[])
- Static method in class org.jivesoftware.smack.util.
StringUtils
Encodes a byte array into a base64 String.
encodeBase64(String)
- Static method in class org.jivesoftware.smack.util.
StringUtils
Encodes a String as a base64 String.
encodeHex(byte[])
- Static method in class org.jivesoftware.smack.util.
StringUtils
Turns an array of bytes into a String representing each byte as an unsigned hex number.
equals(Object)
- Method in class org.jivesoftware.smack.
RosterEntry
ERROR
- Static variable in class org.jivesoftware.smack.packet.
Presence.Type
ERROR
- Static variable in class org.jivesoftware.smack.packet.
Message.Type
indicates a messaging error.
ERROR
- Static variable in class org.jivesoftware.smack.packet.
IQ.Type
escapeForXML(String)
- Static method in class org.jivesoftware.smack.util.
StringUtils
Escapes all necessary characters in the String so that it can be used in an XML doc.
EXTENDED_AWAY
- Static variable in class org.jivesoftware.smack.packet.
Presence.Mode
F
FROM
- Static variable in class org.jivesoftware.smack.packet.
RosterPacket.ItemType
The subscriber is interested in receiving presence updates from the user.
FromContainsFilter
- class org.jivesoftware.smack.filter.
FromContainsFilter
.
Filters for packets where the "from" field contains a specified value.
FromContainsFilter(String)
- Constructor for class org.jivesoftware.smack.filter.
FromContainsFilter
Creates a "from" contains filter using the "from" field part.
fromString(String)
- Static method in class org.jivesoftware.smack.packet.
RosterPacket.ItemStatus
fromString(String)
- Static method in class org.jivesoftware.smack.packet.
RosterPacket.ItemType
fromString(String)
- Static method in class org.jivesoftware.smack.packet.
Presence.Type
Returns the type constant associated with the String value.
fromString(String)
- Static method in class org.jivesoftware.smack.packet.
Presence.Mode
Returns the mode constant associated with the String value.
fromString(String)
- Static method in class org.jivesoftware.smack.packet.
Message.Type
Converts a String value into its Type representation.
fromString(String)
- Static method in class org.jivesoftware.smack.packet.
IQ.Type
Converts a String into the corresponding types.
G
GET
- Static variable in class org.jivesoftware.smack.packet.
IQ.Type
getAccountAttributes()
- Method in class org.jivesoftware.smack.
AccountManager
Returns an Iterator for the (String) names of the required account attributes.
getAccountManager()
- Method in class org.jivesoftware.smack.
XMPPConnection
Returns an account manager instance for this connection.
getAttributes()
- Method in class org.jivesoftware.smack.packet.
Registration
Returns the map of String key/value pairs of account attributes.
getBody()
- Method in class org.jivesoftware.smack.packet.
Message
Returns the body of the message, or null if the body has not been set.
getChatID()
- Method in class org.jivesoftware.smack.
Chat
Returns the unique id of this chat, which corresponds to the
thread
field of XMPP messages.
getChildElementXML()
- Method in class org.jivesoftware.smack.packet.
RosterPacket
getChildElementXML()
- Method in class org.jivesoftware.smack.packet.
Registration
getChildElementXML()
- Method in class org.jivesoftware.smack.packet.
IQ
Returns the sub-element XML section of the IQ packet, or
null
if there isn't one.
getChildElementXML()
- Method in class org.jivesoftware.smack.packet.
Authentication
getCode()
- Method in class org.jivesoftware.smack.packet.
XMPPError
Returns the error code.
getConnectionID()
- Method in class org.jivesoftware.smack.
XMPPConnection
Returns the connection ID for this connection, which is the value set by the server when opening a XMPP stream.
getDigest()
- Method in class org.jivesoftware.smack.packet.
Authentication
Returns the password digest or
null
if the digest hasn't been set.
getElementName()
- Method in interface org.jivesoftware.smack.packet.
PacketExtension
getElementName()
- Method in class org.jivesoftware.smack.packet.
DefaultPacketExtension
Returns the XML element name of the extension sub-packet root element.
getEntries()
- Method in class org.jivesoftware.smack.
RosterGroup
Returns an iterator for the entries in the group.
getEntryCount()
- Method in class org.jivesoftware.smack.
RosterGroup
Returns the number of entries in the group.
getError()
- Method in class org.jivesoftware.smack.packet.
Packet
Returns the error associated with this packet, or
null
if there are no errors.
getExtension(String, String)
- Method in class org.jivesoftware.smack.packet.
Packet
Returns the first packet extension that matches the specified element name and namespace, or
null
if it doesn't exist.
getExtensionProvider(String, String)
- Static method in class org.jivesoftware.smack.provider.
ProviderManager
Returns the packet extension provider registered to the specified XML element name and namespace.
getExtensions()
- Method in class org.jivesoftware.smack.packet.
Packet
Returns an Iterator for the packet extensions attached to the packet.
getExtensionsXML()
- Method in class org.jivesoftware.smack.packet.
Packet
Returns the extension sub-packets (including properties data) as an XML String, or the Empty String if there are no packet extensions.
getFrom()
- Method in class org.jivesoftware.smack.packet.
Packet
Returns who the packet is being sent "from" or
null
if the value is not set.
getGroup(String)
- Method in class org.jivesoftware.smack.
Roster
Returns the roster group with the specified name, or
null
if the group doesn't exist.
getGroupCount()
- Method in class org.jivesoftware.smack.
Roster
Returns the number of the groups in the roster.
getGroupNames()
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Returns an Iterator for the group names (as Strings) that the roster item belongs to.
getGroups()
- Method in class org.jivesoftware.smack.
RosterEntry
Returns an iterator for all the roster groups that this entry belongs to.
getGroups()
- Method in class org.jivesoftware.smack.
Roster
Returns an iterator the for all the roster groups.
getHost()
- Method in class org.jivesoftware.smack.
XMPPConnection
Returns the host name of the XMPP server for this connection.
getIQProvider(String, String)
- Static method in class org.jivesoftware.smack.provider.
ProviderManager
Returns the IQ provider registered to the specified XML element name and namespace.
getItemStatus()
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Returns the roster item status.
getItemType()
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Returns the roster item type.
getMessage()
- Method in class org.jivesoftware.smack.packet.
XMPPError
Returns the message describing the error, or null if there is no message.
getMode()
- Method in class org.jivesoftware.smack.packet.
Presence
Returns the mode of the presence update.
getName()
- Method in class org.jivesoftware.smack.
RosterGroup
Returns the name of the group.
getName()
- Method in class org.jivesoftware.smack.
RosterEntry
Returns the name associated with this entry.
getName()
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Returns the user's name.
getNames()
- Method in class org.jivesoftware.smack.packet.
DefaultPacketExtension
Returns an Iterator for the names that can be used to get values of the packet extension.
getNamespace()
- Method in interface org.jivesoftware.smack.packet.
PacketExtension
getNamespace()
- Method in class org.jivesoftware.smack.packet.
DefaultPacketExtension
Returns the XML namespace of the extension sub-packet root element.
getNickname()
- Method in class org.jivesoftware.smack.
GroupChat
Returns the nickname that was used to join the room, or
null
if not currently joined.
getPacketFilter()
- Method in class org.jivesoftware.smack.
PacketCollector
Returns the packet filter associated with this packet collector.
getPacketID()
- Method in class org.jivesoftware.smack.packet.
Packet
Returns the unique ID of the packet.
getParticipant()
- Method in class org.jivesoftware.smack.
Chat
Returns the name of the user the chat is with.
getParticipantCount()
- Method in class org.jivesoftware.smack.
GroupChat
Returns the number of participants in the group chat.
getParticipants()
- Method in class org.jivesoftware.smack.
GroupChat
Returns an Iterator (of Strings) for the list of fully qualified participants in the group chat.
getPassword()
- Method in class org.jivesoftware.smack.packet.
Registration
Returns the password, or
null
if no password has been set.
getPassword()
- Method in class org.jivesoftware.smack.packet.
Authentication
Returns the plain text password or
null
if the password hasn't been set.
getPort()
- Method in class org.jivesoftware.smack.
XMPPConnection
Returns the port number of the XMPP server for this connection.
getPresence(String)
- Method in class org.jivesoftware.smack.
Roster
Returns the presence info for a particular user, or
null
if there is no presence information.
getPriority()
- Method in class org.jivesoftware.smack.packet.
Presence
Returns the priority of the presence, or -1 if no priority has been set.
getProperty(String)
- Method in class org.jivesoftware.smack.packet.
Packet
Returns the packet property with the specified name or
null
if the property doesn't exist.
getPropertyNames()
- Method in class org.jivesoftware.smack.packet.
Packet
Returns an Iterator for all the property names that are set.
getResource()
- Method in class org.jivesoftware.smack.
XMPPConnection
Returns the resource that was used to login or
null
if not logged in yet.
getResource()
- Method in class org.jivesoftware.smack.packet.
Authentication
Returns the resource or
null
if the resource hasn't been set.
getRoom()
- Method in class org.jivesoftware.smack.
GroupChat
Returns the name of the room this GroupChat object represents.
getRoster()
- Method in class org.jivesoftware.smack.
XMPPConnection
Returns the roster for the user logged into the server.
getRosterItemCount()
- Method in class org.jivesoftware.smack.packet.
RosterPacket
Returns the number of roster items in this roster packet.
getRosterItems()
- Method in class org.jivesoftware.smack.packet.
RosterPacket
Returns an Iterator for the roster items in the packet.
getStatus()
- Method in class org.jivesoftware.smack.packet.
Presence
Returns the status message of the presence update, or
null
if there is not a status.
getSubject()
- Method in class org.jivesoftware.smack.packet.
Message
Returns the subject of the message, or null if the subject has not been set.
getSubscriptionMode()
- Method in class org.jivesoftware.smack.
Roster
Returns the subscription processing mode, which dictates what action Smack will take when subscription requests from other users are made.
getThread()
- Method in class org.jivesoftware.smack.packet.
Message
Returns the thread id of the message, which is a unique identifier for a sequence of "chat" messages.
getTo()
- Method in class org.jivesoftware.smack.packet.
Packet
Returns who the packet is being sent "to", or
null
if the value is not set.
getType()
- Method in class org.jivesoftware.smack.
RosterEntry
Returns the roster subscription type of the entry.
getType()
- Method in class org.jivesoftware.smack.packet.
Presence
Returns the type of this presence packet.
getType()
- Method in class org.jivesoftware.smack.packet.
Message
Returns the type of the message.
getType()
- Method in class org.jivesoftware.smack.packet.
IQ
Returns the type of the IQ packet.
getUnfiledEntries()
- Method in class org.jivesoftware.smack.
Roster
Returns an Iterator for the roster entries that haven't been assigned to any groups.
getUser()
- Method in class org.jivesoftware.smack.
RosterEntry
Returns the JID of the user associated with this entry.
getUser()
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Returns the user.
getUsername()
- Method in class org.jivesoftware.smack.
XMPPConnection
Returns the username that was used to login or
null
if not logged in yet.
getUsername()
- Method in class org.jivesoftware.smack.packet.
Registration
Returns the username, or
null
if no username has ben set.
getUsername()
- Method in class org.jivesoftware.smack.packet.
Authentication
Returns the username, or
null
if the username hasn't been sent.
getValue(String)
- Method in class org.jivesoftware.smack.packet.
DefaultPacketExtension
Returns a packet extension value given a name.
getWrappedThrowable()
- Method in class org.jivesoftware.smack.
XMPPException
Returns the Throwable asscociated with this exception, or
null
if there isn't one.
getXMPPError()
- Method in class org.jivesoftware.smack.
XMPPException
Returns the XMPPError asscociated with this exception, or
null
if there isn't one.
GROUP_CHAT
- Static variable in class org.jivesoftware.smack.packet.
Message.Type
Chat message sent to a groupchat server for group chats.
GroupChat
- class org.jivesoftware.smack.
GroupChat
.
A GroupChat is a conversation that takes plaaces among many users in a virtual room.
GroupChat(XMPPConnection, String)
- Constructor for class org.jivesoftware.smack.
GroupChat
Creates a new group chat with the specified connection and room name.
H
hash(String)
- Static method in class org.jivesoftware.smack.util.
StringUtils
Hashes a String using the SHA-1 algorithm and returns the result as a String of hexadecimal numbers.
HEADLINE
- Static variable in class org.jivesoftware.smack.packet.
Message.Type
Text message to be displayed in scrolling marquee displays.
host
- Variable in class org.jivesoftware.smack.
XMPPConnection
I
INVISIBLE
- Static variable in class org.jivesoftware.smack.packet.
Presence.Mode
IQ
- class org.jivesoftware.smack.packet.
IQ
.
A generic IQ (Info/Query) packet.
IQ.Type
- class org.jivesoftware.smack.packet.
IQ.Type
.
A class to represent the type of the IQ packet.
IQ()
- Constructor for class org.jivesoftware.smack.packet.
IQ
IQProvider
- interface org.jivesoftware.smack.provider.
IQProvider
.
An interface for parsing custom IQ packets.
isAuthenticated()
- Method in class org.jivesoftware.smack.
XMPPConnection
Returns true if currently authenticated by successfully calling the login method.
isConnected()
- Method in class org.jivesoftware.smack.
XMPPConnection
Returns true if currently connected to the XMPP server.
J
join(String)
- Method in class org.jivesoftware.smack.
GroupChat
Joins the chat room using the specified nickname.
join(String, long)
- Method in class org.jivesoftware.smack.
GroupChat
Joins the chat room using the specified nickname.
L
leave()
- Method in class org.jivesoftware.smack.
GroupChat
Leave the chat room.
login(String, String)
- Method in class org.jivesoftware.smack.
XMPPConnection
Logs in to the server using the strongest authentication mode supported by the server, then set our presence to available.
login(String, String, String)
- Method in class org.jivesoftware.smack.
XMPPConnection
Logs in to the server using the strongest authentication mode supported by the server, then set our presence to available.
M
Message
- class org.jivesoftware.smack.packet.
Message
.
Represents XMPP message packets.
Message.Type
- class org.jivesoftware.smack.packet.
Message.Type
.
Represents the type of a message.
Message()
- Constructor for class org.jivesoftware.smack.packet.
Message
Creates a new, "normal" message.
Message(String)
- Constructor for class org.jivesoftware.smack.packet.
Message
Creates a new "normal" message to the specified recipient.
Message(String, Message.Type)
- Constructor for class org.jivesoftware.smack.packet.
Message
Creates a new message of the specified type to a recipient.
N
nextMessage()
- Method in class org.jivesoftware.smack.
GroupChat
Returns the next available message in the chat.
nextMessage()
- Method in class org.jivesoftware.smack.
Chat
Returns the next available message in the chat.
nextMessage(long)
- Method in class org.jivesoftware.smack.
GroupChat
Returns the next available message in the chat.
nextMessage(long)
- Method in class org.jivesoftware.smack.
Chat
Returns the next available message in the chat.
nextResult()
- Method in class org.jivesoftware.smack.
PacketCollector
Returns the next available packet.
nextResult(long)
- Method in class org.jivesoftware.smack.
PacketCollector
Returns the next available packet.
NONE
- Static variable in class org.jivesoftware.smack.packet.
RosterPacket.ItemType
The user and subscriber have no interest in each other's presence.
NORMAL
- Static variable in class org.jivesoftware.smack.packet.
Message.Type
(Default) a normal text message used in email like interface.
NotFilter
- class org.jivesoftware.smack.filter.
NotFilter
.
Implements the logical NOT operation on a packet filter.
NotFilter(PacketFilter)
- Constructor for class org.jivesoftware.smack.filter.
NotFilter
Creates a NOT filter using the specified filter.
O
OrFilter
- class org.jivesoftware.smack.filter.
OrFilter
.
Implements the logical OR operation over two packet filters.
OrFilter(PacketFilter, PacketFilter)
- Constructor for class org.jivesoftware.smack.filter.
OrFilter
Creates an OR filter using the specified filters.
org.jivesoftware.smack
- package org.jivesoftware.smack
Core classes of the Smack API.
org.jivesoftware.smack.filter
- package org.jivesoftware.smack.filter
Allows
PacketCollector
and
PacketListener
instances to filter for packets with particular attributes.
org.jivesoftware.smack.packet
- package org.jivesoftware.smack.packet
XML packets that are part of the XMPP protocol.
org.jivesoftware.smack.provider
- package org.jivesoftware.smack.provider
Provides pluggable parsing of incoming IQ's and packet extensions.
org.jivesoftware.smack.util
- package org.jivesoftware.smack.util
Utility classes.
P
Packet
- class org.jivesoftware.smack.packet.
Packet
.
Base class for XMPP packets.
Packet()
- Constructor for class org.jivesoftware.smack.packet.
Packet
PacketCollector
- class org.jivesoftware.smack.
PacketCollector
.
Provides a mechanism to collect packets into a result queue that pass a specified filter.
PacketCollector(PacketReader, PacketFilter)
- Constructor for class org.jivesoftware.smack.
PacketCollector
Creates a new packet collector.
PacketExtension
- interface org.jivesoftware.smack.packet.
PacketExtension
.
PacketExtensionFilter
- class org.jivesoftware.smack.filter.
PacketExtensionFilter
.
Filters for packets with a particular type of packet extension.
PacketExtensionFilter(String, String)
- Constructor for class org.jivesoftware.smack.filter.
PacketExtensionFilter
Creates a new packet extension filter.
PacketExtensionProvider
- interface org.jivesoftware.smack.provider.
PacketExtensionProvider
.
An interface for parsing custom packets extensions.
PacketFilter
- interface org.jivesoftware.smack.filter.
PacketFilter
.
Defines a way to filter packets for particular attributes.
PacketIDFilter
- class org.jivesoftware.smack.filter.
PacketIDFilter
.
Filters for packets with a particular packet ID.
PacketIDFilter(String)
- Constructor for class org.jivesoftware.smack.filter.
PacketIDFilter
Creates a new packet ID filter using the specified packet ID.
PacketListener
- interface org.jivesoftware.smack.
PacketListener
.
Provides a mechanism to listen for packets that pass a specified filter.
PacketTypeFilter
- class org.jivesoftware.smack.filter.
PacketTypeFilter
.
Filters for packets of a particular type.
PacketTypeFilter(Class)
- Constructor for class org.jivesoftware.smack.filter.
PacketTypeFilter
Creates a new packet type filter that will filter for packets that are the same type as
packetType
.
parseExtension(XmlPullParser)
- Method in interface org.jivesoftware.smack.provider.
PacketExtensionProvider
Parse an extension sub-packet and create a PacketExtension instance.
parseIQ(XmlPullParser)
- Method in interface org.jivesoftware.smack.provider.
IQProvider
Parse the IQ sub-document and create an IQ instance.
parseName(String)
- Static method in class org.jivesoftware.smack.util.
StringUtils
Returns the name portion of a XMPP ID.
parseResource(String)
- Static method in class org.jivesoftware.smack.util.
StringUtils
Returns the name portion of a XMPP ID.
parseServer(String)
- Static method in class org.jivesoftware.smack.util.
StringUtils
Returns the name portion of a XMPP ID.
pollMessage()
- Method in class org.jivesoftware.smack.
GroupChat
Polls for and returns the next message, or
null
if there isn't a message immediately available.
pollMessage()
- Method in class org.jivesoftware.smack.
Chat
Polls for and returns the next message, or
null
if there isn't a message immediately available.
pollResult()
- Method in class org.jivesoftware.smack.
PacketCollector
Polls to see if a packet is currently available and returns it, or immediately returns
null
if no packets are currently in the result queue.
port
- Variable in class org.jivesoftware.smack.
XMPPConnection
Presence
- class org.jivesoftware.smack.packet.
Presence
.
Represents XMPP presence packets.
Presence.Mode
- class org.jivesoftware.smack.packet.
Presence.Mode
.
A typsafe enum class to represent the presecence mode.
Presence.Type
- class org.jivesoftware.smack.packet.
Presence.Type
.
A typsafe enum class to represent the presecence type.
Presence(Presence.Type)
- Constructor for class org.jivesoftware.smack.packet.
Presence
Creates a new presence update.
Presence(Presence.Type, String, int, Presence.Mode)
- Constructor for class org.jivesoftware.smack.packet.
Presence
Creates a new presence update with a specified status, priority, and mode.
printStackTrace()
- Method in class org.jivesoftware.smack.
XMPPException
printStackTrace(PrintStream)
- Method in class org.jivesoftware.smack.
XMPPException
printStackTrace(PrintWriter)
- Method in class org.jivesoftware.smack.
XMPPException
processPacket(Packet)
- Method in interface org.jivesoftware.smack.
PacketListener
Process the next packet sent to this packet listener.
processPacket(Packet)
- Method in class org.jivesoftware.smack.
PacketCollector
Processes a packet to see if it meets the criteria for this packet collector.
ProviderManager
- class org.jivesoftware.smack.provider.
ProviderManager
.
Manages providers for parsing custom XML sub-documents of XMPP packets.
ProviderManager()
- Constructor for class org.jivesoftware.smack.provider.
ProviderManager
R
randomString(int)
- Static method in class org.jivesoftware.smack.util.
StringUtils
Returns a random String of numbers and letters (lower and upper case) of the specified length.
Registration
- class org.jivesoftware.smack.packet.
Registration
.
Represents registration packets.
Registration()
- Constructor for class org.jivesoftware.smack.packet.
Registration
reload()
- Method in class org.jivesoftware.smack.
Roster
Reloads the entire roster from the server.
REMOVE
- Static variable in class org.jivesoftware.smack.packet.
RosterPacket.ItemType
The user wishes to stop receiving presence updates from the subscriber.
removeEntry(RosterEntry)
- Method in class org.jivesoftware.smack.
RosterGroup
Removes a roster entry from this group.
removeExtension(PacketExtension)
- Method in class org.jivesoftware.smack.packet.
Packet
Removes a packet extension from the packet.
removeGroupName(String)
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Removes a group name.
removePacketListener(PacketListener)
- Method in class org.jivesoftware.smack.
XMPPConnection
Removes a packet listener from this connection.
removeRosterListener(RosterListener)
- Method in class org.jivesoftware.smack.
Roster
Removes a listener from this roster.
RESULT
- Static variable in class org.jivesoftware.smack.packet.
IQ.Type
Roster
- class org.jivesoftware.smack.
Roster
.
Represents a user's roster, which is the collection of users a person receives presence updates for.
RosterEntry
- class org.jivesoftware.smack.
RosterEntry
.
Each user in your roster is represented by a roster entry, which contains the user's JID and a name or nickname you assign.
RosterGroup
- class org.jivesoftware.smack.
RosterGroup
.
A group of roster entries.
RosterListener
- interface org.jivesoftware.smack.
RosterListener
.
A listener that is fired anytime a roster is changed.
rosterModified()
- Method in interface org.jivesoftware.smack.
RosterListener
Called when the roster is modified.
RosterPacket
- class org.jivesoftware.smack.packet.
RosterPacket
.
Represents XMPP roster packets.
RosterPacket.Item
- class org.jivesoftware.smack.packet.
RosterPacket.Item
.
A roster item, which consists of a JID, their name, the type of subscription, and the groups the roster item belongs to.
RosterPacket.Item(String, String)
- Constructor for class org.jivesoftware.smack.packet.
RosterPacket.Item
Creates a new roster item.
RosterPacket.ItemStatus
- class org.jivesoftware.smack.packet.
RosterPacket.ItemStatus
.
The subscription status of a roster item.
RosterPacket.ItemType
- class org.jivesoftware.smack.packet.
RosterPacket.ItemType
.
The subscription type of a roster item.
RosterPacket.ItemType(String)
- Constructor for class org.jivesoftware.smack.packet.
RosterPacket.ItemType
Returns the item type associated with the specified string.
RosterPacket()
- Constructor for class org.jivesoftware.smack.packet.
RosterPacket
S
sendMessage(Message)
- Method in class org.jivesoftware.smack.
GroupChat
Sends a Message to the chat room.
sendMessage(Message)
- Method in class org.jivesoftware.smack.
Chat
Sends a message to the other chat participant.
sendMessage(String)
- Method in class org.jivesoftware.smack.
GroupChat
Sends a message to the chat room.
sendMessage(String)
- Method in class org.jivesoftware.smack.
Chat
Sends the specified text as a message to the other chat participant.
sendPacket(Packet)
- Method in class org.jivesoftware.smack.
XMPPConnection
Sends the specified packet to the server.
SET
- Static variable in class org.jivesoftware.smack.packet.
IQ.Type
setAttributes(Map)
- Method in class org.jivesoftware.smack.packet.
Registration
Sets the account attributes.
setBody(String)
- Method in class org.jivesoftware.smack.packet.
Message
Sets the body of the message.
setDigest(String)
- Method in class org.jivesoftware.smack.packet.
Authentication
Sets the digest value directly.
setDigest(String, String)
- Method in class org.jivesoftware.smack.packet.
Authentication
Sets the digest value using a connection ID and password.
setError(XMPPError)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets the error for this packet.
setFrom(String)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets who the packet is being sent "from".
setItemStatus(RosterPacket.ItemStatus)
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Sets the roster item status.
setItemType(RosterPacket.ItemType)
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Sets the roster item type.
setMode(Presence.Mode)
- Method in class org.jivesoftware.smack.packet.
Presence
Sets the mode of the presence update.
setName(String)
- Method in class org.jivesoftware.smack.
RosterGroup
Sets the name of the group.
setName(String)
- Method in class org.jivesoftware.smack.
RosterEntry
Sets the name associated with this entry.
setName(String)
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
Sets the user's name.
setPacketID(String)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets the unique ID of the packet.
setPassword(String)
- Method in class org.jivesoftware.smack.packet.
Registration
Sets the password.
setPassword(String)
- Method in class org.jivesoftware.smack.packet.
Authentication
Sets the plain text password.
setPriority(int)
- Method in class org.jivesoftware.smack.packet.
Presence
Sets the priority of the presence.
setProperty(String, boolean)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets a packet property with a bboolean value.
setProperty(String, double)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets a packet property with a double value.
setProperty(String, float)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets a packet property with a float value.
setProperty(String, int)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets a packet property with an int value.
setProperty(String, long)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets a packet property with a long value.
setProperty(String, Object)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets a property with an Object as the value.
setResource(String)
- Method in class org.jivesoftware.smack.packet.
Authentication
Sets the resource.
setStatus(String)
- Method in class org.jivesoftware.smack.packet.
Presence
Sets the status message of the presence update.
setSubject(String)
- Method in class org.jivesoftware.smack.packet.
Message
Sets the subject of the message.
setSubscriptionMode(int)
- Method in class org.jivesoftware.smack.
Roster
Sets the subscription processing mode, which dictates what action Smack will take when subscription requests from other users are made.
setThread(String)
- Method in class org.jivesoftware.smack.packet.
Message
Sets the thread id of the message, which is a unique identifier for a sequence of "chat" messages.
setTo(String)
- Method in class org.jivesoftware.smack.packet.
Packet
Sets who the packet is being sent "to".
setType(IQ.Type)
- Method in class org.jivesoftware.smack.packet.
IQ
Sets the type of the IQ packet.
setType(Message.Type)
- Method in class org.jivesoftware.smack.packet.
Message
Sets the type of the message.
setType(Presence.Type)
- Method in class org.jivesoftware.smack.packet.
Presence
Sets the type of the presence packet.
setUsername(String)
- Method in class org.jivesoftware.smack.packet.
Registration
Sets the username.
setUsername(String)
- Method in class org.jivesoftware.smack.packet.
Authentication
Sets the username.
setValue(String, String)
- Method in class org.jivesoftware.smack.packet.
DefaultPacketExtension
Sets a packet extension value using the given name.
socket
- Variable in class org.jivesoftware.smack.
XMPPConnection
SSLXMPPConnection
- class org.jivesoftware.smack.
SSLXMPPConnection
.
Creates an SSL connection to a XMPP server.
SSLXMPPConnection(String)
- Constructor for class org.jivesoftware.smack.
SSLXMPPConnection
SSLXMPPConnection(String, int)
- Constructor for class org.jivesoftware.smack.
SSLXMPPConnection
StringUtils
- class org.jivesoftware.smack.util.
StringUtils
.
A collection of utility methods for String objects.
SUBCRIPTION_ACCEPT_ALL
- Static variable in class org.jivesoftware.smack.
Roster
Automatically accept all subscription requests.
SUBCRIPTION_REJECT_ALL
- Static variable in class org.jivesoftware.smack.
Roster
Automatically reject all subscription requests.
SUBSCRIBE
- Static variable in class org.jivesoftware.smack.packet.
Presence.Type
SUBSCRIBED
- Static variable in class org.jivesoftware.smack.packet.
Presence.Type
SUBSCRIPTION_MANUAL
- Static variable in class org.jivesoftware.smack.
Roster
Subscription requests are ignored, which means they must be manually processed by registering a listener for presence packets and then looking for any presence requests that have the type Presence.Type.SUBSCRIBE.
SUBSCRIPTION_PENDING
- Static variable in class org.jivesoftware.smack.packet.
RosterPacket.ItemStatus
Request to subcribe.
supportsAccountCreation()
- Method in class org.jivesoftware.smack.
AccountManager
Returns true if the server supports creating new accounts.
T
ThreadFilter
- class org.jivesoftware.smack.filter.
ThreadFilter
.
Filters for message packets with a particular thread value.
ThreadFilter(String)
- Constructor for class org.jivesoftware.smack.filter.
ThreadFilter
Creates a new thread filter using the specified thread value.
TO
- Static variable in class org.jivesoftware.smack.packet.
RosterPacket.ItemType
The user is interested in receiving presence updates from the subscriber.
ToContainsFilter
- class org.jivesoftware.smack.filter.
ToContainsFilter
.
Filters for packets where the "to" field contains a specified value.
ToContainsFilter(String)
- Constructor for class org.jivesoftware.smack.filter.
ToContainsFilter
Creates a "to" contains filter using the "to" field part.
toString()
- Method in class org.jivesoftware.smack.packet.
XMPPError
toString()
- Method in class org.jivesoftware.smack.packet.
RosterPacket.ItemStatus
toString()
- Method in class org.jivesoftware.smack.packet.
RosterPacket.ItemType
toString()
- Method in class org.jivesoftware.smack.packet.
Presence.Type
toString()
- Method in class org.jivesoftware.smack.packet.
Presence.Mode
toString()
- Method in class org.jivesoftware.smack.packet.
Message.Type
toString()
- Method in class org.jivesoftware.smack.packet.
IQ.Type
toXML()
- Method in class org.jivesoftware.smack.packet.
XMPPError
Returns the error as XML.
toXML()
- Method in class org.jivesoftware.smack.packet.
RosterPacket.Item
toXML()
- Method in class org.jivesoftware.smack.packet.
Presence
toXML()
- Method in interface org.jivesoftware.smack.packet.
PacketExtension
toXML()
- Method in class org.jivesoftware.smack.packet.
Packet
Returns the packet as XML.
toXML()
- Method in class org.jivesoftware.smack.packet.
Message
toXML()
- Method in class org.jivesoftware.smack.packet.
IQ
toXML()
- Method in class org.jivesoftware.smack.packet.
DefaultPacketExtension
U
UNAVAILABLE
- Static variable in class org.jivesoftware.smack.packet.
Presence.Type
UNSUBCRIPTION_PENDING
- Static variable in class org.jivesoftware.smack.packet.
RosterPacket.ItemStatus
Request to unsubscribe.
UNSUBSCRIBE
- Static variable in class org.jivesoftware.smack.packet.
Presence.Type
UNSUBSCRIBED
- Static variable in class org.jivesoftware.smack.packet.
Presence.Type
X
XMPPConnection
- class org.jivesoftware.smack.
XMPPConnection
.
Creates a connection to a XMPP server.
XMPPConnection()
- Constructor for class org.jivesoftware.smack.
XMPPConnection
Constructor for use by classes extending this one.
XMPPConnection(String)
- Constructor for class org.jivesoftware.smack.
XMPPConnection
Creates a new connection to the specified XMPP server.
XMPPConnection(String, int)
- Constructor for class org.jivesoftware.smack.
XMPPConnection
Creates a new connection to the to the specified XMPP server on the given port.
XMPPError
- class org.jivesoftware.smack.packet.
XMPPError
.
Represents a XMPP error sub-packet.
XMPPError(int)
- Constructor for class org.jivesoftware.smack.packet.
XMPPError
Creates a new error with the specified code and no message..
XMPPError(int, String)
- Constructor for class org.jivesoftware.smack.packet.
XMPPError
Creates a new error with the specified code and message.
XMPPException
- exception org.jivesoftware.smack.
XMPPException
.
A generic exception that is thrown when an error occurs performing an XMPP operation.
XMPPException()
- Constructor for class org.jivesoftware.smack.
XMPPException
Creates a new XMPPException.
XMPPException(String)
- Constructor for class org.jivesoftware.smack.
XMPPException
Creates a new XMPPException with a description of the exception.
XMPPException(String, Throwable)
- Constructor for class org.jivesoftware.smack.
XMPPException
Creates a new XMPPException with a description of the exception and the Throwable that was the root cause of the exception.
XMPPException(String, XMPPError)
- Constructor for class org.jivesoftware.smack.
XMPPException
Creates a new XMPPException with a description of the exception and the XMPPException that was the root cause of the exception.
XMPPException(Throwable)
- Constructor for class org.jivesoftware.smack.
XMPPException
Creates a new XMPPException with the Throwable that was the root cause of the exception.
XMPPException(XMPPError)
- Constructor for class org.jivesoftware.smack.
XMPPException
Cretaes a new XMPPException with the XMPPError that was the root case of the exception.
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
R
S
T
U
X
Overview
Package
Class
Tree
Deprecated
Index
Help
Smack
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2003 Jive Software.