Java Doc for Roster.java in  » Net » openfire » org » xmpp » packet » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » openfire » org.xmpp.packet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.xmpp.packet.Packet
      org.xmpp.packet.IQ
         org.xmpp.packet.Roster

Roster
public class Roster extends IQ (Code)
Roster packet. The roster is a list of JIDs (typically other users) that the user wishes to track the presence of. Each roster item is keyed by JID and contains a nickname (optional), subscription type, and list of groups (optional).
author:
   Matt Tucker

Inner Class :public static class Item
Inner Class :public enum Subscription
Inner Class :public enum Ask


Constructor Summary
public  Roster()
     Constructs a new Roster with an automatically generated ID and a type of IQ.Type.get .
public  Roster(Type type)
     Constructs a new Roster using the specified type.
public  Roster(Type type, String ID)
     Constructs a new Roster using the specified type and ID.
public  Roster(Element element)
     Constructs a new Roster using an existing Element.

Method Summary
public  ItemaddItem(String jid, Subscription subscription)
     Adds a new item to the roster.
public  ItemaddItem(JID jid, Subscription subscription)
     Adds a new item to the roster.
public  ItemaddItem(JID jid, String name, Ask ask, Subscription subscription, Collection<String> groups)
     Adds a new item to the roster.
public  RostercreateCopy()
     Returns a deep copy of this Roster.
public  Collection<Item>getItems()
     Returns an unmodifiable copy of the Item Items in the roster packet.
public  voidremoveItem(JID jid)
     Removes an item from this roster.


Constructor Detail
Roster
public Roster()(Code)
Constructs a new Roster with an automatically generated ID and a type of IQ.Type.get .



Roster
public Roster(Type type)(Code)
Constructs a new Roster using the specified type. A packet ID will be automatically generated.
Parameters:
  type - the IQ type.



Roster
public Roster(Type type, String ID)(Code)
Constructs a new Roster using the specified type and ID.
Parameters:
  type - the IQ type.
Parameters:
  ID - the packet ID of the IQ.



Roster
public Roster(Element element)(Code)
Constructs a new Roster using an existing Element. This is useful for parsing incoming roster Elements into Roster objects.
Parameters:
  element - the Roster Element.




Method Detail
addItem
public Item addItem(String jid, Subscription subscription)(Code)
Adds a new item to the roster. The name and groups are set to null If the roster packet already contains an item using the same JID, the information in the existing item will be overwritten with the new information.

The XMPP specification recommends that if the roster item is associated with another instant messaging user (human), that the JID be in bare form (e.g. user@domain). Use the JID.toBareJID toBareJID() method for a bare JID.
Parameters:
  jid - the JID.
Parameters:
  subscription - the subscription type. the newly created item.




addItem
public Item addItem(JID jid, Subscription subscription)(Code)
Adds a new item to the roster. The name and groups are set to null If the roster packet already contains an item using the same JID, the information in the existing item will be overwritten with the new information.

The XMPP specification recommends that if the roster item is associated with another instant messaging user (human), that the JID be in bare form (e.g. user@domain). Use the JID.toBareJID toBareJID() method for a bare JID.
Parameters:
  jid - the JID.
Parameters:
  subscription - the subscription type. the newly created item.




addItem
public Item addItem(JID jid, String name, Ask ask, Subscription subscription, Collection<String> groups)(Code)
Adds a new item to the roster. If the roster packet already contains an item using the same JID, the information in the existing item will be overwritten with the new information.

The XMPP specification recommends that if the roster item is associated with another instant messaging user (human), that the JID be in bare form (e.g. user@domain). Use the JID.toBareJID toBareJID() method for a bare JID.
Parameters:
  jid - the JID.
Parameters:
  name - the nickname.
Parameters:
  ask - the ask type.
Parameters:
  subscription - the subscription type.
Parameters:
  groups - a Collection of groups. the newly created item.




createCopy
public Roster createCopy()(Code)
Returns a deep copy of this Roster. a deep copy of this Roster.



getItems
public Collection<Item> getItems()(Code)
Returns an unmodifiable copy of the Item Items in the roster packet. an unmodifable copy of the Item Items in the roster packet.



removeItem
public void removeItem(JID jid)(Code)
Removes an item from this roster.
Parameters:
  jid - the JID of the item to remove.



Methods inherited from org.xmpp.packet.IQ
public void addExtension(PacketExtension extension)(Code)(Java Doc)
public IQ createCopy()(Code)(Java Doc)
public static IQ createResultIQ(IQ iq)(Code)(Java Doc)
public boolean deleteExtension(String name, String namespace)(Code)(Java Doc)
public Element getChildElement()(Code)(Java Doc)
public PacketExtension getExtension(String name, String namespace)(Code)(Java Doc)
public Type getType()(Code)(Java Doc)
public boolean isRequest()(Code)(Java Doc)
public boolean isResponse()(Code)(Java Doc)
public void setChildElement(Element childElement)(Code)(Java Doc)
public Element setChildElement(String name, String namespace)(Code)(Java Doc)
public void setType(Type type)(Code)(Java Doc)

Fields inherited from org.xmpp.packet.Packet
protected static DocumentFactory docFactory(Code)(Java Doc)
protected Element element(Code)(Java Doc)
protected JID fromJID(Code)(Java Doc)
protected JID toJID(Code)(Java Doc)

Methods inherited from org.xmpp.packet.Packet
public void addExtension(PacketExtension extension)(Code)(Java Doc)
abstract public Packet createCopy()(Code)(Java Doc)
public boolean deleteExtension(String name, String namespace)(Code)(Java Doc)
public Element getElement()(Code)(Java Doc)
public PacketError getError()(Code)(Java Doc)
public PacketExtension getExtension(String name, String namespace)(Code)(Java Doc)
public JID getFrom()(Code)(Java Doc)
public String getID()(Code)(Java Doc)
public JID getTo()(Code)(Java Doc)
public void setError(PacketError error)(Code)(Java Doc)
public void setError(PacketError.Condition condition)(Code)(Java Doc)
public void setFrom(String from)(Code)(Java Doc)
public void setFrom(JID from)(Code)(Java Doc)
public void setID(String ID)(Code)(Java Doc)
public void setTo(String to)(Code)(Java Doc)
public void setTo(JID to)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toXML()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.