Package | Description |
---|---|
org.jivesoftware.smack |
Core classes of the Smack API.
|
org.jivesoftware.smack.chat |
Smacks legacy API for 1:1 chats.
|
org.jivesoftware.smack.chat2 |
Smack's new improved API for 1:1 chats.
|
org.jivesoftware.smack.filter |
Allows
StanzaCollector and StanzaListener instances to filter for stanzas with particular attributes. |
org.jivesoftware.smack.packet |
XML stanzas and extension elements that are part of the XMPP protocol.
|
org.jivesoftware.smack.util |
Smack util classes.
|
org.jivesoftware.smackx.address |
Smack's API for XEP-0033: Extended Stanza Addressing.
|
org.jivesoftware.smackx.blocking.element |
Blocking command elements.
|
org.jivesoftware.smackx.bob.element |
Bits of Binary elements.
|
org.jivesoftware.smackx.carbons |
Smack's API for XEP-0280: Message Carbons.
|
org.jivesoftware.smackx.carbons.packet |
Stanzas and extension elements for XEP-0280: Message Carbons.
|
org.jivesoftware.smackx.chat_markers.element |
Chat Markers elements (XEP-0333).
|
org.jivesoftware.smackx.chatstates |
Classes for Chat States (XEP-0085).
|
org.jivesoftware.smackx.eme.element |
XMPP extension elements for XEP-0380: Explicit Message Encryption.
|
org.jivesoftware.smackx.forward.packet |
Element classes for XEP-0297: Stanza Forwarding.
|
org.jivesoftware.smackx.geoloc |
Smacks implementation of XEP-0080: User Location.
|
org.jivesoftware.smackx.geoloc.packet |
Element classes for XEP-0080: User Location.
|
org.jivesoftware.smackx.hints |
Smack's API for XEP-0334: Message Processing Hints.
|
org.jivesoftware.smackx.hints.element |
XMPP extension elements for XEP-0334: Message Processing Hints.
|
org.jivesoftware.smackx.iot.data.element |
Smack's API for XMPP IoT.
|
org.jivesoftware.smackx.iot.data.filter |
Smack's API for XMPP IoT.
|
org.jivesoftware.smackx.iot.provisioning.element |
Smack's API for XMPP IoT.
|
org.jivesoftware.smackx.jiveproperties.packet |
Element classes.
|
org.jivesoftware.smackx.mam |
XEP-0313: Message Archive Management.
|
org.jivesoftware.smackx.mam.element |
Packet classes and interfaces for Message Archive Management (MAM) XEP-0313.
|
org.jivesoftware.smackx.mam.filter |
Filters of Message Archive Management (MAM) XEP-0313.
|
org.jivesoftware.smackx.message_correct.element |
XMPP stream elements for Last Message Correction as defined in XEP-0308.
|
org.jivesoftware.smackx.muc |
Classes and Interfaces that implement Multi-User Chat (MUC) as defined in XEP-0045.
|
org.jivesoftware.smackx.muclight |
Classes and Interfaces that implement Multi-User Chat Light (MUC Light).
|
org.jivesoftware.smackx.muclight.element |
Multi-User Chat Light (MUC Light) elements.
|
org.jivesoftware.smackx.offline |
Smacks implementation of XEP-0013: Flexible Offline Message Retrieval.
|
org.jivesoftware.smackx.omemo |
Classes and interfaces for OMEMO Encryption.
|
org.jivesoftware.smackx.omemo.internal |
Classes that are used internally to arrange objects.
|
org.jivesoftware.smackx.omemo.listener |
Callbacks and listeners.
|
org.jivesoftware.smackx.pep |
Smacks implementation XEP-0163: Personal Eventing Protocol.
|
org.jivesoftware.smackx.push_notifications.element |
Push Notifications elements (XEP-0357).
|
org.jivesoftware.smackx.receipts |
XEP-0184: Message Delivery Receipts.
|
org.jivesoftware.smackx.sid.element |
Smack's API for XEP-0359: Stable and Unique Stanza IDs.
|
org.jivesoftware.smackx.spoiler.element |
Smack's API for XEP-0382: Spoiler Messages.
|
org.jivesoftware.smackx.xevent |
TODO describe me.
|
org.jivesoftware.smackx.xhtmlim |
Smacks implementation of XEP-0071: XHTML-IM.
|
org.jivesoftware.smackx.xhtmlim.packet |
Element classes for XEP-0071: XHTML-IM.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageListener.processMessage(Message message) |
Modifier and Type | Method and Description |
---|---|
void |
ChatMessageListener.processMessage(Chat chat,
Message message) |
void |
Chat.sendMessage(Message message)
Deprecated.
Sends a message to the other chat participant.
|
Modifier and Type | Method and Description |
---|---|
void |
IncomingChatMessageListener.newIncomingMessage(EntityBareJid from,
Message message,
Chat chat) |
void |
OutgoingChatMessageListener.newOutgoingMessage(EntityBareJid to,
Message message,
Chat chat) |
void |
Chat.send(Message message) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
MessageWithThreadFilter.acceptSpecific(Message message) |
protected boolean |
ThreadFilter.acceptSpecific(Message message) |
protected boolean |
MessageWithBodiesFilter.acceptSpecific(Message message) |
protected boolean |
MessageTypeFilter.acceptSpecific(Message message) |
protected boolean |
MessageWithSubjectFilter.acceptSpecific(Message message) |
Modifier and Type | Method and Description |
---|---|
Message |
Message.clone()
Creates and returns a copy of this message stanza.
|
Constructor and Description |
---|
Message(Message other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
static Message |
PacketParserUtils.parseMessage(org.xmlpull.v1.XmlPullParser parser)
Parses a message packet.
|
Modifier and Type | Method and Description |
---|---|
static void |
MultipleRecipientManager.reply(XMPPConnection connection,
Message original,
Message reply)
Sends a reply to a previously received stanza that was sent to multiple recipients.
|
Modifier and Type | Method and Description |
---|---|
static BlockedErrorExtension |
BlockedErrorExtension.from(Message message) |
static boolean |
BlockedErrorExtension.isInside(Message message)
Check if a message contains a BlockedErrorExtension, which means that a
message was blocked because the JID blocked the sender, and that was
reflected back as an error message.
|
Modifier and Type | Method and Description |
---|---|
static BoBExtension |
BoBExtension.from(Message message) |
Modifier and Type | Method and Description |
---|---|
static void |
CarbonManager.disableCarbons(Message msg)
Deprecated.
|
void |
CarbonCopyReceivedListener.onCarbonCopyReceived(CarbonExtension.Direction direction,
Message carbonCopy,
Message wrappingMessage)
Invoked when a new carbon copy was received.
|
Modifier and Type | Method and Description |
---|---|
static void |
CarbonExtension.Private.addTo(Message message)
Marks a message "private", so that it will not be carbon-copied, by adding private packet
extension to the message.
|
static CarbonExtension |
CarbonExtension.from(Message msg)
Obtain a Carbon from a message, if available.
|
static CarbonExtension |
CarbonExtension.getFrom(Message msg)
Deprecated.
use
CarbonExtension.from(Message) instead |
Modifier and Type | Method and Description |
---|---|
static ChatMarkersElements.MarkableExtension |
ChatMarkersElements.MarkableExtension.from(Message message) |
static ChatMarkersElements.ReceivedExtension |
ChatMarkersElements.ReceivedExtension.from(Message message) |
static ChatMarkersElements.DisplayedExtension |
ChatMarkersElements.DisplayedExtension.from(Message message) |
static ChatMarkersElements.AcknowledgedExtension |
ChatMarkersElements.AcknowledgedExtension.from(Message message) |
Modifier and Type | Method and Description |
---|---|
void |
ChatStateListener.stateChanged(Chat chat,
ChatState state,
Message message)
Fired when the state of a chat with another user changes.
|
Modifier and Type | Method and Description |
---|---|
static ExplicitMessageEncryptionElement |
ExplicitMessageEncryptionElement.from(Message message) |
Modifier and Type | Method and Description |
---|---|
static List<Message> |
Forwarded.extractMessagesFrom(Collection<Forwarded> forwardedCollection)
Extract messages in a collection of forwarded elements.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
GeoLocationManager.isGeoLocationMessage(Message message)
Returns true if the message contains a GeoLocation extension.
|
Modifier and Type | Method and Description |
---|---|
static GeoLocation |
GeoLocation.from(Message message) |
Modifier and Type | Method and Description |
---|---|
static Set<MessageProcessingHintType> |
MessageProcessingHintsManager.getHintsFrom(Message message) |
Modifier and Type | Method and Description |
---|---|
static NoStoreHint |
NoStoreHint.from(Message message) |
static NoCopyHint |
NoCopyHint.from(Message message) |
static StoreHint |
StoreHint.from(Message message) |
static NoPermanentStoreHint |
NoPermanentStoreHint.from(Message message) |
static boolean |
NoStoreHint.hasHint(Message message) |
static boolean |
NoCopyHint.hasHint(Message message) |
static boolean |
StoreHint.hasHint(Message message) |
static boolean |
NoPermanentStoreHint.hasHint(Message message) |
static void |
NoStoreHint.set(Message message) |
static void |
NoCopyHint.set(Message message) |
static void |
StoreHint.set(Message message) |
static void |
NoPermanentStoreHint.set(Message message) |
static void |
NoPermanentStoreHint.setExplicitly(Message message) |
Modifier and Type | Method and Description |
---|---|
static IoTFieldsExtension |
IoTFieldsExtension.from(Message message) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
IoTFieldsExtensionFilter.acceptSpecific(Message message) |
Modifier and Type | Method and Description |
---|---|
static Friend |
Friend.from(Message message) |
static Unfriend |
Unfriend.from(Message message) |
Modifier and Type | Method and Description |
---|---|
static JivePropertiesExtension |
JivePropertiesExtension.from(Message message)
Return a Jive properties extensions of the given message.
|
Modifier and Type | Method and Description |
---|---|
List<Message> |
MamManager.MamQueryPage.getMamResultCarrierMessages() |
List<Message> |
MamManager.MamQuery.getMessages() |
List<Message> |
MamManager.MamQueryPage.getMessages() |
List<Message> |
MamManager.MamQuery.pageNext(int count) |
List<Message> |
MamManager.MamQuery.pagePrevious(int count) |
Modifier and Type | Method and Description |
---|---|
static MamElements.MamResultExtension |
MamElements.MamResultExtension.from(Message message) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
MamResultFilter.acceptSpecific(Message message) |
Modifier and Type | Method and Description |
---|---|
static MessageCorrectExtension |
MessageCorrectExtension.from(Message message) |
Modifier and Type | Method and Description |
---|---|
Message |
MultiUserChat.createMessage()
Creates a new Message to send to the chat room.
|
Message |
MultiUserChat.nextMessage()
Returns the next available message in the chat.
|
Message |
MultiUserChat.nextMessage(long timeout)
Returns the next available message in the chat.
|
Message |
MultiUserChat.pollMessage()
Polls for and returns the next message, or null if there isn't
a message immediately available.
|
Modifier and Type | Method and Description |
---|---|
void |
InvitationRejectionListener.invitationDeclined(EntityBareJid invitee,
String reason,
Message message,
MUCUser.Decline rejection)
Called when the invitee declines the invitation.
|
void |
InvitationListener.invitationReceived(XMPPConnection conn,
MultiUserChat room,
EntityJid inviter,
String reason,
String password,
Message message,
MUCUser.Invite invitation)
Called when the an invitation to join a MUC room is received.
|
void |
MultiUserChat.invite(Message message,
EntityBareJid user,
String reason)
Invites another user to the room in which one is an occupant using a given Message.
|
void |
MultiUserChat.sendMessage(Message message)
Sends a Message to the chat room.
|
Modifier and Type | Method and Description |
---|---|
Message |
MultiUserChatLight.createMessage()
Creates a new Message to send to the chat room.
|
Message |
MultiUserChatLight.nextMessage()
Returns the next available message in the chat.
|
Message |
MultiUserChatLight.nextMessage(long timeout)
Returns the next available message in the chat.
|
Message |
MultiUserChatLight.pollMessage()
Polls for and returns the next message.
|
Modifier and Type | Method and Description |
---|---|
void |
MultiUserChatLight.sendMessage(Message message)
Sends a Message to the chat room.
|
Modifier and Type | Method and Description |
---|---|
static MUCLightElements.AffiliationsChangeExtension |
MUCLightElements.AffiliationsChangeExtension.from(Message message) |
static MUCLightElements.ConfigurationsChangeExtension |
MUCLightElements.ConfigurationsChangeExtension.from(Message message) |
Modifier and Type | Method and Description |
---|---|
List<Message> |
OfflineMessageManager.getMessages()
Returns a List of Messages with all the offline Messages of the user.
|
List<Message> |
OfflineMessageManager.getMessages(List<String> nodes)
Returns a List of the offline Messages whose stamp matches the specified
request.
|
Modifier and Type | Method and Description |
---|---|
Message |
OmemoManager.encrypt(ArrayList<BareJid> recipients,
String message)
OMEMO encrypt a cleartext message for multiple recipients.
|
Message |
OmemoManager.encrypt(BareJid to,
String message)
OMEMO encrypt a cleartext message for a single recipient.
|
Message |
OmemoManager.encrypt(MultiUserChat muc,
String message)
Encrypt a message for all recipients in the MultiUserChat.
|
Message |
OmemoManager.encryptForExistingSessions(CannotEstablishOmemoSessionException exception,
String message)
Encrypt a message for all users we could build a session with successfully in a previous attempt.
|
protected Message |
OmemoService.getOmemoRatchetUpdateMessage(OmemoManager omemoManager,
OmemoDevice recipient,
boolean preKeyMessage)
Return a new RatchetUpdateMessage.
|
Modifier and Type | Method and Description |
---|---|
ClearTextMessage |
OmemoManager.decrypt(BareJid sender,
Message omemoMessage)
Decrypt an OMEMO message.
|
Modifier and Type | Method and Description |
---|---|
static Message |
OmemoSession.decryptMessageElement(OmemoElement element,
CipherAndAuthTag cipherAndAuthTag)
Use the symmetric key in cipherAndAuthTag to decrypt the payload of the omemoMessage.
|
Message |
OmemoSession.decryptMessageElement(OmemoElement element,
int keyId)
Try to decrypt the message.
|
Message |
ClearTextMessage.getOriginalMessage()
Return the original Message object.
|
Constructor and Description |
---|
ClearTextMessage(String message,
Message original,
OmemoMessageInformation messageInfo) |
Modifier and Type | Method and Description |
---|---|
void |
OmemoMessageListener.onOmemoKeyTransportReceived(CipherAndAuthTag cipherAndAuthTag,
Message message,
Message wrappingMessage,
OmemoMessageInformation omemoInformation)
Gets called, whenever an OmemoElement without a body (an OmemoKeyTransportElement) is received.
|
void |
OmemoMucMessageListener.onOmemoKeyTransportReceived(MultiUserChat muc,
BareJid from,
CipherAndAuthTag cipherAndAuthTag,
Message message,
Message wrappingMessage,
OmemoMessageInformation omemoInformation)
Gets called, whenever an OmemoElement without a body (an OmemoKeyTransportElement) is received.
|
void |
OmemoMessageListener.onOmemoMessageReceived(String decryptedBody,
Message encryptedMessage,
Message wrappingMessage,
OmemoMessageInformation omemoInformation)
Gets called, whenever an OmemoMessage has been received and was successfully decrypted.
|
void |
OmemoMucMessageListener.onOmemoMucMessageReceived(MultiUserChat muc,
BareJid from,
String decryptedBody,
Message message,
Message wrappingMessage,
OmemoMessageInformation omemoInformation)
Gets called whenever an OMEMO message has been received in a MultiUserChat and successfully decrypted.
|
Modifier and Type | Method and Description |
---|---|
void |
PEPListener.eventReceived(EntityBareJid from,
EventElement event,
Message message)
Called when PEP events are received as part of a presence subscribe or message filter.
|
Modifier and Type | Method and Description |
---|---|
static PushNotificationsElements.RemoteDisablingExtension |
PushNotificationsElements.RemoteDisablingExtension.from(Message message) |
Modifier and Type | Method and Description |
---|---|
static Message |
DeliveryReceiptManager.receiptMessageFor(Message messageWithReceiptRequest)
Create and return a new message including a delivery receipt extension for the given message.
|
Modifier and Type | Method and Description |
---|---|
static String |
DeliveryReceiptManager.addDeliveryReceiptRequest(Message m)
Deprecated.
|
static String |
DeliveryReceiptRequest.addTo(Message message)
Add a delivery receipt request to an outgoing packet.
|
static DeliveryReceipt |
DeliveryReceipt.from(Message message)
Get the
DeliveryReceipt extension of the message, if any. |
static DeliveryReceipt |
DeliveryReceipt.getFrom(Message p)
Deprecated.
use
DeliveryReceipt.from(Message) instead |
static boolean |
DeliveryReceiptManager.hasDeliveryReceiptRequest(Message message)
Test if a message requires a delivery receipt.
|
static Message |
DeliveryReceiptManager.receiptMessageFor(Message messageWithReceiptRequest)
Create and return a new message including a delivery receipt extension for the given message.
|
Modifier and Type | Method and Description |
---|---|
static OriginIdElement |
OriginIdElement.addOriginId(Message message)
Add an origin-id element to a message and set the stanzas id to the same id as in the origin-id element.
|
static OriginIdElement |
OriginIdElement.getOriginId(Message message)
Return the origin-id element of a message or null, if absent.
|
static StanzaIdElement |
StanzaIdElement.getStanzaId(Message message)
Return the stanza-id element of a message.
|
static boolean |
OriginIdElement.hasOriginId(Message message)
Return true, if the message contains a origin-id element.
|
static boolean |
StanzaIdElement.hasStanzaId(Message message)
Return true, if a message contains a stanza-id element.
|
Modifier and Type | Method and Description |
---|---|
static void |
SpoilerElement.addSpoiler(Message message)
Add a SpoilerElement to a message.
|
static void |
SpoilerElement.addSpoiler(Message message,
String hint)
Add a SpoilerElement with a hint to a message.
|
static void |
SpoilerElement.addSpoiler(Message message,
String lang,
String hint)
Add a SpoilerElement with a hint in a certain language to a message.
|
static boolean |
SpoilerElement.containsSpoiler(Message message)
Returns true, if the message has at least one spoiler element.
|
static Map<String,String> |
SpoilerElement.getSpoilers(Message message)
Return a map of all spoilers contained in a message.
|
Modifier and Type | Method and Description |
---|---|
static void |
MessageEventManager.addNotificationsRequests(Message message,
boolean offline,
boolean delivered,
boolean displayed,
boolean composing)
Adds event notification requests to a message.
|
Modifier and Type | Method and Description |
---|---|
static void |
XHTMLManager.addBody(Message message,
XHTMLText xhtmlText)
Adds an XHTML body to the message.
|
static List<CharSequence> |
XHTMLManager.getBodies(Message message)
Returns an Iterator for the XHTML bodies in the message.
|
static boolean |
XHTMLManager.isXHTMLMessage(Message message)
Returns true if the message contains an XHTML extension.
|
Modifier and Type | Method and Description |
---|---|
static XHTMLExtension |
XHTMLExtension.from(Message message) |