mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 23:42:06 +01:00
A null type is equivalent to GET.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2173 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
7d7c02b750
commit
414f9faef1
1 changed files with 6 additions and 1 deletions
|
@ -88,8 +88,13 @@ public abstract class IQ extends Packet {
|
||||||
* @param type the type of the IQ packet.
|
* @param type the type of the IQ packet.
|
||||||
*/
|
*/
|
||||||
public void setType(Type type) {
|
public void setType(Type type) {
|
||||||
|
if (type == null) {
|
||||||
|
this.type = Type.GET;
|
||||||
|
}
|
||||||
|
else {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public String toXML() {
|
public String toXML() {
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuffer buf = new StringBuffer();
|
||||||
|
|
Loading…
Reference in a new issue