93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
self = [super initWithName: name_
namespace: XMPP_NS_CLIENT];
@try {
if (![name_ isEqual: @"iq"] && ![name_ isEqual: @"message"] &&
![name_ isEqual: @"presence"])
@throw [OFInvalidArgumentException
exceptionWithClass: isa
selector: _cmd];
[self setDefaultNamespace: XMPP_NS_CLIENT];
[self setPrefix: @"stream"
forNamespace: XMPP_NS_STREAM];
if (type_ != nil)
|
|
|
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
self = [super initWithName: name_
namespace: XMPP_NS_CLIENT];
@try {
if (![name_ isEqual: @"iq"] && ![name_ isEqual: @"message"] &&
![name_ isEqual: @"presence"])
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]
selector: _cmd];
[self setDefaultNamespace: XMPP_NS_CLIENT];
[self setPrefix: @"stream"
forNamespace: XMPP_NS_STREAM];
if (type_ != nil)
|