mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Rename PacketFilter (and implementing classes) and PacketExtension
to StanzaFilter and ExtensionElement.
This commit is contained in:
parent
2250ac20ed
commit
d4a6d8e653
233 changed files with 1175 additions and 895 deletions
|
@ -1,7 +1,7 @@
|
|||
PacketExtension
|
||||
===============
|
||||
|
||||
The static `from(Packet)` Method
|
||||
The static `from(Stanza)` Method
|
||||
--------------------------------
|
||||
|
||||
Every PacketExtension class must have a static `from()` method that retrieves that extension for a given Stanza (if any).
|
||||
|
@ -9,7 +9,7 @@ Every PacketExtension class must have a static `from()` method that retrieves th
|
|||
Sample Code
|
||||
|
||||
```java
|
||||
public static RSMSet from(Packet) {
|
||||
public static RSMSet from(Stanza) {
|
||||
return packet.getExtension(ELEMENT, NAMESPACE);
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue