Smack

org.jivesoftware.smack.packet
Class IQ.Type

java.lang.Object
  extended by org.jivesoftware.smack.packet.IQ.Type
Enclosing class:
IQ

public static class IQ.Type
extends Object

A class to represent the type of the IQ packet. The types are:


Field Summary
static IQ.Type ERROR
           
static IQ.Type GET
           
static IQ.Type RESULT
           
static IQ.Type SET
           
 
Method Summary
static IQ.Type fromString(String type)
          Converts a String into the corresponding types.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

fromString

public static IQ.Type fromString(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 String toString()
Overrides:
toString in class Object

Smack

Copyright © 2003-2007 Jive Software.