org.jivesoftware.smack.packet
Class IQ.Type
java.lang.Object
org.jivesoftware.smack.packet.IQ.Type
- Enclosing class:
- IQ
public static class IQ.Type
- extends java.lang.Object
A class to represent the type of the IQ packet. The types are:
- IQ.Type.GET
- IQ.Type.SET
- IQ.Type.RESULT
- IQ.Type.ERROR
Method Summary |
static IQ.Type |
fromString(java.lang.String type)
Converts a String into the corresponding types. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GET
public static final IQ.Type GET
SET
public static final IQ.Type SET
RESULT
public static final IQ.Type RESULT
ERROR
public static final IQ.Type ERROR
fromString
public static IQ.Type fromString(java.lang.String type)
- Converts a String into the corresponding types. Valid String values
that can be converted to types are: "get", "set", "result", and "error".
- Parameters:
type
- the String value to covert.
- Returns:
- the corresponding Type.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2007 Jive Software.