Index: lams_tool_chat/lib/smack-2.2.0/README.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/README.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/README.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,120 @@ + + + + + Smack Readme + + + + +
+Smack Readme +
+ +

+ + + + + + + + +
version:2.2.0
released:March 9, 2006
+ +

+Thank you for downloading Smack! +

+ +Start off by viewing the documentation +that can be found in the "documentation" directory included with this distribution. +

+Further information can be found on the +Smack website. If you need help using or would like to make contributions or +fixes to the code, please visit the +online forum. + +

About the Distribution

+ +The smack.jar file in the main distribution folder is the only binary file +required for embedding XMPP functionality into client applications. The optional +smackx.jar contains the Smack extensions +while smackx-debug.jar contains an enhanced debugger.

+ +If you downloaded the developer release, the full source of the library is included in +the source directory and can be compiled using the build scripts found in the +build directory (please see the README file in the build directory for further details). + +

Changelog and Upgrading

+ +View the changelog for a list of changes since the +last release. + +

License Agreements

+

+ + Index: lams_tool_chat/lib/smack-2.2.0/changelog.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/changelog.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/changelog.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,369 @@ + + + + + Smack Changelog + + + + +
+Smack Changelog +
+ +

+2.2.0 -- March 9, 2006 +

+

+ +

+2.1.0 -- November 17, 2005 +

+! Warning: This release includes changes to the API. +

+ +

+2.0.0 -- August 27, 2005 +

+

+ +

+1.5.1 -- August 12, 2005 +

+

+ +

+1.5.0 -- March 30, 2005 +

+

+ +

+1.4.1 - November 15, 2004 +

+

+ +

+1.4.0 - August 10, 2004 +

+

+ +

+1.3.0 - March 11, 2004 +

+

+ +

+1.2.1 - September 28, 2003 +

+

+ +

+1.2.0 - August 29, 2003 +

+

+ +

+1.1.1 - June 25, 2003 +

+

+ +

+1.1.0 - June 19, 2003 +

+

+ +

+1.0.1 - April 30, 2003 +

+

+ +

+1.0.0 - April 25, 2003 +

+

+ + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/debugging.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/debugging.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/debugging.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,116 @@ + + + Smack: Debugging - Jive Software + + + + + +
+Debugging with Smack +
+ + + +

+Smack includes two built-in debugging consoles that will let you track all XML traffic between +the client and server. A lite debugger which is part of the smack.jar +and an enhanced debugger contained in smackx-debug.jar. +

+ +

+Debugging mode can be enabled in two different ways: +

+ +
    +
  1. Add the following line of code before creating new connections:

    + XMPPConnection.DEBUG_ENABLED = true;

    + +

  2. Set the Java system property smack.debugEnabled to true. The + system property can be set on the command line such as:

    + java -Dsmack.debugEnabled=true SomeApp +

+ +

+If you wish to explicitly disable debug mode in your application, including using the command-line parameter, +add the following line to your application before opening new connections: +

+ +

+XMPPConnection.DEBUG_ENABLED = false; +

+ +

+Smack uses the following logic to decide the debugger console to use: +

+ +
    +
  1. It will first try use the debugger class specified in the Java system property + smack.debuggerClass. If you need to develop your own debugger, + implement the SmackDebugger interface and then set the system property + on the command line such as:

    + java -Dsmack.debuggerClass=my.company.com.MyDebugger SomeApp

    + +

  2. If step 1 fails then Smack will try to use the enhanced debugger. The + file smackx-debug.jar contains the enhanced debugger. Therefore you will need + to place the jar file in the classpath. For situations where space is an issue you + may want to only deploy smack.jar in which case the enhanced debugger won't be + available.

    + +

  3. The last option if the previous two steps fail is to use the lite debugger. The lite + debugger is a very good option for situations where you need to have low memory footprint. +
+ +

+Enhanced Debugger +

+ +Full Debug Window + +When debugging mode is enabled, a debug window will appear containing tabs for each new created connection. +The window will contain the following information: + + + +The connection tab will contain the following information: + + +
+ +

+Lite Debugger +

+ +Lite Debug Window + +When debugging mode is enabled, a debug window will appear when each new connection is created. +The window will contain the following information: + + + +Right click on any of the panes to bring up a menu with the choices to copy of the contents +to the system clipboard or to clear the contents of the pane. + +


+ + + + + Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/dataforms.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/dataforms.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/dataforms.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,137 @@ + + +Data Forms + + + + + +
Data Forms

+ +Allows to exchange structured data between users and applications for common +tasks such as registration and searching using Forms. + +

+JEP related: JEP-4 + +
+ +
Create a Form to fill out

+ +Description

+ +An XMPP entity may need to gather data from another XMPP entity. Therefore, the data-gathering +entity will need to create a new Form, specify the fields that will conform the Form and finally +send the Form to the data-providing entity.

+ +Usage

+ +In order to create a Form to fill out use the Form's constructor passing the constant +Form.TYPE_FORM as the parameter. The next step is to create the form fields and add them to +the form. In order to create and customize a FormField use the FormField's +constructor specifying the variable name of the field as the parameter. Then use setType(String type) +to set the field's type (e.g. FormField.TYPE_HIDDEN, FormField.TYPE_TEXT_SINGLE). Once we have the +Form instance and the FormFields the last step is to send addField(FormField field) +for each field that we want to add to the form.

+ +Once the form to fill out is finished we will want to send it in a message. Send getDataFormToSend() to +the form and add the answer as an extension to the message to send.

+ +Examples

+ +In this example we can see how to create and send a form to fill out:
+

+
      // Create a new form to gather data
+        Form formToSend = new Form(Form.TYPE_FORM);
+        formToSend.setInstructions(
+            "Fill out this form to report your case.\nThe case will be created automatically.");
+        formToSend.setTitle("Case configurations");
+        // Add a hidden variable to the form
+        FormField field = new FormField("hidden_var");
+        field.setType(FormField.TYPE_HIDDEN);
+        field.addValue("Some value for the hidden variable");
+        formToSend.addField(field);
+        // Add a fixed variable to the form
+        field = new FormField();
+        field.addValue("Section 1: Case description");
+        formToSend.addField(field);
+        // Add a text-single variable to the form
+        field = new FormField("name");
+        field.setLabel("Enter a name for the case");
+        field.setType(FormField.TYPE_TEXT_SINGLE);
+        formToSend.addField(field);
+        // Add a text-multi variable to the form
+        field = new FormField("description");
+        field.setLabel("Enter a description");
+        field.setType(FormField.TYPE_TEXT_MULTI);
+        formToSend.addField(field);
+
+        // Create a chat with "user2@host.com"
+        Chat chat = conn1.createChat("user2@host.com" );
+
+        Message msg = chat.createMessage();
+        msg.setBody("To enter a case please fill out this form and send it back to me");
+        // Add the form to fill out to the message to send
+        msg.addExtension(formToSend.getDataFormToSend());
+
+        // Send the message with the form to fill out
+        chat.sendMessage(msg);
+
+
+ +
+ +
Answer a Form

+ +Description

+ +Under many situations an XMPP entity could receive a form to fill out. For example, some hosts +may require to fill out a form in order to register new users. Smack lets the data-providing entity +to complete the form in an easy way and send it back to the data-gathering entity.

+ +Usage

+ +The form to fill out contains useful information that could be used for rendering the form. But it +cannot be used to actually complete it. Instead it's necessary to create a new form based on the original +form whose purpose is to hold all the answers.

+ +In order to create a new Form to complete based on the original Form just send +createAnswerForm() to the original Form. Once you have a valid form that could be actually +completed all you have to do is send setAnswer(String variable, String value) to the form where variable +is the variable of the FormField that you want to answer and value is the String representation +of the answer. If the answer consist of several values you could then use setAnswer(String variable, List values) +where values is a List of Strings.

+ +Once the form has been completed we will want to send it back in a message. Send getDataFormToSend() to +the form and add the answer as an extension to the message to send back.

+ +Examples

+ +In this example we can see how to retrieve a form to fill out, complete the form and send it back:
+

+
      // Get the message with the form to fill out
+        Message msg2 = chat2.nextMessage();
+        // Retrieve the form to fill out from the message
+        Form formToRespond = Form.getFormFrom(msg2);
+        // Obtain the form to send with the replies
+        Form completedForm = formToRespond.createAnswerForm();
+        // Add the answers to the form
+        completedForm.setAnswer("name", "Credit card number invalid");
+        completedForm.setAnswer(
+            "description",
+            "The ATM says that my credit card number is invalid. What's going on?");
+			
+        msg2 = chat2.createMessage();
+        msg2.setBody("To enter a case please fill out this form and send it back to me");
+        // Add the completed form to the message to send back
+        msg2.addExtension(completedForm.getDataFormToSend());
+        // Send the message with the completed form
+        chat2.sendMessage(msg2);
+
+
+ + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/disco.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/disco.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/disco.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,236 @@ + + +Service Discovery + + + + + +
Service Discovery

+ +The service discovery extension allows to discover items and information about XMPP +entities. Follow these links to learn how to use this extension. + +

+JEP related: JEP-30 + +
+ +
Manage XMPP entity features

+ +Description

+ +Any XMPP entity may receive a discovery request and must answer with its associated items or +information. Therefore, your Smack client may receive a discovery request that must respond +to (i.e., if your client supports XHTML-IM). This extension automatically responds to a +discovery request with the information that you previously configured.

+ +Usage

+ +In order to configure the supported features by your client you should first obtain the +ServiceDiscoveryManager associated with your XMPPConnection. To get your ServiceDiscoveryManager +send getInstanceFor(connection) to the class ServiceDiscoveryManager where +connection is your XMPPConnection.

+ +

Once you have your ServiceDiscoveryManager you will be able to manage the supported features. To +register a new feature send addFeature(feature) to your ServiceDiscoveryManager +where feature is a String that represents the supported feature. To remove a supported feature send +removeFeature(feature) to your ServiceDiscoveryManager where feature is a +String that represents the feature to remove.

+ +Examples

+ +In this example we can see how to add and remove supported features:
+

+
      // Obtain the ServiceDiscoveryManager associated with my XMPPConnection
+      ServiceDiscoveryManager discoManager = ServiceDiscoveryManager.getInstanceFor(connection);
+      
+      // Register that a new feature is supported by this XMPP entity
+      discoManager.addFeature(namespace1);
+
+      // Remove the specified feature from the supported features by this XMPP entity
+      discoManager.removeFeature(namespace2);
+
+
+ +
+ +
Provide node information

+ +Description

+ +Your XMPP entity may receive a discovery request for items non-addressable as a JID such as +the MUC rooms where you are joined. In order to answer the correct information it is necessary +to configure the information providers associated to the items/nodes within the Smack client.

+ +Usage

+ +In order to configure the associated nodes within the Smack client you will need to create a +NodeInformationProvider and register it with the ServiceDiscoveryManager. To get +your ServiceDiscoveryManager send getInstanceFor(connection) to the class ServiceDiscoveryManager +where connection is your XMPPConnection.

+ +

Once you have your ServiceDiscoveryManager you will be able to register information providers +for the XMPP entity's nodes. To register a new node information provider send setNodeInformationProvider(String node, NodeInformationProvider listener) +to your ServiceDiscoveryManager where node is the item non-addressable as a JID and +listener is the NodeInformationProvider to register. To unregister a NodeInformationProvider +send removeNodeInformationProvider(String node) to your ServiceDiscoveryManager where +node is the item non-addressable as a JID whose information provider we want to unregister.

+ +Examples

+ +In this example we can see how to register a NodeInformationProvider with a ServiceDiscoveryManager that will provide +information concerning a node named "http://jabber.org/protocol/muc#rooms":
+

+
      // Set the NodeInformationProvider that will provide information about the
+      // joined rooms whenever a disco request is received 
+      ServiceDiscoveryManager.getInstanceFor(connection).setNodeInformationProvider(
+          "http://jabber.org/protocol/muc#rooms",
+          new NodeInformationProvider() {
+              public Iterator getNodeItems() {
+                  ArrayList answer = new ArrayList();
+                  Iterator rooms = MultiUserChat.getJoinedRooms(connection);
+                  while (rooms.hasNext()) {
+                      answer.add(new DiscoverItems.Item((String)rooms.next()));
+                  }
+                  return answer.iterator(); 
+              }
+          });
+
+
+ +
+ +
Discover items associated with an XMPP entity

+ +Description

+ +In order to obtain information about a specific item you have to first discover the items available +in an XMPP entity.

+ +Usage

+ +

Once you have your ServiceDiscoveryManager you will be able to discover items associated with +an XMPP entity. To discover the items of a given XMPP entity send discoverItems(entityID) +to your ServiceDiscoveryManager where entityID is the ID of the entity. The message +discoverItems(entityID) will answer an instance of DiscoverItems that contains +the discovered items.

+ +Examples

+ +In this example we can see how to discover the items associated with an online catalog service:
+

+
      // Obtain the ServiceDiscoveryManager associated with my XMPPConnection
+      ServiceDiscoveryManager discoManager = ServiceDiscoveryManager.getInstanceFor(connection);
+      
+      // Get the items of a given XMPP entity
+      // This example gets the items associated with online catalog service
+      DiscoverItems discoItems = discoManager.discoverItems("plays.shakespeare.lit");
+
+      // Get the discovered items of the queried XMPP entity
+      Iterator it = discoItems.getItems();
+      // Display the items of the remote XMPP entity
+      while (it.hasNext()) {
+          DiscoverItems.Item item = (DiscoverItems.Item) it.next();
+          System.out.println(item.getEntityID());
+          System.out.println(item.getNode());
+          System.out.println(item.getName());
+      }
+
+
+ +
+ +
Discover information about an XMPP entity

+ +Description

+ +Once you have discovered the entity ID and name of an item, you may want to find out more +about the item. The information desired generally is of two kinds: 1) The item's identity +and 2) The features offered by the item.

+ +

This information helps you determine what actions are possible with regard to this +item (registration, search, join, etc.) as well as specific feature types of interest, if +any (e.g., for the purpose of feature negotiation).

+ +Usage

+ +

Once you have your ServiceDiscoveryManager you will be able to discover information associated with +an XMPP entity. To discover the information of a given XMPP entity send discoverInfo(entityID) +to your ServiceDiscoveryManager where entityID is the ID of the entity. The message +discoverInfo(entityID) will answer an instance of DiscoverInfo that contains +the discovered information.

+ +Examples

+ +In this example we can see how to discover the information of a conference room:
+

+
      // Obtain the ServiceDiscoveryManager associated with my XMPPConnection
+      ServiceDiscoveryManager discoManager = ServiceDiscoveryManager.getInstanceFor(connection);
+      
+      // Get the information of a given XMPP entity
+      // This example gets the information of a conference room
+      DiscoverInfo discoInfo = discoManager.discoverInfo("balconyscene@plays.shakespeare.lit");
+
+      // Get the discovered identities of the remote XMPP entity
+      Iterator it = discoInfo.getIdentities();
+      // Display the identities of the remote XMPP entity
+      while (it.hasNext()) {
+          DiscoverInfo.Identity identity = (DiscoverInfo.Identity) it.next();
+          System.out.println(identity.getName());
+          System.out.println(identity.getType());
+          System.out.println(identity.getCategory());
+      }
+
+      // Check if room is password protected
+      discoInfo.containsFeature("muc_passwordprotected");
+
+
+ +
+ +
Publish publicly available items

+ +Description

+ +Publish your entity items to some kind of persistent storage. This enables other entities to query +that entity using the disco#items namespace and receive a result even when the entity being queried +is not online (or available).

+ +Usage

+ +

Once you have your ServiceDiscoveryManager you will be able to publish items to some kind of +persistent storage. To publish the items of a given XMPP entity you have to first create an instance +of DiscoverItems and configure it with the items to publish. Then you will have to +send publishItems(String entityID, DiscoverItems discoverItems) to your ServiceDiscoveryManager +where entityID is the address of the XMPP entity that will persist the items and discoverItems contains the items +to publish.

+ +Examples

+ +In this example we can see how to publish new items:
+

+
      // Obtain the ServiceDiscoveryManager associated with my XMPPConnection
+      ServiceDiscoveryManager discoManager = ServiceDiscoveryManager.getInstanceFor(connection);
+      
+      // Create a DiscoverItems with the items to publish
+      DiscoverItems itemsToPublish = new DiscoverItems();
+      DiscoverItems.Item itemToPublish = new DiscoverItems.Item("pubsub.shakespeare.lit");
+      itemToPublish.setName("Avatar");
+      itemToPublish.setNode("romeo/avatar");
+      itemToPublish.setAction(DiscoverItems.Item.UPDATE_ACTION);
+      itemsToPublish.addItem(itemToPublish);
+
+      // Publish the new items by sending them to the server
+      discoManager.publishItems("host", itemsToPublish);
+
+
+ + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/filetransfer.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/filetransfer.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/filetransfer.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,178 @@ + + + + +File Transfer + + + + + +
File Transfer

+ +The file transfer extension allows the user to transmit and receive files. + +

+JEP related: JEP-95 +JEP-96 +JEP-65 +JEP-47 +
+ +
Send a file to another user

+ +Description

+ +A user may wish to send a file to another user. The other user has the option of acception, +rejecting, or ignoring the users request. Smack provides a simple interface in order +to enable the user to easily send a file. + +Usage

+ +In order to send a file you must first construct an instance of the FileTransferManager +class. This class has one constructor with one parameter which is your XMPPConnection. +In order to instantiate the manager you should call new FileTransferManager(connection) + +

Once you have your FileTransferManager you will need to create an outgoing +file transfer to send a file. The method to use on the FileTransferManager +is the createOutgoingFileTransfer(userID) method. The userID you provide to this +method is the fully-qualified jabber ID of the user you wish to send the file to. A +fully-qualified jabber ID consists of a node, a domain, and a resource, the user +must be connected to the resource in order to be able to recieve the file transfer. + +

Now that you have your OutgoingFileTransfer instance you will want +to send the file. The method to send a file is sendFile(file, description). The file + you provide to this method should be a readable file on the local file system, and the description is a short + description of the file to help the user decide whether or not they would like to recieve the file. + +

For information on monitoring the progress of a file transfer see the monitoring progress +section of this document. + +

Other means to send a file are also provided as part of the OutgoingFileTransfer. Please +consult the Javadoc for more information. + + +Examples

+ +In this example we can see how to send a file:
+

+
+      // Create the file transfer manager
+      FileTransferManager manager = new FileTransferManager(connection);
+		
+      // Create the outgoing file transfer
+      OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("romeo@montague.net");
+		
+      // Send the file
+      transfer.sendFile(new File("shakespeare_complete_works.txt"), "You won't believe this!");
+
+
+
+ +
+ +
Recieving a file from another user

+ +Description

+ +The user may wish to recieve files from another user. The process of recieving a file is event driven, +new file transfer requests are recieved from other users via a listener registered with the file transfer +manager.

+ +Usage

+ +In order to recieve a file you must first construct an instance of the FileTransferManager +class. This class has one constructor with one parameter which is your XMPPConnection. +In order to instantiate the manager you should call new FileTransferManager(connection) + +

Once you have your FileTransferManager you will need to register a listener +with it. The FileTransferListner interface has one method, fileTransferRequest(request). +When a request is recieved through this method, you can either accept or reject the +request. To help you make your decision there are several methods in the FileTransferRequest +class that return information about the transfer request. + +

To accept the file transfer, call the accept(), +this method will create an IncomingFileTransfer. After you have the file transfer you may start +to transfer the file by calling the recieveFile(file) method. +The file provided to this method will be where the data from thefile transfer is saved.

+ +

Finally, to reject the file transfer the only method you need to call is reject() +on the IncomingFileTransfer. + +

For information on monitoring the progress of a file transfer see the monitoring progress +section of this document. + +

Other means to recieve a file are also provided as part of the IncomingFileTransfer. Please +consult the Javadoc for more information. + +Examples

+ +In this example we can see how to approve or reject a file transfer request:
+

+
      // Create the file transfer manager
+      final FileTransferManager manager = new FileTransferManager(connection);
+
+      // Create the listener
+      manager.addFileTransferListener(new FileTransferListener() {
+            public void fileTransferRequest(FileTransferRequest request) {
+                  // Check to see if the request should be accepted
+                  if(shouldAccept(request)) {
+                        // Accept it
+                        IncomingFileTransfer transfer = request.accept();
+                        transfer.recieveFile(new File("shakespeare_complete_works.txt"));
+                  } else {
+                        // Reject it
+                        request.reject();
+                  }
+            }
+      });
+
+
+ +
+ +
Monitoring the progress of a file transfer

+ +Description

+ +While a file transfer is in progress you may wish to monitor the progress of a file transfer.

+ +Usage

+ +

Both the IncomingFileTransfer and the OutgoingFileTransfer +extend the FileTransfer class which provides several methods to monitor +how a file transfer is progressing: +

+ +Examples

+ +In this example we can see how to monitor a file transfer:
+

+
      while(!transfer.isDone()) {
+            if(transfer.getStatus().equals(Status.ERROR)) {
+                  System.out.println("ERROR!!! " + transfer.getError());
+            } else {
+                  System.out.println(transfer.getStatus());
+                  System.out.println(transfer.getProgress());
+            }
+            sleep(1000);
+      }
+
+
+ + + Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/index.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/index.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/index.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,15 @@ + + + +Smack Extensions User Manual + + + + + + + + +<H2>Smack Extensions User Manual</H2> + +<a href="toc.html">Smack Extensions User Manual</a> \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/intro.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/intro.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/intro.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,75 @@ + + +Smack Extensions User Manual + + + + +
Smack Extensions Manual
+

The XMPP protocol includes a base protocol and many optional extensions + typically documented as "JEP's". Smack provides the org.jivesoftware.smack + package for the core XMPP protocol, and the org.jivesoftware.smackx package for + many of the protocol extensions.

+ +

This manual provides details about each of the "smackx" extensions, including what + it is, how to use it, and some simple example code.

+ +

Current Extensions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameJEP #Description
Private DataJEP-49Manages private data.
XHTML MessagesJEP-71Allows send and receiving formatted messages using XHTML.
Message EventsJEP-22Requests and responds to message events.
Data FormsJEP-4Allows to gather data using Forms.
Multi User ChatJEP-45Allows configuration of, participation in, and administration of individual text-based conference rooms.
Roster Item ExchangeJEP-93Allows roster data to be shared between users.
Time ExchangeJEP-90Allows local time information to be shared between users.
Group Chat InvitationsN/ASend invitations to other users to join a group chat room.
Service DiscoveryJEP-30Allows to discover services in XMPP entities.
File TransferJEP-96Transfer files between two users over XMPP.
+ + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/invitation.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/invitation.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/invitation.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,60 @@ + + +Group Chat Invitations + + + + + +

Group Chat Invitations

+ +The group chat invitation packet extension is used to invite other +users to a group chat room. + +

+ +

+JEP related: N/A -- this protocol is outdated now that the Multi-User Chat (MUC) JEP is available +(JEP-45). However, most +existing clients still use this older protocol. Once MUC support becomes more +widespread, this API may be deprecated. + +


+ +

Inviting Other Users

+ +To use the GroupChatInvitation packet extension +to invite another user to a group chat room, address a new message to the +user and set the room name appropriately, as in the following code example: + +

+Message message = new Message("user@chat.example.com");
+message.setBody("Join me for a group chat!");
+message.addExtension(new GroupChatInvitation("room@chat.example.com"));
+con.sendPacket(message);
+
+ +The XML generated for the invitation portion of the code above would be: + +
+<x xmlns="jabber:x:conference" jid="room@chat.example.com"/>
+

+ +


+
Listening for Invitations

+ +To listen for group chat invitations, use a PacketExtensionFilter for the +x element name and jabber:x:conference namespace, as in the +following code example: + +

+PacketFilter filter = new PacketExtensionFilter("x", "jabber:x:conference");
+// Create a packet collector or packet listeners using the filter...
+
+ + + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/messageevents.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/messageevents.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/messageevents.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,244 @@ + + + Message Events + + + + + +
Message Events

+ +This extension is used to request and respond to events relating to the delivery, +display, and composition of messages. There are three stages in this extension:

    +
  1. Request for event notifications, +
  2. Receive the event notification requests and send event notifications, and +
  3. Receive the event notifications.
+

For more information on each stage please follow these links:

+ +JEP related: JEP-22 +
+
Requesting Event Notifications

+Description

+ +In order to receive event notifications for a given message you first have to specify +which events are you interested in. Each message that you send has to request its own event +notifications. Therefore, every message that you send as part of a chat should request its own event +notifications.

+ +Usage

+ +The class MessageEventManager provides an easy way for requesting event notifications. All you have to do is specify +the message that requires the event notifications and the events that you are interested in. +

Use the static method MessageEventManager.addNotificationsRequests(Message message, boolean offline, boolean +delivered, boolean displayed, boolean composing) for requesting event notifications. +

+ +Example

+Below you can find an example that logs in a user to the server, creates a message, adds the requests +for notifications and sends the message. +

+
      // Connect to the server and log in
+      conn1 = new XMPPConnection(host);
+      conn1.login(server_user1, pass1);
+    
+      // Create a chat with user2
+      Chat chat1 = conn1.createChat(user2);
+    
+      // Create a message to send
+      Message msg = chat1.createMessage();
+      msg.setSubject("Any subject you want");
+      msg.setBody("An interesting body comes here...");
+      // Add to the message all the notifications requests (offline, delivered, displayed,
+      // composing)
+      MessageEventManager.addNotificationsRequests(msg, true, true, true, true);
+    
+      // Send the message that contains the notifications request
+      chat1.sendMessage(msg);
+
+
+ +
+ +
Reacting to Event Notification Requests

+ +Description

+ +You can receive notification requests for the following events: delivered, displayed, composing and offline. You +must listen for these requests and react accordingly.

+ +Usage

+ +The general idea is to create a new DefaultMessageEventRequestListener that will listen to the event notifications +requests and react with custom logic. Then you will have to add the listener to the +MessageEventManager that works on +the desired XMPPConnection. +

Note that DefaultMessageEventRequestListener is a default implementation of the +MessageEventRequestListener interface. +The class DefaultMessageEventRequestListener automatically sends a delivered notification to the sender of the message +if the sender has requested to be notified when the message is delivered. If you decide to create a new class that +implements the MessageEventRequestListener interface, please remember to send the delivered notification.

+

+ +Example

+ +Below you can find an example that connects two users to the server. One user will create a message, add the requests +for notifications and will send the message to the other user. The other user will add a +DefaultMessageEventRequestListener +to a MessageEventManager that will listen and react to the event notification requested by the other user. +

+
      // Connect to the server and log in the users
+      conn1 = new XMPPConnection(host);
+      conn1.login(server_user1, pass1);
+      conn2 = new XMPPConnection(host);
+      conn2.login(server_user2, pass2);
+  
+      // User2 creates a MessageEventManager
+      MessageEventManager messageEventManager = new MessageEventManager(conn2);
+      // User2 adds the listener that will react to the event notifications requests
+      messageEventManager.addMessageEventRequestListener(new DefaultMessageEventRequestListener() {
+          public void deliveredNotificationRequested(
+              String from,
+              String packetID,
+              MessageEventManager messageEventManager) {
+              super.deliveredNotificationRequested(from, packetID, messageEventManager);
+              // DefaultMessageEventRequestListener automatically responds that the message was delivered when receives this request
+              System.out.println("Delivered Notification Requested (" + from + ", " + packetID + ")");
+          }
+
+          public void displayedNotificationRequested(
+              String from,
+              String packetID,
+              MessageEventManager messageEventManager) {
+              super.displayedNotificationRequested(from, packetID, messageEventManager);
+              // Send to the message's sender that the message was displayed
+              messageEventManager.sendDisplayedNotification(from, packetID);
+          }
+
+          public void composingNotificationRequested(
+              String from,
+              String packetID,
+              MessageEventManager messageEventManager) {
+              super.composingNotificationRequested(from, packetID, messageEventManager);
+              // Send to the message's sender that the message's receiver is composing a reply
+              messageEventManager.sendComposingNotification(from, packetID);
+          }
+
+          public void offlineNotificationRequested(
+              String from,
+              String packetID,
+              MessageEventManager messageEventManager) {
+              super.offlineNotificationRequested(from, packetID, messageEventManager);
+              // The XMPP server should take care of this request. Do nothing.
+              System.out.println("Offline Notification Requested (" + from + ", " + packetID + ")");
+          }
+      });
+
+      // User1 creates a chat with user2
+      Chat chat1 = conn1.createChat(user2);
+    
+      // User1 creates a message to send to user2
+      Message msg = chat1.createMessage();
+      msg.setSubject("Any subject you want");
+      msg.setBody("An interesting body comes here...");
+      // User1 adds to the message all the notifications requests (offline, delivered, displayed,
+      // composing)
+      MessageEventManager.addNotificationsRequests(msg, true, true, true, true);
+    
+      // User1 sends the message that contains the notifications request
+      chat1.sendMessage(msg);
+      Thread.sleep(500);
+      // User2 sends to the message's sender that the message's receiver cancelled composing a reply
+      messageEventManager.sendCancelledNotification(user1, msg.getPacketID());
+
+
+ +
+ +
Reacting to Event Notifications

+ +Description

+ +Once you have requested for event notifications you will start to receive notifications of events. You can +receive notifications of the following events: delivered, displayed, composing, offline and cancelled. You +will probably want to react to some or all of these events.

+ +Usage

+ +The general idea is to create a new MessageEventNotificationListener that will listen to the event notifications +and react with custom logic. Then you will have to add the listener to the MessageEventManager that works on +the desired XMPPConnection. +

+ +Example

+Below you can find an example that logs in a user to the server, adds a MessageEventNotificationListener +to a MessageEventManager that will listen and react to the event notifications, creates a message, adds +the requests for notifications and sends the message. +

+
      // Connect to the server and log in
+      conn1 = new XMPPConnection(host);
+      conn1.login(server_user1, pass1);
+  
+      // Create a MessageEventManager
+      MessageEventManager messageEventManager = new MessageEventManager(conn1);
+      // Add the listener that will react to the event notifications
+      messageEventManager.addMessageEventNotificationListener(new MessageEventNotificationListener() {
+          public void deliveredNotification(String from, String packetID) {
+              System.out.println("The message has been delivered (" + from + ", " + packetID + ")");
+          }
+    
+          public void displayedNotification(String from, String packetID) {
+              System.out.println("The message has been displayed (" + from + ", " + packetID + ")");
+          }
+    
+          public void composingNotification(String from, String packetID) {
+              System.out.println("The message's receiver is composing a reply (" + from + ", " + packetID + ")");
+          }
+    
+          public void offlineNotification(String from, String packetID) {
+              System.out.println("The message's receiver is offline (" + from + ", " + packetID + ")");
+          }
+    
+          public void cancelledNotification(String from, String packetID) {
+              System.out.println("The message's receiver cancelled composing a reply (" + from + ", " + packetID + ")");
+          }
+      });
+
+      // Create a chat with user2
+      Chat chat1 = conn1.createChat(user2);
+    
+      // Create a message to send
+      Message msg = chat1.createMessage();
+      msg.setSubject("Any subject you want");
+      msg.setBody("An interesting body comes here...");
+      // Add to the message all the notifications requests (offline, delivered, displayed,
+      // composing)
+      MessageEventManager.addNotificationsRequests(msg, true, true, true, true);
+    
+      // Send the message that contains the notifications request
+      chat1.sendMessage(msg);
+
+
+ + + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/muc.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/muc.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/muc.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,619 @@ + + +Multi User Chat + + + + + +
Multi User Chat

+ +Allows configuration of, participation in, and administration of individual text-based conference rooms.

+ +

+JEP related: JEP-45 + +
+ +
Create a new Room

+ +Description

+ +Allowed users may create new rooms. There are two types of rooms that you can create. Instant rooms +which are available for immediate access and are automatically created based on some default +configuration and Reserved rooms which are manually configured by the room creator before +anyone is allowed to enter.

+ +Usage

+ +In order to create a room you will need to first create an instance of MultiUserChat. The +room name passed to the constructor will be the name of the room to create. The next step is to send +create(String nickname) to the MultiUserChat instance where nickname is the nickname +to use when joining the room.

+ +Depending on the type of room that you want to create you will have to use different configuration forms. In +order to create an Instant room just send sendConfigurationForm(Form form) where form is an empty form. +But if you want to create a Reserved room then you should first get the room's configuration form, complete +the form and finally send it back to the server.

+ +Examples

+ +In this example we can see how to create an instant room:
+

+
      // Create a MultiUserChat using an XMPPConnection for a room
+      MultiUserChat muc = new MultiUserChat(conn1, "myroom@conference.jabber.org");
+
+      // Create the room
+      muc.create("testbot");
+
+      // Send an empty room configuration form which indicates that we want
+      // an instant room
+      muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
+
+
+ +In this example we can see how to create a reserved room. The form is completed with default values:
+
+
      // Create a MultiUserChat using an XMPPConnection for a room
+      MultiUserChat muc = new MultiUserChat(conn1, "myroom@conference.jabber.org");
+
+      // Create the room
+      muc.create("testbot");
+
+      // Get the the room's configuration form
+      Form form = muc.getConfigurationForm();
+      // Create a new form to submit based on the original form
+      Form submitForm = form.createAnswerForm();
+      // Add default answers to the form to submit
+      for (Iterator fields = form.getFields(); fields.hasNext();) {
+          FormField field = (FormField) fields.next();
+          if (!FormField.TYPE_HIDDEN.equals(field.getType()) && field.getVariable() != null) {
+              // Sets the default value as the answer
+              submitForm.setDefaultAnswer(field.getVariable());
+          }
+      }
+      // Sets the new owner of the room
+      List owners = new ArrayList();
+      owners.add("johndoe@jabber.org");
+      submitForm.setAnswer("muc#roomconfig_roomowners", owners);
+      // Send the completed form (with default values) to the server to configure the room
+      muc.sendConfigurationForm(submitForm);
+
+
+ +
+ +
Join a room

+ +Description

+ +Your usual first step in order to send messages to a room is to join the room. Multi User Chat allows +to specify several parameter while joining a room. Basically you can control the amount of history to +receive after joining the room as well as provide your nickname within the room and a password if the +room is password protected.

+ +Usage

+ +In order to join a room you will need to first create an instance of MultiUserChat. The +room name passed to the constructor will be the name of the room to join. The next step is to send +join(...) to the MultiUserChat instance. But first you will have to decide which +join message to send. If you want to just join the room without a password and without specifying the amount +of history to receive then you could use join(String nickname) where nickname if your nickname in +the room. In case the room requires a password in order to join you could then use +join(String nickname, String password). And finally, the most complete way to join a room is to send +join(String nickname, String password, DiscussionHistory history, long timeout) +where nickname is your nickname in the room, , password is your password to join the room, history is +an object that specifies the amount of history to receive and timeout is the milliseconds to wait +for a response from the server.

+ +Examples

+ +In this example we can see how to join a room with a given nickname:
+

+
      // Create a MultiUserChat using an XMPPConnection for a room
+      MultiUserChat muc2 = new MultiUserChat(conn1, "myroom@conference.jabber.org");
+
+      // User2 joins the new room
+      // The room service will decide the amount of history to send
+      muc2.join("testbot2");
+
+
+ +In this example we can see how to join a room with a given nickname and password:
+
+
      // Create a MultiUserChat using an XMPPConnection for a room
+      MultiUserChat muc2 = new MultiUserChat(conn1, "myroom@conference.jabber.org");
+
+      // User2 joins the new room using a password
+      // The room service will decide the amount of history to send
+      muc2.join("testbot2", "password");
+
+
+ +In this example we can see how to join a room with a given nickname specifying the amount of history +to receive:
+
+
      // Create a MultiUserChat using an XMPPConnection for a room
+      MultiUserChat muc2 = new MultiUserChat(conn1, "myroom@conference.jabber.org");
+
+      // User2 joins the new room using a password and specifying
+      // the amount of history to receive. In this example we are requesting the last 5 messages.
+      DiscussionHistory history = new DiscussionHistory();
+      history.setMaxStanzas(5);
+      muc2.join("testbot2", "password", history, SmackConfiguration.getPacketReplyTimeout());
+
+
+ +
+ +
Manage room invitations

+ +Description

+ +It can be useful to invite another user to a room in which one is an occupant. Depending on the +room's type the invitee could receive a password to use to join the room and/or be added to the +member list if the room is of type members-only. Smack allows to send room invitations and let +potential invitees to listening for room invitations and inviters to listen for invitees' +rejections.

+ +Usage

+ +In order to invite another user to a room you must be already joined to the room. Once you are +joined just send invite(String participant, String reason) to the MultiUserChat +where participant is the user to invite to the room (e.g. hecate@shakespeare.lit) and reason is +the reason why the user is being invited.

+ +If potential invitees want to listen for room invitations then the invitee must add an InvitationListener +to the MultiUserChat class. Since the InvitationListener is an interface, +it is necessary to create a class that implements this interface. If an inviter wants to +listen for room invitation rejections, just add an InvitationRejectionListener +to the MultiUserChat. InvitationRejectionListener is also an +interface so you will need to create a class that implements this interface.

+ +Examples

+ +In this example we can see how to invite another user to the room and lister for possible rejections:
+

+
      // User2 joins the room
+      MultiUserChat muc2 = new MultiUserChat(conn2, room);
+      muc2.join("testbot2");
+
+      // User2 listens for invitation rejections
+      muc2.addInvitationRejectionListener(new InvitationRejectionListener() {
+          public void invitationDeclined(String invitee, String reason) {
+              // Do whatever you need here...
+          }
+      });
+
+      // User2 invites user3 to join to the room
+      muc2.invite("user3@host.org/Smack", "Meet me in this excellent room");
+
+
+ +In this example we can see how to listen for room invitations and decline invitations:
+
+
      // User3 listens for MUC invitations
+      MultiUserChat.addInvitationListener(conn3, new InvitationListener() {
+          public void invitationReceived(XMPPConnection conn, String room, String inviter, String reason, String password) {
+              // Reject the invitation
+              MultiUserChat.decline(conn, room, inviter, "I'm busy right now");
+          }
+      });
+
+
+ +
+ +
Discover MUC support

+ +Description

+ +A user may want to discover if one of the user's contacts supports the Multi-User Chat protocol.

+ +Usage

+ +In order to discover if one of the user's contacts supports MUC just send +isServiceEnabled(XMPPConnection connection, String user) to the MultiUserChat +class where user is a fully qualified XMPP ID, e.g. jdoe@example.com. You will receive +a boolean indicating whether the user supports MUC or not.

+ +Examples

+ +In this example we can see how to discover support of MUC:
+

+
      // Discover whether user3@host.org supports MUC or not
+      boolean supports = MultiUserChat.isServiceEnabled(conn, "user3@host.org/Smack");
+
+
+ +
+ +
Discover joined rooms

+ +Description

+ +A user may also want to query a contact regarding which rooms the contact is in.

+ +Usage

+ +In order to get the rooms where a user is in just send +getJoinedRooms(XMPPConnection connection, String user) to the MultiUserChat +class where user is a fully qualified XMPP ID, e.g. jdoe@example.com. You will get an Iterator +of Strings as an answer where each String represents a room name.

+ +Examples

+ +In this example we can see how to get the rooms where a user is in:
+

+
      // Get the rooms where user3@host.org has joined
+      Iterator joinedRooms = MultiUserChat.getJoinedRooms(conn, "user3@host.org/Smack");
+
+
+ +
+ +
Discover room information

+ +Description

+ +A user may need to discover information about a room without having to actually join the room. The server +will provide information only for public rooms.

+ +Usage

+ +In order to discover information about a room just send getRoomInfo(XMPPConnection connection, String room) +to the MultiUserChat class where room is the XMPP ID of the room, e.g. +roomName@conference.myserver. You will get a RoomInfo object that contains the discovered room +information.

+ +Examples

+ +In this example we can see how to discover information about a room:
+

+
      // Discover information about the room roomName@conference.myserver
+      RoomInfo info = MultiUserChat.getRoomInfo(conn, "roomName@conference.myserver");
+      System.out.println("Number of occupants:" + info.getOccupantsCount());
+      System.out.println("Room Subject:" + info.getSubject());
+
+
+ +
+ +
Start a private chat

+ +Description

+ +A room occupant may want to start a private chat with another room occupant even though they +don't know the fully qualified XMPP ID (e.g. jdoe@example.com) of each other.

+ +Usage

+ +To create a private chat with another room occupant just send createPrivateChat(String participant) +to the MultiUserChat that you used to join the room. The parameter participant is the +occupant unique room JID (e.g. 'darkcave@macbeth.shakespeare.lit/Paul'). You will receive +a regular Chat object that you can use to chat with the other room occupant.

+ +Examples

+ +In this example we can see how to start a private chat with another room occupant:
+

+
      // Start a private chat with another participant
+      Chat chat = muc2.createPrivateChat("myroom@conference.jabber.org/johndoe");
+      chat.sendMessage("Hello there");
+
+
+ +
+ +
Manage changes on room subject

+ +Description

+ +A common feature of multi-user chat rooms is the ability to change the subject within the room. As a +default, only users with a role of "moderator" are allowed to change the subject in a room. Although +some rooms may be configured to allow a mere participant or even a visitor to change the subject.

+ +Every time the room's subject is changed you may want to be notified of the modification. The new subject +could be used to display an in-room message.

+ +Usage

+ +In order to modify the room's subject just send changeSubject(String subject) to the +MultiUserChat that you used to join the room where subject is the new room's subject. On +the other hand, if you want to be notified whenever the room's subject is modified you should add a +SubjectUpdatedListener to the MultiUserChat by sending +addSubjectUpdatedListener(SubjectUpdatedListener listener) to the MultiUserChat. +Since the SubjectUpdatedListener is an interface, it is necessary to create a class +that implements this interface.

+ +Examples

+ +In this example we can see how to change the room's subject and react whenever the room's subject is +modified:
+

+
      // An occupant wants to be notified every time the room's subject is changed
+      muc3.addSubjectUpdatedListener(new SubjectUpdatedListener() {
+          public void subjectUpdated(String subject, String from) {
+              ....
+          }
+      });
+
+      // A room's owner changes the room's subject
+      muc2.changeSubject("New Subject");
+
+
+ +
+ +
Manage role modifications

+ +Description

+ +There are four defined roles that an occupant can have:

+
    +
  1. Moderator
  2. +
  3. Participant
  4. +
  5. Visitor
  6. +
  7. None (the absence of a role)
  8. +

+ +These roles are temporary in that they do not persist across a user's visits to the room +and can change during the course of an occupant's visit to the room.

+ +A moderator is the most powerful occupant within the context of the room, and can to some +extent manage other occupants' roles in the room. A participant has fewer privileges than a +moderator, although he or she always has the right to speak. A visitor is a more restricted +role within the context of a moderated room, since visitors are not allowed to send messages +to all occupants.

+ +Roles are granted, revoked, and maintained based on the occupant's room nickname or full +JID. Whenever an occupant's role is changed Smack will trigger specific events.

+ +Usage

+ +In order to grant voice (i.e. make someone a participant) just send the message +grantVoice(String nickname) to MultiUserChat. Use revokeVoice(String nickname) +to revoke the occupant's voice (i.e. make the occupant a visitor).

+ +In order to grant moderator privileges to a participant or visitor just send the message +grantModerator(String nickname) to MultiUserChat. Use revokeModerator(String nickname) +to revoke the moderator privilege from the occupant thus making the occupant a participant.

+ +Smack allows you to listen for role modification events. If you are interested in listening role modification +events of any occupant then use the listener ParticipantStatusListener. But if you are interested +in listening for your own role modification events, use the listener UserStatusListener. Both listeners +should be added to the MultiUserChat by using +addParticipantStatusListener(ParticipantStatusListener listener) or +addUserStatusListener(UserStatusListener listener) respectively. These listeners include several notification +events but you may be interested in just a few of them. Smack provides default implementations for these listeners +avoiding you to implement all the interfaces' methods. The default implementations are DefaultUserStatusListener +and DefaultParticipantStatusListener. Below you will find the sent messages to the listeners whenever +an occupant's role has changed.

+ +These are the triggered events when the role has been upgraded: +

+ + + + + + + + + + +
OldNewEvents
NoneVisitor--
VisitorParticipantvoiceGranted
ParticipantModeratormoderatorGranted
NoneParticipantvoiceGranted
NoneModeratorvoiceGranted + moderatorGranted
VisitorModeratorvoiceGranted + moderatorGranted

+ +These are the triggered events when the role has been downgraded: +

+ + + + + + + + + + +
OldNewEvents
ModeratorParticipantmoderatorRevoked
ParticipantVisitorvoiceRevoked
VisitorNonekicked
ModeratorVisitorvoiceRevoked + moderatorRevoked
ModeratorNonekicked
ParticipantNonekicked

+ +Examples

+ +In this example we can see how to grant voice to a visitor and listen for the notification events:
+

+
      // User1 creates a room
+      muc = new MultiUserChat(conn1, "myroom@conference.jabber.org");
+      muc.create("testbot");
+
+      // User1 (which is the room owner) configures the room as a moderated room
+      Form form = muc.getConfigurationForm();
+      Form answerForm = form.createAnswerForm();
+      answerForm.setAnswer("muc#roomconfig_moderatedroom", "1");
+      muc.sendConfigurationForm(answerForm);
+
+      // User2 joins the new room (as a visitor)
+      MultiUserChat muc2 = new MultiUserChat(conn2, "myroom@conference.jabber.org");
+      muc2.join("testbot2");
+      // User2 will listen for his own "voice" notification events
+      muc2.addUserStatusListener(new DefaultUserStatusListener() {
+          public void voiceGranted() {
+              super.voiceGranted();
+              ...
+          }
+          public void voiceRevoked() {
+              super.voiceRevoked();
+              ...
+          }
+      });
+
+      // User3 joins the new room (as a visitor)
+      MultiUserChat muc3 = new MultiUserChat(conn3, "myroom@conference.jabber.org");
+      muc3.join("testbot3");
+      // User3 will lister for other occupants "voice" notification events
+      muc3.addParticipantStatusListener(new DefaultParticipantStatusListener() {
+          public void voiceGranted(String participant) {
+              super.voiceGranted(participant);
+              ...
+          }
+
+          public void voiceRevoked(String participant) {
+              super.voiceRevoked(participant);
+              ...
+          }
+      });
+
+      // The room's owner grants voice to user2
+      muc.grantVoice("testbot2");
+
+
+ +
+ +
Manage affiliation modifications

+ +Description

+ +There are five defined affiliations that a user can have in relation to a room:

+
    +
  1. Owner
  2. +
  3. Admin
  4. +
  5. Member
  6. +
  7. Outcast
  8. +
  9. None (the absence of an affiliation)
  10. +

+ +These affiliations are semi-permanent in that they persist across a user's visits to the room and +are not affected by happenings in the room. Affiliations are granted, revoked, and maintained +based on the user's bare JID.

+ +If a user without a defined affiliation enters a room, the user's affiliation is defined as "none"; +however, this affiliation does not persist across visits.

+ +Owners and admins are by definition immune from certain actions. Specifically, an owner or admin cannot +be kicked from a room and cannot be banned from a room. An admin must first lose his or her affiliation +(i.e., have an affiliation of "none" or "member") before such actions could be performed +on them.

+ +The member affiliation provides a way for a room owner or admin to specify a "whitelist" of users +who are allowed to enter a members-only room. When a member enters a members-only room, his or her affiliation +does not change, no matter what his or her role is. The member affiliation also provides a way for users to +effectively register with an open room and thus be permanently associated with that room in some way (one +result may be that the user's nickname is reserved in the room).

+ +An outcast is a user who has been banned from a room and who is not allowed to enter the room. Whenever a +user's affiliation is changed Smack will trigger specific events.

+ +Usage

+ +In order to grant membership to a room, administrator privileges or owner priveliges just send +grantMembership(String jid), grantAdmin(String jid) or grantOwnership(String jid) +to MultiUserChat respectively. Use revokeMembership(String jid), revokeAdmin(String jid) +or revokeOwnership(String jid) to revoke the membership to a room, administrator privileges or +owner priveliges respectively.

+ +In order to ban a user from the room just send the message banUser(String jid, String reason) to +MultiUserChat.

+ +Smack allows you to listen for affiliation modification events. If you are interested in listening affiliation modification +events of any user then use the listener ParticipantStatusListener. But if you are interested +in listening for your own affiliation modification events, use the listener UserStatusListener. Both listeners +should be added to the MultiUserChat by using +addParticipantStatusListener(ParticipantStatusListener listener) or +addUserStatusListener(UserStatusListener listener) respectively. These listeners include several notification +events but you may be interested in just a few of them. Smack provides default implementations for these listeners +avoiding you to implement all the interfaces' methods. The default implementations are DefaultUserStatusListener +and DefaultParticipantStatusListener. Below you will find the sent messages to the listeners whenever +a user's affiliation has changed.

+ +These are the triggered events when the affiliation has been upgraded: +

+ + + + + + + + + + +
OldNewEvents
NoneMembermembershipGranted
MemberAdminmembershipRevoked + adminGranted
AdminOwneradminRevoked + ownershipGranted
NoneAdminadminGranted
NoneOwnerownershipGranted
MemberOwnermembershipRevoked + ownershipGranted

+ +These are the triggered events when the affiliation has been downgraded: +

+ + + + + + + + + + + +
OldNewEvents
OwnerAdminownershipRevoked + adminGranted
AdminMemberadminRevoked + membershipGranted
MemberNonemembershipRevoked
OwnerMemberownershipRevoked + membershipGranted
OwnerNoneownershipRevoked
AdminNoneadminRevoked
AnyoneOutcastbanned

+ +Examples

+ +In this example we can see how to grant admin privileges to a user and listen for the notification events:
+

+
      // User1 creates a room
+      muc = new MultiUserChat(conn1, "myroom@conference.jabber.org");
+      muc.create("testbot");
+
+      // User1 (which is the room owner) configures the room as a moderated room
+      Form form = muc.getConfigurationForm();
+      Form answerForm = form.createAnswerForm();
+      answerForm.setAnswer("muc#roomconfig_moderatedroom", "1");
+      muc.sendConfigurationForm(answerForm);
+
+      // User2 joins the new room (as a visitor)
+      MultiUserChat muc2 = new MultiUserChat(conn2, "myroom@conference.jabber.org");
+      muc2.join("testbot2");
+      // User2 will listen for his own admin privileges
+      muc2.addUserStatusListener(new DefaultUserStatusListener() {
+          public void membershipRevoked() {
+              super.membershipRevoked();
+              ...
+          }
+          public void adminGranted() {
+              super.adminGranted();
+              ...
+          }
+      });
+
+      // User3 joins the new room (as a visitor)
+      MultiUserChat muc3 = new MultiUserChat(conn3, "myroom@conference.jabber.org");
+      muc3.join("testbot3");
+      // User3 will lister for other users admin privileges
+      muc3.addParticipantStatusListener(new DefaultParticipantStatusListener() {
+          public void membershipRevoked(String participant) {
+              super.membershipRevoked(participant);
+              ...
+          }
+          public void adminGranted(String participant) {
+              super.adminGranted(participant);
+              ...
+          }
+      });
+
+      // The room's owner grants admin privileges to user2
+      muc.grantAdmin("user2@jabber.org");
+
+
+ + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/privatedata.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/privatedata.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/privatedata.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,30 @@ + + +Private Data + + + + + +
Private Data

+ +Manages private data, which is a mechanism to allow users to store arbitrary XML +data on an XMPP server. Each private data chunk is defined by a element name and +XML namespace. Example private data: + +

+<color xmlns="http://example.com/xmpp/color">
+    <favorite>blue</blue>
+    <leastFavorite>puce</leastFavorite>
+</color>
+

+ +JEP related: JEP-49 + +


+ +More coming soon. + + + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/rosterexchange.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/rosterexchange.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/rosterexchange.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,179 @@ + + +Roster Item Exchange + + + + + +
Roster Item Exchange

+This extension is used to send rosters, roster groups and roster entries from one XMPP +Entity to another. It also provides an easy way to hook up custom logic when entries +are received from other XMPP clients. +

Follow these links to learn how to send and receive roster items:

+ +JEP related: JEP-93 + +
+ +
Send a entire roster

+ +Description

+ +Sometimes it is useful to send a whole roster to another user. Smack provides a +very easy way to send a complete roster to another XMPP client.

+ +Usage

+ +Create an instance of RosterExchangeManager and use the #send(Roster, String) +message to send a roster to a given user. The first parameter is the roster to send and +the second parameter is the id of the user that will receive the roster entries.

+ +Example

+ +In this example we can see how user1 sends his roster to user2. +

+
      // Connect to the server and log in
+      conn1 = new XMPPConnection(host);
+      conn1.login(server_user1, pass1);
+    
+      // Create a new roster exchange manager on conn1
+      RosterExchangeManager rosterExchangeManager = new RosterExchangeManager(conn1);
+      // Send user1's roster to user2
+      rosterExchangeManager.send(conn1.getRoster(), user2);
+
+
+ +
+ +
Send a roster group

+ +Description

+ +It is also possible to send a roster group to another XMPP client. A roster group groups +a set of roster entries under a name.

+ +Usage

+ +Create an instance of RosterExchangeManager and use the #send(RosterGroup, String) +message to send a roster group to a given user. The first parameter is the roster group to send and +the second parameter is the id of the user that will receive the roster entries.

+ +Example

+ +In this example we can see how user1 sends his roster groups to user2. +

+
      // Connect to the server and log in
+      conn1 = new XMPPConnection(host);
+      conn1.login(server_user1, pass1);
+    
+      // Create a new roster exchange manager on conn1
+      RosterExchangeManager rosterExchangeManager = new RosterExchangeManager(conn1);
+      // Send user1's RosterGroups to user2
+      for (Iterator it = conn1.getRoster().getGroups(); it.hasNext(); )
+          rosterExchangeManager.send((RosterGroup)it.next(), user2);
+
+
+ +
+ +
Send a roster entry

+ +Description

+ +Sometimes you may need to send a single roster entry to another XMPP client. Smack also lets you send +items at this granularity level.

+ +Usage

+ +Create an instance of RosterExchangeManager and use the #send(RosterEntry, String) +message to send a roster entry to a given user. The first parameter is the roster entry to send and +the second parameter is the id of the user that will receive the roster entries.

+ +Example

+ +In this example we can see how user1 sends a roster entry to user2. +

+
      // Connect to the server and log in
+      conn1 = new XMPPConnection(host);
+      conn1.login(server_user1, pass1);
+    
+      // Create a new roster exchange manager on conn1
+      RosterExchangeManager rosterExchangeManager = new RosterExchangeManager(conn1);
+      // Send a roster entry (any) to user2
+      rosterExchangeManager1.send((RosterEntry)conn1.getRoster().getEntries().next(), user2);
+ 
+
+ +
+ +
Receive roster entries

+ +Description

+ +Since roster items are sent between XMPP clients, it is necessary to listen to possible roster entries +receptions. Smack provides a mechanism that you can use to execute custom logic when roster entries are +received.

+ +Usage

+ +

    +
  1. Create a class that implements the RosterExchangeListener interface.
  2. +
  3. Implement the method entriesReceived(String, Iterator) that will be called when new entries + are received with custom logic.
  4. +
  5. Add the listener to the RosterExchangeManager that works on the desired XMPPConnection.
  6. +

+ +Example

+ +In this example we can see how user1 sends a roster entry to user2 and user2 adds the received +entries to his roster. +

+
      // Connect to the server and log in the users
+      conn1 = new XMPPConnection(host);
+      conn1.login(server_user1, pass1);
+      conn2 = new XMPPConnection(host);
+      conn2.login(server_user2, pass2);
+      final Roster user2_roster = conn2.getRoster();
+    
+      // Create a RosterExchangeManager that will help user2 to listen and accept
+      the entries received
+      RosterExchangeManager rosterExchangeManager2 = new RosterExchangeManager(conn2);
+      // Create a RosterExchangeListener that will iterate over the received roster entries
+      RosterExchangeListener rosterExchangeListener = new RosterExchangeListener() {
+          public void entriesReceived(String from, Iterator remoteRosterEntries) {
+              while (remoteRosterEntries.hasNext()) {
+                  try {
+                      // Get the received entry
+                      RemoteRosterEntry remoteRosterEntry = (RemoteRosterEntry) remoteRosterEntries.next();
+                      // Display the remote entry on the console
+                      System.out.println(remoteRosterEntry);
+                      // Add the entry to the user2's roster
+                      user2_roster.createEntry(
+                          remoteRosterEntry.getUser(),
+                          remoteRosterEntry.getName(),
+                          remoteRosterEntry.getGroupArrayNames());
+                  }
+                  catch (XMPPException e) {
+                      e.printStackTrace();
+                  }
+              }
+          }
+      };
+      // Add the RosterExchangeListener to the RosterExchangeManager that user2 is using
+      rosterExchangeManager2.addRosterListener(rosterExchangeListener);
+    
+      // Create a RosterExchangeManager that will help user1 to send his roster
+      RosterExchangeManager rosterExchangeManager1 = new RosterExchangeManager(conn1);
+      // Send user1's roster to user2
+      rosterExchangeManager1.send(conn1.getRoster(), user2);
+
+
+ + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/style.css =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/style.css (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/style.css (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,57 @@ +BODY { + font-size : 100%; + background-color : #fff; +} +BODY, TD, TH { + font-family : tahoma, arial, helvetica; + font-size : 0.8em; +} +PRE, TT, CODE { + font-family : courier new, monospaced; + font-size : 1.0em; +} +A:hover { + text-decoration : none; +} +LI { + padding-bottom : 4px; +} +.header { + font-size : 1.4em; + font-weight : bold; + width : 100%; + border-bottom : 1px #ccc solid; + padding-bottom : 2px; +} +.subheader { + font-size: 1.1em; + font-weight : bold; +} +.footer { + font-size : 0.8em; + color : #999; + text-align : center; + width : 100%; + border-top : 1px #ccc solid; + padding-top : 2px; +} +.code { + border : 1px #ccc solid; + padding : 0em 1.0em 0em 1.0em; + margin : 4px 0px 4px 0px; +} +.nav, .nav A { + font-family : verdana; + font-size : 0.85em; + color : #600; + text-decoration : none; + font-weight : bold; +} +.nav { + width : 100%; + border-bottom : 1px #ccc solid; + padding : 3px 3px 5px 1px; +} +.nav A:hover { + text-decoration : underline; +} \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/time.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/time.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/time.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,22 @@ + + + Time + + + + + +
Entity Time Exchange

+ +Supports a protocol that XMPP clients use to exchange their respective local +times and time zones.

+ +JEP related: JEP-90 + +


+ +More coming soon. + + + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/toc.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/toc.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/toc.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,27 @@ + + +Smack Extensions User Manual + + + + + + +Introduction

+ +

Smack Extensions

+ +Private Data
+XHTML Messages
+Message Events
+Data Forms
+Multi User Chat
+Roster Item Exchange
+Time Exchange
+Group Chat Invitations
+Service Discovery
+File Transfer
+

+ + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/extensions/xhtml.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/extensions/xhtml.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/extensions/xhtml.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,200 @@ + + +XHTML Support + + + + + +
XHTML Messages

+ +Provides the ability to send and receive formatted messages using XHTML. + +

Follow these links to learn how to compose, send, receive and discover support for +XHTML messages:

+ +JEP related: JEP-71 + +
+ +
Compose an XHTML Message

+ +Description

+ +The first step in order to send an XHTML message is to compose it. Smack provides a special +class that helps to build valid XHTML messages hiding any low level complexity. +For special situations, advanced users may decide not to use the helper class and generate +the XHTML by themselves. Even for these situations Smack provides a well defined entry point +in order to add the generated XHTML content to a given message.

+ +

+Note: not all clients are able to view XHTML formatted messages. Therefore, +it's recommended that you include a normal body in that message that is either an +unformatted version of the text or a note that XHTML support is required +to view the message contents.

+ +Usage

+ +Create an instance of XHTMLText specifying the style and language of the body. +You can add several XHTML bodies to the message but each body should be for a different language. +Once you have an XHTMLText you can start to append tags and text to it. In order to append tags there +are several messages that you can use. For each XHTML defined tag there is a message that you can send. +In order to add text you can send the message #append(String textToAppend).

+ +

After you have configured the XHTML text, the last step you have to do is to add the XHTML text +to the message you want to send. If you decided to create the XHTML text by yourself, you will have to +follow this last step too. In order to add the XHTML text to the message send the message +#addBody(Message message, String body) to the XHTMLManager class where message +is the message that will receive the XHTML body and body is the string to add as an XHTML body to +the message.

+ +Example

+ +In this example we can see how to compose the following XHTML message:
+<body><p style='font-size:large'>Hey John, this is my new <span + style='color:green'>green</span><em>!!!!</em></p></body> +

+
      // Create a message to send
+      Message msg = chat.createMessage();
+      msg.setSubject("Any subject you want");
+      msg.setBody("Hey John, this is my new green!!!!");
+
+      // Create an XHTMLText to send with the message
+      XHTMLText xhtmlText = new XHTMLText(null, null);
+      xhtmlText.appendOpenParagraphTag("font-size:large");
+      xhtmlText.append("Hey John, this is my new ");
+      xhtmlText.appendOpenSpanTag("color:green");
+      xhtmlText.append("green");
+      xhtmlText.appendCloseSpanTag();
+      xhtmlText.appendOpenEmTag();
+      xhtmlText.append("!!!!");
+      xhtmlText.appendCloseEmTag();
+      xhtmlText.appendCloseParagraphTag();
+      
+      // Add the XHTML text to the message
+      XHTMLManager.addBody(msg, xhtmlText.toString());
+
+
+
+ +
+ +
Send an XHTML Message

+ +Description

+ +After you have composed an XHTML message you will want to send it. Once you have added +the XHTML content to the message you want to send you are almost done. The last step is to send +the message as you do with any other message.

+ +Usage

+ +An XHTML message is like any regular message, therefore to send the message you can follow +the usual steps you do in order to send a message. For example, to send a message as part +of a chat just use the message #send(Message) of Chat or you can use +the message #send(Packet) of XMPPConnection.

+ +Example

+ +In this example we can see how to send a message with XHTML content as part of a chat. +

+
      // Create a message to send
+      Message msg = chat.createMessage();
+      // Obtain the XHTML text to send from somewhere
+      String xhtmlBody = getXHTMLTextToSend();
+
+      // Add the XHTML text to the message
+      XHTMLManager.addBody(msg, xhtmlBody);
+
+      // Send the message that contains the XHTML
+      chat.sendMessage(msg);
+
+
+ +
+ +
Receive an XHTML Message

+ +Description

+ +It is also possible to obtain the XHTML content from a received message. Remember +that the specification defines that a message may contain several XHTML bodies +where each body should be for a different language.

+ +Usage

+ +To get the XHTML bodies of a given message just send the message #getBodies(Message) + to the class XHTMLManager. The answer of this message will be an + Iterator with the different XHTML bodies of the message or null if none.

+ +Example

+ +In this example we can see how to create a PacketListener that obtains the XHTML bodies of any received message. +

+
      // Create a listener for the chat and display any XHTML content
+      PacketListener packetListener = new PacketListener() {
+          public void processPacket(Packet packet) {
+              Message message = (Message) packet;
+              // Obtain the XHTML bodies of the message
+              Iterator it = XHTMLManager.getBodies(message);
+              if (it != null) {
+                 // Display the bodies on the console
+                 while (it.hasNext()) {
+	             String body = (String) it.next();
+	             System.out.println(body);
+	         }
+	      }
+            };
+      chat.addMessageListener(packetListener);
+
+
+
+ +
+ +
Discover support for XHTML Messages

+ +Description

+ +Before you start to send XHTML messages to a user you should discover if the user supports XHTML messages. +There are two ways to achieve the discovery, explicitly and implicitly. Explicit is when you first try +to discover if the user supports XHTML before sending any XHTML message. Implicit is when you send +XHTML messages without first discovering if the conversation partner's client supports XHTML and depenging on +the answer (normal message or XHTML message) you find out if the user supports XHTML messages or not. This +section explains how to explicitly discover for XHTML support.

+ +Usage

+ +In order to discover if a remote user supports XHTML messages send #isServiceEnabled(XMPPConnection +connection, String userID) to the class XHTMLManager where connection is the connection +to use to perform the service discovery and userID is the user to check (A fully qualified xmpp ID, +e.g. jdoe@example.com). This message will return true if the specified user handles XHTML messages.

+ +Example

+ +In this example we can see how to discover if a remote user supports XHTML Messages. +

+
      Message msg = chat.createMessage();
+      // Include a normal body in the message
+      msg.setBody(getTextToSend());
+      // Check if the other user supports XHTML messages
+      if (XHTMLManager.isServiceEnabled(connection, chat.getParticipant())) {
+          // Obtain the XHTML text to send from somewhere
+          String xhtmlBody = getXHTMLTextToSend();
+
+          // Include an XHTML body in the message
+          XHTMLManager.addBody(msg, xhtmlBody);
+      }
+
+      // Send the message
+      chat.sendMessage(msg);
+
+
+ + + Index: lams_tool_chat/lib/smack-2.2.0/documentation/gettingstarted.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/gettingstarted.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/gettingstarted.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,109 @@ + + + Smack: Getting Started - Jive Software + + + + +
+Getting Started With Smack +
+ + + +

+This document will introduce you to the Smack API and provide an overview of +important classes and concepts. +

+ +

+Requirements +

+ +The only requirement for Smack is JDK 1.2 or later +1. +An XML parser is embedded in the smack.jar file and no other third party +libraries are required.

+ +1 JDK 1.2 and 1.3 users that wish to use SSL connections must have the +JSSE library in their classpath. + +

+Establishing a Connection +

+ +The XMPPConnection class is used to create a connection to an +XMPP server. To create an SSL connection, use the SSLXMPPConnection class. +Below are code examples for making a connection:

+ +

+
+// Create a connection to the jabber.org server.
+XMPPConnection conn1 = new XMPPConnection("jabber.org");
+
+// Create a connection to the jabber.org server on a specific port.
+XMPPConnection conn2 = new XMPPConnection("jabber.org", 5222);
+
+// Create an SSL connection to jabber.org.
+XMPPConnection connection = new SSLXMPPConnection("jabber.org"); 
+
+ +

Once you've created a connection, you should login using a username and password +with the XMPPConnection.login(String username, String password) method. +Once you've logged in, you can being chatting with other users by creating +new Chat or GroupChat objects. + +

+Working with the Roster +

+The roster lets you keep track of the availability (presence) of other users. Users +can be organized into groups such as "Friends" and "Co-workers", and then you +discover whether each user is online or offline.

+ +Retrieve the roster using the XMPPConnection.getRoster() method. The roster +class allows you to find all the roster entries, the groups they belong to, and the +current presence status of each entry. + +

+Reading and Writing Packets +

+ +Each message to the XMPP server from a client is called a packet and is +sent as XML. The org.jivesoftware.smack.packet package contains +classes that encapsulate the three different basic packet types allowed by +XMPP (message, presence, and IQ). Classes such as Chat and GroupChat +provide higher-level constructs that manage creating and sending packets +automatically, but you can also create and send packets directly. Below +is a code example for changing your presence to let people know you're unavailable +and "out fishing":

+ +

+
+// Create a new presence. Pass in false to indicate we're unavailable.
+Presence presence = new Presence(Presence.Type.UNAVAILABLE);
+presence.setStatus("Gone fishing");
+// Send the packet (assume we have a XMPPConnection instance called "con").
+con.sendPacket(presence);
+
+

+ +Smack provides two ways to read incoming packets: PacketListener, and +PacketCollector. Both use PacketFilter instances to determine +which packets should be processed. A packet listener is used for event style programming, +while a packet collector has a result queue of packets that you can do +polling and blocking operations on. So, a packet listener is useful when +you want to take some action whenever a packet happens to come in, while a +packet collector is useful when you want to wait for a specific packet +to arrive. Packet collectors and listeners can be created using an +XMPPConnection instance. + + +

+ + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/images/debugwindow.gif =================================================================== diff -u Binary files differ Index: lams_tool_chat/lib/smack-2.2.0/documentation/images/enhanceddebugger.png =================================================================== diff -u Binary files differ Index: lams_tool_chat/lib/smack-2.2.0/documentation/images/roster.png =================================================================== diff -u Binary files differ Index: lams_tool_chat/lib/smack-2.2.0/documentation/images/smacklogo.png =================================================================== diff -u Binary files differ Index: lams_tool_chat/lib/smack-2.2.0/documentation/index.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/index.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/index.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,37 @@ + + + Smack Documentation - Jive Software + + + + + +
+Smack + +Smack Documentation +
+ +

+Contents: +

+ + + + + + + Index: lams_tool_chat/lib/smack-2.2.0/documentation/messaging.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/messaging.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/messaging.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,108 @@ + + + Smack: Chat - Jive Software + + + + + +
+Messaging using Chat and GroupChat +
+ + + +

+Sending messages back and forth is at the core of instant messaging. Two classes +aid in sending and receiving messages: +

+ +Both the Chat and GroupChat classes use the org.jivesoftware.smack.packet.Message packet +class to send messages. In certain circumstances, you may wish to bypass the higher-level +Chat and GroupChat classes to send and listen for messages directly. +

+ +

+Chat +

+ +A chat creates a new thread of messages (using a thread ID) between two users. The +following code snippet demonstrates how to create a new Chat with a user and then send +them a text message:

+ +

+// Assume we've created an XMPPConnection name "connection".
+Chat newChat = connection.createChat("jsmith@jivesoftware.com");
+newChat.sendMessage("Howdy!");
+

+ +The Chat.sendMessage(String) method is a convenience method that creates a Message +object, sets the body using the String parameter, then sends the message. In the case +that you wish to set additional values on a Message before sending it, use the +Chat.createMessage() and Chat.sendMessage(Message) methods, as in the +following code snippet:

+ +

+// Assume we've created an XMPPConnection name "connection".
+Chat newChat = connection.createChat("jsmith@jivesoftware.com");
+Message newMessage = newChat.createMessage();
+newMessage.setBody("Howdy!");
+message.setProperty("favoriteColor", "red");
+newChat.sendMessage(newMessage);
+

+ +The Chat object allows you to easily listen for replies from the other chat participant. +The following code snippet is a parrot-bot -- it echoes back everything the other user types.

+ +

+// Assume we've created an XMPPConnection name "connection".
+Chat newChat = connection.createChat("jsmith@jivesoftware.com");
+newMessage.setBody("Hi, I'm an annoying parrot-bot! Type something back to me.");
+while (true) {
+    // Wait for the next message the user types to us.
+    Message message = newChat.nextMessage();
+    // Send back the same text the other user sent us.
+    newChat.sendMessage(message.getBody());
+}
+

+ +The code above uses the Chat.nextMessage() method to get the next message, which +will wait indefinitely until another message comes in. There are other methods to wait +a specific amount of time for a new message, or you can add a listener that will be notified +every time a new message arrives. + +

+GroupChat +

+ +A group chat connects to a chat room on a server and allows you to send and receive messages +from a group of people. Before you can send or receive messages, you must join the room using +a nickname. The following code snippet connects to a chat room and sends a +message.

+ +

+// Assume we've created an XMPPConnection name "connection".
+GroupChat newGroupChat = connection.createGroupChat("test@jivesoftware.com");
+// Join the group chat using the nickname "jsmith".
+newGroupChat.join("jsmith");
+// Send a message to all the other people in the chat room.
+newGroupChat.sendMessage("Howdy!");
+

+ +In general, sending and receiving messages in a group chat works very similarly to +the Chat class. Method are also provided to get the list of the other +users in the room.

+ +


+ +

+ + + Index: lams_tool_chat/lib/smack-2.2.0/documentation/overview.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/overview.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/overview.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,72 @@ + + + Smack: Overview - Jive Software + + + + + +
+Smack Overview +
+ + + +

+ +Smack is a library for communicating with XMPP servers to perform +instant messaging and chat.

+ +

+Smack Key Advantages +

+ + + +

+About XMPP +

+ +XMPP (eXtensible Messaging and Presence Protocol) is an open, XML based protocol +making it's way through the IETF approval process under the guidance of the +Jabber Software Foundation (http://www.jabber.org). + +

+How To Use This Documentation +

+ +This documentation assumes that you're already familiar with the main features of XMPP +instant messaging. It's also highly recommended that you open the Javadoc API guide and +use that as a reference while reading through this documentation. + +


+ + + + Index: lams_tool_chat/lib/smack-2.2.0/documentation/processing.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/processing.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/processing.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,87 @@ + + + Smack: Processing Incoming Packets - Jive Software + + + + + +
+Processing Incoming Packets +
+ + + +

+ +Smack provides a flexible framework for processing incoming packets using two constructs: +

+A packet listener is used for event style programming, while a packet collector has a +result queue of packets that you can do polling and blocking operations on. So, a packet +listener is useful when you want to take some action whenever a packet happens to come in, +while a packet collector is useful when you want to wait for a specific packet to +arrive. Packet collectors and listeners can be created using an XMPPConnection instance.

+ +The org.jivesoftware.smack.filter.PacketFilter interface determines which +specific packets will be delivered to a PacketCollector or PacketListener. +Many pre-defined filters can be found in the org.jivesoftware.smack.filter package. + +

+The following code snippet demonstrates registering both a packet collector and a packet +listener:

+ +

+// Create a packet filter to listen for new messages from a particular
+// user. We use an AndFilter to combine two other filters.
+PacketFilter filter = new AndFilter(new PacketTypeFilter(Message.class), 
+        new FromContainsFilter("mary@jivesoftware.com"));
+// Assume we've created an XMPPConnection name "connection".
+
+// First, register a packet collector using the filter we created.
+PacketCollector myCollector = connection.createPacketCollector(filter);
+// Normally, you'd do something with the collector, like wait for new packets.
+
+// Next, create a packet listener. We use an anonymous inner class for brevity.
+PacketListener myListener = new PacketListener() {
+        public void processPacket(Packet packet) {
+            // Do something with the incoming packet here.
+        }
+    };
+// Register the listener.
+connection.addPacketListener(myListener, filter);
+

+ +

+Standard Packet Filters +

+ +A rich set of packet filters are included with Smack, or you can create your own filters by coding +to the PacketFilter interface. The default set of filters includes: + + + + +


+ + + + \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/documentation/properties.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/properties.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/properties.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,119 @@ + + + Smack: Packet Properties - Jive Software + + + + +
+Packet Properties +
+ + + +

+Smack provides an easy mechanism for attaching arbitrary properties to packets. Each property +has a String name, and a value that is a Java primitive (int, long, float, double, boolean) or +any Serializable object (a Java object is Serializable when it implements the Serializable +interface). +

+ +

+Using the API +

+ +

+All major objects have property support, such as Message objects. The following code +demonstrates how to set properties: +

+ +
+Message message = chat.createMessage();
+// Add a Color object as a property.
+message.setProperty("favoriteColor", new Color(0, 0, 255));
+// Add an int as a property.
+message.setProperty("favoriteNumber", 4);
+chat.sendMessage(message);
+
+ +

+Getting those same properties would use the following code: +

+ +
+Message message = chat.nextMessage();
+// Get a Color object property.
+Color favoriteColor = (Color)message.getProperty("favoriteColor");
+// Get an int property. Note that properties are always returned as
+// Objects, so we must cast the value to an Integer, then convert
+// it to an int.
+int favoriteNumber = ((Integer)message.getProperty("favoriteNumber")).intValue();
+
+ +

+Objects as Properties +

+ +

+Using objects as property values is a very powerful and easy way to exchange data. However, +you should keep the following in mind: +

+ + + +

+XML Format +

+ +

+The current XML format used to send property data is not a standard, so will likely not be +recognized by clients not using Smack. The XML looks like the following (comments added for +clarity): +

+ +
+<!-- All properties are in a x block. --> 
+<properties xmlns="http://www.jivesoftware.com/xmlns/xmpp/properties">
+    <!-- First, a property named "prop1" that's an integer. --> 
+    <property>
+        <name>prop1</name>
+        <value type="integer">123</value>
+    <property>
+    <!-- Next, a Java object that's been serialized and then converted
+         from binary data to base-64 encoded text. -->  
+    <property>
+        <name>blah2</name>
+        <value type="java-object">adf612fna9nab</value>
+    <property>
+</properties> 
+
+ +

+The currently supported types are: integer, long, float, +double, boolean, string, and java-object. +

+ + + + + Index: lams_tool_chat/lib/smack-2.2.0/documentation/providers.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/providers.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/providers.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,121 @@ + + + Smack: Provider Architecture - Jive Software + + + + + +
+Provider Architecture: Packet Extensions and Custom IQ's +
+ + + +

+ +The Smack provider architecture is a system for plugging in +custom XML parsing of packet extensions and IQ packets. The +standard Smack Extensions +are built using the provider architecture. Two types of +providers exist:

+ +

IQProvider

+ +By default, Smack only knows how to process IQ packets with sub-packets that +are in a few namespaces such as: + +Because many more IQ types are part of XMPP and its extensions, a pluggable IQ parsing +mechanism is provided. IQ providers are registered programatically or by creating a +smack.providers file in the META-INF directory of your JAR file. The file is an XML +document that contains one or more iqProvider entries, as in the following example: + +
+ <?xml version="1.0"?>
+ <smackProviders>
+     <iqProvider>
+         <elementName>query</elementName>
+         <namespace>jabber:iq:time</namespace>
+         <className>org.jivesoftware.smack.packet.Time</className>
+     </iqProvider>
+ </smackProviders>
+ +Each IQ provider is associated with an element name and a namespace. In the +example above, the element name is query and the namespace is +abber:iq:time. If multiple provider entries attempt to register to +handle the same namespace, the first entry loaded from the classpath will +take precedence.

+ +The IQ provider class can either implement the IQProvider +interface, or extend the IQ class. In the former case, each IQProvider is +responsible for parsing the raw XML stream to create an IQ instance. In +the latter case, bean introspection is used to try to automatically set +properties of the IQ instance using the values found in the IQ packet XML. +For example, an XMPP time packet resembles the following: + +

+<iq type='result' to='joe@example.com' from='mary@example.com' id='time_1'>
+    <query xmlns='jabber:iq:time'>
+        <utc>20020910T17:58:35</utc>
+        <tz>MDT</tz>
+        <display>Tue Sep 10 12:58:35 2002</display>
+    </query>
+</iq>
+ +In order for this packet to be automatically mapped to the Time object listed in the +providers file above, it must have the methods setUtc(String), setTz(String), and +setDisplay(String). The introspection service will automatically try to convert the String +value from the XML into a boolean, int, long, float, double, or Class depending on the +type the IQ instance expects.

+ +

PacketExtensionProvider

+ +Packet extension providers provide a pluggable system for +packet extensions, which are child elements in a custom namespace +of IQ, message and presence packets. +Each extension provider is registered with an element name and namespace +in the smack.providers file as in the following example: + +
+<?xml version="1.0"?>
+<smackProviders>
+    <extensionProvider>
+        <elementName>x</elementName>
+        <namespace>jabber:iq:event</namespace>
+        <className>org.jivesoftware.smack.packet.MessageEvent</className>
+    </extensionProvider>
+</smackProviders>
+ +If multiple provider entries attempt to register to handle the same element +name and namespace, the first entry loaded from the classpath will take +precedence.

+ +Whenever a packet extension is found in a packet, parsing will +be passed to the correct provider. Each provider can either implement the +PacketExtensionProvider interface or be a standard Java Bean. In the +former case, each extension provider is responsible for parsing the raw +XML stream to contruct an object. In the latter case, bean introspection +is used to try to automatically set the properties of the class using +the values in the packet extension sub-element.

+ +When an extension provider is not registered for an element name and +namespace combination, Smack will store all top-level elements of the +sub-packet in DefaultPacketExtension object and then attach it to the packet. + + +


+ +

+ + + Index: lams_tool_chat/lib/smack-2.2.0/documentation/roster.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/roster.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/roster.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,125 @@ + + + Smack: Roster and Presence - Jive Software + + + + + +
+Roster and Presence +
+ + + +

+ +The roster lets you keep track of the availability ("presence") of other users. +A roster also allows you to organize users into groups such as "Friends" and +"Co-workers". Other IM systems refer to the roster as the buddy list, contact list, +etc.

+ +A Roster instance is obtained using the XMPPConnection.getRoster() +method, but only after successfully logging into a server. + +

Roster Entries

+ +

+Every user in a roster is represented by a RosterEntry, which consists of:

+ +The following code snippet prints all entries in the roster: + +
+Roster roster = con.getRoster();
+for (Iterator i=roster.getEntries(); i.hasNext(); ) {
+    System.out.println(i.next());
+}
+
+ +Methods also exist to get individual entries, the list of unfiled entries, or to get one or +all roster groups. + +

Presence

+ +Roster + +

Every entry in the roster has presence associated with it. The +Roster.getPresence(String user) method will return a Presence object with +the user's presence or null if the user is not online or you are not +subscribed to the user's presence. Note: typically, presence +subscription is always tied to the user being on the roster, but this is not +true in all cases.

+ +

A user either has a presence of online or offline. When a user is online, their +presence may contain extended information such as what they are currently doing, whether +they wish to be disturbed, etc. See the Presence class for further details.

+ +

Listening for Roster and Presence Changes

+ +

The typical use of the roster class is to display a tree view of groups and entries +along with the current presence value of each entry. As an example, see the image showing +a Roster in the Exodus XMPP client to the right.

+ +

The presence information will likely +change often, and it's also possible for the roster entries to change or be deleted. +To listen for changing roster and presence data, a RosterListener should be used. +The following code snippet registers a RosterListener with the Roster that prints +any presence changes in the roster to standard out. A normal client would use +similar code to update the roster UI with the changing information. + +
+ +

+final Roster roster = con.getRoster();
+roster.addRosterListener(new RosterListener() {
+    public void rosterModified() {
+        // Ignore event for this example.
+    }
+
+    public void presenceChanged(String user) {
+        // If the presence is unavailable then "null" will be printed,
+        // which is fine for this example.
+        System.out.println("Presence changed: " + roster.getPresence(user));
+    }
+});
+
+ +

Adding Entries to the Roster

+ +

Rosters and presence use a permissions-based model where users must give permission before +they are added to someone else's roster. This protects a user's privacy by +making sure that only approved users are able to view their presence information. +Therefore, when you add a new roster entry it will be in a pending state until +the other user accepts your request.

+ +If another user requests a presence subscription so they can add you to their roster, +you must accept or reject that request. Smack handles presence subscription requests +in one of three ways: + +The mode can be set using the Roster.setSubscriptionMode(int subscriptionMode) +method. Simple clients normally use one of the automated subscription modes, while +full-featured clients should manually process subscription requests and let the +end-user accept or reject each request. If using the manual mode, a PacketListener +should be registered that listens for Presence packets that have a type of +Presence.Type.SUBSCRIBE. + +


+ + + + + Index: lams_tool_chat/lib/smack-2.2.0/documentation/style.css =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/documentation/style.css (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/documentation/style.css (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,56 @@ +BODY { + font-size : 100%; + background-color : #fff; +} +BODY, TD, TH { + font-family : tahoma, arial, helvetica; + font-size : 0.8em; +} +PRE, TT, CODE { + font-family : courier new, monospaced; + font-size : 1.0em; +} +A:hover { + text-decoration : none; +} +LI { + padding-bottom : 4px; +} +.header { + font-size : 1.4em; + font-weight : bold; + width : 100%; + border-bottom : 1px #ccc solid; + padding-bottom : 2px; +} +.subheader { + font-weight : bold; +} +.footer { + font-size : 0.8em; + color : #999; + text-align : center; + width : 100%; + border-top : 1px #ccc solid; + padding-top : 2px; +} +.code { + border : 1px #ccc solid; + padding : 0em 1.0em 0em 1.0em; + margin : 4px 0px 4px 0px; +} +.nav, .nav A { + font-family : verdana; + font-size : 0.85em; + color : #600; + text-decoration : none; + font-weight : bold; +} +.nav { + width : 100%; + border-bottom : 1px #ccc solid; + padding : 3px 3px 5px 1px; +} +.nav A:hover { + text-decoration : underline; +} \ No newline at end of file Index: lams_tool_chat/lib/smack-2.2.0/javadoc/allclasses-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/allclasses-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/allclasses-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,430 @@ + + + + + + +All Classes (Smack 2.2.0 Documentation) + + + + + + + + + + +All Classes +
+ + + + + +
AccountManager +
+Affiliate +
+AndFilter +
+Authentication +
+Bind +
+Bytestream +
+Bytestream.Activate +
+Bytestream.Mode +
+Bytestream.StreamHost +
+Bytestream.StreamHostUsed +
+BytestreamsProvider +
+Cache +
+Chat +
+ConnectionConfiguration +
+ConnectionEstablishedListener +
+ConnectionListener +
+ConsoleDebugger +
+DataForm +
+DataForm.Item +
+DataForm.ReportedData +
+DataFormProvider +
+DeafOccupantInterceptor +
+DefaultMessageEventRequestListener +
+DefaultPacketExtension +
+DefaultParticipantStatusListener +
+DefaultPrivateData +
+DefaultUserStatusListener +
+DelayInformation +
+DelayInformationProvider +
+DiscoverInfo +
+DiscoverInfo.Feature +
+DiscoverInfo.Identity +
+DiscoverInfoProvider +
+DiscoverItems +
+DiscoverItems.Item +
+DiscoverItemsProvider +
+DiscussionHistory +
+DNSUtil +
+DNSUtil.HostAddress +
+EnhancedDebugger +
+EnhancedDebuggerWindow +
+FaultTolerantNegotiator +
+FileTransfer +
+FileTransfer.Error +
+FileTransfer.Status +
+FileTransferListener +
+FileTransferManager +
+FileTransferNegotiator +
+FileTransferRequest +
+Form +
+FormField +
+FormField.Option +
+FromContainsFilter +
+FromMatchesFilter +
+GoogleTalkConnection +
+GroupChat +
+GroupChatInvitation +
+GroupChatInvitation.Provider +
+HostedRoom +
+IBBExtensions +
+IBBExtensions.Close +
+IBBExtensions.Data +
+IBBExtensions.Open +
+IBBProviders +
+IBBProviders.Close +
+IBBProviders.Data +
+IBBProviders.Open +
+IBBTransferNegotiator +
+IncomingFileTransfer +
+InvitationListener +
+InvitationRejectionListener +
+IQ +
+IQ.Type +
+IQProvider +
+IQTypeFilter +
+LastActivity +
+LastActivity.Provider +
+LiteDebugger +
+Message +
+Message.Type +
+MessageEvent +
+MessageEventManager +
+MessageEventNotificationListener +
+MessageEventProvider +
+MessageEventRequestListener +
+MessageTypeFilter +
+MUCAdmin +
+MUCAdmin.Item +
+MUCAdminProvider +
+MUCInitialPresence +
+MUCInitialPresence.History +
+MUCOwner +
+MUCOwner.Destroy +
+MUCOwner.Item +
+MUCOwnerProvider +
+MUCUser +
+MUCUser.Decline +
+MUCUser.Destroy +
+MUCUser.Invite +
+MUCUser.Item +
+MUCUser.Status +
+MUCUserProvider +
+MultipleAddresses +
+MultipleAddresses.Address +
+MultipleAddressesProvider +
+MultipleRecipientInfo +
+MultipleRecipientManager +
+MultiUserChat +
+NodeInformationProvider +
+NotFilter +
+ObservableReader +
+ObservableWriter +
+Occupant +
+OfflineMessageHeader +
+OfflineMessageInfo +
+OfflineMessageInfo.Provider +
+OfflineMessageManager +
+OfflineMessageRequest +
+OfflineMessageRequest.Item +
+OfflineMessageRequest.Provider +
+OrFilter +
+OutgoingFileTransfer +
+OutgoingFileTransfer.NegotiationProgress +
+Packet +
+PacketCollector +
+PacketExtension +
+PacketExtensionFilter +
+PacketExtensionProvider +
+PacketFilter +
+PacketIDFilter +
+PacketInterceptor +
+PacketListener +
+PacketParserUtils +
+PacketTypeFilter +
+ParticipantStatusListener +
+Presence +
+Presence.Mode +
+Presence.Type +
+PrivateData +
+PrivateDataManager +
+PrivateDataManager.PrivateDataIQProvider +
+PrivateDataProvider +
+ProviderManager +
+ReaderListener +
+Registration +
+RemoteRosterEntry +
+ReportedData +
+ReportedData.Column +
+ReportedData.Field +
+ReportedData.Row +
+RoomInfo +
+Roster +
+RosterEntry +
+RosterExchange +
+RosterExchangeListener +
+RosterExchangeManager +
+RosterExchangeProvider +
+RosterGroup +
+RosterListener +
+RosterPacket +
+RosterPacket.Item +
+RosterPacket.ItemStatus +
+RosterPacket.ItemType +
+SASLAnonymous +
+SASLAuthentication +
+SASLMechanism +
+SASLPlainMechanism +
+ServiceDiscoveryManager +
+Session +
+SharedGroupManager +
+SharedGroupsInfo +
+SharedGroupsInfo.Provider +
+SmackConfiguration +
+SmackDebugger +
+Socks5TransferNegotiator +
+SSLXMPPConnection +
+StreamError +
+StreamInitiation +
+StreamInitiation.File +
+StreamInitiationProvider +
+StreamNegotiator +
+StringUtils +
+SubjectUpdatedListener +
+ThreadFilter +
+Time +
+ToContainsFilter +
+UserSearch +
+UserSearch.Provider +
+UserSearchManager +
+UserStatusListener +
+VCard +
+VCardProvider +
+Version +
+WriterListener +
+XHTMLExtension +
+XHTMLExtensionProvider +
+XHTMLManager +
+XHTMLText +
+XMPPConnection +
+XMPPError +
+XMPPException +
+
+ + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/allclasses-noframe.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/allclasses-noframe.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/allclasses-noframe.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,430 @@ + + + + + + +All Classes (Smack 2.2.0 Documentation) + + + + + + + + + + +All Classes +
+ + + + + +
AccountManager +
+Affiliate +
+AndFilter +
+Authentication +
+Bind +
+Bytestream +
+Bytestream.Activate +
+Bytestream.Mode +
+Bytestream.StreamHost +
+Bytestream.StreamHostUsed +
+BytestreamsProvider +
+Cache +
+Chat +
+ConnectionConfiguration +
+ConnectionEstablishedListener +
+ConnectionListener +
+ConsoleDebugger +
+DataForm +
+DataForm.Item +
+DataForm.ReportedData +
+DataFormProvider +
+DeafOccupantInterceptor +
+DefaultMessageEventRequestListener +
+DefaultPacketExtension +
+DefaultParticipantStatusListener +
+DefaultPrivateData +
+DefaultUserStatusListener +
+DelayInformation +
+DelayInformationProvider +
+DiscoverInfo +
+DiscoverInfo.Feature +
+DiscoverInfo.Identity +
+DiscoverInfoProvider +
+DiscoverItems +
+DiscoverItems.Item +
+DiscoverItemsProvider +
+DiscussionHistory +
+DNSUtil +
+DNSUtil.HostAddress +
+EnhancedDebugger +
+EnhancedDebuggerWindow +
+FaultTolerantNegotiator +
+FileTransfer +
+FileTransfer.Error +
+FileTransfer.Status +
+FileTransferListener +
+FileTransferManager +
+FileTransferNegotiator +
+FileTransferRequest +
+Form +
+FormField +
+FormField.Option +
+FromContainsFilter +
+FromMatchesFilter +
+GoogleTalkConnection +
+GroupChat +
+GroupChatInvitation +
+GroupChatInvitation.Provider +
+HostedRoom +
+IBBExtensions +
+IBBExtensions.Close +
+IBBExtensions.Data +
+IBBExtensions.Open +
+IBBProviders +
+IBBProviders.Close +
+IBBProviders.Data +
+IBBProviders.Open +
+IBBTransferNegotiator +
+IncomingFileTransfer +
+InvitationListener +
+InvitationRejectionListener +
+IQ +
+IQ.Type +
+IQProvider +
+IQTypeFilter +
+LastActivity +
+LastActivity.Provider +
+LiteDebugger +
+Message +
+Message.Type +
+MessageEvent +
+MessageEventManager +
+MessageEventNotificationListener +
+MessageEventProvider +
+MessageEventRequestListener +
+MessageTypeFilter +
+MUCAdmin +
+MUCAdmin.Item +
+MUCAdminProvider +
+MUCInitialPresence +
+MUCInitialPresence.History +
+MUCOwner +
+MUCOwner.Destroy +
+MUCOwner.Item +
+MUCOwnerProvider +
+MUCUser +
+MUCUser.Decline +
+MUCUser.Destroy +
+MUCUser.Invite +
+MUCUser.Item +
+MUCUser.Status +
+MUCUserProvider +
+MultipleAddresses +
+MultipleAddresses.Address +
+MultipleAddressesProvider +
+MultipleRecipientInfo +
+MultipleRecipientManager +
+MultiUserChat +
+NodeInformationProvider +
+NotFilter +
+ObservableReader +
+ObservableWriter +
+Occupant +
+OfflineMessageHeader +
+OfflineMessageInfo +
+OfflineMessageInfo.Provider +
+OfflineMessageManager +
+OfflineMessageRequest +
+OfflineMessageRequest.Item +
+OfflineMessageRequest.Provider +
+OrFilter +
+OutgoingFileTransfer +
+OutgoingFileTransfer.NegotiationProgress +
+Packet +
+PacketCollector +
+PacketExtension +
+PacketExtensionFilter +
+PacketExtensionProvider +
+PacketFilter +
+PacketIDFilter +
+PacketInterceptor +
+PacketListener +
+PacketParserUtils +
+PacketTypeFilter +
+ParticipantStatusListener +
+Presence +
+Presence.Mode +
+Presence.Type +
+PrivateData +
+PrivateDataManager +
+PrivateDataManager.PrivateDataIQProvider +
+PrivateDataProvider +
+ProviderManager +
+ReaderListener +
+Registration +
+RemoteRosterEntry +
+ReportedData +
+ReportedData.Column +
+ReportedData.Field +
+ReportedData.Row +
+RoomInfo +
+Roster +
+RosterEntry +
+RosterExchange +
+RosterExchangeListener +
+RosterExchangeManager +
+RosterExchangeProvider +
+RosterGroup +
+RosterListener +
+RosterPacket +
+RosterPacket.Item +
+RosterPacket.ItemStatus +
+RosterPacket.ItemType +
+SASLAnonymous +
+SASLAuthentication +
+SASLMechanism +
+SASLPlainMechanism +
+ServiceDiscoveryManager +
+Session +
+SharedGroupManager +
+SharedGroupsInfo +
+SharedGroupsInfo.Provider +
+SmackConfiguration +
+SmackDebugger +
+Socks5TransferNegotiator +
+SSLXMPPConnection +
+StreamError +
+StreamInitiation +
+StreamInitiation.File +
+StreamInitiationProvider +
+StreamNegotiator +
+StringUtils +
+SubjectUpdatedListener +
+ThreadFilter +
+Time +
+ToContainsFilter +
+UserSearch +
+UserSearch.Provider +
+UserSearchManager +
+UserStatusListener +
+VCard +
+VCardProvider +
+Version +
+WriterListener +
+XHTMLExtension +
+XHTMLExtensionProvider +
+XHTMLManager +
+XHTMLText +
+XMPPConnection +
+XMPPError +
+XMPPException +
+
+ + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/constant-values.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/constant-values.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/constant-values.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,588 @@ + + + + + + +Constant Field Values (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + + + + + + +
+org.jivesoftware.*
+ +

+ + + + + + + + + + + + + + + + + + + + + + +
org.jivesoftware.smack.Roster
+public static final intSUBSCRIPTION_ACCEPT_ALL0
+public static final intSUBSCRIPTION_MANUAL2
+public static final intSUBSCRIPTION_REJECT_ALL1
+ +

+ +

+ + + + + + + + + + + + +
org.jivesoftware.smack.packet.Packet
+public static final StringID_NOT_AVAILABLE"ID_NOT_AVAILABLE"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.jivesoftware.smackx.Form
+public static final StringTYPE_CANCEL"cancel"
+public static final StringTYPE_FORM"form"
+public static final StringTYPE_RESULT"result"
+public static final StringTYPE_SUBMIT"submit"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.jivesoftware.smackx.FormField
+public static final StringTYPE_BOOLEAN"boolean"
+public static final StringTYPE_FIXED"fixed"
+public static final StringTYPE_HIDDEN"hidden"
+public static final StringTYPE_JID_MULTI"jid-multi"
+public static final StringTYPE_JID_SINGLE"jid-single"
+public static final StringTYPE_LIST_MULTI"list-multi"
+public static final StringTYPE_LIST_SINGLE"list-single"
+public static final StringTYPE_TEXT_MULTI"text-multi"
+public static final StringTYPE_TEXT_PRIVATE"text-private"
+public static final StringTYPE_TEXT_SINGLE"text-single"
+ +

+ +

+ + + + + + + + + + + + + + + + + +
org.jivesoftware.smackx.GroupChatInvitation
+public static final StringELEMENT_NAME"x"
+public static final StringNAMESPACE"jabber:x:conference"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + +
org.jivesoftware.smackx.filetransfer.FileTransferNegotiator
+public static final StringBYTE_STREAM"http://jabber.org/protocol/bytestreams"
+public static final StringINBAND_BYTE_STREAM"http://jabber.org/protocol/ibb"
+protected static final StringSTREAM_DATA_FIELD_NAME"stream-method"
+ +

+ +

+ + + + + + + + + + + + + + + + + +
org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator
+public static final intDEFAULT_BLOCK_SIZE4096
+protected static final StringNAMESPACE"http://jabber.org/protocol/ibb"
+ +

+ +

+ + + + + + + + + + + + +
org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator
+protected static final StringNAMESPACE"http://jabber.org/protocol/bytestreams"
+ +

+ +

+ + + + + + + + + + + + + + + + + +
org.jivesoftware.smackx.packet.DiscoverItems.Item
+public static final StringREMOVE_ACTION"remove"
+public static final StringUPDATE_ACTION"update"
+ +

+ +

+ + + + + + + + + + + + +
org.jivesoftware.smackx.packet.IBBExtensions
+public static final StringNAMESPACE"http://jabber.org/protocol/ibb"
+ +

+ +

+ + + + + + + + + + + + +
org.jivesoftware.smackx.packet.IBBExtensions.Close
+public static final StringELEMENT_NAME"close"
+ +

+ +

+ + + + + + + + + + + + +
org.jivesoftware.smackx.packet.IBBExtensions.Data
+public static final StringELEMENT_NAME"data"
+ +

+ +

+ + + + + + + + + + + + +
org.jivesoftware.smackx.packet.IBBExtensions.Open
+public static final StringELEMENT_NAME"open"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.jivesoftware.smackx.packet.MessageEvent
+public static final StringCANCELLED"cancelled"
+public static final StringCOMPOSING"composing"
+public static final StringDELIVERED"delivered"
+public static final StringDISPLAYED"displayed"
+public static final StringOFFLINE"offline"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
org.jivesoftware.smackx.packet.MultipleAddresses
+public static final StringBCC"bcc"
+public static final StringCC"cc"
+public static final StringNO_REPLY"noreply"
+public static final StringREPLY_ROOM"replyroom"
+public static final StringREPLY_TO"replyto"
+public static final StringTO"to"
+ +

+ +

+


+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/deprecated-list.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/deprecated-list.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/deprecated-list.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,140 @@ + + + + + + +Deprecated List (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Deprecated API

+
+
+Contents + +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/help-doc.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/help-doc.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/help-doc.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,213 @@ + + + + + + +API Help (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

+
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/index-all.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/index-all.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/index-all.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,5119 @@ + + + + + + +Index (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +A B C D E F G H I J K L M N O P R S T U V W X _
+

+A

+
+
accept(Packet) - +Method in class org.jivesoftware.smack.filter.AndFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.FromContainsFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.FromMatchesFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.IQTypeFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.MessageTypeFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.NotFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.OrFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.PacketExtensionFilter +
  +
accept(Packet) - +Method in interface org.jivesoftware.smack.filter.PacketFilter +
Tests whether or not the specified packet should pass the filter. +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.PacketIDFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.PacketTypeFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.ThreadFilter +
  +
accept(Packet) - +Method in class org.jivesoftware.smack.filter.ToContainsFilter +
  +
accept() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
Accepts this file transfer and creates the incoming file transfer. +
AccountManager - Class in org.jivesoftware.smack
Allows creation and management of accounts on an XMPP server.
AccountManager(XMPPConnection) - +Constructor for class org.jivesoftware.smack.AccountManager +
Creates a new AccountManager instance. +
addAddress(String, String, String, String, boolean, String) - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses +
Adds a new address to which the packet is going to be sent or was sent. +
addBody(String) - +Method in class org.jivesoftware.smackx.packet.XHTMLExtension +
Adds a body to the packet. +
addBody(Message, String) - +Static method in class org.jivesoftware.smackx.XHTMLManager +
Adds an XHTML body to the message. +
addColumn(ReportedData.Column) - +Method in class org.jivesoftware.smackx.ReportedData +
Adds a new Column +
addConnectionListener(ConnectionListener) - +Method in class org.jivesoftware.smack.XMPPConnection +
Adds a connection listener to this connection that will be notified when + the connection closes or fails. +
addConnectionListener(ConnectionEstablishedListener) - +Static method in class org.jivesoftware.smack.XMPPConnection +
Adds a connection established listener that will be notified when a new connection + is established. +
addEntry(RosterEntry) - +Method in class org.jivesoftware.smack.RosterGroup +
Adds a roster entry to this group. +
addExtension(PacketExtension) - +Method in class org.jivesoftware.smack.packet.Packet +
Adds a packet extension to the packet. +
addExtensionProvider(String, String, Object) - +Static method in class org.jivesoftware.smack.provider.ProviderManager +
Adds an extension provider with the specified element name and name space. +
addFeature(String) - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo +
Adds a new feature to the discovered information. +
addFeature(String) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Registers that a new feature is supported by this XMPP entity. +
addField(FormField) - +Method in class org.jivesoftware.smackx.Form +
Adds a new field to complete as part of the form. +
addField(FormField) - +Method in class org.jivesoftware.smackx.packet.DataForm +
Adds a new field as part of the form. +
addFileTransferListener(FileTransferListener) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferManager +
Add a file transfer listener to listen to incoming file transfer + requests. +
addFilter(PacketFilter) - +Method in class org.jivesoftware.smack.filter.AndFilter +
Adds a filter to the filter list for the AND operation. +
addFilter(PacketFilter) - +Method in class org.jivesoftware.smack.filter.OrFilter +
Adds a filter to the filter list for the OR operation. +
addGroupName(String) - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Adds a group name. +
addIdentity(DiscoverInfo.Identity) - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo +
Adds a new identity of the requested entity to the discovered information. +
addInstruction(String) - +Method in class org.jivesoftware.smackx.packet.DataForm +
Adds a new instruction to the list of instructions that explain how to fill out the form + and what the form is about. +
addInvitationListener(XMPPConnection, InvitationListener) - +Static method in class org.jivesoftware.smackx.muc.MultiUserChat +
Adds a listener to invitation notifications. +
addInvitationRejectionListener(InvitationRejectionListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Adds a listener to invitation rejections notifications. +
addIQProvider(String, String, Object) - +Static method in class org.jivesoftware.smack.provider.ProviderManager +
Adds an IQ provider (must be an instance of IQProvider or Class object that is an IQ) + with the specified element name and name space. +
addItem(DataForm.Item) - +Method in class org.jivesoftware.smackx.packet.DataForm +
Adds a new item returned from a search. +
addItem(DiscoverItems.Item) - +Method in class org.jivesoftware.smackx.packet.DiscoverItems +
Adds a new item to the discovered information. +
addItem(MUCAdmin.Item) - +Method in class org.jivesoftware.smackx.packet.MUCAdmin +
Adds an item child that holds information about roles, affiliation, jids and nicks. +
addItem(MUCOwner.Item) - +Method in class org.jivesoftware.smackx.packet.MUCOwner +
Adds an item child that holds information about affiliation, jids and nicks. +
addItem(OfflineMessageRequest.Item) - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest +
Adds an item child that holds information about offline messages to view or delete. +
addMessageEventNotificationListener(MessageEventNotificationListener) - +Method in class org.jivesoftware.smackx.MessageEventManager +
Adds a message event notification listener. +
addMessageEventRequestListener(MessageEventRequestListener) - +Method in class org.jivesoftware.smackx.MessageEventManager +
Adds a message event request listener. +
addMessageListener(PacketListener) - +Method in class org.jivesoftware.smack.Chat +
Adds a packet listener that will be notified of any new messages in the + chat. +
addMessageListener(PacketListener) - +Method in class org.jivesoftware.smack.GroupChat +
Adds a packet listener that will be notified of any new messages in the + group chat. +
addMessageListener(PacketListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Adds a packet listener that will be notified of any new messages in the + group chat. +
addNotificationsRequests(Message, boolean, boolean, boolean, boolean) - +Static method in class org.jivesoftware.smackx.MessageEventManager +
Adds event notification requests to a message. +
addOption(FormField.Option) - +Method in class org.jivesoftware.smackx.FormField +
Adss an available options to the question that the user has in order to answer + the question. +
addPacketListener(PacketListener, PacketFilter) - +Method in class org.jivesoftware.smack.XMPPConnection +
Registers a packet listener with this connection. +
addPacketWriterInterceptor(PacketInterceptor, PacketFilter) - +Method in class org.jivesoftware.smack.XMPPConnection +
Registers a packet interceptor with this connection. +
addPacketWriterListener(PacketListener, PacketFilter) - +Method in class org.jivesoftware.smack.XMPPConnection +
Registers a packet listener with this connection. +
addParticipantListener(PacketListener) - +Method in class org.jivesoftware.smack.GroupChat +
Adds a packet listener that will be notified of any new Presence packets + sent to the group chat. +
addParticipantListener(PacketListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Adds a packet listener that will be notified of any new Presence packets + sent to the group chat. +
addParticipantStatusListener(ParticipantStatusListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Adds a listener that will be notified of changes in occupants status in the room + such as the user being kicked, banned, or granted admin permissions. +
addPresenceInterceptor(PacketInterceptor) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Adds a new PacketInterceptor that will be invoked every time a new presence + is going to be sent by this MultiUserChat to the server. +
addPrivateDataProvider(String, String, PrivateDataProvider) - +Static method in class org.jivesoftware.smackx.PrivateDataManager +
Adds a private data provider with the specified element name and name space. +
addReaderListener(ReaderListener) - +Method in class org.jivesoftware.smack.util.ObservableReader +
Adds a reader listener to this reader that will be notified when + new strings are read. +
addRosterEntry(RosterEntry) - +Method in class org.jivesoftware.smackx.packet.RosterExchange +
Adds a roster entry to the packet. +
addRosterEntry(RemoteRosterEntry) - +Method in class org.jivesoftware.smackx.packet.RosterExchange +
Adds a remote roster entry to the packet. +
addRosterItem(RosterPacket.Item) - +Method in class org.jivesoftware.smack.packet.RosterPacket +
Adds a roster item to the packet. +
addRosterListener(RosterListener) - +Method in class org.jivesoftware.smack.Roster +
Adds a listener to this roster. +
addRosterListener(RosterExchangeListener) - +Method in class org.jivesoftware.smackx.RosterExchangeManager +
Adds a listener to roster exchanges. +
addRow(ReportedData.Row) - +Method in class org.jivesoftware.smackx.ReportedData +
Adds a new Row. +
addStreamHost(String, String) - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Adds a potential stream host that the remote user can connect to to + receive the file. +
addStreamHost(String, String, int) - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Adds a potential stream host that the remote user can connect to to + receive the file. +
addStreamHost(Bytestream.StreamHost) - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Adds a potential stream host that the remote user can transfer the file + through. +
addSubjectUpdatedListener(SubjectUpdatedListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Adds a listener to subject change notifications. +
addUserStatusListener(UserStatusListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Adds a listener that will be notified of changes in your status in the room + such as the user being kicked, banned, or granted admin permissions. +
addValue(String) - +Method in class org.jivesoftware.smackx.FormField +
Adds a default value to the question if the question is part of a form to fill out. +
addValues(List) - +Method in class org.jivesoftware.smackx.FormField +
Adds a default values to the question if the question is part of a form to fill out. +
addWriterListener(WriterListener) - +Method in class org.jivesoftware.smack.util.ObservableWriter +
Adds a writer listener to this writer that will be notified when + new strings are sent. +
adminGranted(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
adminGranted() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
adminGranted(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when an owner grants administrator privileges to a user. +
adminGranted() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when an owner grants administrator privileges to your user. +
adminRevoked(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
adminRevoked() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
adminRevoked(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when an owner revokes administrator privileges from a user. +
adminRevoked() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when an owner revokes administrator privileges from your user. +
Affiliate - Class in org.jivesoftware.smackx.muc
Represents an affiliation of a user to a given room.
ageList - +Variable in class org.jivesoftware.smack.util.Cache +
Linked list to maintain time that cache objects were initially added + to the cache, most recently added to oldest added. +
amountWritten - +Variable in class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
AndFilter - Class in org.jivesoftware.smack.filter
Implements the logical AND operation over two or more packet filters.
AndFilter() - +Constructor for class org.jivesoftware.smack.filter.AndFilter +
Creates an empty AND filter. +
AndFilter(PacketFilter, PacketFilter) - +Constructor for class org.jivesoftware.smack.filter.AndFilter +
Creates an AND filter using the two specified filters. +
append(String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a given text to the XHTMLText. +
appendBrTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that inserts a single carriage return. +
appendCloseAnchorTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that an anchor section ends. +
appendCloseBlockQuoteTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that a blockquote section ends. +
appendCloseCodeTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates end of text that is the code for a program. +
appendCloseEmTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates end of emphasis. +
appendCloseHeaderTag(int) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that a header section ends. +
appendCloseInlinedQuoteTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that an inlined quote section ends. +
appendCloseOrderedListTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that an ordered list section ends. +
appendCloseParagraphTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates the end of a new paragraph. +
appendCloseSpanTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that a span section ends. +
appendCloseStrongTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that a strong section ends. +
appendCloseUnorderedListTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that an unordered list section ends. +
appendImageTag(String, String, String, String, String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates an image. +
appendLineItemTag(String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates the start of a new line item within a list. +
appendOpenAnchorTag(String, String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that an anchor section begins. +
appendOpenBlockQuoteTag(String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that a blockquote section begins. +
appendOpenCiteTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates a reference to work, such as a book, report or web site. +
appendOpenCodeTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates text that is the code for a program. +
appendOpenEmTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates emphasis. +
appendOpenHeaderTag(int, String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates a header, a title of a section of the message. +
appendOpenInlinedQuoteTag(String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates that an inlined quote section begins. +
appendOpenOrderedListTag(String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that creates an ordered list. +
appendOpenParagraphTag(String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates the start of a new paragraph. +
appendOpenSpanTag(String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that allows to set the fonts for a span of text. +
appendOpenStrongTag() - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that indicates text which should be more forceful than surrounding text. +
appendOpenUnorderedListTag(String) - +Method in class org.jivesoftware.smackx.XHTMLText +
Appends a tag that creates an unordered list. +
authenticate(String, String, String) - +Method in class org.jivesoftware.smack.sasl.SASLMechanism +
Builds and sends the auth stanza to the server. +
authenticate(String, String, String) - +Method in class org.jivesoftware.smack.SASLAuthentication +
Performs SASL authentication of the specified user. +
authenticateAnonymously() - +Method in class org.jivesoftware.smack.SASLAuthentication +
Performs ANONYMOUS SASL authentication. +
Authentication - Class in org.jivesoftware.smack.packet
Authentication packet, which can be used to login to a XMPP server as well + as discover login information from the server.
Authentication() - +Constructor for class org.jivesoftware.smack.packet.Authentication +
Create a new authentication packet. +
AVAILABLE - +Static variable in class org.jivesoftware.smack.packet.Presence.Mode +
  +
AVAILABLE - +Static variable in class org.jivesoftware.smack.packet.Presence.Type +
  +
AWAY - +Static variable in class org.jivesoftware.smack.packet.Presence.Mode +
  +
+
+

+B

+
+
BAD_FILE - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Error +
The provided file to transfer does not exist or could not be read. +
banned(String, String, String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
banned(String, String) - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
banned(String, String, String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when an administrator or owner banned a participant from the room. +
banned(String, String) - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when an administrator or owner banned your user from the room. +
banUser(String, String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Bans a user from the room. +
banUsers(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Bans users from the room. +
BCC - +Static variable in class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
Bind - Class in org.jivesoftware.smack.packet
IQ packet used by Smack to bind a resource and to obtain the jid assigned by the server.
Bind() - +Constructor for class org.jivesoftware.smack.packet.Bind +
  +
BOTH - +Static variable in class org.jivesoftware.smack.packet.RosterPacket.ItemType +
The user and subscriber have a mutual interest in each other's presence. +
BYTE_STREAM - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
The XMPP namespace of the SOCKS5 bytestream +
Bytestream - Class in org.jivesoftware.smackx.packet
A packet representing part of a Socks5 Bytestream negotiation.
Bytestream() - +Constructor for class org.jivesoftware.smackx.packet.Bytestream +
The default constructor +
Bytestream(String) - +Constructor for class org.jivesoftware.smackx.packet.Bytestream +
A constructor where the session ID can be specified. +
Bytestream.Activate - Class in org.jivesoftware.smackx.packet
The packet sent by the stream initiator to the stream proxy to activate + the connection.
Bytestream.Activate(String) - +Constructor for class org.jivesoftware.smackx.packet.Bytestream.Activate +
Default constructor specifying the target of the stream. +
Bytestream.Mode - Class in org.jivesoftware.smackx.packet
The stream can be either a TCP stream or a UDP stream.
Bytestream.StreamHost - Class in org.jivesoftware.smackx.packet
Packet extension that represents a potential Socks5 proxy for the file + transfer.
Bytestream.StreamHost(String, String) - +Constructor for class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
Default constructor. +
Bytestream.StreamHostUsed - Class in org.jivesoftware.smackx.packet
After selected a Socks5 stream host and successfully connecting, the + target of the file transfer returns a byte stream packet with the stream + host used extension.
Bytestream.StreamHostUsed(String) - +Constructor for class org.jivesoftware.smackx.packet.Bytestream.StreamHostUsed +
Default constructor. +
BytestreamsProvider - Class in org.jivesoftware.smackx.provider
Parses a bytestream packet.
BytestreamsProvider() - +Constructor for class org.jivesoftware.smackx.provider.BytestreamsProvider +
  +
+
+

+C

+
+
Cache - Class in org.jivesoftware.smack.util
A specialized Map that is size-limited (using an LRU algorithm) and + has an optional expiration time for cache items.
Cache(int, long) - +Constructor for class org.jivesoftware.smack.util.Cache +
Create a new cache and specify the maximum size of for the cache in + bytes, and the maximum lifetime of objects. +
cacheHits - +Variable in class org.jivesoftware.smack.util.Cache +
Maintain the number of cache hits and misses. +
cacheMisses - +Variable in class org.jivesoftware.smack.util.Cache +
Maintain the number of cache hits and misses. +
cancel() - +Method in class org.jivesoftware.smack.PacketCollector +
Explicitly cancels the packet collector so that no more results are + queued up. +
cancel() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
Cancels the file transfer. +
cancel() - +Method in class org.jivesoftware.smackx.filetransfer.IncomingFileTransfer +
  +
cancel() - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
  +
CANCELLED - +Static variable in class org.jivesoftware.smackx.packet.MessageEvent +
  +
cancelledNotification(String, String) - +Method in interface org.jivesoftware.smackx.MessageEventNotificationListener +
Called when a notification that the receiver of the message cancelled the reply + is received. +
CANCLED - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Status +
The file transfer was canceled +
canPublishItems(String) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns true if the server supports publishing of items. +
CC - +Static variable in class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
challengeReceived(String) - +Method in class org.jivesoftware.smack.sasl.SASLMechanism +
The server is challenging the SASL mechanism for the stanza he just sent. +
changeAvailabilityStatus(String, Presence.Mode) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Changes the occupant's availability status within the room. +
changeNickname(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Changes the occupant's nickname to a new nickname within the room. +
changePassword(String) - +Method in class org.jivesoftware.smack.AccountManager +
Changes the password of the currently logged-in account. +
changeSubject(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Changes the subject within the room. +
Chat - Class in org.jivesoftware.smack
A chat is a series of messages sent between two users.
Chat(XMPPConnection, String) - +Constructor for class org.jivesoftware.smack.Chat +
Creates a new chat with the specified user. +
Chat(XMPPConnection, String, String) - +Constructor for class org.jivesoftware.smack.Chat +
Creates a new chat with the specified user and thread ID. +
CHAT - +Static variable in class org.jivesoftware.smack.packet.Message.Type +
Typically short text message used in line-by-line chat interfaces. +
CHAT - +Static variable in class org.jivesoftware.smack.packet.Presence.Mode +
  +
cleanup() - +Method in class org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator +
  +
cleanup() - +Method in class org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator +
  +
cleanup() - +Method in class org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator +
  +
cleanup() - +Method in class org.jivesoftware.smackx.filetransfer.StreamNegotiator +
Cleanup any and all resources associated with this negotiator. +
clear() - +Method in class org.jivesoftware.smack.util.Cache +
  +
clone() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
  +
close() - +Method in class org.jivesoftware.smack.util.ObservableReader +
  +
close() - +Method in class org.jivesoftware.smack.util.ObservableWriter +
  +
close() - +Method in class org.jivesoftware.smack.XMPPConnection +
Closes the connection by setting presence to unavailable then closing the stream to + the XMPP server. +
COMPLETE - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Status +
The transfer has completed successfully. +
COMPOSING - +Static variable in class org.jivesoftware.smackx.packet.MessageEvent +
  +
composingNotification(String, String) - +Method in interface org.jivesoftware.smackx.MessageEventNotificationListener +
Called when a notification that the receiver of the message is composing a reply is + received. +
composingNotificationRequested(String, String, MessageEventManager) - +Method in class org.jivesoftware.smackx.DefaultMessageEventRequestListener +
  +
composingNotificationRequested(String, String, MessageEventManager) - +Method in interface org.jivesoftware.smackx.MessageEventRequestListener +
Called when a request that the receiver of the message is composing a reply notification is + received. +
CONNECTION - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Error +
An error occured over the socket connected to send the file. +
connectionClosed() - +Method in interface org.jivesoftware.smack.ConnectionListener +
Notification that the connection was closed normally. +
connectionClosedOnError(Exception) - +Method in interface org.jivesoftware.smack.ConnectionListener +
Notification that the connection was closed due to an exception. +
ConnectionConfiguration - Class in org.jivesoftware.smack
Configuration to use while establishing the connection to the server.
ConnectionConfiguration(String, int, String) - +Constructor for class org.jivesoftware.smack.ConnectionConfiguration +
  +
ConnectionConfiguration(String, int) - +Constructor for class org.jivesoftware.smack.ConnectionConfiguration +
  +
connectionEstablished(XMPPConnection) - +Method in interface org.jivesoftware.smack.ConnectionEstablishedListener +
Notification that a new connection has been established. +
ConnectionEstablishedListener - Interface in org.jivesoftware.smack
Interface that allows for implementing classes to listen for connection established + events.
ConnectionListener - Interface in org.jivesoftware.smack
Interface that allows for implementing classes to listen for connection closing + events.
ConsoleDebugger - Class in org.jivesoftware.smack.debugger
Very simple debugger that prints to the console (stdout) the sent and received stanzas.
ConsoleDebugger(XMPPConnection, Writer, Reader) - +Constructor for class org.jivesoftware.smack.debugger.ConsoleDebugger +
  +
contains(String) - +Method in class org.jivesoftware.smack.Roster +
Returns true if the specified XMPP address is an entry in the roster. +
contains(RosterEntry) - +Method in class org.jivesoftware.smack.RosterGroup +
Returns true if the specified entry is part of this group. +
contains(String) - +Method in class org.jivesoftware.smack.RosterGroup +
Returns true if the specified XMPP address is an entry in this group. +
containsFeature(String) - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo +
Returns true if the specified feature is part of the discovered information. +
containsKey(Object) - +Method in class org.jivesoftware.smack.util.Cache +
  +
containsValue(Object) - +Method in class org.jivesoftware.smack.util.Cache +
  +
countStreamHosts() - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Returns the count of stream hosts contained in this packet. +
create(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Creates the room according to some default configuration, assign the requesting user + as the room owner, and add the owner to the room but not allow anyone else to enter + the room (effectively "locking" the room). +
createAccount(String, String) - +Method in class org.jivesoftware.smack.AccountManager +
Creates a new account using the specified username and password. +
createAccount(String, String, Map) - +Method in class org.jivesoftware.smack.AccountManager +
Creates a new account using the specified username, password and account attributes. +
createAnswerForm() - +Method in class org.jivesoftware.smackx.Form +
Returns a new Form to submit the completed values. +
createChat(String) - +Method in class org.jivesoftware.smack.XMPPConnection +
Creates a new chat with the specified participant. +
createEntry(String, String, String[]) - +Method in class org.jivesoftware.smack.Roster +
Creates a new roster entry and presence subscription. +
createError(String, String, String, XMPPError) - +Method in class org.jivesoftware.smackx.filetransfer.StreamNegotiator +
  +
createGroup(String) - +Method in class org.jivesoftware.smack.Roster +
Creates a new group. +
createGroupChat(String) - +Method in class org.jivesoftware.smack.XMPPConnection +
Creates a new group chat connected to the specified room. +
createIncomingFileTransfer(FileTransferRequest) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferManager +
When the file transfer request is acceptable, this method should be + invoked. +
createIncomingStream(StreamInitiation) - +Method in class org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator +
  +
createIncomingStream(StreamInitiation) - +Method in class org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator +
  +
createIncomingStream(StreamInitiation) - +Method in class org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator +
  +
createIncomingStream(StreamInitiation) - +Method in class org.jivesoftware.smackx.filetransfer.StreamNegotiator +
This method handles the file stream download negotiation process. +
createInitiationAccept(StreamInitiation, String[]) - +Method in class org.jivesoftware.smackx.filetransfer.StreamNegotiator +
Creates the initiation acceptance packet to forward to the stream + initiator. +
createIQ(String, String, String, IQ.Type) - +Static method in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
A convience method to create an IQ packet. +
createMessage() - +Method in class org.jivesoftware.smack.Chat +
Creates a new Message to the chat participant. +
createMessage() - +Method in class org.jivesoftware.smack.GroupChat +
Creates a new Message to send to the chat room. +
createMessage() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Creates a new Message to send to the chat room. +
createOutgoingFileTransfer(String) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferManager +
Creates an OutgoingFileTransfer to send a file to another user. +
createOutgoingStream(String, String, String) - +Method in class org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator +
  +
createOutgoingStream(String, String, String) - +Method in class org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator +
  +
createOutgoingStream(String, String, String) - +Method in class org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator +
  +
createOutgoingStream(String, String, String) - +Method in class org.jivesoftware.smackx.filetransfer.StreamNegotiator +
This method handles the file upload stream negotiation process. +
createPacketCollector(PacketFilter) - +Method in class org.jivesoftware.smack.XMPPConnection +
Creates a new packet collector for this connection. +
createPrivateChat(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns a new Chat for sending private messages to a given room occupant. +
cullCache() - +Method in class org.jivesoftware.smack.util.Cache +
Removes the least recently used elements if the cache size is greater than + or equal to the maximum allowed size until the cache is at least 10% empty. +
+
+

+D

+
+
DataForm - Class in org.jivesoftware.smackx.packet
Represents a form that could be use for gathering data as well as for reporting data + returned from a search.
DataForm(String) - +Constructor for class org.jivesoftware.smackx.packet.DataForm +
  +
DataForm.Item - Class in org.jivesoftware.smackx.packet
Represents items of reported data.
DataForm.Item(List) - +Constructor for class org.jivesoftware.smackx.packet.DataForm.Item +
  +
DataForm.ReportedData - Class in org.jivesoftware.smackx.packet
Represents the fields that will be returned from a search.
DataForm.ReportedData(List) - +Constructor for class org.jivesoftware.smackx.packet.DataForm.ReportedData +
  +
DataFormProvider - Class in org.jivesoftware.smackx.provider
The DataFormProvider parses DataForm packets.
DataFormProvider() - +Constructor for class org.jivesoftware.smackx.provider.DataFormProvider +
Creates a new DataFormProvider. +
DeafOccupantInterceptor - Class in org.jivesoftware.smackx.muc
Packet interceptor that will intercept presence packets sent to the MUC service to indicate + that the user wants to be a deaf occupant.
DeafOccupantInterceptor() - +Constructor for class org.jivesoftware.smackx.muc.DeafOccupantInterceptor +
  +
DEBUG_ENABLED - +Static variable in class org.jivesoftware.smack.XMPPConnection +
Value that indicates whether debugging is enabled. +
decline(XMPPConnection, String, String, String) - +Static method in class org.jivesoftware.smackx.muc.MultiUserChat +
Informs the sender of an invitation that the invitee declines the invitation. +
decodeBase64(String) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Decodes a base64 String. +
DEFAULT_BLOCK_SIZE - +Static variable in class org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator +
  +
DefaultMessageEventRequestListener - Class in org.jivesoftware.smackx
Default implementation of the MessageEventRequestListener interface.
DefaultMessageEventRequestListener() - +Constructor for class org.jivesoftware.smackx.DefaultMessageEventRequestListener +
  +
DefaultPacketExtension - Class in org.jivesoftware.smack.packet
Default implementation of the PacketExtension interface.
DefaultPacketExtension(String, String) - +Constructor for class org.jivesoftware.smack.packet.DefaultPacketExtension +
Creates a new generic packet extension. +
DefaultParticipantStatusListener - Class in org.jivesoftware.smackx.muc
Default implementation of the ParticipantStatusListener interface.
DefaultParticipantStatusListener() - +Constructor for class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
DefaultPrivateData - Class in org.jivesoftware.smackx.packet
Default implementation of the PrivateData interface.
DefaultPrivateData(String, String) - +Constructor for class org.jivesoftware.smackx.packet.DefaultPrivateData +
Creates a new generic private data object. +
DefaultUserStatusListener - Class in org.jivesoftware.smackx.muc
Default implementation of the UserStatusListener interface.
DefaultUserStatusListener() - +Constructor for class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
DelayInformation - Class in org.jivesoftware.smackx.packet
Represents timestamp information about data stored for later delivery.
DelayInformation(Date) - +Constructor for class org.jivesoftware.smackx.packet.DelayInformation +
Creates a new instance with the specified timestamp. +
DelayInformationProvider - Class in org.jivesoftware.smackx.provider
The DelayInformationProvider parses DelayInformation packets.
DelayInformationProvider() - +Constructor for class org.jivesoftware.smackx.provider.DelayInformationProvider +
Creates a new DeliveryInformationProvider. +
deleteAccount() - +Method in class org.jivesoftware.smack.AccountManager +
Deletes the currently logged-in account from the server. +
deleteExpiredEntries() - +Method in class org.jivesoftware.smack.util.Cache +
Clears all entries out of cache where the entries are older than the + maximum defined age. +
deleteMessages(List) - +Method in class org.jivesoftware.smackx.OfflineMessageManager +
Deletes the specified list of offline messages. +
deleteMessages() - +Method in class org.jivesoftware.smackx.OfflineMessageManager +
Deletes all offline messages of the user. +
deleteProperty(String) - +Method in class org.jivesoftware.smack.packet.Packet +
Deletes a property. +
DELIVERED - +Static variable in class org.jivesoftware.smackx.packet.MessageEvent +
  +
deliveredNotification(String, String) - +Method in interface org.jivesoftware.smackx.MessageEventNotificationListener +
Called when a notification of message delivered is received. +
deliveredNotificationRequested(String, String, MessageEventManager) - +Method in class org.jivesoftware.smackx.DefaultMessageEventRequestListener +
  +
deliveredNotificationRequested(String, String, MessageEventManager) - +Method in interface org.jivesoftware.smackx.MessageEventRequestListener +
Called when a request for message delivered notification is received. +
destroy() - +Method in class org.jivesoftware.smackx.MessageEventManager +
  +
destroy(String, String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Sends a request to the server to destroy the room. +
destroy() - +Method in class org.jivesoftware.smackx.RosterExchangeManager +
  +
DiscoverInfo - Class in org.jivesoftware.smackx.packet
A DiscoverInfo IQ packet, which is used by XMPP clients to request and receive information + to/from other XMPP entities.
DiscoverInfo() - +Constructor for class org.jivesoftware.smackx.packet.DiscoverInfo +
  +
discoverInfo(String) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns the discovered information of a given XMPP entity addressed by its JID. +
discoverInfo(String, String) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns the discovered information of a given XMPP entity addressed by its JID and + note attribute. +
DiscoverInfo.Feature - Class in org.jivesoftware.smackx.packet
Represents the features offered by the item.
DiscoverInfo.Feature(String) - +Constructor for class org.jivesoftware.smackx.packet.DiscoverInfo.Feature +
Creates a new feature offered by an XMPP entity or item. +
DiscoverInfo.Identity - Class in org.jivesoftware.smackx.packet
Represents the identity of a given XMPP entity.
DiscoverInfo.Identity(String, String) - +Constructor for class org.jivesoftware.smackx.packet.DiscoverInfo.Identity +
Creates a new identity for an XMPP entity. +
DiscoverInfoProvider - Class in org.jivesoftware.smackx.provider
The DiscoverInfoProvider parses Service Discovery information packets.
DiscoverInfoProvider() - +Constructor for class org.jivesoftware.smackx.provider.DiscoverInfoProvider +
  +
DiscoverItems - Class in org.jivesoftware.smackx.packet
A DiscoverItems IQ packet, which is used by XMPP clients to request and receive items + associated with XMPP entities.
DiscoverItems() - +Constructor for class org.jivesoftware.smackx.packet.DiscoverItems +
  +
discoverItems(String) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns the discovered items of a given XMPP entity addressed by its JID. +
discoverItems(String, String) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns the discovered items of a given XMPP entity addressed by its JID and + note attribute. +
DiscoverItems.Item - Class in org.jivesoftware.smackx.packet
An item is associated with an XMPP Entity, usually thought of a children of the parent + entity and normally are addressable as a JID.
DiscoverItems.Item(String) - +Constructor for class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Create a new Item associated with a given entity. +
DiscoverItemsProvider - Class in org.jivesoftware.smackx.provider
The DiscoverInfoProvider parses Service Discovery items packets.
DiscoverItemsProvider() - +Constructor for class org.jivesoftware.smackx.provider.DiscoverItemsProvider +
  +
DiscussionHistory - Class in org.jivesoftware.smackx.muc
The DiscussionHistory class controls the number of characters or messages to receive + when entering a room.
DiscussionHistory() - +Constructor for class org.jivesoftware.smackx.muc.DiscussionHistory +
  +
DISPLAYED - +Static variable in class org.jivesoftware.smackx.packet.MessageEvent +
  +
displayedNotification(String, String) - +Method in interface org.jivesoftware.smackx.MessageEventNotificationListener +
Called when a notification of message displayed is received. +
displayedNotificationRequested(String, String, MessageEventManager) - +Method in class org.jivesoftware.smackx.DefaultMessageEventRequestListener +
  +
displayedNotificationRequested(String, String, MessageEventManager) - +Method in interface org.jivesoftware.smackx.MessageEventRequestListener +
Called when a request for message displayed notification is received. +
DNSUtil - Class in org.jivesoftware.smack.util
Utilty class to perform DNS lookups for XMPP services.
DNSUtil() - +Constructor for class org.jivesoftware.smack.util.DNSUtil +
  +
DNSUtil.HostAddress - Class in org.jivesoftware.smack.util
Encapsulates a hostname and port.
DO_NOT_DISTURB - +Static variable in class org.jivesoftware.smack.packet.Presence.Mode +
  +
+
+

+E

+
+
ELEMENT_NAME - +Static variable in class org.jivesoftware.smackx.GroupChatInvitation +
Element name of the packet extension. +
ELEMENT_NAME - +Static variable in class org.jivesoftware.smackx.packet.IBBExtensions.Close +
  +
ELEMENT_NAME - +Static variable in class org.jivesoftware.smackx.packet.IBBExtensions.Data +
  +
ELEMENT_NAME - +Static variable in class org.jivesoftware.smackx.packet.IBBExtensions.Open +
  +
ELEMENTNAME - +Static variable in class org.jivesoftware.smackx.packet.Bytestream.Activate +
  +
ELEMENTNAME - +Static variable in class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
  +
ELEMENTNAME - +Static variable in class org.jivesoftware.smackx.packet.Bytestream.StreamHostUsed +
  +
encodeBase64(String) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Encodes a String as a base64 String. +
encodeBase64(byte[]) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Encodes a byte array into a base64 String. +
encodeHex(byte[]) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Encodes an array of bytes as String representation of hexadecimal. +
EnhancedDebugger - Class in org.jivesoftware.smackx.debugger
The EnhancedDebugger is a debugger that allows to debug sent, received and interpreted messages + but also provides the ability to send ad-hoc messages composed by the user.
EnhancedDebugger(XMPPConnection, Writer, Reader) - +Constructor for class org.jivesoftware.smackx.debugger.EnhancedDebugger +
  +
EnhancedDebuggerWindow - Class in org.jivesoftware.smackx.debugger
The EnhancedDebuggerWindow is the main debug window that will show all the EnhancedDebuggers.
entriesAdded(Collection) - +Method in interface org.jivesoftware.smack.RosterListener +
Called when roster entries are added. +
entriesDeleted(Collection) - +Method in interface org.jivesoftware.smack.RosterListener +
Called when a roster entries are removed. +
entriesReceived(String, Iterator) - +Method in interface org.jivesoftware.smackx.RosterExchangeListener +
Called when roster entries are received as part of a roster exchange. +
entriesUpdated(Collection) - +Method in interface org.jivesoftware.smack.RosterListener +
Called when a roster entries are updated. +
entrySet() - +Method in class org.jivesoftware.smack.util.Cache +
  +
equals(Object) - +Method in class org.jivesoftware.smack.RosterEntry +
  +
equals(Object) - +Method in class org.jivesoftware.smack.util.DNSUtil.HostAddress +
  +
equals(Object) - +Method in class org.jivesoftware.smackx.packet.Bytestream.Mode +
  +
equals(Object) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
ERROR - +Static variable in class org.jivesoftware.smack.packet.IQ.Type +
  +
ERROR - +Static variable in class org.jivesoftware.smack.packet.Message.Type +
indicates a messaging error. +
ERROR - +Static variable in class org.jivesoftware.smack.packet.Presence.Type +
  +
ERROR - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Status +
An error occured during the transfer. +
escapeForXML(String) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Escapes all necessary characters in the String so that it can be used + in an XML doc. +
EXTENDED_AWAY - +Static variable in class org.jivesoftware.smack.packet.Presence.Mode +
  +
+
+

+F

+
+
FaultTolerantNegotiator - Class in org.jivesoftware.smackx.filetransfer
The fault tolerant negotiator takes two stream negotiators, the primary and the secondary negotiator.
FaultTolerantNegotiator(XMPPConnection, StreamNegotiator, StreamNegotiator) - +Constructor for class org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator +
  +
FileTransfer - Class in org.jivesoftware.smackx.filetransfer
Contains the generic file information and progress related to a particular + file transfer.
FileTransfer(String, String, FileTransferNegotiator) - +Constructor for class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
FileTransfer.Error - Class in org.jivesoftware.smackx.filetransfer
 
FileTransfer.Status - Class in org.jivesoftware.smackx.filetransfer
A class to represent the current status of the file transfer.
FileTransfer.Status() - +Constructor for class org.jivesoftware.smackx.filetransfer.FileTransfer.Status +
  +
FileTransferListener - Interface in org.jivesoftware.smackx.filetransfer
File transfers can cause several events to be raised.
FileTransferManager - Class in org.jivesoftware.smackx.filetransfer
The file transfer manager class handles the sending and recieving of files.
FileTransferManager(XMPPConnection) - +Constructor for class org.jivesoftware.smackx.filetransfer.FileTransferManager +
Creates a file transfer manager to initiate and receive file transfers. +
FileTransferNegotiator - Class in org.jivesoftware.smackx.filetransfer
Manages the negotiation of file transfers according to JEP-0096.
fileTransferRequest(FileTransferRequest) - +Method in interface org.jivesoftware.smackx.filetransfer.FileTransferListener +
A request to send a file has been recieved from another user. +
FileTransferRequest - Class in org.jivesoftware.smackx.filetransfer
A request to send a file recieved from another user.
FileTransferRequest(FileTransferManager, StreamInitiation) - +Constructor for class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
A recieve request is constructed from the Stream Initiation request + received from the initator. +
finalize() - +Method in class org.jivesoftware.smack.Chat +
  +
finalize() - +Method in class org.jivesoftware.smack.GroupChat +
  +
finalize() - +Method in class org.jivesoftware.smackx.MessageEventManager +
  +
finalize() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
  +
finalize() - +Method in class org.jivesoftware.smackx.RosterExchangeManager +
  +
fireNewRequest(StreamInitiation) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferManager +
  +
flush() - +Method in class org.jivesoftware.smack.util.ObservableWriter +
  +
Form - Class in org.jivesoftware.smackx
Represents a Form for gathering data.
Form(String) - +Constructor for class org.jivesoftware.smackx.Form +
Creates a new Form of a given type from scratch. +
FormField - Class in org.jivesoftware.smackx
Represents a field of a form.
FormField(String) - +Constructor for class org.jivesoftware.smackx.FormField +
Creates a new FormField with the variable name that uniquely identifies the field + in the context of the form. +
FormField() - +Constructor for class org.jivesoftware.smackx.FormField +
Creates a new FormField of type FIXED. +
FormField.Option - Class in org.jivesoftware.smackx
Represents the available option of a given FormField.
FormField.Option(String) - +Constructor for class org.jivesoftware.smackx.FormField.Option +
  +
FormField.Option(String, String) - +Constructor for class org.jivesoftware.smackx.FormField.Option +
  +
FROM - +Static variable in class org.jivesoftware.smack.packet.RosterPacket.ItemType +
The subscriber is interested in receiving presence updates from the user. +
FromContainsFilter - Class in org.jivesoftware.smack.filter
Filters for packets where the "from" field contains a specified value.
FromContainsFilter(String) - +Constructor for class org.jivesoftware.smack.filter.FromContainsFilter +
Creates a "from" contains filter using the "from" field part. +
FromMatchesFilter - Class in org.jivesoftware.smack.filter
Filter for packets where the "from" field exactly matches a specified JID.
FromMatchesFilter(String) - +Constructor for class org.jivesoftware.smack.filter.FromMatchesFilter +
Creates a "from" filter using the "from" field part. +
fromString(String) - +Static method in class org.jivesoftware.smack.packet.IQ.Type +
Converts a String into the corresponding types. +
fromString(String) - +Static method in class org.jivesoftware.smack.packet.Message.Type +
Converts a String value into its Type representation. +
fromString(String) - +Static method in class org.jivesoftware.smack.packet.Presence.Mode +
Returns the mode constant associated with the String value. +
fromString(String) - +Static method in class org.jivesoftware.smack.packet.Presence.Type +
Returns the type constant associated with the String value. +
fromString(String) - +Static method in class org.jivesoftware.smack.packet.RosterPacket.ItemStatus +
  +
fromString(String) - +Static method in class org.jivesoftware.smack.packet.RosterPacket.ItemType +
  +
+
+

+G

+
+
GET - +Static variable in class org.jivesoftware.smack.packet.IQ.Type +
  +
get(Object) - +Method in class org.jivesoftware.smack.util.Cache +
  +
getAccountAttribute(String) - +Method in class org.jivesoftware.smack.AccountManager +
Returns the value of a given account attribute or null if the account + attribute wasn't found. +
getAccountAttributes() - +Method in class org.jivesoftware.smack.AccountManager +
Returns an Iterator for the (String) names of the required account attributes. +
getAccountInstructions() - +Method in class org.jivesoftware.smack.AccountManager +
Returns the instructions for creating a new account, or null if there + are no instructions. +
getAccountManager() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns an account manager instance for this connection. +
getAction() - +Method in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Returns the action that specifies the action being taken for this item. +
getAction() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest.Item +
Returns "view" or "remove" that indicate if the server should return the specified + offline message or delete it. +
getActor() - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Returns the actor (JID of an occupant in the room) that was kicked or banned. +
getActor() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Returns the actor (JID of an occupant in the room) that was kicked or banned. +
getActor() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Returns the actor (JID of an occupant in the room) that was kicked or banned. +
getAddress() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
Returns the internet address of the stream host. +
getAddressesOfType(String) - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses +
Returns the list of addresses that matches the specified type. +
getAddressFieldHome(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Get home address field +
getAddressFieldWork(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Get work address field +
getAdmins() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns a collection of Affiliate with the room administrators. +
getAffiliation() - +Method in class org.jivesoftware.smackx.muc.Affiliate +
Returns the affiliation of the afffiliated user. +
getAffiliation() - +Method in class org.jivesoftware.smackx.muc.Occupant +
Returns the affiliation of the occupant. +
getAffiliation() - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Returns the occupant's affiliation to the room. +
getAffiliation() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Returns the occupant's affiliation to the room. +
getAffiliation() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Returns the occupant's affiliation to the room. +
getAmountWritten() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
Return the length of bytes written out to the stream. +
getAttributes() - +Method in class org.jivesoftware.smack.packet.Registration +
Returns the map of String key/value pairs of account attributes. +
getAuthenticationText(String, String, String) - +Method in class org.jivesoftware.smack.sasl.SASLAnonymous +
  +
getAuthenticationText(String, String, String) - +Method in class org.jivesoftware.smack.sasl.SASLMechanism +
Returns the authentication text to include in the initial auth stanza + or null if nothing should be added. +
getAuthenticationText(String, String, String) - +Method in class org.jivesoftware.smack.sasl.SASLPlainMechanism +
  +
getAvatar() - +Method in class org.jivesoftware.smackx.packet.VCard +
Return the byte representation of the avatar(if one exists), otherwise returns null if + no avatar could be found. +
getAvatarHash() - +Method in class org.jivesoftware.smackx.packet.VCard +
Returns the SHA-1 Hash of the Avatar image. +
getBlockSize() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Open +
The size blocks in which the data will be sent. +
getBodies() - +Method in class org.jivesoftware.smackx.packet.XHTMLExtension +
Returns an Iterator for the bodies in the packet. +
getBodies(Message) - +Static method in class org.jivesoftware.smackx.XHTMLManager +
Returns an Iterator for the XHTML bodies in the message. +
getBodiesCount() - +Method in class org.jivesoftware.smackx.packet.XHTMLExtension +
Returns a count of the bodies in the XHTML packet. +
getBody() - +Method in class org.jivesoftware.smack.packet.Message +
Returns the body of the message, or null if the body has not been set. +
getBytes(URL) - +Static method in class org.jivesoftware.smackx.packet.VCard +
Common code for getting the bytes of a url. +
getBytesSent() - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
Returns the amount of bytes that have been sent for the file transfer. +
getCacheHits() - +Method in class org.jivesoftware.smack.util.Cache +
  +
getCacheMisses() - +Method in class org.jivesoftware.smack.util.Cache +
  +
getCategory() - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo.Identity +
Returns the entity's category. +
getCCAddresses() - +Method in class org.jivesoftware.smackx.MultipleRecipientInfo +
Returns the list of MultipleAddresses.Address + that were the secondary recipients of the packet. +
getChallengeResponse(byte[]) - +Method in class org.jivesoftware.smack.sasl.SASLAnonymous +
  +
getChallengeResponse(byte[]) - +Method in class org.jivesoftware.smack.sasl.SASLMechanism +
Returns the response text to send answering the challenge sent by the server. +
getChallengeResponse(byte[]) - +Method in class org.jivesoftware.smack.sasl.SASLPlainMechanism +
  +
getChildElementXML() - +Method in class org.jivesoftware.smack.packet.Authentication +
  +
getChildElementXML() - +Method in class org.jivesoftware.smack.packet.Bind +
  +
getChildElementXML() - +Method in class org.jivesoftware.smack.packet.IQ +
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. +
getChildElementXML() - +Method in class org.jivesoftware.smack.packet.Registration +
  +
getChildElementXML() - +Method in class org.jivesoftware.smack.packet.RosterPacket +
  +
getChildElementXML() - +Method in class org.jivesoftware.smack.packet.Session +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.Bytestream +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.DiscoverItems +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Close +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Open +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.LastActivity +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.MUCAdmin +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.MUCOwner +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.SharedGroupsInfo +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.Time +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.packet.Version +
  +
getChildElementXML() - +Method in class org.jivesoftware.smackx.search.UserSearch +
  +
getCode() - +Method in class org.jivesoftware.smack.packet.StreamError +
Returns the error code. +
getCode() - +Method in class org.jivesoftware.smack.packet.XMPPError +
Returns the error code. +
getCode() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Status +
Returns the code that uniquely identifies the reason of the error. +
getColumns() - +Method in class org.jivesoftware.smackx.ReportedData +
Returns an Iterator for the columns returned from a search. +
getConfigurationForm() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the room's configuration form that the room's owner can use or null if + no configuration is possible. +
getConnectionID() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns the connection ID for this connection, which is the value set by the server + when opening a XMPP stream. +
getData() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Data +
Returns the data contained in this packet. +
getData() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.Feature +
Returns the dataform associated with the feature negotiation. +
getDataFormToSend() - +Method in class org.jivesoftware.smackx.Form +
Returns a DataForm that serves to send this Form to the server. +
getDate() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
Returns the date that the file was last modified. +
getDecline() - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Returns the rejection to an invitation from another user to a room. +
getDefaultSubscriptionMode() - +Static method in class org.jivesoftware.smack.Roster +
Returns the default subscription processing mode to use when a new Roster is created. +
getDesc() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
Returns the description of the file. +
getDescription() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
Returns the description of the file provided by the requestor. +
getDescription() - +Method in class org.jivesoftware.smackx.FormField +
Returns a description that provides extra clarification about the question. +
getDescription() - +Method in class org.jivesoftware.smackx.muc.RoomInfo +
Returns the discovered description of the room. +
getDescription() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses.Address +
  +
getDestroy() - +Method in class org.jivesoftware.smackx.packet.MUCOwner +
Returns a request to the server to destroy a room. +
getDestroy() - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Returns the notification that the room has been destroyed. +
getDigest() - +Method in class org.jivesoftware.smack.packet.Authentication +
Returns the password digest or null if the digest hasn't + been set. +
getDisplay() - +Method in class org.jivesoftware.smackx.packet.Time +
Returns the local (non-utc) time in human-friendly format. +
getElementName() - +Method in class org.jivesoftware.smack.packet.DefaultPacketExtension +
Returns the XML element name of the extension sub-packet root element. +
getElementName() - +Method in interface org.jivesoftware.smack.packet.PacketExtension +
Returns the root element name. +
getElementName() - +Method in class org.jivesoftware.smackx.GroupChatInvitation +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.Bytestream.Activate +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHostUsed +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.DataForm +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.DefaultPrivateData +
Returns the XML element name of the private data sub-packet root element. +
getElementName() - +Method in class org.jivesoftware.smackx.packet.DelayInformation +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Close +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Data +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Open +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
Returns the XML element name of the extension sub-packet root element. +
getElementName() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.MUCUser +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageInfo +
Returns the XML element name of the extension sub-packet root element. +
getElementName() - +Method in interface org.jivesoftware.smackx.packet.PrivateData +
Returns the root element name. +
getElementName() - +Method in class org.jivesoftware.smackx.packet.RosterExchange +
Returns the XML element name of the extension sub-packet root element. +
getElementName() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.Feature +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
  +
getElementName() - +Method in class org.jivesoftware.smackx.packet.XHTMLExtension +
Returns the XML element name of the extension sub-packet root element. +
getEmailHome() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getEmailWork() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getEntityID() - +Method in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Returns the entity's ID. +
getEntries() - +Method in class org.jivesoftware.smack.Roster +
Returns all entries in the roster, including entries that don't belong to + any groups. +
getEntries() - +Method in class org.jivesoftware.smack.RosterGroup +
Returns an iterator for the entries in the group. +
getEntry(String) - +Method in class org.jivesoftware.smack.Roster +
Returns the roster entry associated with the given XMPP address or + null if the user is not an entry in the roster. +
getEntry(String) - +Method in class org.jivesoftware.smack.RosterGroup +
Returns the roster entry associated with the given XMPP address or + null if the user is not an entry in the group. +
getEntryCount() - +Method in class org.jivesoftware.smack.Roster +
Returns a count of the entries in the roster. +
getEntryCount() - +Method in class org.jivesoftware.smack.RosterGroup +
Returns the number of entries in the group. +
getEntryCount() - +Method in class org.jivesoftware.smackx.packet.RosterExchange +
Returns a count of the entries in the roster exchange. +
getError() - +Method in class org.jivesoftware.smack.packet.Packet +
Returns the error associated with this packet, or null if there are + no errors. +
getError() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
When FileTransfer.getStatus() returns that there was an FileTransfer.Status.ERROR + during the transfer, the type of error can be retrieved through this + method. +
getEventTypes() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
Returns the types of events. +
getException() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
If an exception occurs asynchronously it will be stored for later + retrival. +
getExtension(String, String) - +Method in class org.jivesoftware.smack.packet.Packet +
Returns the first packet extension that matches the specified element name and + namespace, or null if it doesn't exist. +
getExtensionProvider(String, String) - +Static method in class org.jivesoftware.smack.provider.ProviderManager +
Returns the packet extension provider registered to the specified XML element name + and namespace. +
getExtensionProviders() - +Static method in class org.jivesoftware.smack.provider.ProviderManager +
Returns an Iterator for all PacketExtensionProvider instances. +
getExtensions() - +Method in class org.jivesoftware.smack.packet.Packet +
Returns an Iterator for the packet extensions attached to the packet. +
getExtensionsXML() - +Method in class org.jivesoftware.smack.packet.Packet +
Returns the extension sub-packets (including properties data) as an XML + String, or the Empty String if there are no packet extensions. +
getFeatureNegotiationForm() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation +
Returns the data form which contains the valid methods of stream + neotiation and transfer. +
getFeatures() - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns the supported features by this XMPP entity. +
getField(String) - +Method in class org.jivesoftware.smackx.Form +
Returns the field of the form whose variable matches the specified variable. +
getField(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Set generic VCard field. +
getFields() - +Method in class org.jivesoftware.smackx.Form +
Returns an Iterator for the fields that are part of the form. +
getFields() - +Method in class org.jivesoftware.smackx.packet.DataForm +
Returns an Iterator for the fields that are part of the form. +
getFields() - +Method in class org.jivesoftware.smackx.packet.DataForm.Item +
Returns the fields that define the data that goes with the item. +
getFields() - +Method in class org.jivesoftware.smackx.packet.DataForm.ReportedData +
Returns the fields returned from a search. +
getFile() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation +
Returns the file containing the information about the request. +
getFileName() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
Returns the name of the file being transfered. +
getFileName() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
Returns the name of the file. +
getFilePath() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
Returns the local path of the file. +
getFileSize() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
Returns the size of the file being transfered. +
getFileSize() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
Returns the size in bytes of the file. +
getFirstName() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getFormFrom(Packet) - +Static method in class org.jivesoftware.smackx.Form +
Returns a new ReportedData if the packet is used for gathering data and includes an + extension that matches the elementName and namespace "x","jabber:x:data". +
getFrom() - +Method in class org.jivesoftware.smack.packet.Packet +
Returns who the packet is being sent "from" or null if + the value is not set. +
getFrom() - +Method in class org.jivesoftware.smackx.packet.DelayInformation +
Returns the JID of the entity that originally sent the packet or that delayed the + delivery of the packet or null if this information is not available. +
getFrom() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Decline +
Returns the bare JID of the invitee that rejected the invitation. +
getFrom() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Invite +
Returns the bare JID of the inviter or, optionally, the room JID. +
getGroup(String) - +Method in class org.jivesoftware.smack.Roster +
Returns the roster group with the specified name, or null if the + group doesn't exist. +
getGroupArrayNames() - +Method in class org.jivesoftware.smackx.RemoteRosterEntry +
Returns a String array for the group names that the roster entry + belongs to. +
getGroupCount() - +Method in class org.jivesoftware.smack.Roster +
Returns the number of the groups in the roster. +
getGroupNames() - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Returns an Iterator for the group names (as Strings) that the roster item + belongs to. +
getGroupNames() - +Method in class org.jivesoftware.smackx.RemoteRosterEntry +
Returns an Iterator for the group names (as Strings) that the roster entry + belongs to. +
getGroups() - +Method in class org.jivesoftware.smack.Roster +
Returns an iterator the for all the roster groups. +
getGroups() - +Method in class org.jivesoftware.smack.RosterEntry +
Returns an iterator for all the roster groups that this entry belongs to. +
getGroups() - +Method in class org.jivesoftware.smackx.packet.SharedGroupsInfo +
Returns a collection with the shared group names returned from the server. +
getHash() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
Returns the MD5 sum of the file's contents +
getHeaders() - +Method in class org.jivesoftware.smackx.OfflineMessageManager +
Returns an iterator on OfflineMessageHeader that keep information about the + offline message. +
getHistory() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence +
Returns the history that manages the amount of discussion history provided on + entering a room. +
getHost() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns the host to use when establishing the connection. +
getHost() - +Method in class org.jivesoftware.smack.util.DNSUtil.HostAddress +
Returns the hostname. +
getHost() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns the host name of the server where the XMPP server is running. +
getHostedRooms(XMPPConnection, String) - +Static method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns a collection of HostedRooms where each HostedRoom has the XMPP address of the room + and the room's name. +
getIdentities() - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo +
Returns the discovered identities of an XMPP entity. +
getIdentityName() - +Static method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns the name of the client that will be returned when asked for the client identity + in a disco request. +
getIdentityType() - +Static method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns the type of client that will be returned when asked for the client identity in a + disco request. +
getIdleTime() - +Method in class org.jivesoftware.smackx.packet.LastActivity +
Returns number of seconds that have passed since the user last logged out. +
getInitiationPacketFilter(String, String) - +Method in class org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator +
  +
getInitiationPacketFilter(String, String) - +Method in class org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator +
  +
getInitiationPacketFilter(String, String) - +Method in class org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator +
  +
getInitiationPacketFilter(String, String) - +Method in class org.jivesoftware.smackx.filetransfer.StreamNegotiator +
Returns the packet filter that will return the initiation packet for the appropriate stream + initiation. +
getInstance() - +Static method in class org.jivesoftware.smackx.debugger.EnhancedDebuggerWindow +
Returns the unique EnhancedDebuggerWindow instance available in the system. +
getInstanceFor(XMPPConnection) - +Static method in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
Returns the file transfer negotiator related to a particular connection. +
getInstanceFor(XMPPConnection) - +Static method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns the ServiceDiscoveryManager instance associated with a given XMPPConnection. +
getInstructions() - +Method in class org.jivesoftware.smack.packet.Registration +
Returns the registration instructions, or null if no instructions + have been set. +
getInstructions() - +Method in class org.jivesoftware.smackx.Form +
Returns the instructions that explain how to fill out the form and what the form is about. +
getInstructions() - +Method in class org.jivesoftware.smackx.packet.DataForm +
Returns an Iterator for the list of instructions that explain how to fill out the form and + what the form is about. +
getInvite() - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Returns the invitation for another user to a room. +
getIQProvider(String, String) - +Static method in class org.jivesoftware.smack.provider.ProviderManager +
Returns the IQ provider registered to the specified XML element name and namespace. +
getIQProviders() - +Static method in class org.jivesoftware.smack.provider.ProviderManager +
Returns an Iterator for all IQProvider instances. +
getItem() - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Returns the item child that holds information about roles, affiliation, jids and nicks. +
getItems() - +Method in class org.jivesoftware.smackx.packet.DataForm +
Returns an Iterator for the items returned from a search. +
getItems() - +Method in class org.jivesoftware.smackx.packet.DiscoverItems +
Returns the discovered items of the queried XMPP entity. +
getItems() - +Method in class org.jivesoftware.smackx.packet.MUCAdmin +
Returns an Iterator for item childs that holds information about roles, affiliation, + jids and nicks. +
getItems() - +Method in class org.jivesoftware.smackx.packet.MUCOwner +
Returns an Iterator for item childs that holds information about affiliation, + jids and nicks. +
getItems() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest +
Returns an Iterator for item childs that holds information about offline messages to + view or delete. +
getItemStatus() - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Returns the roster item status. +
getItemType() - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Returns the roster item type. +
getJabberId() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getJid() - +Method in class org.jivesoftware.smack.packet.Bind +
  +
getJid() - +Method in class org.jivesoftware.smackx.muc.Affiliate +
Returns the bare JID of the affiliated user. +
getJid() - +Method in class org.jivesoftware.smackx.muc.HostedRoom +
Returns the XMPP address of the hosted room by the chat service. +
getJid() - +Method in class org.jivesoftware.smackx.muc.Occupant +
Returns the full JID of the occupant. +
getJid() - +Method in class org.jivesoftware.smackx.OfflineMessageHeader +
Returns the full JID of the user that sent the message. +
getJID() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
Returns the jabber ID of the stream host. +
getJID() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHostUsed +
Returns the jabber ID of the selected stream host. +
getJid() - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Returns the by which an occupant is identified within the context + of a room. +
getJid() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Destroy +
Returns the JID of an alternate location since the current room is being destroyed. +
getJid() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Returns the by which an occupant is identified within the context + of a room. +
getJid() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Destroy +
Returns the JID of an alternate location since the current room is being destroyed. +
getJid() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Returns the by which an occupant is identified within the context + of a room. +
getJid() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses.Address +
  +
getJid() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest.Item +
  +
getJoinedRooms(XMPPConnection, String) - +Static method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns an Iterator on the rooms where the requested user has joined. +
getKeepAliveInterval() - +Static method in class org.jivesoftware.smack.SmackConfiguration +
Returns the number of milleseconds delay between sending keep-alive + requests to the server. +
getLabel() - +Method in class org.jivesoftware.smackx.FormField +
Returns the label of the question which should give enough information to the user to + fill out the form. +
getLabel() - +Method in class org.jivesoftware.smackx.FormField.Option +
Returns the label that represents the option. +
getLabel() - +Method in class org.jivesoftware.smackx.ReportedData.Column +
Returns the column's label. +
getLastActivity(XMPPConnection, String) - +Static method in class org.jivesoftware.smackx.packet.LastActivity +
Retrieve the last activity of a particular jid. +
getLastName() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getMaxCacheSize() - +Method in class org.jivesoftware.smack.util.Cache +
  +
getMaxChars() - +Method in class org.jivesoftware.smackx.muc.DiscussionHistory +
Returns the total number of characters to receive in the history. +
getMaxChars() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
Returns the total number of characters to receive in the history. +
getMaxLifetime() - +Method in class org.jivesoftware.smack.util.Cache +
  +
getMaxStanzas() - +Method in class org.jivesoftware.smackx.muc.DiscussionHistory +
Returns the total number of messages to receive in the history. +
getMaxStanzas() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
Returns the total number of messages to receive in the history. +
getMembers() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns a collection of Affiliate with the room members. +
getMessage() - +Method in class org.jivesoftware.smack.packet.XMPPError +
Returns the message describing the error, or null if there is no message. +
getMessage() - +Method in exception org.jivesoftware.smack.XMPPException +
  +
getMessage() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer.Error +
Returns a String representation of this error. +
getMessageCount() - +Method in class org.jivesoftware.smackx.OfflineMessageManager +
Returns the number of offline messages for the user of the connection. +
getMessages(List) - +Method in class org.jivesoftware.smackx.OfflineMessageManager +
Returns an Iterator with the offline Messages whose stamp matches the specified + request. +
getMessages() - +Method in class org.jivesoftware.smackx.OfflineMessageManager +
Returns an Iterator with all the offline Messages of the user. +
getMiddleName() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getMimeType() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
Returns the mime-type of the file. +
getMimeType() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation +
Identifies the type of file that is desired to be transfered. +
getMode() - +Method in class org.jivesoftware.smack.packet.Presence +
Returns the mode of the presence update. +
getMode() - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Returns the transport mode. +
getModerators() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns a collection of Occupant with the room moderators. +
getMultipleRecipientInfo(Packet) - +Static method in class org.jivesoftware.smackx.MultipleRecipientManager +
Returns the MultipleRecipientInfo contained in the specified packet or + null if none was found. +
getName() - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Returns the user's name. +
getName() - +Method in class org.jivesoftware.smack.RosterEntry +
Returns the name associated with this entry. +
getName() - +Method in class org.jivesoftware.smack.RosterGroup +
Returns the name of the group. +
getName() - +Method in class org.jivesoftware.smack.sasl.SASLAnonymous +
  +
getName() - +Method in class org.jivesoftware.smack.sasl.SASLMechanism +
Returns the common name of the SASL mechanism. +
getName() - +Method in class org.jivesoftware.smack.sasl.SASLPlainMechanism +
  +
getName() - +Method in class org.jivesoftware.smackx.muc.HostedRoom +
Returns the name of the room. +
getName() - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo.Identity +
Returns the identity's name. +
getName() - +Method in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Returns the entity's name. +
getName() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
Returns the file's name. +
getName() - +Method in class org.jivesoftware.smackx.packet.Version +
Returns the natural-language name of the software. +
getName() - +Method in class org.jivesoftware.smackx.RemoteRosterEntry +
Returns the user's name. +
getNames() - +Method in class org.jivesoftware.smack.packet.DefaultPacketExtension +
Returns an Iterator for the names that can be used to get + values of the packet extension. +
getNames() - +Method in class org.jivesoftware.smackx.packet.DefaultPrivateData +
Returns an Iterator for the names that can be used to get + values of the private data. +
getNamespace() - +Method in class org.jivesoftware.smack.packet.DefaultPacketExtension +
Returns the XML namespace of the extension sub-packet root element. +
getNamespace() - +Method in interface org.jivesoftware.smack.packet.PacketExtension +
Returns the root element XML namespace. +
getNamespace() - +Method in class org.jivesoftware.smackx.GroupChatInvitation +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.Bytestream.Activate +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHostUsed +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.DataForm +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.DefaultPrivateData +
Returns the XML namespace of the private data sub-packet root element. +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.DelayInformation +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Data +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
Returns the XML namespace of the extension sub-packet root element. +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.MUCUser +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageInfo +
Returns the XML namespace of the extension sub-packet root element. +
getNamespace() - +Method in interface org.jivesoftware.smackx.packet.PrivateData +
Returns the root element XML namespace. +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.RosterExchange +
Returns the XML namespace of the extension sub-packet root element. +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.Feature +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
  +
getNamespace() - +Method in class org.jivesoftware.smackx.packet.XHTMLExtension +
Returns the XML namespace of the extension sub-packet root element. +
getNamespaces() - +Method in class org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator +
  +
getNamespaces() - +Method in class org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator +
  +
getNamespaces() - +Method in class org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator +
  +
getNamespaces() - +Method in class org.jivesoftware.smackx.filetransfer.StreamNegotiator +
Returns the XMPP namespace reserved for this particular type of file + transfer. +
getNextStreamID() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
Returns a new, unique, stream ID to identify a file transfer. +
getNick() - +Method in class org.jivesoftware.smackx.muc.Affiliate +
Returns the current nickname of the affiliated user if the user is currently in the room. +
getNick() - +Method in class org.jivesoftware.smackx.muc.Occupant +
Returns the current nickname of the occupant in the room. +
getNick() - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Returns the new nickname of an occupant that is changing his/her nickname. +
getNick() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Returns the new nickname of an occupant that is changing his/her nickname. +
getNick() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Returns the new nickname of an occupant that is changing his/her nickname. +
getNickname() - +Method in class org.jivesoftware.smack.GroupChat +
Returns the nickname that was used to join the room, or null if not + currently joined. +
getNickname() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the nickname that was used to join the room, or null if not + currently joined. +
getNickName() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getNode() - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo +
Returns the node attribute that supplements the 'jid' attribute. +
getNode() - +Method in class org.jivesoftware.smackx.packet.DiscoverItems +
Returns the node attribute that supplements the 'jid' attribute. +
getNode() - +Method in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Returns the node attribute that supplements the 'jid' attribute. +
getNode() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses.Address +
  +
getNode() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageInfo +
Returns the stamp that uniquely identifies the offline message. +
getNode() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest.Item +
  +
getNodeItems() - +Method in interface org.jivesoftware.smackx.NodeInformationProvider +
Returns an Iterator on the Items DiscoverItems.Item + defined in the node. +
getOccupant(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the Occupant information for a particular occupant, or null if the + user is not in the room. +
getOccupantPresence(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the presence info for a particular user, or null if the user + is not in the room. +
getOccupants() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns an Iterator (of Strings) for the list of fully qualified occupants + in the group chat. +
getOccupantsCount() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the number of occupants in the group chat. +
getOccupantsCount() - +Method in class org.jivesoftware.smackx.muc.RoomInfo +
Returns the discovered number of occupants that are currently in the room. +
getOptions() - +Method in class org.jivesoftware.smackx.FormField +
Returns an Iterator for the available options that the user has in order to answer + the question. +
getOrganization() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getOrganizationUnit() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
getOs() - +Method in class org.jivesoftware.smackx.packet.Version +
Returns the operating system of the queried entity. +
getOutcasts() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns a collection of Affiliate with the room outcasts. +
getOutputStream() - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
Returns the output stream connected to the peer to transfer the file. +
getOutputStream() - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.NegotiationProgress +
Once the negotiation process is completed the output stream can be + retrieved. +
getOwners() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns a collection of Affiliate with the room owners. +
getPacketFilter() - +Method in class org.jivesoftware.smack.PacketCollector +
Returns the packet filter associated with this packet collector. +
getPacketID() - +Method in class org.jivesoftware.smack.packet.Packet +
Returns the unique ID of the packet. +
getPacketID() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
Returns the unique ID of the message that requested to be notified of the event. +
getPacketReplyTimeout() - +Static method in class org.jivesoftware.smack.SmackConfiguration +
Returns the number of milliseconds to wait for a response from + the server. +
getParticipant() - +Method in class org.jivesoftware.smack.Chat +
Returns the name of the user the chat is with. +
getParticipantCount() - +Method in class org.jivesoftware.smack.GroupChat +
Returns the number of participants in the group chat. +
getParticipants() - +Method in class org.jivesoftware.smack.GroupChat +
Returns an Iterator (of Strings) for the list of fully qualified participants + in the group chat. +
getParticipants() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns a collection of Occupant with the room participants. +
getPassword() - +Method in class org.jivesoftware.smack.packet.Authentication +
Returns the plain text password or null if the password hasn't + been set. +
getPassword() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence +
Returns the password to use when the room requires a password. +
getPassword() - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Returns the password to use to enter Password-Protected Room. +
getPeer() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
Returns the JID of the peer for this file transfer. +
getPhoneHome(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Get home phone number +
getPhoneWork(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Get work phone number +
getPort() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns the port to use when establishing the connection. +
getPort() - +Method in class org.jivesoftware.smack.util.DNSUtil.HostAddress +
Returns the port. +
getPort() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns the port number of the XMPP server for this connection. +
getPort() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
Returns the port on which the potential stream host would accept the + connection. +
getPresence(String) - +Method in class org.jivesoftware.smack.Roster +
Returns the presence info for a particular user, or null if the user + is unavailable (offline) or if no presence information is available, such as + when you are not subscribed to the user's presence updates. +
getPresenceResource(String) - +Method in class org.jivesoftware.smack.Roster +
Returns the presence info for a particular user's resource, or null if the user + is unavailable (offline) or if no presence information is available, such as + when you are not subscribed to the user's presence updates. +
getPresences(String) - +Method in class org.jivesoftware.smack.Roster +
Returns an iterator (of Presence objects) for all the user's current presences + or null if the user is unavailable (offline) or if no presence information + is available, such as when you are not subscribed to the user's presence updates. +
getPriority() - +Method in class org.jivesoftware.smack.packet.Presence +
Returns the priority of the presence, or -1 if no priority has been set. +
getPrivateData(String, String) - +Method in class org.jivesoftware.smackx.PrivateDataManager +
Returns the private data specified by the given element name and namespace. +
getPrivateDataProvider(String, String) - +Static method in class org.jivesoftware.smackx.PrivateDataManager +
Returns the private data provider registered to the specified XML element name and namespace. +
getProgress() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
Returns the progress of the file transfer as a number between 0 and 1. +
getProperty(String) - +Method in class org.jivesoftware.smack.packet.Packet +
Returns the packet property with the specified name or null if the + property doesn't exist. +
getPropertyNames() - +Method in class org.jivesoftware.smack.packet.Packet +
Returns an Iterator for all the property names that are set. +
getReader() - +Method in class org.jivesoftware.smack.debugger.ConsoleDebugger +
  +
getReader() - +Method in class org.jivesoftware.smack.debugger.LiteDebugger +
  +
getReader() - +Method in interface org.jivesoftware.smack.debugger.SmackDebugger +
Returns the special Reader that wraps the main Reader and logs data to the GUI. +
getReader() - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebugger +
  +
getReaderListener() - +Method in class org.jivesoftware.smack.debugger.ConsoleDebugger +
  +
getReaderListener() - +Method in class org.jivesoftware.smack.debugger.LiteDebugger +
  +
getReaderListener() - +Method in interface org.jivesoftware.smack.debugger.SmackDebugger +
Returns the thread that will listen for all incoming packets and write them to the GUI. +
getReaderListener() - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebugger +
  +
getReason() - +Method in class org.jivesoftware.smackx.packet.DelayInformation +
Returns a natural-language description of the reason for the delay or null if + this information is not available. +
getReason() - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Returns the reason for the item child. +
getReason() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Destroy +
Returns the reason for the room destruction. +
getReason() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Returns the reason for the item child. +
getReason() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Decline +
Returns the message explaining why the invitation was rejected. +
getReason() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Destroy +
Returns the reason for the room destruction. +
getReason() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Invite +
Returns the message explaining the invitation. +
getReason() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Returns the reason for the item child. +
getRegisterSASLMechanisms() - +Static method in class org.jivesoftware.smack.SASLAuthentication +
Returns the registerd SASLMechanism classes sorted by the level of preference. +
getRegistrationForm() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the room's registration form that an unaffiliated user, can use to become a member + of the room or null if no registration is possible. +
getReplyAddress() - +Method in class org.jivesoftware.smackx.MultipleRecipientInfo +
Returns the address to which all replies are requested to be sent or null if + no specific address was provided. +
getReplyRoom() - +Method in class org.jivesoftware.smackx.MultipleRecipientInfo +
Returns the JID of a MUC room to which responses should be sent or null if + no specific address was provided. +
getReportedData() - +Method in class org.jivesoftware.smackx.packet.DataForm +
Returns the fields that will be returned from a search. +
getReportedDataFrom(Packet) - +Static method in class org.jivesoftware.smackx.ReportedData +
Returns a new ReportedData if the packet is used for reporting data and includes an + extension that matches the elementName and namespace "x","jabber:x:data". +
getRequestor() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
Returns the fully-qualified jabber ID of the user that requested this + file transfer. +
getReservedNickname() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the reserved room nickname for the user in the room. +
getResource() - +Method in class org.jivesoftware.smack.packet.Authentication +
Returns the resource or null if the resource hasn't been set. +
getResource() - +Method in class org.jivesoftware.smack.packet.Bind +
  +
getResponseTimeout() - +Static method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
Returns the time in milliseconds after which the file transfer + negotiation process will timeout if the other user has not responded. +
getRole() - +Method in class org.jivesoftware.smackx.muc.Affiliate +
Returns the current role of the affiliated user if the user is currently in the room. +
getRole() - +Method in class org.jivesoftware.smackx.muc.Occupant +
Returns the current role of the occupant in the room. +
getRole() - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Returns the temporary position or privilege level of an occupant within a room. +
getRole() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Returns the temporary position or privilege level of an occupant within a room. +
getRole() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Returns the temporary position or privilege level of an occupant within a room. +
getRoom() - +Method in class org.jivesoftware.smack.GroupChat +
Returns the name of the room this GroupChat object represents. +
getRoom() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the name of the room this MultiUserChat object represents. +
getRoom() - +Method in class org.jivesoftware.smackx.muc.RoomInfo +
Returns the JID of the room whose information was discovered. +
getRoomAddress() - +Method in class org.jivesoftware.smackx.GroupChatInvitation +
Returns the address of the group chat room. +
getRoomInfo(XMPPConnection, String) - +Static method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the discovered information of a given room without actually having to join the room. +
getRoster() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns the roster for the user logged into the server. +
getRosterEntries() - +Method in class org.jivesoftware.smackx.packet.RosterExchange +
Returns an Iterator for the roster entries in the packet. +
getRosterItemCount() - +Method in class org.jivesoftware.smack.packet.RosterPacket +
Returns the number of roster items in this roster packet. +
getRosterItems() - +Method in class org.jivesoftware.smack.packet.RosterPacket +
Returns an Iterator for the roster items in the packet. +
getRows() - +Method in class org.jivesoftware.smackx.ReportedData +
Returns an Iterator for the rows returned from a search. +
getSASLAuthentication() - +Method in class org.jivesoftware.smack.sasl.SASLMechanism +
  +
getSASLAuthentication() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns the SASLAuthentication manager that is responsible for authenticating with + the server. +
getSearchForm(XMPPConnection, String) - +Method in class org.jivesoftware.smackx.search.UserSearch +
Returns the form for all search fields supported by the search service. +
getSearchForm(String) - +Method in class org.jivesoftware.smackx.search.UserSearchManager +
Returns the form to fill out to perform a search. +
getSearchResults(Form, String) - +Method in class org.jivesoftware.smackx.search.UserSearchManager +
Submits a search form to the server and returns the resulting information + in the form of ReportedData +
getSearchServices() - +Method in class org.jivesoftware.smackx.search.UserSearchManager +
Returns a collection of search services found on the server. +
getSeconds() - +Method in class org.jivesoftware.smackx.muc.DiscussionHistory +
Returns the number of seconds to use to filter the messages received during that time. +
getSeconds() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
Returns the number of seconds to use to filter the messages received during that time. +
getSeq() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Data +
Returns the sequence of this packet in regard to the other data + packets. +
getServiceName() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns the server name of the target server. +
getServiceName() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns the name of the service provided by the XMPP server for this connection. +
getServiceNames(XMPPConnection) - +Static method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns a collection with the XMPP addresses of the Multi-User Chat services. +
getSessionID() - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Returns the session ID related to the Byte Stream negotiation. +
getSessionID() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Data +
Returns the unique stream ID identifying this file transfer. +
getSessionID() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation +
Uniquely identifies a stream initiation to the recipient. +
getSharedGroups(XMPPConnection) - +Static method in class org.jivesoftware.smackx.SharedGroupManager +
Returns the collection that will contain the name of the shared groups where the user + logged in with the specified session belongs. +
getSince() - +Method in class org.jivesoftware.smackx.muc.DiscussionHistory +
Returns the since date to use to filter the messages received during that time. +
getSince() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
Returns the since date to use to filter the messages received during that time. +
getSize() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
Returns the file's size. +
getStamp() - +Method in class org.jivesoftware.smackx.OfflineMessageHeader +
Returns the stamp that uniquely identifies the offline message. +
getStamp() - +Method in class org.jivesoftware.smackx.packet.DelayInformation +
Returns the timstamp when the packet was originally sent. +
getStatus() - +Method in class org.jivesoftware.smack.packet.Presence +
Returns the status message of the presence update, or null if there + is not a status. +
getStatus() - +Method in class org.jivesoftware.smack.RosterEntry +
Returns the roster subscription status of the entry. +
getStatus() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
Retuns the current status of the file transfer. +
getStatus() - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.NegotiationProgress +
Returns the current status of the negotiation process. +
getStatus() - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Returns the status which holds a code that assists in presenting notification messages. +
getStatusMessage() - +Method in class org.jivesoftware.smackx.packet.LastActivity +
Returns the status message of the last unavailable presence received from the user. +
getStreamError() - +Method in exception org.jivesoftware.smack.XMPPException +
Returns the StreamError asscociated with this exception, or null if there + isn't one. +
getStreamHost(String) - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Returns the stream host related to the given jabber ID, or null if there + is none. +
getStreamHosts() - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Returns the list of stream hosts contained in the packet. +
getStreamID() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
Returns the stream ID that uniquely identifies this file transfer. +
getStreamInitiation() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
Returns the stream initiation packet that was sent by the requestor which + contains the parameters of the file transfer being transfer and also the + methods available to transfer the file. +
getSubject() - +Method in class org.jivesoftware.smack.packet.Message +
Returns the subject of the message, or null if the subject has not been set. +
getSubject() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the last known room's subject or null if the user hasn't joined the room + or the room does not have a subject yet. +
getSubject() - +Method in class org.jivesoftware.smackx.muc.RoomInfo +
Returns the discovered subject of the room. +
getSubscriptionMode() - +Method in class org.jivesoftware.smack.Roster +
Returns the subscription processing mode, which dictates what action + Smack will take when subscription requests from other users are made. +
getSupportedProtocols() - +Static method in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
Returns a collection of the supported transfer protocols. +
getTarget() - +Method in class org.jivesoftware.smackx.packet.Bytestream.Activate +
Returns the target of the activation. +
getThread() - +Method in class org.jivesoftware.smack.packet.Message +
Returns the thread id of the message, which is a unique identifier for a sequence + of "chat" messages. +
getThreadID() - +Method in class org.jivesoftware.smack.Chat +
Returns the thread id associated with this chat, which corresponds to the + thread field of XMPP messages. +
getTime() - +Method in class org.jivesoftware.smackx.packet.Time +
Returns the local time or null if the time hasn't been set. +
getTitle() - +Method in class org.jivesoftware.smackx.Form +
Returns the description of the data. +
getTitle() - +Method in class org.jivesoftware.smackx.packet.DataForm +
Returns the description of the data. +
getTitle() - +Method in class org.jivesoftware.smackx.ReportedData +
Returns the report's title. +
getTo() - +Method in class org.jivesoftware.smack.packet.Packet +
Returns who the packet is being sent "to", or null if + the value is not set. +
getTo() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Decline +
Returns the bare JID of the inviter. +
getTo() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Invite +
Returns the bare JID of the invitee. +
getToActivate() - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Returns the activate element of the packet sent to the proxy host to + verify the identity of the initiator and match them to the appropriate + stream. +
getTOAddresses() - +Method in class org.jivesoftware.smackx.MultipleRecipientInfo +
Returns the list of MultipleAddresses.Address + that were the primary recipients of the packet. +
getTruststorePassword() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns the password to use to access the truststore file. +
getTruststorePath() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Retuns the path to the truststore file. +
getTruststoreType() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
  +
getType() - +Method in class org.jivesoftware.smack.packet.IQ +
Returns the type of the IQ packet. +
getType() - +Method in class org.jivesoftware.smack.packet.Message +
Returns the type of the message. +
getType() - +Method in class org.jivesoftware.smack.packet.Presence +
Returns the type of this presence packet. +
getType() - +Method in class org.jivesoftware.smack.RosterEntry +
Returns the roster subscription type of the entry. +
getType() - +Method in class org.jivesoftware.smackx.Form +
Returns the meaning of the data within the context. +
getType() - +Method in class org.jivesoftware.smackx.FormField +
Returns an indicative of the format for the data to answer. +
getType() - +Method in class org.jivesoftware.smackx.packet.DataForm +
Returns the meaning of the data within the context. +
getType() - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo.Identity +
Returns the entity's type. +
getType() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses.Address +
  +
getType() - +Method in class org.jivesoftware.smackx.ReportedData.Column +
Returns the column's data format. +
getTz() - +Method in class org.jivesoftware.smackx.packet.Time +
Returns the time zone. +
getUnfiledEntries() - +Method in class org.jivesoftware.smack.Roster +
Returns an Iterator for the unfiled roster entries. +
getUnfiledEntryCount() - +Method in class org.jivesoftware.smack.Roster +
Returns a count of the unfiled entries in the roster. +
getUri() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses.Address +
  +
getUsedHost() - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Returns the Socks5 host connected to by the remote user. +
getUser() - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Returns the user. +
getUser() - +Method in class org.jivesoftware.smack.RosterEntry +
Returns the JID of the user associated with this entry. +
getUser() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns the full XMPP address of the user that is logged in to the connection or + null if not logged in yet. +
getUser() - +Method in class org.jivesoftware.smackx.OfflineMessageHeader +
Returns the bare JID of the user that was offline when the message was sent. +
getUser() - +Method in class org.jivesoftware.smackx.RemoteRosterEntry +
Returns the user. +
getUsername() - +Method in class org.jivesoftware.smack.packet.Authentication +
Returns the username, or null if the username hasn't been sent. +
getUtc() - +Method in class org.jivesoftware.smackx.packet.Time +
Returns the time as a UTC formatted String using the format CCYYMMDDThh:mm:ss. +
getValue(String) - +Method in class org.jivesoftware.smack.packet.DefaultPacketExtension +
Returns a packet extension value given a name. +
getValue() - +Method in class org.jivesoftware.smackx.FormField.Option +
Returns the value of the option. +
getValue(String) - +Method in class org.jivesoftware.smackx.packet.DefaultPrivateData +
Returns a value given a name. +
getValues() - +Method in class org.jivesoftware.smackx.FormField +
Returns an Iterator for the default values of the question if the question is part + of a form to fill out. +
getValues() - +Method in class org.jivesoftware.smackx.ReportedData.Field +
Returns an iterator on the values reported as part of the search. +
getValues(String) - +Method in class org.jivesoftware.smackx.ReportedData.Row +
Returns the values of the field whose variable matches the requested variable. +
getVar() - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo.Feature +
Returns the feature's variable. +
getVariable() - +Method in class org.jivesoftware.smackx.FormField +
Returns the variable name that the question is filling out. +
getVariable() - +Method in class org.jivesoftware.smackx.ReportedData.Column +
Returns the variable name that the column is showing. +
getVariable() - +Method in class org.jivesoftware.smackx.ReportedData.Field +
Returns the variable name that the field represents. +
getVersion() - +Static method in class org.jivesoftware.smack.SmackConfiguration +
Returns the Smack version information, eg "1.3.0". +
getVersion() - +Method in class org.jivesoftware.smackx.packet.Version +
Returns the specific version of the software. +
getWrappedThrowable() - +Method in exception org.jivesoftware.smack.XMPPException +
Returns the Throwable asscociated with this exception, or null if there + isn't one. +
getWriter() - +Method in class org.jivesoftware.smack.debugger.ConsoleDebugger +
  +
getWriter() - +Method in class org.jivesoftware.smack.debugger.LiteDebugger +
  +
getWriter() - +Method in interface org.jivesoftware.smack.debugger.SmackDebugger +
Returns the special Writer that wraps the main Writer and logs data to the GUI. +
getWriter() - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebugger +
  +
getWriterListener() - +Method in class org.jivesoftware.smack.debugger.ConsoleDebugger +
  +
getWriterListener() - +Method in class org.jivesoftware.smack.debugger.LiteDebugger +
  +
getWriterListener() - +Method in interface org.jivesoftware.smack.debugger.SmackDebugger +
Returns the thread that will listen for all outgoing packets and write them to the GUI. +
getWriterListener() - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebugger +
  +
getXMPPError() - +Method in exception org.jivesoftware.smack.XMPPException +
Returns the XMPPError asscociated with this exception, or null if there + isn't one. +
GoogleTalkConnection - Class in org.jivesoftware.smack
Convenience class to make it easier to connect to the Google Talk IM service.
GoogleTalkConnection() - +Constructor for class org.jivesoftware.smack.GoogleTalkConnection +
  +
grantAdmin(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants administrator privileges to other users. +
grantAdmin(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants administrator privileges to another user. +
grantMembership(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants membership to other users. +
grantMembership(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants membership to a user. +
grantModerator(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants moderator privileges to participants or visitors. +
grantModerator(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants moderator privileges to a participant or visitor. +
grantOwnership(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants ownership privileges to other users. +
grantOwnership(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants ownership privileges to another user. +
grantVoice(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants voice to visitors in the room. +
grantVoice(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Grants voice to a visitor in the room. +
GROUP_CHAT - +Static variable in class org.jivesoftware.smack.packet.Message.Type +
Chat message sent to a groupchat server for group chats. +
GroupChat - Class in org.jivesoftware.smack
A GroupChat is a conversation that takes place among many users in a virtual + room.
GroupChat(XMPPConnection, String) - +Constructor for class org.jivesoftware.smack.GroupChat +
Creates a new group chat with the specified connection and room name. +
GroupChatInvitation - Class in org.jivesoftware.smackx
A group chat invitation packet extension, which is used to invite other + users to a group chat room.
GroupChatInvitation(String) - +Constructor for class org.jivesoftware.smackx.GroupChatInvitation +
Creates a new group chat invitation to the specified room address. +
GroupChatInvitation.Provider - Class in org.jivesoftware.smackx
 
GroupChatInvitation.Provider() - +Constructor for class org.jivesoftware.smackx.GroupChatInvitation.Provider +
  +
+
+

+H

+
+
hasAnonymousAuthentication() - +Method in class org.jivesoftware.smack.SASLAuthentication +
Returns true if the server offered ANONYMOUS SASL as a way to authenticate users. +
hash(String) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Hashes a String using the SHA-1 algorithm and returns the result as a + String of hexadecimal numbers. +
hashCode() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
hasNonAnonymousAuthentication() - +Method in class org.jivesoftware.smack.SASLAuthentication +
Returns true if the server offered SASL authentication besides ANONYMOUS SASL. +
HEADLINE - +Static variable in class org.jivesoftware.smack.packet.Message.Type +
Text message to be displayed in scrolling marquee displays. +
HostedRoom - Class in org.jivesoftware.smackx.muc
Hosted rooms by a chat service may be discovered if they are configured to appear in the room + directory .
HostedRoom(DiscoverItems.Item) - +Constructor for class org.jivesoftware.smackx.muc.HostedRoom +
  +
+
+

+I

+
+
IBB_ONLY - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
  +
IBBExtensions - Class in org.jivesoftware.smackx.packet
The different extensions used throughtout the negotiation and transfer + process.
IBBExtensions() - +Constructor for class org.jivesoftware.smackx.packet.IBBExtensions +
  +
IBBExtensions.Close - Class in org.jivesoftware.smackx.packet
Represents the closing of the file transfer.
IBBExtensions.Close(String) - +Constructor for class org.jivesoftware.smackx.packet.IBBExtensions.Close +
The constructor. +
IBBExtensions.Data - Class in org.jivesoftware.smackx.packet
A data packet containing a portion of the file being sent encoded in + base64.
IBBExtensions.Data(String) - +Constructor for class org.jivesoftware.smackx.packet.IBBExtensions.Data +
A constructor. +
IBBExtensions.Data(String, long, String) - +Constructor for class org.jivesoftware.smackx.packet.IBBExtensions.Data +
  +
IBBExtensions.Open - Class in org.jivesoftware.smackx.packet
Represents a request to open the file transfer.
IBBExtensions.Open(String, int) - +Constructor for class org.jivesoftware.smackx.packet.IBBExtensions.Open +
Constructs an open packet. +
IBBProviders - Class in org.jivesoftware.smackx.provider
Parses an IBB packet.
IBBProviders() - +Constructor for class org.jivesoftware.smackx.provider.IBBProviders +
  +
IBBProviders.Close - Class in org.jivesoftware.smackx.provider
Parses a close IBB packet.
IBBProviders.Close() - +Constructor for class org.jivesoftware.smackx.provider.IBBProviders.Close +
  +
IBBProviders.Data - Class in org.jivesoftware.smackx.provider
Parses a data IBB packet.
IBBProviders.Data() - +Constructor for class org.jivesoftware.smackx.provider.IBBProviders.Data +
  +
IBBProviders.Open - Class in org.jivesoftware.smackx.provider
Parses an open IBB packet.
IBBProviders.Open() - +Constructor for class org.jivesoftware.smackx.provider.IBBProviders.Open +
  +
IBBTransferNegotiator - Class in org.jivesoftware.smackx.filetransfer
The in-band bytestream file transfer method, or IBB for short, transfers the + file over the same XML Stream used by XMPP.
IBBTransferNegotiator(XMPPConnection) - +Constructor for class org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator +
The default constructor for the In-Band Bystream Negotiator. +
ID_NOT_AVAILABLE - +Static variable in class org.jivesoftware.smack.packet.Packet +
Constant used as packetID to indicate that a packet has no id. +
IN_PROGRESS - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Status +
The transfer is in progress. +
INBAND_BYTE_STREAM - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
The XMPP namespace of the In-Band bytestream +
includesFeature(String) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Returns true if the specified feature is registered in the ServiceDiscoveryManager. +
IncomingFileTransfer - Class in org.jivesoftware.smackx.filetransfer
An incoming file transfer is created when the + FileTransferManager.createIncomingFileTransfer(FileTransferRequest) + method is invoked.
IncomingFileTransfer(FileTransferRequest, FileTransferNegotiator) - +Constructor for class org.jivesoftware.smackx.filetransfer.IncomingFileTransfer +
  +
interceptPacket(Packet) - +Method in interface org.jivesoftware.smack.PacketInterceptor +
Process the packet that is about to be sent to the server. +
interceptPacket(Packet) - +Method in class org.jivesoftware.smackx.muc.DeafOccupantInterceptor +
  +
INVISIBLE - +Static variable in class org.jivesoftware.smack.packet.Presence.Mode +
  +
invitationDeclined(String, String) - +Method in interface org.jivesoftware.smackx.muc.InvitationRejectionListener +
Called when the invitee declines the invitation. +
InvitationListener - Interface in org.jivesoftware.smackx.muc
A listener that is fired anytime an invitation to join a MUC room is received.
invitationReceived(XMPPConnection, String, String, String, String, Message) - +Method in interface org.jivesoftware.smackx.muc.InvitationListener +
Called when the an invitation to join a MUC room is received. +
InvitationRejectionListener - Interface in org.jivesoftware.smackx.muc
A listener that is fired anytime an invitee declines or rejects an invitation.
invite(String, String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Invites another user to the room in which one is an occupant. +
invite(Message, String, String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Invites another user to the room in which one is an occupant using a given Message. +
IQ - Class in org.jivesoftware.smack.packet
The base IQ (Info/Query) packet.
IQ() - +Constructor for class org.jivesoftware.smack.packet.IQ +
  +
IQ.Type - Class in org.jivesoftware.smack.packet
A class to represent the type of the IQ packet.
IQProvider - Interface in org.jivesoftware.smack.provider
An interface for parsing custom IQ packets.
IQTypeFilter - Class in org.jivesoftware.smack.filter
A filter for IQ packet types.
IQTypeFilter(IQ.Type) - +Constructor for class org.jivesoftware.smack.filter.IQTypeFilter +
  +
isAllowLocalProxyHost - +Static variable in class org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator +
  +
isAnonymous() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns true if currently authenticated anonymously. +
isAuthenticated() - +Method in class org.jivesoftware.smack.SASLAuthentication +
Returns true if the user was able to authenticate with the server usins SASL. +
isAuthenticated() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns true if currently authenticated by successfully calling the login method. +
isCancelled() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a notification returns if the receiver of the message cancelled + composing a reply. +
isComposing() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a request returns if the sender of the message requests to be notified + when the receiver is composing a reply. +
isCompressionEnabled() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns true if the connection is going to use stream compression. +
isConnected() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns true if currently connected to the XMPP server. +
isDebuggerEnabled() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns true if the new connection about to be establish is going to be debugged. +
isDelivered() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a request returns if the sender of the message requests to be notified + when the message is delivered. +
isDelivered() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses.Address +
  +
isDisplayed() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a request returns if the sender of the message requests to be notified + when the message is displayed. +
isDone() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
Returns true if the transfer has been cancled, if it has stopped because + of a an error, or the transfer completed succesfully. +
isEmpty() - +Method in class org.jivesoftware.smack.util.Cache +
  +
isExpiredCertificatesCheckEnabled() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns true if certificates presented by the server are going to be checked for their + validity. +
isFetch() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest +
Returns true if all the offline messages of the user should be retrieved. +
isJoined() - +Method in class org.jivesoftware.smack.GroupChat +
Returns true if currently in the group chat (after calling the GroupChat.join(String) method. +
isJoined() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns true if currently in the multi user chat (after calling the MultiUserChat.join(String) method). +
isMembersOnly() - +Method in class org.jivesoftware.smackx.muc.RoomInfo +
Returns true if the room has restricted the access so that only members may enter the room. +
isMessageEventRequest() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
Returns true if this MessageEvent is a request for notifications. +
isModerated() - +Method in class org.jivesoftware.smackx.muc.RoomInfo +
Returns true if the room enabled only participants to speak. +
isNonanonymous() - +Method in class org.jivesoftware.smackx.muc.RoomInfo +
Returns true if presence packets will include the JID of every occupant. +
isNotMatchingDomainCheckEnabled() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns true if certificates presented by the server are going to be checked for their + domain. +
isOffline() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a request returns if the sender of the message requests to be notified + when the receiver of the message is offline. +
isPasswordProtected() - +Method in class org.jivesoftware.smackx.muc.RoomInfo +
Returns true if users musy provide a valid password in order to join the room. +
isPersistent() - +Method in class org.jivesoftware.smackx.muc.RoomInfo +
Returns true if the room will persist after the last occupant have left the room. +
isPurge() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest +
Returns true if all the offline messages of the user should be deleted. +
isRanged() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
Returns whether or not the initiator can support a range for the file + tranfer. +
isRequired() - +Method in class org.jivesoftware.smackx.FormField +
Returns true if the question must be answered in order to complete the questionnaire. +
isSASLAuthenticationEnabled() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns true if the client is going to use SASL authentication when logging into the + server. +
isSecureConnection() - +Method in class org.jivesoftware.smack.SSLXMPPConnection +
  +
isSecureConnection() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns true if the connection is a secured one, such as an SSL connection or + if TLS was negotiated successfully. +
isSelfSignedCertificateEnabled() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns true if self-signed certificates are going to be accepted. +
isServiceEnabled(XMPPConnection) - +Static method in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
Checks to see if all file transfer related services are enabled on the + connection. +
isServiceEnabled(XMPPConnection, String) - +Static method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns true if the specified user supports the Multi-User Chat protocol. +
isServiceEnabled(XMPPConnection) - +Static method in class org.jivesoftware.smackx.XHTMLManager +
Returns true if the XHTML support is enabled for the given connection. +
isServiceEnabled(XMPPConnection, String) - +Static method in class org.jivesoftware.smackx.XHTMLManager +
Returns true if the specified user handles XHTML messages. +
isTLSEnabled() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns true if the client is going to try to secure the connection using TLS after + the connection has been established. +
isUsingCompression() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns true if network traffic is being compressed. +
isUsingTLS() - +Method in class org.jivesoftware.smack.XMPPConnection +
Returns true if the connection to the server has successfully negotiated TLS. +
isVerifyChainEnabled() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns true if the whole chain of certificates presented by the server are going to + be checked. +
isVerifyRootCAEnabled() - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Returns true if root CA checking is going to be done. +
isVisible() - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebuggerWindow +
  +
isXHTMLMessage(Message) - +Static method in class org.jivesoftware.smackx.XHTMLManager +
Returns true if the message contains an XHTML extension. +
+
+

+J

+
+
join(String) - +Method in class org.jivesoftware.smack.GroupChat +
Joins the chat room using the specified nickname. +
join(String, long) - +Method in class org.jivesoftware.smack.GroupChat +
Joins the chat room using the specified nickname. +
join(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Joins the chat room using the specified nickname. +
join(String, String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Joins the chat room using the specified nickname and password. +
join(String, String, DiscussionHistory, long) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Joins the chat room using the specified nickname and password. +
joined(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
joined(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when a new room occupant has joined the room. +
+
+

+K

+
+
keySet() - +Method in class org.jivesoftware.smack.util.Cache +
  +
kicked(String, String, String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
kicked(String, String) - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
kicked(String, String, String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when a room participant has been kicked from the room. +
kicked(String, String) - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when a moderator kicked your user from the room. +
kickParticipant(String, String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Kicks a visitor or participant from the room. +
+
+

+L

+
+
lastAccessedList - +Variable in class org.jivesoftware.smack.util.Cache +
Linked list to maintain order that cache objects are accessed + in, most used to least used. +
LastActivity - Class in org.jivesoftware.smackx.packet
A last activity IQ for retrieving information about the last activity associated with a Jabber ID.
LastActivity() - +Constructor for class org.jivesoftware.smackx.packet.LastActivity +
  +
lastActivity - +Variable in class org.jivesoftware.smackx.packet.LastActivity +
  +
LastActivity.Provider - Class in org.jivesoftware.smackx.packet
The IQ Provider for LastActivity.
LastActivity.Provider() - +Constructor for class org.jivesoftware.smackx.packet.LastActivity.Provider +
  +
leave() - +Method in class org.jivesoftware.smack.GroupChat +
Leave the chat room. +
leave() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Leave the chat room. +
left(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
left(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when a room occupant has left the room on its own. +
LiteDebugger - Class in org.jivesoftware.smack.debugger
The LiteDebugger is a very simple debugger that allows to debug sent, received and + interpreted messages.
LiteDebugger(XMPPConnection, Writer, Reader) - +Constructor for class org.jivesoftware.smack.debugger.LiteDebugger +
  +
load(XMPPConnection) - +Method in class org.jivesoftware.smackx.packet.VCard +
Load VCard information for a connected user. +
load(XMPPConnection, String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Load VCard information for a given user. +
login(String, String) - +Method in class org.jivesoftware.smack.XMPPConnection +
Logs in to the server using the strongest authentication mode supported by + the server, then set our presence to available. +
login(String, String, String) - +Method in class org.jivesoftware.smack.XMPPConnection +
Logs in to the server using the strongest authentication mode supported by + the server, then sets presence to available. +
login(String, String, String, boolean) - +Method in class org.jivesoftware.smack.XMPPConnection +
Logs in to the server using the strongest authentication mode supported by + the server. +
loginAnonymously() - +Method in class org.jivesoftware.smack.XMPPConnection +
Logs in to the server anonymously. +
+
+

+M

+
+
map - +Variable in class org.jivesoftware.smack.util.Cache +
The map the keys and values are stored in. +
mark(int) - +Method in class org.jivesoftware.smack.util.ObservableReader +
  +
markSupported() - +Method in class org.jivesoftware.smack.util.ObservableReader +
  +
MAX_TABLE_ROWS - +Static variable in class org.jivesoftware.smackx.debugger.EnhancedDebuggerWindow +
Keeps the max number of rows to keep in the tables. +
maxCacheSize - +Variable in class org.jivesoftware.smack.util.Cache +
Maximum number of items the cache will hold. +
maxLifetime - +Variable in class org.jivesoftware.smack.util.Cache +
Maximum length of time objects can exist in cache before expiring. +
membershipGranted(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
membershipGranted() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
membershipGranted(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when an administrator grants a user membership to the room. +
membershipGranted() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when an administrator grants your user membership to the room. +
membershipRevoked(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
membershipRevoked() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
membershipRevoked(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when an administrator revokes a user membership to the room. +
membershipRevoked() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when an administrator revokes your user membership to the room. +
Message - Class in org.jivesoftware.smack.packet
Represents XMPP message packets.
Message() - +Constructor for class org.jivesoftware.smack.packet.Message +
Creates a new, "normal" message. +
Message(String) - +Constructor for class org.jivesoftware.smack.packet.Message +
Creates a new "normal" message to the specified recipient. +
Message(String, Message.Type) - +Constructor for class org.jivesoftware.smack.packet.Message +
Creates a new message of the specified type to a recipient. +
message - +Variable in class org.jivesoftware.smackx.packet.LastActivity +
  +
Message.Type - Class in org.jivesoftware.smack.packet
Represents the type of a message.
MessageEvent - Class in org.jivesoftware.smackx.packet
Represents message events relating to the delivery, display, composition and cancellation of + messages.
MessageEvent() - +Constructor for class org.jivesoftware.smackx.packet.MessageEvent +
  +
MessageEventManager - Class in org.jivesoftware.smackx
Manages message events requests and notifications.
MessageEventManager(XMPPConnection) - +Constructor for class org.jivesoftware.smackx.MessageEventManager +
Creates a new message event manager. +
MessageEventNotificationListener - Interface in org.jivesoftware.smackx
A listener that is fired anytime a message event notification is received.
MessageEventProvider - Class in org.jivesoftware.smackx.provider
The MessageEventProvider parses Message Event packets.
MessageEventProvider() - +Constructor for class org.jivesoftware.smackx.provider.MessageEventProvider +
Creates a new MessageEventProvider. +
MessageEventRequestListener - Interface in org.jivesoftware.smackx
A listener that is fired anytime a message event request is received.
MessageTypeFilter - Class in org.jivesoftware.smack.filter
Filters for packets of a specific type of Message (e.g.
MessageTypeFilter(Message.Type) - +Constructor for class org.jivesoftware.smack.filter.MessageTypeFilter +
Creates a new message type filter using the specified message type. +
moderatorGranted(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
moderatorGranted() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
moderatorGranted(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when an administrator grants moderator privileges to a user. +
moderatorGranted() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when an administrator grants moderator privileges to your user. +
moderatorRevoked(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
moderatorRevoked() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
moderatorRevoked(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when an administrator revokes moderator privileges from a user. +
moderatorRevoked() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when an administrator revokes moderator privileges from your user. +
MUCAdmin - Class in org.jivesoftware.smackx.packet
IQ packet that serves for kicking users, granting and revoking voice, banning users, + modifying the ban list, granting and revoking membership and granting and revoking + moderator privileges.
MUCAdmin() - +Constructor for class org.jivesoftware.smackx.packet.MUCAdmin +
  +
MUCAdmin.Item - Class in org.jivesoftware.smackx.packet
Item child that holds information about roles, affiliation, jids and nicks.
MUCAdmin.Item(String, String) - +Constructor for class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Creates a new item child. +
MUCAdminProvider - Class in org.jivesoftware.smackx.provider
The MUCAdminProvider parses MUCAdmin packets.
MUCAdminProvider() - +Constructor for class org.jivesoftware.smackx.provider.MUCAdminProvider +
  +
MUCInitialPresence - Class in org.jivesoftware.smackx.packet
Represents extended presence information whose sole purpose is to signal the ability of + the occupant to speak the MUC protocol when joining a room.
MUCInitialPresence() - +Constructor for class org.jivesoftware.smackx.packet.MUCInitialPresence +
  +
MUCInitialPresence.History - Class in org.jivesoftware.smackx.packet
The History class controls the number of characters or messages to receive + when entering a room.
MUCInitialPresence.History() - +Constructor for class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
  +
MUCOwner - Class in org.jivesoftware.smackx.packet
IQ packet that serves for granting and revoking ownership privileges, granting + and revoking administrative privileges and destroying a room.
MUCOwner() - +Constructor for class org.jivesoftware.smackx.packet.MUCOwner +
  +
MUCOwner.Destroy - Class in org.jivesoftware.smackx.packet
Represents a request to the server to destroy a room.
MUCOwner.Destroy() - +Constructor for class org.jivesoftware.smackx.packet.MUCOwner.Destroy +
  +
MUCOwner.Item - Class in org.jivesoftware.smackx.packet
Item child that holds information about affiliation, jids and nicks.
MUCOwner.Item(String) - +Constructor for class org.jivesoftware.smackx.packet.MUCOwner.Item +
Creates a new item child. +
MUCOwnerProvider - Class in org.jivesoftware.smackx.provider
The MUCOwnerProvider parses MUCOwner packets.
MUCOwnerProvider() - +Constructor for class org.jivesoftware.smackx.provider.MUCOwnerProvider +
  +
MUCUser - Class in org.jivesoftware.smackx.packet
Represents extended presence information about roles, affiliations, full JIDs, + or status codes scoped by the 'http://jabber.org/protocol/muc#user' namespace.
MUCUser() - +Constructor for class org.jivesoftware.smackx.packet.MUCUser +
  +
MUCUser.Decline - Class in org.jivesoftware.smackx.packet
Represents a rejection to an invitation from another user to a room.
MUCUser.Decline() - +Constructor for class org.jivesoftware.smackx.packet.MUCUser.Decline +
  +
MUCUser.Destroy - Class in org.jivesoftware.smackx.packet
Represents a notification that the room has been destroyed.
MUCUser.Destroy() - +Constructor for class org.jivesoftware.smackx.packet.MUCUser.Destroy +
  +
MUCUser.Invite - Class in org.jivesoftware.smackx.packet
Represents an invitation for another user to a room.
MUCUser.Invite() - +Constructor for class org.jivesoftware.smackx.packet.MUCUser.Invite +
  +
MUCUser.Item - Class in org.jivesoftware.smackx.packet
Item child that holds information about roles, affiliation, jids and nicks.
MUCUser.Item(String, String) - +Constructor for class org.jivesoftware.smackx.packet.MUCUser.Item +
Creates a new item child. +
MUCUser.Status - Class in org.jivesoftware.smackx.packet
Status code assists in presenting notification messages.
MUCUser.Status(String) - +Constructor for class org.jivesoftware.smackx.packet.MUCUser.Status +
Creates a new instance of Status with the specified code. +
MUCUserProvider - Class in org.jivesoftware.smackx.provider
The MUCUserProvider parses packets with extended presence information about + roles and affiliations.
MUCUserProvider() - +Constructor for class org.jivesoftware.smackx.provider.MUCUserProvider +
Creates a new MUCUserProvider. +
MultipleAddresses - Class in org.jivesoftware.smackx.packet
Packet extension that contains the list of addresses that a packet should be sent or was sent.
MultipleAddresses() - +Constructor for class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
MultipleAddresses.Address - Class in org.jivesoftware.smackx.packet
 
MultipleAddressesProvider - Class in org.jivesoftware.smackx.provider
The MultipleAddressesProvider parses MultipleAddresses packets.
MultipleAddressesProvider() - +Constructor for class org.jivesoftware.smackx.provider.MultipleAddressesProvider +
Creates a new MultipleAddressesProvider. +
MultipleRecipientInfo - Class in org.jivesoftware.smackx
MultipleRecipientInfo keeps information about the multiple recipients extension included + in a received packet.
MultipleRecipientManager - Class in org.jivesoftware.smackx
A MultipleRecipientManager allows to send packets to multiple recipients by making use of + JEP-33: Extended Stanza Addressing.
MultipleRecipientManager() - +Constructor for class org.jivesoftware.smackx.MultipleRecipientManager +
  +
MultiUserChat - Class in org.jivesoftware.smackx.muc
A MultiUserChat is a conversation that takes place among many users in a virtual + room.
MultiUserChat(XMPPConnection, String) - +Constructor for class org.jivesoftware.smackx.muc.MultiUserChat +
Creates a new multi user chat with the specified connection and room name. +
+
+

+N

+
+
NAMESPACE - +Static variable in class org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator +
  +
NAMESPACE - +Static variable in class org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator +
  +
NAMESPACE - +Static variable in class org.jivesoftware.smackx.GroupChatInvitation +
Namespace of the packet extension. +
NAMESPACE - +Variable in class org.jivesoftware.smackx.packet.Bytestream.Activate +
  +
NAMESPACE - +Static variable in class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
  +
NAMESPACE - +Variable in class org.jivesoftware.smackx.packet.Bytestream.StreamHostUsed +
  +
NAMESPACE - +Static variable in class org.jivesoftware.smackx.packet.IBBExtensions +
  +
NEGOTIATED - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Status +
After the stream negotitation has completed the intermediate state + between the time when the negotiation is finished and the actual + transfer begins. +
negotiateOutgoingTransfer(String, String, String, long, String, int) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
Send a request to another user to send them a file. +
NEGOTIATING_STREAM - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Status +
The stream to transfer the file is being negotiated over the chosen + stream type. +
NEGOTIATING_TRANSFER - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Status +
The file transfer is being negotiated with the peer. +
negotiator - +Variable in class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
NEW_UTC_FORMAT - +Static variable in class org.jivesoftware.smackx.packet.DelayInformation +
New date format based on JEP-82 that some clients may use when sending delayed dates. +
newConnectionReader(Reader) - +Method in class org.jivesoftware.smack.debugger.ConsoleDebugger +
  +
newConnectionReader(Reader) - +Method in class org.jivesoftware.smack.debugger.LiteDebugger +
  +
newConnectionReader(Reader) - +Method in interface org.jivesoftware.smack.debugger.SmackDebugger +
Returns a new special Reader that wraps the new connection Reader. +
newConnectionReader(Reader) - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebugger +
  +
newConnectionWriter(Writer) - +Method in class org.jivesoftware.smack.debugger.ConsoleDebugger +
  +
newConnectionWriter(Writer) - +Method in class org.jivesoftware.smack.debugger.LiteDebugger +
  +
newConnectionWriter(Writer) - +Method in interface org.jivesoftware.smack.debugger.SmackDebugger +
Returns a new special Writer that wraps the new connection Writer. +
newConnectionWriter(Writer) - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebugger +
  +
nextMessage() - +Method in class org.jivesoftware.smack.Chat +
Returns the next available message in the chat. +
nextMessage(long) - +Method in class org.jivesoftware.smack.Chat +
Returns the next available message in the chat. +
nextMessage() - +Method in class org.jivesoftware.smack.GroupChat +
Returns the next available message in the chat. +
nextMessage(long) - +Method in class org.jivesoftware.smack.GroupChat +
Returns the next available message in the chat. +
nextMessage() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the next available message in the chat. +
nextMessage(long) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Returns the next available message in the chat. +
nextResult() - +Method in class org.jivesoftware.smack.PacketCollector +
Returns the next available packet. +
nextResult(long) - +Method in class org.jivesoftware.smack.PacketCollector +
Returns the next available packet. +
nicknameChanged(String, String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
nicknameChanged(String, String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when a participant changed his/her nickname in the room. +
NO_REPLY - +Static variable in class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
NO_RESPONSE - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Error +
The remote user did not respond or the connection timed out. +
NodeInformationProvider - Interface in org.jivesoftware.smackx
The NodeInformationProvider is responsible for providing information (i.e.
NONE - +Static variable in class org.jivesoftware.smack.packet.RosterPacket.ItemType +
The user and subscriber have no interest in each other's presence. +
NONE - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Error +
No error +
NORMAL - +Static variable in class org.jivesoftware.smack.packet.Message.Type +
(Default) a normal text message used in email like interface. +
NOT_ACCEPTABLE - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Error +
The peer did not find any of the provided stream mechanisms + acceptable. +
NotFilter - Class in org.jivesoftware.smack.filter
Implements the logical NOT operation on a packet filter.
NotFilter(PacketFilter) - +Constructor for class org.jivesoftware.smack.filter.NotFilter +
Creates a NOT filter using the specified filter. +
+
+

+O

+
+
ObservableReader - Class in org.jivesoftware.smack.util
An ObservableReader is a wrapper on a Reader that notifies to its listeners when + reading character streams.
ObservableReader(Reader) - +Constructor for class org.jivesoftware.smack.util.ObservableReader +
  +
ObservableWriter - Class in org.jivesoftware.smack.util
An ObservableWriter is a wrapper on a Writer that notifies to its listeners when + writing to character streams.
ObservableWriter(Writer) - +Constructor for class org.jivesoftware.smack.util.ObservableWriter +
  +
Occupant - Class in org.jivesoftware.smackx.muc
Represents the information about an occupant in a given room.
OFFLINE - +Static variable in class org.jivesoftware.smackx.packet.MessageEvent +
  +
OfflineMessageHeader - Class in org.jivesoftware.smackx
The OfflineMessageHeader holds header information of an offline message.
OfflineMessageHeader(DiscoverItems.Item) - +Constructor for class org.jivesoftware.smackx.OfflineMessageHeader +
  +
OfflineMessageInfo - Class in org.jivesoftware.smackx.packet
OfflineMessageInfo is an extension included in the retrieved offline messages requested by + the OfflineMessageManager.
OfflineMessageInfo() - +Constructor for class org.jivesoftware.smackx.packet.OfflineMessageInfo +
  +
OfflineMessageInfo.Provider - Class in org.jivesoftware.smackx.packet
 
OfflineMessageInfo.Provider() - +Constructor for class org.jivesoftware.smackx.packet.OfflineMessageInfo.Provider +
Creates a new Provider. +
OfflineMessageManager - Class in org.jivesoftware.smackx
The OfflineMessageManager helps manage offline messages even before the user has sent an + available presence.
OfflineMessageManager(XMPPConnection) - +Constructor for class org.jivesoftware.smackx.OfflineMessageManager +
  +
OfflineMessageRequest - Class in org.jivesoftware.smackx.packet
Represents a request to get some or all the offline messages of a user.
OfflineMessageRequest() - +Constructor for class org.jivesoftware.smackx.packet.OfflineMessageRequest +
  +
OfflineMessageRequest.Item - Class in org.jivesoftware.smackx.packet
Item child that holds information about offline messages to view or delete.
OfflineMessageRequest.Item(String) - +Constructor for class org.jivesoftware.smackx.packet.OfflineMessageRequest.Item +
Creates a new item child. +
OfflineMessageRequest.Provider - Class in org.jivesoftware.smackx.packet
 
OfflineMessageRequest.Provider() - +Constructor for class org.jivesoftware.smackx.packet.OfflineMessageRequest.Provider +
  +
offlineNotification(String, String) - +Method in interface org.jivesoftware.smackx.MessageEventNotificationListener +
Called when a notification that the receiver of the message is offline is received. +
offlineNotificationRequested(String, String, MessageEventManager) - +Method in class org.jivesoftware.smackx.DefaultMessageEventRequestListener +
  +
offlineNotificationRequested(String, String, MessageEventManager) - +Method in interface org.jivesoftware.smackx.MessageEventRequestListener +
Called when a request that the receiver of the message is offline is received. +
OrFilter - Class in org.jivesoftware.smack.filter
Implements the logical OR operation over two or more packet filters.
OrFilter() - +Constructor for class org.jivesoftware.smack.filter.OrFilter +
Creates an empty OR filter. +
OrFilter(PacketFilter, PacketFilter) - +Constructor for class org.jivesoftware.smack.filter.OrFilter +
Creates an OR filter using the two specified filters. +
org.jivesoftware.smack - package org.jivesoftware.smack
Core classes of the Smack API.
org.jivesoftware.smack.debugger - package org.jivesoftware.smack.debugger
Core debugger functionality.
org.jivesoftware.smack.filter - package org.jivesoftware.smack.filter
Allows PacketCollector and PacketListener instances to filter for packets with particular attributes.
org.jivesoftware.smack.packet - package org.jivesoftware.smack.packet
XML packets that are part of the XMPP protocol.
org.jivesoftware.smack.provider - package org.jivesoftware.smack.provider
Provides pluggable parsing of incoming IQ's and packet extensions.
org.jivesoftware.smack.sasl - package org.jivesoftware.smack.sasl
SASL Mechanisms.
org.jivesoftware.smack.util - package org.jivesoftware.smack.util
Utility classes.
org.jivesoftware.smackx - package org.jivesoftware.smackx
Smack extensions API.
org.jivesoftware.smackx.debugger - package org.jivesoftware.smackx.debugger
Smack optional Debuggers.
org.jivesoftware.smackx.filetransfer - package org.jivesoftware.smackx.filetransfer
 
org.jivesoftware.smackx.muc - package org.jivesoftware.smackx.muc
Classes and Interfaces that implement Multi-User Chat (MUC).
org.jivesoftware.smackx.packet - package org.jivesoftware.smackx.packet
XML packets that are part of the XMPP extension protocols.
org.jivesoftware.smackx.provider - package org.jivesoftware.smackx.provider
Provides pluggable parsing logic for Smack extensions.
org.jivesoftware.smackx.search - package org.jivesoftware.smackx.search
 
OutgoingFileTransfer - Class in org.jivesoftware.smackx.filetransfer
Handles the sending of a file to another user.
OutgoingFileTransfer(String, String, String, FileTransferNegotiator) - +Constructor for class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
  +
OutgoingFileTransfer.NegotiationProgress - Class in org.jivesoftware.smackx.filetransfer
A callback class to retrive the status of an outgoing transfer + negotiation process.
OutgoingFileTransfer.NegotiationProgress() - +Constructor for class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.NegotiationProgress +
  +
ownershipGranted(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
ownershipGranted() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
ownershipGranted(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when an owner grants a user ownership on the room. +
ownershipGranted() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when an owner grants to your user ownership on the room. +
ownershipRevoked(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
ownershipRevoked() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
ownershipRevoked(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when an owner revokes a user ownership on the room. +
ownershipRevoked() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when an owner revokes from your user ownership on the room. +
+
+

+P

+
+
Packet - Class in org.jivesoftware.smack.packet
Base class for XMPP packets.
Packet() - +Constructor for class org.jivesoftware.smack.packet.Packet +
  +
PacketCollector - Class in org.jivesoftware.smack
Provides a mechanism to collect packets into a result queue that pass a + specified filter.
PacketCollector(PacketReader, PacketFilter) - +Constructor for class org.jivesoftware.smack.PacketCollector +
Creates a new packet collector. +
PacketExtension - Interface in org.jivesoftware.smack.packet
Interface to represent packet extensions.
PacketExtensionFilter - Class in org.jivesoftware.smack.filter
Filters for packets with a particular type of packet extension.
PacketExtensionFilter(String, String) - +Constructor for class org.jivesoftware.smack.filter.PacketExtensionFilter +
Creates a new packet extension filter. +
PacketExtensionProvider - Interface in org.jivesoftware.smack.provider
An interface for parsing custom packets extensions.
PacketFilter - Interface in org.jivesoftware.smack.filter
Defines a way to filter packets for particular attributes.
PacketIDFilter - Class in org.jivesoftware.smack.filter
Filters for packets with a particular packet ID.
PacketIDFilter(String) - +Constructor for class org.jivesoftware.smack.filter.PacketIDFilter +
Creates a new packet ID filter using the specified packet ID. +
PacketInterceptor - Interface in org.jivesoftware.smack
Provides a mechanism to intercept and modify packets that are going to be + sent to the server.
PacketListener - Interface in org.jivesoftware.smack
Provides a mechanism to listen for packets that pass a specified filter.
PacketParserUtils - Class in org.jivesoftware.smack.util
Utility class that helps to parse packets.
PacketParserUtils() - +Constructor for class org.jivesoftware.smack.util.PacketParserUtils +
  +
PacketTypeFilter - Class in org.jivesoftware.smack.filter
Filters for packets of a particular type.
PacketTypeFilter(Class) - +Constructor for class org.jivesoftware.smack.filter.PacketTypeFilter +
Creates a new packet type filter that will filter for packets that are the + same type as packetType. +
parseBareAddress(String) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Returns the XMPP address with any resource information removed. +
parseError(XmlPullParser) - +Static method in class org.jivesoftware.smack.util.PacketParserUtils +
Parses error sub-packets. +
parseExtension(XmlPullParser) - +Method in interface org.jivesoftware.smack.provider.PacketExtensionProvider +
Parse an extension sub-packet and create a PacketExtension instance. +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.GroupChatInvitation.Provider +
  +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.packet.OfflineMessageInfo.Provider +
Parses a OfflineMessageInfo packet (extension sub-packet). +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.DataFormProvider +
  +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.DelayInformationProvider +
  +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.IBBProviders.Data +
  +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.MessageEventProvider +
Parses a MessageEvent packet (extension sub-packet). +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.MUCUserProvider +
Parses a MUCUser packet (extension sub-packet). +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.MultipleAddressesProvider +
  +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.RosterExchangeProvider +
Parses a RosterExchange packet (extension sub-packet). +
parseExtension(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.XHTMLExtensionProvider +
Parses a XHTMLExtension packet (extension sub-packet). +
parseIQ(XmlPullParser) - +Method in interface org.jivesoftware.smack.provider.IQProvider +
Parse the IQ sub-document and create an IQ instance. +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.packet.LastActivity.Provider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest.Provider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.packet.SharedGroupsInfo.Provider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.PrivateDataManager.PrivateDataIQProvider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.BytestreamsProvider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.DiscoverInfoProvider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.DiscoverItemsProvider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.IBBProviders.Close +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.IBBProviders.Open +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.MUCAdminProvider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.MUCOwnerProvider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.StreamInitiationProvider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.provider.VCardProvider +
  +
parseIQ(XmlPullParser) - +Method in class org.jivesoftware.smackx.search.UserSearch.Provider +
  +
parseMessage(XmlPullParser) - +Static method in class org.jivesoftware.smack.util.PacketParserUtils +
Parses a message packet. +
parseName(String) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Returns the name portion of a XMPP address. +
parsePacketExtension(String, String, XmlPullParser) - +Static method in class org.jivesoftware.smack.util.PacketParserUtils +
Parses a packet extension sub-packet. +
parsePresence(XmlPullParser) - +Static method in class org.jivesoftware.smack.util.PacketParserUtils +
Parses a presence packet. +
parsePrivateData(XmlPullParser) - +Method in interface org.jivesoftware.smackx.provider.PrivateDataProvider +
Parse the private data sub-document and create a PrivateData instance. +
parseProperties(XmlPullParser) - +Static method in class org.jivesoftware.smack.util.PacketParserUtils +
Parse a properties sub-packet. +
parseResource(String) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Returns the resource portion of a XMPP address. +
parseServer(String) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Returns the server portion of a XMPP address. +
parseWithIntrospection(String, Class, XmlPullParser) - +Static method in class org.jivesoftware.smack.util.PacketParserUtils +
  +
ParticipantStatusListener - Interface in org.jivesoftware.smackx.muc
A listener that is fired anytime a participant's status in a room is changed, such as the + user being kicked, banned, or granted admin permissions.
PERSISTED_DEBUGGER - +Static variable in class org.jivesoftware.smackx.debugger.EnhancedDebuggerWindow +
  +
pollMessage() - +Method in class org.jivesoftware.smack.Chat +
Polls for and returns the next message, or null if there isn't + a message immediately available. +
pollMessage() - +Method in class org.jivesoftware.smack.GroupChat +
Polls for and returns the next message, or null if there isn't + a message immediately available. +
pollMessage() - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Polls for and returns the next message, or null if there isn't + a message immediately available. +
pollResult() - +Method in class org.jivesoftware.smack.PacketCollector +
Polls to see if a packet is currently available and returns it, or + immediately returns null if no packets are currently in the + result queue. +
Presence - Class in org.jivesoftware.smack.packet
Represents XMPP presence packets.
Presence(Presence.Type) - +Constructor for class org.jivesoftware.smack.packet.Presence +
Creates a new presence update. +
Presence(Presence.Type, String, int, Presence.Mode) - +Constructor for class org.jivesoftware.smack.packet.Presence +
Creates a new presence update with a specified status, priority, and mode. +
Presence.Mode - Class in org.jivesoftware.smack.packet
A typsafe enum class to represent the presence mode.
Presence.Type - Class in org.jivesoftware.smack.packet
A typsafe enum class to represent the presecence type.
presenceChanged(String) - +Method in interface org.jivesoftware.smack.RosterListener +
Called when the presence of a roster entry is changed. +
printInterpreted - +Static variable in class org.jivesoftware.smack.debugger.ConsoleDebugger +
  +
printStackTrace() - +Method in exception org.jivesoftware.smack.XMPPException +
  +
printStackTrace(PrintStream) - +Method in exception org.jivesoftware.smack.XMPPException +
  +
printStackTrace(PrintWriter) - +Method in exception org.jivesoftware.smack.XMPPException +
  +
PrivateData - Interface in org.jivesoftware.smackx.packet
Interface to represent private data.
PrivateDataManager - Class in org.jivesoftware.smackx
Manages private data, which is a mechanism to allow users to store arbitrary XML + data on an XMPP server.
PrivateDataManager(XMPPConnection) - +Constructor for class org.jivesoftware.smackx.PrivateDataManager +
Creates a new private data manager. +
PrivateDataManager(XMPPConnection, String) - +Constructor for class org.jivesoftware.smackx.PrivateDataManager +
Creates a new private data manager for a specific user (special case). +
PrivateDataManager.PrivateDataIQProvider - Class in org.jivesoftware.smackx
An IQ provider to parse IQ results containing private data.
PrivateDataManager.PrivateDataIQProvider() - +Constructor for class org.jivesoftware.smackx.PrivateDataManager.PrivateDataIQProvider +
  +
PrivateDataProvider - Interface in org.jivesoftware.smackx.provider
An interface for parsing custom private data.
processPacket(Packet) - +Method in class org.jivesoftware.smack.PacketCollector +
Processes a packet to see if it meets the criteria for this packet collector. +
processPacket(Packet) - +Method in interface org.jivesoftware.smack.PacketListener +
Process the next packet sent to this packet listener. +
ProviderManager - Class in org.jivesoftware.smack.provider
Manages providers for parsing custom XML sub-documents of XMPP packets.
publishItems(String, DiscoverItems) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Publishes new items to a parent entity. +
publishItems(String, String, DiscoverItems) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Publishes new items to a parent entity and node. +
put(Object, Object) - +Method in class org.jivesoftware.smack.util.Cache +
  +
putAll(Map) - +Method in class org.jivesoftware.smack.util.Cache +
  +
+
+

+R

+
+
randomString(int) - +Static method in class org.jivesoftware.smack.util.StringUtils +
Returns a random String of numbers and letters (lower and upper case) + of the specified length. +
read(char[], int, int) - +Method in class org.jivesoftware.smack.util.ObservableReader +
  +
read() - +Method in class org.jivesoftware.smack.util.ObservableReader +
  +
read(char[]) - +Method in class org.jivesoftware.smack.util.ObservableReader +
  +
read(String) - +Method in interface org.jivesoftware.smack.util.ReaderListener +
Notification that the Reader has read a new string. +
ReaderListener - Interface in org.jivesoftware.smack.util
Interface that allows for implementing classes to listen for string reading + events.
ready() - +Method in class org.jivesoftware.smack.util.ObservableReader +
  +
recieveFile() - +Method in class org.jivesoftware.smackx.filetransfer.IncomingFileTransfer +
Negotiates the stream method to transfer the file over and then returns + the negotiated stream. +
recieveFile(File) - +Method in class org.jivesoftware.smackx.filetransfer.IncomingFileTransfer +
This method negotitates the stream and then transfer's the file over the + negotiated stream. +
REFUSED - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Status +
The peer has refused the file transfer request halting the file + transfer negotiation process. +
registerSASLMechanism(int, String, Class) - +Static method in class org.jivesoftware.smack.SASLAuthentication +
Registers a new SASL mechanism in the specified preference position. +
Registration - Class in org.jivesoftware.smack.packet
Represents registration packets.
Registration() - +Constructor for class org.jivesoftware.smack.packet.Registration +
  +
reject() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferRequest +
Rejects the file transfer request. +
rejectIncomingFileTransfer(FileTransferRequest) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferManager +
  +
rejectStream(StreamInitiation) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
Reject a stream initiation request from a remote user. +
reload() - +Method in class org.jivesoftware.smack.Roster +
Reloads the entire roster from the server. +
RemoteRosterEntry - Class in org.jivesoftware.smackx
Represents a roster item, which consists of a JID and , their name and + the groups the roster item belongs to.
RemoteRosterEntry(String, String, String[]) - +Constructor for class org.jivesoftware.smackx.RemoteRosterEntry +
Creates a new remote roster entry. +
REMOVE - +Static variable in class org.jivesoftware.smack.packet.RosterPacket.ItemType +
The user wishes to stop receiving presence updates from the subscriber. +
remove(Object) - +Method in class org.jivesoftware.smack.util.Cache +
  +
remove(Object, boolean) - +Method in class org.jivesoftware.smack.util.Cache +
  +
REMOVE_ACTION - +Static variable in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Request to remove the item. +
removeConnectionListener(ConnectionListener) - +Method in class org.jivesoftware.smack.XMPPConnection +
Removes a connection listener from this connection. +
removeConnectionListener(ConnectionEstablishedListener) - +Static method in class org.jivesoftware.smack.XMPPConnection +
Removes a listener on new established connections. +
removeEntry(RosterEntry) - +Method in class org.jivesoftware.smack.Roster +
Removes a roster entry from the roster. +
removeEntry(RosterEntry) - +Method in class org.jivesoftware.smack.RosterGroup +
Removes a roster entry from this group. +
removeExtension(PacketExtension) - +Method in class org.jivesoftware.smack.packet.Packet +
Removes a packet extension from the packet. +
removeExtensionProvider(String, String) - +Static method in class org.jivesoftware.smack.provider.ProviderManager +
Removes an extension provider with the specified element name and namespace. +
removeFeature(String) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Removes the specified feature from the supported features by this XMPP entity. +
removeFileTransferListener(FileTransferListener) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferManager +
Removes a file transfer listener. +
removeGroupName(String) - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Removes a group name. +
removeInvitationListener(XMPPConnection, InvitationListener) - +Static method in class org.jivesoftware.smackx.muc.MultiUserChat +
Removes a listener to invitation notifications. +
removeInvitationRejectionListener(InvitationRejectionListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Removes a listener from invitation rejections notifications. +
removeIQProvider(String, String) - +Static method in class org.jivesoftware.smack.provider.ProviderManager +
Removes an IQ provider with the specified element name and namespace. +
removeMessageEventNotificationListener(MessageEventNotificationListener) - +Method in class org.jivesoftware.smackx.MessageEventManager +
Removes a message event notification listener. +
removeMessageEventRequestListener(MessageEventRequestListener) - +Method in class org.jivesoftware.smackx.MessageEventManager +
Removes a message event request listener. +
removeMessageListener(PacketListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Removes a packet listener that was being notified of any new messages in the + multi user chat. +
removeNodeInformationProvider(String) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Removes the NodeInformationProvider responsible for providing information + (ie items) related to a given node. +
removePacketListener(PacketListener) - +Method in class org.jivesoftware.smack.XMPPConnection +
Removes a packet listener from this connection. +
removePacketWriterInterceptor(PacketInterceptor) - +Method in class org.jivesoftware.smack.XMPPConnection +
Removes a packet interceptor. +
removePacketWriterListener(PacketListener) - +Method in class org.jivesoftware.smack.XMPPConnection +
Removes a packet listener from this connection. +
removeParticipantListener(PacketListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Remoces a packet listener that was being notified of any new Presence packets + sent to the group chat. +
removeParticipantStatusListener(ParticipantStatusListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Removes a listener that was being notified of changes in occupants status in the room + such as the user being kicked, banned, or granted admin permissions. +
removePresenceInterceptor(PacketInterceptor) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Removes a PacketInterceptor that was being invoked every time a new presence + was being sent by this MultiUserChat to the server. +
removeReaderListener(ReaderListener) - +Method in class org.jivesoftware.smack.util.ObservableReader +
Removes a reader listener from this reader. +
removeRosterListener(RosterListener) - +Method in class org.jivesoftware.smack.Roster +
Removes a listener from this roster. +
removeRosterListener(RosterExchangeListener) - +Method in class org.jivesoftware.smackx.RosterExchangeManager +
Removes a listener from roster exchanges. +
removeSubjectUpdatedListener(SubjectUpdatedListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Removes a listener from subject change notifications. +
removeUserStatusListener(UserStatusListener) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Removes a listener that was being notified of changes in your status in the room + such as the user being kicked, banned, or granted admin permissions. +
removeWriterListener(WriterListener) - +Method in class org.jivesoftware.smack.util.ObservableWriter +
Removes a writer listener from this writer. +
reply(XMPPConnection, Message, Message) - +Static method in class org.jivesoftware.smackx.MultipleRecipientManager +
Sends a reply to a previously received packet that was sent to multiple recipients. +
REPLY_ROOM - +Static variable in class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
REPLY_TO - +Static variable in class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
ReportedData - Class in org.jivesoftware.smackx
Represents a set of data results returned as part of a search.
ReportedData() - +Constructor for class org.jivesoftware.smackx.ReportedData +
  +
ReportedData.Column - Class in org.jivesoftware.smackx
Represents the columns definition of the reported data.
ReportedData.Column(String, String, String) - +Constructor for class org.jivesoftware.smackx.ReportedData.Column +
Creates a new column with the specified definition. +
ReportedData.Field - Class in org.jivesoftware.smackx
 
ReportedData.Field(String, List) - +Constructor for class org.jivesoftware.smackx.ReportedData.Field +
  +
ReportedData.Row - Class in org.jivesoftware.smackx
 
ReportedData.Row(List) - +Constructor for class org.jivesoftware.smackx.ReportedData.Row +
  +
reset() - +Method in class org.jivesoftware.smack.util.ObservableReader +
  +
resetValues() - +Method in class org.jivesoftware.smackx.FormField +
Removes all the values of the field. +
resolveXMPPDomain(String) - +Static method in class org.jivesoftware.smack.util.DNSUtil +
Returns the host name and port that the specified XMPP server can be + reached at for client-to-server communication. +
resolveXMPPServerDomain(String) - +Static method in class org.jivesoftware.smack.util.DNSUtil +
Returns the host name and port that the specified XMPP server can be + reached at for server-to-server communication. +
RESULT - +Static variable in class org.jivesoftware.smack.packet.IQ.Type +
  +
revokeAdmin(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes administrator privileges from users. +
revokeAdmin(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes administrator privileges from a user. +
revokeMembership(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes users' membership. +
revokeMembership(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes a user's membership. +
revokeModerator(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes moderator privileges from other users. +
revokeModerator(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes moderator privileges from another user. +
revokeOwnership(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes ownership privileges from other users. +
revokeOwnership(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes ownership privileges from another user. +
revokeVoice(Collection) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes voice from participants in the room. +
revokeVoice(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Revokes voice from a participant in the room. +
RoomInfo - Class in org.jivesoftware.smackx.muc
Represents the room information that was discovered using Service Discovery.
rootWindowClosing(WindowEvent) - +Method in class org.jivesoftware.smack.debugger.LiteDebugger +
Notification that the root window is closing. +
rootWindowClosing(WindowEvent) - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebuggerWindow +
Notification that the root window is closing. +
Roster - Class in org.jivesoftware.smack
Represents a user's roster, which is the collection of users a person receives + presence updates for.
RosterEntry - Class in org.jivesoftware.smack
Each user in your roster is represented by a roster entry, which contains the user's + JID and a name or nickname you assign.
RosterExchange - Class in org.jivesoftware.smackx.packet
Represents XMPP Roster Item Exchange packets.
RosterExchange() - +Constructor for class org.jivesoftware.smackx.packet.RosterExchange +
Creates a new empty roster exchange package. +
RosterExchange(Roster) - +Constructor for class org.jivesoftware.smackx.packet.RosterExchange +
Creates a new roster exchange package with the entries specified in roster. +
RosterExchangeListener - Interface in org.jivesoftware.smackx
A listener that is fired anytime a roster exchange is received.
RosterExchangeManager - Class in org.jivesoftware.smackx
Manages Roster exchanges.
RosterExchangeManager(XMPPConnection) - +Constructor for class org.jivesoftware.smackx.RosterExchangeManager +
Creates a new roster exchange manager. +
RosterExchangeProvider - Class in org.jivesoftware.smackx.provider
The RosterExchangeProvider parses RosterExchange packets.
RosterExchangeProvider() - +Constructor for class org.jivesoftware.smackx.provider.RosterExchangeProvider +
Creates a new RosterExchangeProvider. +
RosterGroup - Class in org.jivesoftware.smack
A group of roster entries.
RosterListener - Interface in org.jivesoftware.smack
A listener that is fired any time a roster is changed or the presence of + a user in the roster is changed.
RosterPacket - Class in org.jivesoftware.smack.packet
Represents XMPP roster packets.
RosterPacket() - +Constructor for class org.jivesoftware.smack.packet.RosterPacket +
  +
RosterPacket.Item - Class in org.jivesoftware.smack.packet
A roster item, which consists of a JID, their name, the type of subscription, and + the groups the roster item belongs to.
RosterPacket.Item(String, String) - +Constructor for class org.jivesoftware.smack.packet.RosterPacket.Item +
Creates a new roster item. +
RosterPacket.ItemStatus - Class in org.jivesoftware.smack.packet
The subscription status of a roster item.
RosterPacket.ItemType - Class in org.jivesoftware.smack.packet
The subscription type of a roster item.
RosterPacket.ItemType(String) - +Constructor for class org.jivesoftware.smack.packet.RosterPacket.ItemType +
Returns the item type associated with the specified string. +
+
+

+S

+
+
SASLAnonymous - Class in org.jivesoftware.smack.sasl
Implementation of the SASL ANONYMOUS mechanisn as defined by the + IETF draft + document.
SASLAnonymous(SASLAuthentication) - +Constructor for class org.jivesoftware.smack.sasl.SASLAnonymous +
  +
SASLAuthentication - Class in org.jivesoftware.smack
This class is responsible authenticating the user using SASL, binding the resource + to the connection and establishing a session with the server.
SASLMechanism - Class in org.jivesoftware.smack.sasl
Base class for SASL mechanisms.
SASLMechanism(SASLAuthentication) - +Constructor for class org.jivesoftware.smack.sasl.SASLMechanism +
  +
SASLPlainMechanism - Class in org.jivesoftware.smack.sasl
Implementation of the SASL PLAIN mechanisn as defined by the + IETF draft + document.
SASLPlainMechanism(SASLAuthentication) - +Constructor for class org.jivesoftware.smack.sasl.SASLPlainMechanism +
  +
save(XMPPConnection) - +Method in class org.jivesoftware.smackx.packet.VCard +
Save this vCard for the user connected by 'connection'. +
selectStreamNegotiator(FileTransferRequest) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
Selects an appropriate stream negotiator after examining the incoming file transfer request. +
send(String) - +Method in class org.jivesoftware.smack.SASLAuthentication +
  +
send(XMPPConnection, Packet, List, List, List) - +Static method in class org.jivesoftware.smackx.MultipleRecipientManager +
Sends the specified packet to the list of specified recipients using the + specified connection. +
send(XMPPConnection, Packet, List, List, List, String, String, boolean) - +Static method in class org.jivesoftware.smackx.MultipleRecipientManager +
Sends the specified packet to the list of specified recipients using the + specified connection. +
send(Roster, String) - +Method in class org.jivesoftware.smackx.RosterExchangeManager +
Sends a roster to userID. +
send(RosterEntry, String) - +Method in class org.jivesoftware.smackx.RosterExchangeManager +
Sends a roster entry to userID. +
send(RosterGroup, String) - +Method in class org.jivesoftware.smackx.RosterExchangeManager +
Sends a roster group to userID. +
sendCancelledNotification(String, String) - +Method in class org.jivesoftware.smackx.MessageEventManager +
Sends the notification that the receiver of the message has cancelled composing a reply. +
sendComposingNotification(String, String) - +Method in class org.jivesoftware.smackx.MessageEventManager +
Sends the notification that the receiver of the message is composing a reply +
sendConfigurationForm(Form) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Sends the completed configuration form to the server. +
sendDeliveredNotification(String, String) - +Method in class org.jivesoftware.smackx.MessageEventManager +
Sends the notification that the message was delivered to the sender of the original message +
sendDisplayedNotification(String, String) - +Method in class org.jivesoftware.smackx.MessageEventManager +
Sends the notification that the message was displayed to the sender of the original message +
sendFile(String, long, String) - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
This method handles the negotiation of the file transfer and the stream, + it only returns the created stream after the negotiation has been completed. +
sendFile(String, long, String, OutgoingFileTransfer.NegotiationProgress) - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
This methods handles the transfer and stream negotiation process. +
sendFile(File, String) - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
This method handles the stream negotiation process and transmits the file + to the remote user. +
sendMessage(String) - +Method in class org.jivesoftware.smack.Chat +
Sends the specified text as a message to the other chat participant. +
sendMessage(Message) - +Method in class org.jivesoftware.smack.Chat +
Sends a message to the other chat participant. +
sendMessage(String) - +Method in class org.jivesoftware.smack.GroupChat +
Sends a message to the chat room. +
sendMessage(Message) - +Method in class org.jivesoftware.smack.GroupChat +
Sends a Message to the chat room. +
sendMessage(String) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Sends a message to the chat room. +
sendMessage(Message) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Sends a Message to the chat room. +
sendPacket(Packet) - +Method in class org.jivesoftware.smack.XMPPConnection +
Sends the specified packet to the server. +
sendRegistrationForm(Form) - +Method in class org.jivesoftware.smackx.muc.MultiUserChat +
Sends the completed registration form to the server. +
sendSearchForm(XMPPConnection, Form, String) - +Method in class org.jivesoftware.smackx.search.UserSearch +
Sends the filled out answer form to be sent and queried by the search service. +
sendSimpleSearchForm(XMPPConnection, Form, String) - +Method in class org.jivesoftware.smackx.search.UserSearch +
Sends the filled out answer form to be sent and queried by the search service. +
ServiceDiscoveryManager - Class in org.jivesoftware.smackx
Manages discovery of services in XMPP entities.
ServiceDiscoveryManager(XMPPConnection) - +Constructor for class org.jivesoftware.smackx.ServiceDiscoveryManager +
Creates a new ServiceDiscoveryManager for a given XMPPConnection. +
Session - Class in org.jivesoftware.smack.packet
IQ packet that will be sent to the server to establish a session.
Session() - +Constructor for class org.jivesoftware.smack.packet.Session +
  +
SET - +Static variable in class org.jivesoftware.smack.packet.IQ.Type +
  +
setAction(String) - +Method in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Sets the action that specifies the action being taken for this item. +
setAction(String) - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest.Item +
Sets if the server should return the specified offline message or delete it. +
setActor(String) - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Sets the actor (JID of an occupant in the room) that was kicked or banned. +
setActor(String) - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Sets the actor (JID of an occupant in the room) that was kicked or banned. +
setActor(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Sets the actor (JID of an occupant in the room) that was kicked or banned. +
setAddressFieldHome(String, String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Set home address field +
setAddressFieldWork(String, String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Set work address field +
setAnswer(String, String) - +Method in class org.jivesoftware.smackx.Form +
Sets a new String value to a given form's field. +
setAnswer(String, int) - +Method in class org.jivesoftware.smackx.Form +
Sets a new int value to a given form's field. +
setAnswer(String, long) - +Method in class org.jivesoftware.smackx.Form +
Sets a new long value to a given form's field. +
setAnswer(String, float) - +Method in class org.jivesoftware.smackx.Form +
Sets a new float value to a given form's field. +
setAnswer(String, double) - +Method in class org.jivesoftware.smackx.Form +
Sets a new double value to a given form's field. +
setAnswer(String, boolean) - +Method in class org.jivesoftware.smackx.Form +
Sets a new boolean value to a given form's field. +
setAnswer(String, List) - +Method in class org.jivesoftware.smackx.Form +
Sets a new values to a given form's field. +
setAttributes(Map) - +Method in class org.jivesoftware.smack.packet.Registration +
Sets the account attributes. +
setAvatar(URL) - +Method in class org.jivesoftware.smackx.packet.VCard +
Set the avatar for the VCard by specifying the url to the image. +
setAvatar(byte[]) - +Method in class org.jivesoftware.smackx.packet.VCard +
Specify the bytes for the avatar to use. +
setBody(String) - +Method in class org.jivesoftware.smack.packet.Message +
Sets the body of the message. +
setCancelled(boolean) - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a notification sets if the receiver of the message cancelled + composing a reply. +
setComposing(boolean) - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a request sets if the sender of the message requests to be notified + when the receiver is composing a reply. +
setCompressionEnabled(boolean) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets if the connection is going to use stream compression. +
setData(String) - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Data +
Sets the data contained in this packet. +
setDate(Date) - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
Sets the date that the file was last modified. +
setDebuggerEnabled(boolean) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets if the new connection about to be establish is going to be debugged. +
setDecline(MUCUser.Decline) - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Sets the rejection to an invitation from another user to a room. +
setDefaultAnswer(String) - +Method in class org.jivesoftware.smackx.Form +
Sets the default value as the value of a given form's field. +
setDefaultSubscriptionMode(int) - +Static method in class org.jivesoftware.smack.Roster +
Sets the default subscription processing mode to use when a new Roster is created. +
setDelivered(boolean) - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a request sets if the sender of the message requests to be notified + when the message is delivered. +
setDesc(String) - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
Sets the description of the file. +
setDescription(String) - +Method in class org.jivesoftware.smackx.FormField +
Sets a description that provides extra clarification about the question. +
setDestroy(MUCOwner.Destroy) - +Method in class org.jivesoftware.smackx.packet.MUCOwner +
Sets a request to the server to destroy a room. +
setDestroy(MUCUser.Destroy) - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Sets the notification that the room has been destroyed. +
setDigest(String, String) - +Method in class org.jivesoftware.smack.packet.Authentication +
Sets the digest value using a connection ID and password. +
setDigest(String) - +Method in class org.jivesoftware.smack.packet.Authentication +
Sets the digest value directly. +
setDisplay(String) - +Method in class org.jivesoftware.smackx.packet.Time +
Sets the local time in human-friendly format. +
setDisplayed(boolean) - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a request sets if the sender of the message requests to be notified + when the message is displayed. +
setEmailHome(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
setEmailWork(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
setEncodedImage(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Set the encoded avatar string. +
setError(XMPPError) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets the error for this packet. +
setError(FileTransfer.Error) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
setException(Exception) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
setExpiredCertificatesCheckEnabled(boolean) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets if certificates presented by the server are going to be checked for their + validity. +
setFeatureNegotiationForm(DataForm) - +Method in class org.jivesoftware.smackx.packet.StreamInitiation +
Sets the data form which contains the valid methods of stream neotiation + and transfer. +
setFetch(boolean) - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest +
Sets if all the offline messages of the user should be retrieved. +
setField(String, String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Set generic VCard field. +
setFile(StreamInitiation.File) - +Method in class org.jivesoftware.smackx.packet.StreamInitiation +
Sets the file which contains the information pertaining to the file to be + transfered. +
setFileInfo(String, long) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
setFileInfo(String, String, long) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
setFirstName(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
setFrom(String) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets who the packet is being sent "from". +
setFrom(String) - +Method in class org.jivesoftware.smackx.packet.DelayInformation +
Sets the JID of the entity that originally sent the packet or that delayed the + delivery of the packet or null if this information is not available. +
setFrom(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Decline +
Sets the bare JID of the invitee that rejected the invitation. +
setFrom(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Invite +
Sets the bare JID of the inviter or, optionally, the room JID. +
setHash(String) - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
Sets the MD5 sum of the file's contents +
setHistory(MUCInitialPresence.History) - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence +
Sets the History that manages the amount of discussion history provided on + entering a room. +
setIdentityName(String) - +Static method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Sets the name of the client that will be returned when asked for the client identity + in a disco request. +
setIdentityType(String) - +Static method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Sets the type of client that will be returned when asked for the client identity in a + disco request. +
setInstructions(String) - +Method in class org.jivesoftware.smack.packet.Registration +
Sets the registration instructions. +
setInstructions(String) - +Method in class org.jivesoftware.smackx.Form +
Sets instructions that explain how to fill out the form and what the form is about. +
setInstructions(List) - +Method in class org.jivesoftware.smackx.packet.DataForm +
Sets the list of instructions that explain how to fill out the form and what the form is + about. +
setInvite(MUCUser.Invite) - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Sets the invitation for another user to a room. +
setItem(MUCUser.Item) - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Sets the item child that holds information about roles, affiliation, jids and nicks. +
setItemStatus(RosterPacket.ItemStatus) - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Sets the roster item status. +
setItemType(RosterPacket.ItemType) - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Sets the roster item type. +
setJabberId(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
setJid(String) - +Method in class org.jivesoftware.smack.packet.Bind +
  +
setJid(String) - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Sets the by which an occupant is identified within the context + of a room. +
setJid(String) - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Destroy +
Sets the JID of an alternate location since the current room is being destroyed. +
setJid(String) - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Sets the by which an occupant is identified within the context + of a room. +
setJid(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Destroy +
Sets the JID of an alternate location since the current room is being destroyed. +
setJid(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Sets the by which an occupant is identified within the context + of a room. +
setJid(String) - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest.Item +
  +
setKeepAliveInterval(int) - +Static method in class org.jivesoftware.smack.SmackConfiguration +
Sets the number of milleseconds delay between sending keep-alive + requests to the server. +
setLabel(String) - +Method in class org.jivesoftware.smackx.FormField +
Sets the label of the question which should give enough information to the user to + fill out the form. +
setLastName(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
setMaxCacheSize(int) - +Method in class org.jivesoftware.smack.util.Cache +
  +
setMaxChars(int) - +Method in class org.jivesoftware.smackx.muc.DiscussionHistory +
Sets the total number of characters to receive in the history. +
setMaxChars(int) - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
Sets the total number of characters to receive in the history. +
setMaxLifetime(long) - +Method in class org.jivesoftware.smack.util.Cache +
  +
setMaxStanzas(int) - +Method in class org.jivesoftware.smackx.muc.DiscussionHistory +
Sets the total number of messages to receive in the history. +
setMaxStanzas(int) - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
Sets the total number of messages to receive in the history. +
setMiddleName(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
setMimeType(String) - +Method in class org.jivesoftware.smackx.packet.StreamInitiation +
The "mime-type" attribute identifies the MIME-type for the data across + the stream. +
setMode(Presence.Mode) - +Method in class org.jivesoftware.smack.packet.Presence +
Sets the mode of the presence update. +
setMode(Bytestream.Mode) - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Set the transport mode. +
setName(String) - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
Sets the user's name. +
setName(String) - +Method in class org.jivesoftware.smack.RosterEntry +
Sets the name associated with this entry. +
setName(String) - +Method in class org.jivesoftware.smack.RosterGroup +
Sets the name of the group. +
setName(String) - +Method in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Sets the entity's name. +
setName(String) - +Method in class org.jivesoftware.smackx.packet.Version +
Sets the natural-language name of the software. +
setNick(String) - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Sets the new nickname of an occupant that is changing his/her nickname. +
setNick(String) - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Sets the new nickname of an occupant that is changing his/her nickname. +
setNick(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Sets the new nickname of an occupant that is changing his/her nickname. +
setNickName(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
setNode(String) - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo +
Sets the node attribute that supplements the 'jid' attribute. +
setNode(String) - +Method in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Sets the node attribute that supplements the 'jid' attribute. +
setNode(String) - +Method in class org.jivesoftware.smackx.packet.DiscoverItems +
Sets the node attribute that supplements the 'jid' attribute. +
setNode(String) - +Method in class org.jivesoftware.smackx.packet.OfflineMessageInfo +
Sets the stamp that uniquely identifies the offline message. +
setNodeInformationProvider(String, NodeInformationProvider) - +Method in class org.jivesoftware.smackx.ServiceDiscoveryManager +
Sets the NodeInformationProvider responsible for providing information + (ie items) related to a given node. +
setNoReply() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses +
Indicate that the packet being sent should not be replied. +
setNotMatchingDomainCheckEnabled(boolean) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets if certificates presented by the server are going to be checked for their + domain. +
setOffline(boolean) - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
When the message is a request sets if the sender of the message requests to be notified + when the receiver of the message is offline. +
setOrganization(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
setOrganizationUnit(String) - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
setOs(String) - +Method in class org.jivesoftware.smackx.packet.Version +
Sets the operating system of the queried entity. +
setOutputStream(OutputStream) - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
  +
setPacketID(String) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets the unique ID of the packet. +
setPacketID(String) - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
Sets the unique ID of the message that requested to be notified of the event. +
setPacketReplyTimeout(int) - +Static method in class org.jivesoftware.smack.SmackConfiguration +
Sets the number of milliseconds to wait for a response from + the server. +
setPassword(String) - +Method in class org.jivesoftware.smack.packet.Authentication +
Sets the plain text password. +
setPassword(String) - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence +
Sets the password to use when the room requires a password. +
setPassword(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Sets the password to use to enter Password-Protected Room. +
setPhoneHome(String, String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Set home phone number +
setPhoneWork(String, String) - +Method in class org.jivesoftware.smackx.packet.VCard +
Set work phone number +
setPort(int) - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
Sets the port of the stream host. +
setPriority(int) - +Method in class org.jivesoftware.smack.packet.Presence +
Sets the priority of the presence. +
setPrivateData(PrivateData) - +Method in class org.jivesoftware.smackx.PrivateDataManager +
Sets a private data value. +
setProperty(String, int) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets a packet property with an int value. +
setProperty(String, long) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets a packet property with a long value. +
setProperty(String, float) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets a packet property with a float value. +
setProperty(String, double) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets a packet property with a double value. +
setProperty(String, boolean) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets a packet property with a bboolean value. +
setProperty(String, Object) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets a property with an Object as the value. +
setPurge(boolean) - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest +
Sets if all the offline messages of the user should be deleted. +
setRanged(boolean) - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
True if a range can be provided and false if it cannot. +
setReason(String) - +Method in class org.jivesoftware.smackx.packet.DelayInformation +
Sets a natural-language description of the reason for the delay or null if + this information is not available. +
setReason(String) - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
Sets the reason for the item child. +
setReason(String) - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Destroy +
Sets the reason for the room destruction. +
setReason(String) - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Sets the reason for the item child. +
setReason(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Decline +
Sets the message explaining why the invitation was rejected. +
setReason(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Destroy +
Sets the reason for the room destruction. +
setReason(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Invite +
Sets the message explaining the invitation. +
setReason(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
Sets the reason for the item child. +
setReportedData(DataForm.ReportedData) - +Method in class org.jivesoftware.smackx.packet.DataForm +
Sets the fields that will be returned from a search. +
setRequired(boolean) - +Method in class org.jivesoftware.smackx.FormField +
Sets if the question must be answered in order to complete the questionnaire. +
setResource(String) - +Method in class org.jivesoftware.smack.packet.Authentication +
Sets the resource. +
setResource(String) - +Method in class org.jivesoftware.smack.packet.Bind +
  +
setResponseTimeout(int) - +Method in class org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer +
Sets the time in milliseconds after which the file transfer negotiation + process will timeout if the other user has not responded. +
setRole(String) - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
Sets the temporary position or privilege level of an occupant within a room. +
setSASLAuthenticationEnabled(boolean) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets if the client is going to use SASL authentication when logging into the + server. +
setSeconds(int) - +Method in class org.jivesoftware.smackx.muc.DiscussionHistory +
Sets the number of seconds to use to filter the messages received during that time. +
setSeconds(int) - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
Sets the number of seconds to use to filter the messages received during that time. +
setSelfSignedCertificateEnabled(boolean) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets if self-signed certificates are going to be accepted. +
setSeq(long) - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Data +
Sets the sequence of this packet. +
setServiceEnabled(XMPPConnection, boolean) - +Static method in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
Enable the Jabber services related to file transfer on the particular + connection. +
setServiceEnabled(XMPPConnection, boolean) - +Static method in class org.jivesoftware.smackx.XHTMLManager +
Enables or disables the XHTML support on a given connection. +
setSessionID(String) - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Set the session ID related to the Byte Stream. +
setSesssionID(String) - +Method in class org.jivesoftware.smackx.packet.StreamInitiation +
The "id" attribute is an opaque identifier. +
setSince(Date) - +Method in class org.jivesoftware.smackx.muc.DiscussionHistory +
Sets the since date to use to filter the messages received during that time. +
setSince(Date) - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
Sets the since date to use to filter the messages received during that time. +
setStatus(String) - +Method in class org.jivesoftware.smack.packet.Presence +
Sets the status message of the presence update. +
setStatus(FileTransfer.Status) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
setStatus(MUCUser.Status) - +Method in class org.jivesoftware.smackx.packet.MUCUser +
Sets the status which holds a code that assists in presenting notification messages. +
setSubject(String) - +Method in class org.jivesoftware.smack.packet.Message +
Sets the subject of the message. +
setSubscriptionMode(int) - +Method in class org.jivesoftware.smack.Roster +
Sets the subscription processing mode, which dictates what action + Smack will take when subscription requests from other users are made. +
setThread(String) - +Method in class org.jivesoftware.smack.packet.Message +
Sets the thread id of the message, which is a unique identifier for a sequence + of "chat" messages. +
setTime(Date) - +Method in class org.jivesoftware.smackx.packet.Time +
Sets the time using the local time. +
setTitle(String) - +Method in class org.jivesoftware.smackx.Form +
Sets the description of the data. +
setTitle(String) - +Method in class org.jivesoftware.smackx.packet.DataForm +
Sets the description of the data. +
setTLSEnabled(boolean) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets if the client is going to try to secure the connection using TLS after + the connection has been established. +
setTo(String) - +Method in class org.jivesoftware.smack.packet.Packet +
Sets who the packet is being sent "to". +
setTo(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Decline +
Sets the bare JID of the inviter. +
setTo(String) - +Method in class org.jivesoftware.smackx.packet.MUCUser.Invite +
Sets the bare JID of the invitee. +
setToActivate(String) - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Upon the response from the target of the used host the activate packet is + sent to the Socks5 proxy. +
setTruststorePassword(String) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets the password to use to access the truststore file. +
setTruststorePath(String) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets the path to the truststore file. +
setTruststoreType(String) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
  +
setType(IQ.Type) - +Method in class org.jivesoftware.smack.packet.IQ +
Sets the type of the IQ packet. +
setType(Message.Type) - +Method in class org.jivesoftware.smack.packet.Message +
Sets the type of the message. +
setType(Presence.Type) - +Method in class org.jivesoftware.smack.packet.Presence +
Sets the type of the presence packet. +
setType(String) - +Method in class org.jivesoftware.smackx.FormField +
Sets an indicative of the format for the data to answer. +
setType(String) - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo.Identity +
Sets the entity's type. +
setTz(String) - +Method in class org.jivesoftware.smackx.packet.Time +
Sets the time zone. +
setUsedHost(String) - +Method in class org.jivesoftware.smackx.packet.Bytestream +
Upon connecting to the stream host the target of the stream replys to the + initiator with the jabber id of the Socks5 host that they used. +
setUsername(String) - +Method in class org.jivesoftware.smack.packet.Authentication +
Sets the username. +
setUtc(String) - +Method in class org.jivesoftware.smackx.packet.Time +
Sets the time using UTC formatted String in the format CCYYMMDDThh:mm:ss. +
setValue(String, String) - +Method in class org.jivesoftware.smack.packet.DefaultPacketExtension +
Sets a packet extension value using the given name. +
setValue(String, String) - +Method in class org.jivesoftware.smackx.packet.DefaultPrivateData +
Sets a value given the name. +
setVerifyChainEnabled(boolean) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets if the whole chain of certificates presented by the server are going to + be checked. +
setVerifyRootCAEnabled(boolean) - +Method in class org.jivesoftware.smack.ConnectionConfiguration +
Sets if root CA checking is going to be done. +
setVersion(String) - +Method in class org.jivesoftware.smackx.packet.Version +
Sets the specific version of the software. +
setVisible(boolean) - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebuggerWindow +
  +
SharedGroupManager - Class in org.jivesoftware.smackx
A SharedGroupManager provides services for discovering the shared groups where a user belongs.
SharedGroupManager() - +Constructor for class org.jivesoftware.smackx.SharedGroupManager +
  +
SharedGroupsInfo - Class in org.jivesoftware.smackx.packet
IQ packet used for discovering the user's shared groups and for getting the answer back + from the server.
SharedGroupsInfo() - +Constructor for class org.jivesoftware.smackx.packet.SharedGroupsInfo +
  +
SharedGroupsInfo.Provider - Class in org.jivesoftware.smackx.packet
Internal Search service Provider.
SharedGroupsInfo.Provider() - +Constructor for class org.jivesoftware.smackx.packet.SharedGroupsInfo.Provider +
Provider Constructor. +
shouldNotReply() - +Method in class org.jivesoftware.smackx.MultipleRecipientInfo +
Returns true if the received packet should not be replied. +
size() - +Method in class org.jivesoftware.smack.util.Cache +
  +
skip(long) - +Method in class org.jivesoftware.smack.util.ObservableReader +
  +
SmackConfiguration - Class in org.jivesoftware.smack
Represents the configuration of Smack.
SmackDebugger - Interface in org.jivesoftware.smack.debugger
Interface that allows for implementing classes to debug XML traffic.
Socks5TransferNegotiator - Class in org.jivesoftware.smackx.filetransfer
A SOCKS5 bytestream is negotiated partly over the XMPP XML stream and partly + over a seperate socket.
Socks5TransferNegotiator(XMPPConnection) - +Constructor for class org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator +
  +
SSLXMPPConnection - Class in org.jivesoftware.smack
Creates an SSL connection to a XMPP server using the legacy dedicated SSL port + mechanism.
SSLXMPPConnection(String) - +Constructor for class org.jivesoftware.smack.SSLXMPPConnection +
Creates a new SSL connection to the specified host on the default + SSL port (5223). +
SSLXMPPConnection(String, int) - +Constructor for class org.jivesoftware.smack.SSLXMPPConnection +
Creates a new SSL connection to the specified host on the specified port. +
SSLXMPPConnection(String, int, String) - +Constructor for class org.jivesoftware.smack.SSLXMPPConnection +
Creates a new SSL connection to the specified XMPP server on the given host and port. +
STREAM - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransfer.Error +
An error occured while sending or recieving the file +
STREAM_DATA_FIELD_NAME - +Static variable in class org.jivesoftware.smackx.filetransfer.FileTransferNegotiator +
  +
StreamError - Class in org.jivesoftware.smack.packet
Represents a stream error packet.
StreamError(String) - +Constructor for class org.jivesoftware.smack.packet.StreamError +
  +
streamID - +Variable in class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
StreamInitiation - Class in org.jivesoftware.smackx.packet
The process by which two entities initiate a stream.
StreamInitiation() - +Constructor for class org.jivesoftware.smackx.packet.StreamInitiation +
  +
StreamInitiation.Feature - Class in org.jivesoftware.smackx.packet
The feature negotiation portion of the StreamInitiation packet.
StreamInitiation.Feature(DataForm) - +Constructor for class org.jivesoftware.smackx.packet.StreamInitiation.Feature +
The dataform can be provided as part of the constructor. +
StreamInitiation.File - Class in org.jivesoftware.smackx.packet
+ size: The size, in bytes, of the data to be sent. + name: The name of the file that the Sender wishes to send. + date: The last modification time of the file.
StreamInitiation.File(String, long) - +Constructor for class org.jivesoftware.smackx.packet.StreamInitiation.File +
Constructor providing the name of the file and its size. +
StreamInitiationProvider - Class in org.jivesoftware.smackx.provider
The StreamInitiationProvider parses StreamInitiation packets.
StreamInitiationProvider() - +Constructor for class org.jivesoftware.smackx.provider.StreamInitiationProvider +
  +
StreamNegotiator - Class in org.jivesoftware.smackx.filetransfer
After the file transfer negotiation process is completed according to + JEP-0096, the negotation process is passed off to a particular stream + negotiator.
StreamNegotiator() - +Constructor for class org.jivesoftware.smackx.filetransfer.StreamNegotiator +
  +
StringUtils - Class in org.jivesoftware.smack.util
A collection of utility methods for String objects.
subjectUpdated(String, String) - +Method in interface org.jivesoftware.smackx.muc.SubjectUpdatedListener +
Called when a MUC room has changed its subject. +
SubjectUpdatedListener - Interface in org.jivesoftware.smackx.muc
A listener that is fired anytime a MUC room changes its subject.
SUBSCRIBE - +Static variable in class org.jivesoftware.smack.packet.Presence.Type +
  +
SUBSCRIBED - +Static variable in class org.jivesoftware.smack.packet.Presence.Type +
  +
SUBSCRIPTION_ACCEPT_ALL - +Static variable in class org.jivesoftware.smack.Roster +
Automatically accept all subscription and unsubscription requests. +
SUBSCRIPTION_MANUAL - +Static variable in class org.jivesoftware.smack.Roster +
Subscription requests are ignored, which means they must be manually + processed by registering a listener for presence packets and then looking + for any presence requests that have the type Presence.Type.SUBSCRIBE or + Presence.Type.UNSUBSCRIBE. +
SUBSCRIPTION_PENDING - +Static variable in class org.jivesoftware.smack.packet.RosterPacket.ItemStatus +
Request to subcribe. +
SUBSCRIPTION_REJECT_ALL - +Static variable in class org.jivesoftware.smack.Roster +
Automatically reject all subscription requests. +
supportsAccountCreation() - +Method in class org.jivesoftware.smack.AccountManager +
Returns true if the server supports creating new accounts. +
supportsFlexibleRetrieval() - +Method in class org.jivesoftware.smackx.OfflineMessageManager +
Returns true if the server supports Flexible Offline Message Retrieval. +
+
+

+T

+
+
TCP - +Static variable in class org.jivesoftware.smackx.packet.Bytestream.Mode +
A TCP based stream. +
ThreadFilter - Class in org.jivesoftware.smack.filter
Filters for message packets with a particular thread value.
ThreadFilter(String) - +Constructor for class org.jivesoftware.smack.filter.ThreadFilter +
Creates a new thread filter using the specified thread value. +
Time - Class in org.jivesoftware.smackx.packet
A Time IQ packet, which is used by XMPP clients to exchange their respective local + times.
Time() - +Constructor for class org.jivesoftware.smackx.packet.Time +
Creates a new Time instance with empty values for all fields. +
Time(Calendar) - +Constructor for class org.jivesoftware.smackx.packet.Time +
Creates a new Time instance using the specified calendar instance as + the time value to send. +
TO - +Static variable in class org.jivesoftware.smack.packet.RosterPacket.ItemType +
The user is interested in receiving presence updates from the subscriber. +
TO - +Static variable in class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
ToContainsFilter - Class in org.jivesoftware.smack.filter
Filters for packets where the "to" field contains a specified value.
ToContainsFilter(String) - +Constructor for class org.jivesoftware.smack.filter.ToContainsFilter +
Creates a "to" contains filter using the "to" field part. +
toString() - +Method in class org.jivesoftware.smack.filter.AndFilter +
  +
toString() - +Method in class org.jivesoftware.smack.filter.OrFilter +
  +
toString() - +Method in class org.jivesoftware.smack.packet.IQ.Type +
  +
toString() - +Method in class org.jivesoftware.smack.packet.Message.Type +
  +
toString() - +Method in class org.jivesoftware.smack.packet.Presence.Mode +
  +
toString() - +Method in class org.jivesoftware.smack.packet.Presence +
  +
toString() - +Method in class org.jivesoftware.smack.packet.Presence.Type +
  +
toString() - +Method in class org.jivesoftware.smack.packet.RosterPacket.ItemStatus +
  +
toString() - +Method in class org.jivesoftware.smack.packet.RosterPacket.ItemType +
  +
toString() - +Method in class org.jivesoftware.smack.packet.StreamError +
  +
toString() - +Method in class org.jivesoftware.smack.packet.XMPPError +
  +
toString() - +Method in class org.jivesoftware.smack.RosterEntry +
  +
toString() - +Method in class org.jivesoftware.smack.util.DNSUtil.HostAddress +
  +
toString() - +Method in exception org.jivesoftware.smack.XMPPException +
  +
toString() - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer.Error +
  +
toString() - +Method in class org.jivesoftware.smackx.FormField.Option +
  +
toString() - +Method in class org.jivesoftware.smackx.packet.Bytestream.Mode +
  +
toString() - +Method in class org.jivesoftware.smackx.packet.VCard +
  +
toString() - +Method in class org.jivesoftware.smackx.XHTMLText +
Returns the text of the XHTMLText. +
toXML() - +Method in class org.jivesoftware.smack.packet.DefaultPacketExtension +
  +
toXML() - +Method in class org.jivesoftware.smack.packet.IQ +
  +
toXML() - +Method in class org.jivesoftware.smack.packet.Message +
  +
toXML() - +Method in class org.jivesoftware.smack.packet.Packet +
Returns the packet as XML. +
toXML() - +Method in interface org.jivesoftware.smack.packet.PacketExtension +
Returns the XML reppresentation of the PacketExtension. +
toXML() - +Method in class org.jivesoftware.smack.packet.Presence +
  +
toXML() - +Method in class org.jivesoftware.smack.packet.RosterPacket.Item +
  +
toXML() - +Method in class org.jivesoftware.smack.packet.XMPPError +
Returns the error as XML. +
toXML() - +Method in class org.jivesoftware.smackx.FormField.Option +
  +
toXML() - +Method in class org.jivesoftware.smackx.FormField +
  +
toXML() - +Method in class org.jivesoftware.smackx.GroupChatInvitation +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.Bytestream.Activate +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHost +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.Bytestream.StreamHostUsed +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.DataForm.Item +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.DataForm.ReportedData +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.DataForm +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.DefaultPrivateData +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.DelayInformation +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo.Feature +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.DiscoverInfo.Identity +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.IBBExtensions.Data +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MessageEvent +
Returns the XML representation of a Message Event according the specification. +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCAdmin.Item +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence.History +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCInitialPresence +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Destroy +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCOwner.Item +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Decline +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Destroy +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Invite +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Item +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCUser.Status +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MUCUser +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.MultipleAddresses +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageInfo +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.OfflineMessageRequest.Item +
  +
toXML() - +Method in interface org.jivesoftware.smackx.packet.PrivateData +
Returns the XML reppresentation of the PrivateData. +
toXML() - +Method in class org.jivesoftware.smackx.packet.RosterExchange +
Returns the XML representation of a Roster Item Exchange according the specification. +
toXML() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.Feature +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.StreamInitiation.File +
  +
toXML() - +Method in class org.jivesoftware.smackx.packet.XHTMLExtension +
Returns the XML representation of a XHTML extension according the specification. +
toXML() - +Method in class org.jivesoftware.smackx.RemoteRosterEntry +
  +
TYPE_BOOLEAN - +Static variable in class org.jivesoftware.smackx.FormField +
  +
TYPE_CANCEL - +Static variable in class org.jivesoftware.smackx.Form +
  +
TYPE_FIXED - +Static variable in class org.jivesoftware.smackx.FormField +
  +
TYPE_FORM - +Static variable in class org.jivesoftware.smackx.Form +
  +
TYPE_HIDDEN - +Static variable in class org.jivesoftware.smackx.FormField +
  +
TYPE_JID_MULTI - +Static variable in class org.jivesoftware.smackx.FormField +
  +
TYPE_JID_SINGLE - +Static variable in class org.jivesoftware.smackx.FormField +
  +
TYPE_LIST_MULTI - +Static variable in class org.jivesoftware.smackx.FormField +
  +
TYPE_LIST_SINGLE - +Static variable in class org.jivesoftware.smackx.FormField +
  +
TYPE_RESULT - +Static variable in class org.jivesoftware.smackx.Form +
  +
TYPE_SUBMIT - +Static variable in class org.jivesoftware.smackx.Form +
  +
TYPE_TEXT_MULTI - +Static variable in class org.jivesoftware.smackx.FormField +
  +
TYPE_TEXT_PRIVATE - +Static variable in class org.jivesoftware.smackx.FormField +
  +
TYPE_TEXT_SINGLE - +Static variable in class org.jivesoftware.smackx.FormField +
  +
+
+

+U

+
+
UDP - +Static variable in class org.jivesoftware.smackx.packet.Bytestream.Mode +
A UDP based stream. +
UNAVAILABLE - +Static variable in class org.jivesoftware.smack.packet.Presence.Type +
  +
unregisterSASLMechanism(String) - +Static method in class org.jivesoftware.smack.SASLAuthentication +
Unregisters an existing SASL mechanism. +
UNSUBCRIPTION_PENDING - +Static variable in class org.jivesoftware.smack.packet.RosterPacket.ItemStatus +
Request to unsubscribe. +
UNSUBSCRIBE - +Static variable in class org.jivesoftware.smack.packet.Presence.Type +
  +
UNSUBSCRIBED - +Static variable in class org.jivesoftware.smack.packet.Presence.Type +
  +
UPDATE_ACTION - +Static variable in class org.jivesoftware.smackx.packet.DiscoverItems.Item +
Request to create or update the item. +
userHasLogged(String) - +Method in class org.jivesoftware.smack.debugger.ConsoleDebugger +
  +
userHasLogged(String) - +Method in class org.jivesoftware.smack.debugger.LiteDebugger +
  +
userHasLogged(String) - +Method in interface org.jivesoftware.smack.debugger.SmackDebugger +
Called when a user has logged in to the server. +
userHasLogged(String) - +Method in class org.jivesoftware.smackx.debugger.EnhancedDebugger +
  +
UserSearch - Class in org.jivesoftware.smackx.search
Implements the protocol currently used to search information repositories on the Jabber network.
UserSearch() - +Constructor for class org.jivesoftware.smackx.search.UserSearch +
Creates a new instance of UserSearch. +
UserSearch.Provider - Class in org.jivesoftware.smackx.search
Internal Search service Provider.
UserSearch.Provider() - +Constructor for class org.jivesoftware.smackx.search.UserSearch.Provider +
Provider Constructor. +
UserSearchManager - Class in org.jivesoftware.smackx.search
The UserSearchManager is a facade built upon Jabber Search Services (JEP-055) to allow for searching + repositories on a Jabber Server.
UserSearchManager(XMPPConnection) - +Constructor for class org.jivesoftware.smackx.search.UserSearchManager +
Creates a new UserSearchManager. +
UserStatusListener - Interface in org.jivesoftware.smackx.muc
A listener that is fired anytime your participant's status in a room is changed, such as the + user being kicked, banned, or granted admin permissions.
UTC_FORMAT - +Static variable in class org.jivesoftware.smackx.packet.DelayInformation +
  +
+
+

+V

+
+
values() - +Method in class org.jivesoftware.smack.util.Cache +
  +
VCard - Class in org.jivesoftware.smackx.packet
A VCard class for use with the + SMACK jabber library.
VCard() - +Constructor for class org.jivesoftware.smackx.packet.VCard +
  +
VCardProvider - Class in org.jivesoftware.smackx.provider
vCard provider.
VCardProvider() - +Constructor for class org.jivesoftware.smackx.provider.VCardProvider +
  +
Version - Class in org.jivesoftware.smackx.packet
A Version IQ packet, which is used by XMPP clients to discover version information + about the software running at another entity's JID.
Version() - +Constructor for class org.jivesoftware.smackx.packet.Version +
  +
voiceGranted(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
voiceGranted() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
voiceGranted(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when a moderator grants voice to a visitor. +
voiceGranted() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when a moderator grants voice to your user. +
voiceRevoked(String) - +Method in class org.jivesoftware.smackx.muc.DefaultParticipantStatusListener +
  +
voiceRevoked() - +Method in class org.jivesoftware.smackx.muc.DefaultUserStatusListener +
  +
voiceRevoked(String) - +Method in interface org.jivesoftware.smackx.muc.ParticipantStatusListener +
Called when a moderator revokes voice from a participant. +
voiceRevoked() - +Method in interface org.jivesoftware.smackx.muc.UserStatusListener +
Called when a moderator revokes voice from your user. +
+
+

+W

+
+
write(char[], int, int) - +Method in class org.jivesoftware.smack.util.ObservableWriter +
  +
write(int) - +Method in class org.jivesoftware.smack.util.ObservableWriter +
  +
write(char[]) - +Method in class org.jivesoftware.smack.util.ObservableWriter +
  +
write(String) - +Method in class org.jivesoftware.smack.util.ObservableWriter +
  +
write(String, int, int) - +Method in class org.jivesoftware.smack.util.ObservableWriter +
  +
write(String) - +Method in interface org.jivesoftware.smack.util.WriterListener +
Notification that the Writer has written a new string. +
WriterListener - Interface in org.jivesoftware.smack.util
Interface that allows for implementing classes to listen for string writing + events.
writeToStream(InputStream, OutputStream) - +Method in class org.jivesoftware.smackx.filetransfer.FileTransfer +
  +
+
+

+X

+
+
XHTMLExtension - Class in org.jivesoftware.smackx.packet
An XHTML sub-packet, which is used by XMPP clients to exchange formatted text.
XHTMLExtension() - +Constructor for class org.jivesoftware.smackx.packet.XHTMLExtension +
  +
XHTMLExtensionProvider - Class in org.jivesoftware.smackx.provider
The XHTMLExtensionProvider parses XHTML packets.
XHTMLExtensionProvider() - +Constructor for class org.jivesoftware.smackx.provider.XHTMLExtensionProvider +
Creates a new XHTMLExtensionProvider. +
XHTMLManager - Class in org.jivesoftware.smackx
Manages XHTML formatted texts within messages.
XHTMLManager() - +Constructor for class org.jivesoftware.smackx.XHTMLManager +
  +
XHTMLText - Class in org.jivesoftware.smackx
An XHTMLText represents formatted text.
XHTMLText(String, String) - +Constructor for class org.jivesoftware.smackx.XHTMLText +
Creates a new XHTMLText with body tag params. +
XMPPConnection - Class in org.jivesoftware.smack
Creates a connection to a XMPP server.
XMPPConnection(String) - +Constructor for class org.jivesoftware.smack.XMPPConnection +
Creates a new connection to the specified XMPP server. +
XMPPConnection(String, int) - +Constructor for class org.jivesoftware.smack.XMPPConnection +
Creates a new connection to the XMPP server at the specifiec host and port. +
XMPPConnection(String, int, String) - +Constructor for class org.jivesoftware.smack.XMPPConnection +
Creates a new connection to the specified XMPP server on the given host and port. +
XMPPConnection(String, int, String, SocketFactory) - +Constructor for class org.jivesoftware.smack.XMPPConnection +
Creates a new connection to the specified XMPP server on the given port using the + specified SocketFactory. +
XMPPConnection(ConnectionConfiguration) - +Constructor for class org.jivesoftware.smack.XMPPConnection +
  +
XMPPConnection(ConnectionConfiguration, SocketFactory) - +Constructor for class org.jivesoftware.smack.XMPPConnection +
  +
XMPPError - Class in org.jivesoftware.smack.packet
Represents a XMPP error sub-packet.
XMPPError(int) - +Constructor for class org.jivesoftware.smack.packet.XMPPError +
Creates a new error with the specified code and no message.. +
XMPPError(int, String) - +Constructor for class org.jivesoftware.smack.packet.XMPPError +
Creates a new error with the specified code and message. +
XMPPException - Exception in org.jivesoftware.smack
A generic exception that is thrown when an error occurs performing an + XMPP operation.
XMPPException() - +Constructor for exception org.jivesoftware.smack.XMPPException +
Creates a new XMPPException. +
XMPPException(String) - +Constructor for exception org.jivesoftware.smack.XMPPException +
Creates a new XMPPException with a description of the exception. +
XMPPException(Throwable) - +Constructor for exception org.jivesoftware.smack.XMPPException +
Creates a new XMPPException with the Throwable that was the root cause of the + exception. +
XMPPException(StreamError) - +Constructor for exception org.jivesoftware.smack.XMPPException +
Cretaes a new XMPPException with the stream error that was the root case of the + exception. +
XMPPException(XMPPError) - +Constructor for exception org.jivesoftware.smack.XMPPException +
Cretaes a new XMPPException with the XMPPError that was the root case of the + exception. +
XMPPException(String, Throwable) - +Constructor for exception org.jivesoftware.smack.XMPPException +
Creates a new XMPPException with a description of the exception and the + Throwable that was the root cause of the exception. +
XMPPException(String, XMPPError, Throwable) - +Constructor for exception org.jivesoftware.smack.XMPPException +
Creates a new XMPPException with a description of the exception, an XMPPError, + and the Throwable that was the root cause of the exception. +
XMPPException(String, XMPPError) - +Constructor for exception org.jivesoftware.smack.XMPPException +
Creates a new XMPPException with a description of the exception and the + XMPPException that was the root cause of the exception. +
+
+

+_

+
+
_createVCardFromXml(String) - +Static method in class org.jivesoftware.smackx.provider.VCardProvider +
  +
+
+A B C D E F G H I J K L M N O P R S T U V W X _ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/index.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/index.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/index.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,37 @@ + + + + + + +Smack 2.2.0 Documentation + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/AccountManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/AccountManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/AccountManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,470 @@ + + + + + + +AccountManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class AccountManager

+
+java.lang.Object
+  extended by org.jivesoftware.smack.AccountManager
+
+
+
+
public class AccountManager
extends Object
+ + +

+Allows creation and management of accounts on an XMPP server. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
XMPPConnection.getAccountManager()
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
AccountManager(XMPPConnection connection) + +
+          Creates a new AccountManager instance.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidchangePassword(String newPassword) + +
+          Changes the password of the currently logged-in account.
+ voidcreateAccount(String username, + String password) + +
+          Creates a new account using the specified username and password.
+ voidcreateAccount(String username, + String password, + Map attributes) + +
+          Creates a new account using the specified username, password and account attributes.
+ voiddeleteAccount() + +
+          Deletes the currently logged-in account from the server.
+ StringgetAccountAttribute(String name) + +
+          Returns the value of a given account attribute or null if the account + attribute wasn't found.
+ IteratorgetAccountAttributes() + +
+          Returns an Iterator for the (String) names of the required account attributes.
+ StringgetAccountInstructions() + +
+          Returns the instructions for creating a new account, or null if there + are no instructions.
+ booleansupportsAccountCreation() + +
+          Returns true if the server supports creating new accounts.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AccountManager

+
+public AccountManager(XMPPConnection connection)
+
+
Creates a new AccountManager instance. +

+

+
Parameters:
connection - a connection to a XMPP server.
+
+ + + + + + + + +
+Method Detail
+ +

+supportsAccountCreation

+
+public boolean supportsAccountCreation()
+
+
Returns true if the server supports creating new accounts. Many servers require + that you not be currently authenticated when creating new accounts, so the safest + behavior is to only create new accounts before having logged in to a server. +

+

+ +
Returns:
true if the server support creating new accounts.
+
+
+
+ +

+getAccountAttributes

+
+public Iterator getAccountAttributes()
+
+
Returns an Iterator for the (String) names of the required account attributes. + All attributes must be set when creating new accounts. The standard + attributes are as follows:

+ + Typically, servers require no attributes when creating new accounts, or just + the user's email address. +

+

+ +
Returns:
the required account attributes.
+
+
+
+ +

+getAccountAttribute

+
+public String getAccountAttribute(String name)
+
+
Returns the value of a given account attribute or null if the account + attribute wasn't found. +

+

+
Parameters:
name - the name of the account attribute to return its value. +
Returns:
the value of the account attribute or null if an account + attribute wasn't found for the requested name.
+
+
+
+ +

+getAccountInstructions

+
+public String getAccountInstructions()
+
+
Returns the instructions for creating a new account, or null if there + are no instructions. If present, instructions should be displayed to the end-user + that will complete the registration process. +

+

+ +
Returns:
the account creation instructions, or null if there are none.
+
+
+
+ +

+createAccount

+
+public void createAccount(String username,
+                          String password)
+                   throws XMPPException
+
+
Creates a new account using the specified username and password. The server may + require a number of extra account attributes such as an email address and phone + number. In that case, Smack will attempt to automatically set all required + attributes with blank values, which may or may not be accepted by the server. + Therefore, it's recommended to check the required account attributes and to let + the end-user populate them with real values instead. +

+

+
Parameters:
username - the username.
password - the password. +
Throws: +
XMPPException - if an error occurs creating the account.
+
+
+
+ +

+createAccount

+
+public void createAccount(String username,
+                          String password,
+                          Map attributes)
+                   throws XMPPException
+
+
Creates a new account using the specified username, password and account attributes. + The attributes Map must contain only String name/value pairs and must also have values + for all required attributes. +

+

+
Parameters:
username - the username.
password - the password.
attributes - the account attributes. +
Throws: +
XMPPException - if an error occurs creating the account.
See Also:
getAccountAttributes()
+
+
+
+ +

+changePassword

+
+public void changePassword(String newPassword)
+                    throws XMPPException
+
+
Changes the password of the currently logged-in account. This operation can only + be performed after a successful login operation has been completed. Not all servers + support changing passwords; an XMPPException will be thrown when that is the case. +

+

+ +
Throws: +
IllegalStateException - if not currently logged-in to the server. +
XMPPException - if an error occurs when changing the password.
+
+
+
+ +

+deleteAccount

+
+public void deleteAccount()
+                   throws XMPPException
+
+
Deletes the currently logged-in account from the server. This operation can only + be performed after a successful login operation has been completed. Not all servers + support deleting accounts; an XMPPException will be thrown when that is the case. +

+

+ +
Throws: +
IllegalStateException - if not currently logged-in to the server. +
XMPPException - if an error occurs when deleting the account.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/Chat.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/Chat.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/Chat.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,523 @@ + + + + + + +Chat (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class Chat

+
+java.lang.Object
+  extended by org.jivesoftware.smack.Chat
+
+
+
+
public class Chat
extends Object
+ + +

+A chat is a series of messages sent between two users. Each chat has a unique + thread ID, which is used to track which messages are part of a particular + conversation. Some messages are sent without a thread ID, and some clients + don't send thread IDs at all. Therefore, if a message without a thread ID + arrives it is routed to the most recently created Chat with the message + sender. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
XMPPConnection.createChat(String)
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
Chat(XMPPConnection connection, + String participant) + +
+          Creates a new chat with the specified user.
Chat(XMPPConnection connection, + String participant, + String threadID) + +
+          Creates a new chat with the specified user and thread ID.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddMessageListener(PacketListener listener) + +
+          Adds a packet listener that will be notified of any new messages in the + chat.
+ MessagecreateMessage() + +
+          Creates a new Message to the chat participant.
+ voidfinalize() + +
+           
+ StringgetParticipant() + +
+          Returns the name of the user the chat is with.
+ StringgetThreadID() + +
+          Returns the thread id associated with this chat, which corresponds to the + thread field of XMPP messages.
+ MessagenextMessage() + +
+          Returns the next available message in the chat.
+ MessagenextMessage(long timeout) + +
+          Returns the next available message in the chat.
+ MessagepollMessage() + +
+          Polls for and returns the next message, or null if there isn't + a message immediately available.
+ voidsendMessage(Message message) + +
+          Sends a message to the other chat participant.
+ voidsendMessage(String text) + +
+          Sends the specified text as a message to the other chat participant.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Chat

+
+public Chat(XMPPConnection connection,
+            String participant)
+
+
Creates a new chat with the specified user. +

+

+
Parameters:
connection - the connection the chat will use.
participant - the user to chat with.
+
+
+ +

+Chat

+
+public Chat(XMPPConnection connection,
+            String participant,
+            String threadID)
+
+
Creates a new chat with the specified user and thread ID. +

+

+
Parameters:
connection - the connection the chat will use.
participant - the user to chat with.
threadID - the thread ID to use.
+
+ + + + + + + + +
+Method Detail
+ +

+getThreadID

+
+public String getThreadID()
+
+
Returns the thread id associated with this chat, which corresponds to the + thread field of XMPP messages. This method may return null + if there is no thread ID is associated with this Chat. +

+

+ +
Returns:
the thread ID of this chat.
+
+
+
+ +

+getParticipant

+
+public String getParticipant()
+
+
Returns the name of the user the chat is with. +

+

+ +
Returns:
the name of the user the chat is occuring with.
+
+
+
+ +

+sendMessage

+
+public void sendMessage(String text)
+                 throws XMPPException
+
+
Sends the specified text as a message to the other chat participant. + This is a convenience method for: + +
+     Message message = chat.createMessage();
+     message.setBody(messageText);
+     chat.sendMessage(message);
+ 
+

+

+
Parameters:
text - the text to send. +
Throws: +
XMPPException - if sending the message fails.
+
+
+
+ +

+createMessage

+
+public Message createMessage()
+
+
Creates a new Message to the chat participant. The message returned + will have its thread property set with this chat ID. +

+

+ +
Returns:
a new message addressed to the chat participant and + using the correct thread value.
See Also:
sendMessage(Message)
+
+
+
+ +

+sendMessage

+
+public void sendMessage(Message message)
+                 throws XMPPException
+
+
Sends a message to the other chat participant. The thread ID, recipient, + and message type of the message will automatically set to those of this chat + in case the Message was not created using the createMessage + method. +

+

+
Parameters:
message - the message to send. +
Throws: +
XMPPException - if an error occurs sending the message.
+
+
+
+ +

+pollMessage

+
+public Message pollMessage()
+
+
Polls for and returns the next message, or null if there isn't + a message immediately available. This method provides significantly different + functionalty than the nextMessage() method since it's non-blocking. + In other words, the method call will always return immediately, whereas the + nextMessage method will return only when a message is available (or after + a specific timeout). +

+

+ +
Returns:
the next message if one is immediately available and + null otherwise.
+
+
+
+ +

+nextMessage

+
+public Message nextMessage()
+
+
Returns the next available message in the chat. The method call will block + (not return) until a message is available. +

+

+ +
Returns:
the next message.
+
+
+
+ +

+nextMessage

+
+public Message nextMessage(long timeout)
+
+
Returns the next available message in the chat. The method call will block + (not return) until a packet is available or the timeout has elapased. + If the timeout elapses without a result, null will be returned. +

+

+
Parameters:
timeout - the maximum amount of time to wait for the next message. +
Returns:
the next message, or null if the timeout elapses without a + message becoming available.
+
+
+
+ +

+addMessageListener

+
+public void addMessageListener(PacketListener listener)
+
+
Adds a packet listener that will be notified of any new messages in the + chat. +

+

+
Parameters:
listener - a packet listener.
+
+
+
+ +

+finalize

+
+public void finalize()
+              throws Throwable
+
+
+
Overrides:
finalize in class Object
+
+
+ +
Throws: +
Throwable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/ConnectionConfiguration.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/ConnectionConfiguration.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/ConnectionConfiguration.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,996 @@ + + + + + + +ConnectionConfiguration (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class ConnectionConfiguration

+
+java.lang.Object
+  extended by org.jivesoftware.smack.ConnectionConfiguration
+
+
+
All Implemented Interfaces:
Cloneable
+
+
+
+
public class ConnectionConfiguration
extends Object
implements Cloneable
+ + +

+Configuration to use while establishing the connection to the server. It is possible to + configure the path to the trustore file that keeps the trusted CA root certificates and + enable or disable all or some of the checkings done while verifying server certificates.

+ + It is also possible to configure it TLs, SASL or compression are going to be used or not. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
ConnectionConfiguration(String host, + int port) + +
+           
ConnectionConfiguration(String host, + int port, + String serviceName) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  Objectclone() + +
+           
+ StringgetHost() + +
+          Returns the host to use when establishing the connection.
+ intgetPort() + +
+          Returns the port to use when establishing the connection.
+ StringgetServiceName() + +
+          Returns the server name of the target server.
+ StringgetTruststorePassword() + +
+          Returns the password to use to access the truststore file.
+ StringgetTruststorePath() + +
+          Retuns the path to the truststore file.
+ StringgetTruststoreType() + +
+           
+ booleanisCompressionEnabled() + +
+          Returns true if the connection is going to use stream compression.
+ booleanisDebuggerEnabled() + +
+          Returns true if the new connection about to be establish is going to be debugged.
+ booleanisExpiredCertificatesCheckEnabled() + +
+          Returns true if certificates presented by the server are going to be checked for their + validity.
+ booleanisNotMatchingDomainCheckEnabled() + +
+          Returns true if certificates presented by the server are going to be checked for their + domain.
+ booleanisSASLAuthenticationEnabled() + +
+          Returns true if the client is going to use SASL authentication when logging into the + server.
+ booleanisSelfSignedCertificateEnabled() + +
+          Returns true if self-signed certificates are going to be accepted.
+ booleanisTLSEnabled() + +
+          Returns true if the client is going to try to secure the connection using TLS after + the connection has been established.
+ booleanisVerifyChainEnabled() + +
+          Returns true if the whole chain of certificates presented by the server are going to + be checked.
+ booleanisVerifyRootCAEnabled() + +
+          Returns true if root CA checking is going to be done.
+ voidsetCompressionEnabled(boolean compressionEnabled) + +
+          Sets if the connection is going to use stream compression.
+ voidsetDebuggerEnabled(boolean debuggerEnabled) + +
+          Sets if the new connection about to be establish is going to be debugged.
+ voidsetExpiredCertificatesCheckEnabled(boolean expiredCertificatesCheckEnabled) + +
+          Sets if certificates presented by the server are going to be checked for their + validity.
+ voidsetNotMatchingDomainCheckEnabled(boolean notMatchingDomainCheckEnabled) + +
+          Sets if certificates presented by the server are going to be checked for their + domain.
+ voidsetSASLAuthenticationEnabled(boolean saslAuthenticationEnabled) + +
+          Sets if the client is going to use SASL authentication when logging into the + server.
+ voidsetSelfSignedCertificateEnabled(boolean selfSignedCertificateEnabled) + +
+          Sets if self-signed certificates are going to be accepted.
+ voidsetTLSEnabled(boolean tlsEnabled) + +
+          Sets if the client is going to try to secure the connection using TLS after + the connection has been established.
+ voidsetTruststorePassword(String truststorePassword) + +
+          Sets the password to use to access the truststore file.
+ voidsetTruststorePath(String truststorePath) + +
+          Sets the path to the truststore file.
+ voidsetTruststoreType(String truststoreType) + +
+           
+ voidsetVerifyChainEnabled(boolean verifyChainEnabled) + +
+          Sets if the whole chain of certificates presented by the server are going to + be checked.
+ voidsetVerifyRootCAEnabled(boolean verifyRootCAEnabled) + +
+          Sets if root CA checking is going to be done.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ConnectionConfiguration

+
+public ConnectionConfiguration(String host,
+                               int port,
+                               String serviceName)
+
+
+
+ +

+ConnectionConfiguration

+
+public ConnectionConfiguration(String host,
+                               int port)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getServiceName

+
+public String getServiceName()
+
+
Returns the server name of the target server. +

+

+
+
+
+ +
Returns:
the server name of the target server.
+
+
+
+ +

+getHost

+
+public String getHost()
+
+
Returns the host to use when establishing the connection. The host and port to use + might have been resolved by a DNS lookup as specified by the XMPP spec. +

+

+
+
+
+ +
Returns:
the host to use when establishing the connection.
+
+
+
+ +

+getPort

+
+public int getPort()
+
+
Returns the port to use when establishing the connection. The host and port to use + might have been resolved by a DNS lookup as specified by the XMPP spec. +

+

+
+
+
+ +
Returns:
the port to use when establishing the connection.
+
+
+
+ +

+isTLSEnabled

+
+public boolean isTLSEnabled()
+
+
Returns true if the client is going to try to secure the connection using TLS after + the connection has been established. +

+

+
+
+
+ +
Returns:
true if the client is going to try to secure the connection using TLS after + the connection has been established.
+
+
+
+ +

+setTLSEnabled

+
+public void setTLSEnabled(boolean tlsEnabled)
+
+
Sets if the client is going to try to secure the connection using TLS after + the connection has been established. +

+

+
+
+
+
Parameters:
tlsEnabled - if the client is going to try to secure the connection using TLS after + the connection has been established.
+
+
+
+ +

+getTruststorePath

+
+public String getTruststorePath()
+
+
Retuns the path to the truststore file. The truststore file contains the root + certificates of several well?known CAs. By default Smack is going to use + the file located in $JREHOME/lib/security/cacerts. +

+

+
+
+
+ +
Returns:
the path to the truststore file.
+
+
+
+ +

+setTruststorePath

+
+public void setTruststorePath(String truststorePath)
+
+
Sets the path to the truststore file. The truststore file contains the root + certificates of several well?known CAs. By default Smack is going to use + the file located in $JREHOME/lib/security/cacerts. +

+

+
+
+
+
Parameters:
truststorePath - the path to the truststore file.
+
+
+
+ +

+getTruststoreType

+
+public String getTruststoreType()
+
+
+
+
+
+
+
+
+
+ +

+setTruststoreType

+
+public void setTruststoreType(String truststoreType)
+
+
+
+
+
+
+
+
+
+ +

+getTruststorePassword

+
+public String getTruststorePassword()
+
+
Returns the password to use to access the truststore file. It is assumed that all + certificates share the same password of the truststore file. +

+

+
+
+
+ +
Returns:
the password to use to access the truststore file.
+
+
+
+ +

+setTruststorePassword

+
+public void setTruststorePassword(String truststorePassword)
+
+
Sets the password to use to access the truststore file. It is assumed that all + certificates share the same password of the truststore file. +

+

+
+
+
+
Parameters:
truststorePassword - the password to use to access the truststore file.
+
+
+
+ +

+isVerifyChainEnabled

+
+public boolean isVerifyChainEnabled()
+
+
Returns true if the whole chain of certificates presented by the server are going to + be checked. By default the certificate chain is not verified. +

+

+
+
+
+ +
Returns:
true if the whole chaing of certificates presented by the server are going to + be checked.
+
+
+
+ +

+setVerifyChainEnabled

+
+public void setVerifyChainEnabled(boolean verifyChainEnabled)
+
+
Sets if the whole chain of certificates presented by the server are going to + be checked. By default the certificate chain is not verified. +

+

+
+
+
+
Parameters:
verifyChainEnabled - if the whole chaing of certificates presented by the server + are going to be checked.
+
+
+
+ +

+isVerifyRootCAEnabled

+
+public boolean isVerifyRootCAEnabled()
+
+
Returns true if root CA checking is going to be done. By default checking is disabled. +

+

+
+
+
+ +
Returns:
true if root CA checking is going to be done.
+
+
+
+ +

+setVerifyRootCAEnabled

+
+public void setVerifyRootCAEnabled(boolean verifyRootCAEnabled)
+
+
Sets if root CA checking is going to be done. By default checking is disabled. +

+

+
+
+
+
Parameters:
verifyRootCAEnabled - if root CA checking is going to be done.
+
+
+
+ +

+isSelfSignedCertificateEnabled

+
+public boolean isSelfSignedCertificateEnabled()
+
+
Returns true if self-signed certificates are going to be accepted. By default + this option is disabled. +

+

+
+
+
+ +
Returns:
true if self-signed certificates are going to be accepted.
+
+
+
+ +

+setSelfSignedCertificateEnabled

+
+public void setSelfSignedCertificateEnabled(boolean selfSignedCertificateEnabled)
+
+
Sets if self-signed certificates are going to be accepted. By default + this option is disabled. +

+

+
+
+
+
Parameters:
selfSignedCertificateEnabled - if self-signed certificates are going to be accepted.
+
+
+
+ +

+isExpiredCertificatesCheckEnabled

+
+public boolean isExpiredCertificatesCheckEnabled()
+
+
Returns true if certificates presented by the server are going to be checked for their + validity. By default certificates are not verified. +

+

+
+
+
+ +
Returns:
true if certificates presented by the server are going to be checked for their + validity.
+
+
+
+ +

+setExpiredCertificatesCheckEnabled

+
+public void setExpiredCertificatesCheckEnabled(boolean expiredCertificatesCheckEnabled)
+
+
Sets if certificates presented by the server are going to be checked for their + validity. By default certificates are not verified. +

+

+
+
+
+
Parameters:
expiredCertificatesCheckEnabled - if certificates presented by the server are going + to be checked for their validity.
+
+
+
+ +

+isNotMatchingDomainCheckEnabled

+
+public boolean isNotMatchingDomainCheckEnabled()
+
+
Returns true if certificates presented by the server are going to be checked for their + domain. By default certificates are not verified. +

+

+
+
+
+ +
Returns:
true if certificates presented by the server are going to be checked for their + domain.
+
+
+
+ +

+setNotMatchingDomainCheckEnabled

+
+public void setNotMatchingDomainCheckEnabled(boolean notMatchingDomainCheckEnabled)
+
+
Sets if certificates presented by the server are going to be checked for their + domain. By default certificates are not verified. +

+

+
+
+
+
Parameters:
notMatchingDomainCheckEnabled - if certificates presented by the server are going + to be checked for their domain.
+
+
+
+ +

+isCompressionEnabled

+
+public boolean isCompressionEnabled()
+
+
Returns true if the connection is going to use stream compression. Stream compression + will be requested after TLS was established (if TLS was enabled) and only if the server + offered stream compression. With stream compression network traffic can be reduced + up to 90%. By default compression is disabled. +

+

+
+
+
+ +
Returns:
true if the connection is going to use stream compression.
+
+
+
+ +

+setCompressionEnabled

+
+public void setCompressionEnabled(boolean compressionEnabled)
+
+
Sets if the connection is going to use stream compression. Stream compression + will be requested after TLS was established (if TLS was enabled) and only if the server + offered stream compression. With stream compression network traffic can be reduced + up to 90%. By default compression is disabled. +

+

+
+
+
+
Parameters:
compressionEnabled - if the connection is going to use stream compression.
+
+
+
+ +

+isSASLAuthenticationEnabled

+
+public boolean isSASLAuthenticationEnabled()
+
+
Returns true if the client is going to use SASL authentication when logging into the + server. If SASL authenticatin fails then the client will try to use non-sasl authentication. + By default SASL is enabled. +

+

+
+
+
+ +
Returns:
true if the client is going to use SASL authentication when logging into the + server.
+
+
+
+ +

+setSASLAuthenticationEnabled

+
+public void setSASLAuthenticationEnabled(boolean saslAuthenticationEnabled)
+
+
Sets if the client is going to use SASL authentication when logging into the + server. If SASL authenticatin fails then the client will try to use non-sasl authentication. + By default SASL is enabled. +

+

+
+
+
+
Parameters:
saslAuthenticationEnabled - if the client is going to use SASL authentication when + logging into the server.
+
+
+
+ +

+isDebuggerEnabled

+
+public boolean isDebuggerEnabled()
+
+
Returns true if the new connection about to be establish is going to be debugged. By + default the value of XMPPConnection.DEBUG_ENABLED is used. +

+

+
+
+
+ +
Returns:
true if the new connection about to be establish is going to be debugged.
+
+
+
+ +

+setDebuggerEnabled

+
+public void setDebuggerEnabled(boolean debuggerEnabled)
+
+
Sets if the new connection about to be establish is going to be debugged. By + default the value of XMPPConnection.DEBUG_ENABLED is used. +

+

+
+
+
+
Parameters:
debuggerEnabled - if the new connection about to be establish is going to be debugged.
+
+
+
+ +

+clone

+
+protected Object clone()
+                throws CloneNotSupportedException
+
+
+
Overrides:
clone in class Object
+
+
+ +
Throws: +
CloneNotSupportedException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/ConnectionEstablishedListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/ConnectionEstablishedListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/ConnectionEstablishedListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,213 @@ + + + + + + +ConnectionEstablishedListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Interface ConnectionEstablishedListener

+
+
+
public interface ConnectionEstablishedListener
+ + +

+Interface that allows for implementing classes to listen for connection established + events. Listeners are registered with the XMPPConnection class. +

+ +

+

+
Author:
+
Gaston Dombiak
+
See Also:
XMPPConnection.addConnectionListener(org.jivesoftware.smack.ConnectionListener), +XMPPConnection.removeConnectionListener(org.jivesoftware.smack.ConnectionListener)
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidconnectionEstablished(XMPPConnection connection) + +
+          Notification that a new connection has been established.
+  +

+ + + + + + + + +
+Method Detail
+ +

+connectionEstablished

+
+void connectionEstablished(XMPPConnection connection)
+
+
Notification that a new connection has been established. +

+

+
Parameters:
connection - the new established connection
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/ConnectionListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/ConnectionListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/ConnectionListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,234 @@ + + + + + + +ConnectionListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Interface ConnectionListener

+
+
+
public interface ConnectionListener
+ + +

+Interface that allows for implementing classes to listen for connection closing + events. Listeners are registered with XMPPConnection objects. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
XMPPConnection.addConnectionListener(org.jivesoftware.smack.ConnectionListener), +XMPPConnection.removeConnectionListener(org.jivesoftware.smack.ConnectionListener)
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ voidconnectionClosed() + +
+          Notification that the connection was closed normally.
+ voidconnectionClosedOnError(Exception e) + +
+          Notification that the connection was closed due to an exception.
+  +

+ + + + + + + + +
+Method Detail
+ +

+connectionClosed

+
+void connectionClosed()
+
+
Notification that the connection was closed normally. +

+

+
+
+
+
+ +

+connectionClosedOnError

+
+void connectionClosedOnError(Exception e)
+
+
Notification that the connection was closed due to an exception. +

+

+
Parameters:
e - the exception.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/GoogleTalkConnection.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/GoogleTalkConnection.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/GoogleTalkConnection.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,265 @@ + + + + + + +GoogleTalkConnection (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class GoogleTalkConnection

+
+java.lang.Object
+  extended by org.jivesoftware.smack.XMPPConnection
+      extended by org.jivesoftware.smack.GoogleTalkConnection
+
+
+
+
public class GoogleTalkConnection
extends XMPPConnection
+ + +

+Convenience class to make it easier to connect to the Google Talk IM service. + You can also use XMPPConnection to connect to Google Talk by specifying + the server name, service name, and port.

+ + After creating the connection, log in in using a Gmail username and password. + For the Gmail address "jsmith@gmail.com", the username is "jsmith". +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.XMPPConnection
DEBUG_ENABLED
+  + + + + + + + + + + +
+Constructor Summary
GoogleTalkConnection() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.XMPPConnection
addConnectionListener, addConnectionListener, addPacketListener, addPacketWriterInterceptor, addPacketWriterListener, close, createChat, createGroupChat, createPacketCollector, getAccountManager, getConnectionID, getHost, getPort, getRoster, getSASLAuthentication, getServiceName, getUser, isAnonymous, isAuthenticated, isConnected, isSecureConnection, isUsingCompression, isUsingTLS, login, login, login, loginAnonymously, removeConnectionListener, removeConnectionListener, removePacketListener, removePacketWriterInterceptor, removePacketWriterListener, sendPacket
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GoogleTalkConnection

+
+public GoogleTalkConnection()
+                     throws XMPPException
+
+
+ +
Throws: +
XMPPException
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/GroupChat.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/GroupChat.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/GroupChat.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,682 @@ + + + + + + +GroupChat (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class GroupChat

+
+java.lang.Object
+  extended by org.jivesoftware.smack.GroupChat
+
+
+
+
public class GroupChat
extends Object
+ + +

+A GroupChat is a conversation that takes place among many users in a virtual + room. When joining a group chat, you specify a nickname, which is the identity + that other chat room users see. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
XMPPConnection.createGroupChat(String)
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
GroupChat(XMPPConnection connection, + String room) + +
+          Creates a new group chat with the specified connection and room name.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddMessageListener(PacketListener listener) + +
+          Adds a packet listener that will be notified of any new messages in the + group chat.
+ voidaddParticipantListener(PacketListener listener) + +
+          Adds a packet listener that will be notified of any new Presence packets + sent to the group chat.
+ MessagecreateMessage() + +
+          Creates a new Message to send to the chat room.
+ voidfinalize() + +
+           
+ StringgetNickname() + +
+          Returns the nickname that was used to join the room, or null if not + currently joined.
+ intgetParticipantCount() + +
+          Returns the number of participants in the group chat.
+ IteratorgetParticipants() + +
+          Returns an Iterator (of Strings) for the list of fully qualified participants + in the group chat.
+ StringgetRoom() + +
+          Returns the name of the room this GroupChat object represents.
+ booleanisJoined() + +
+          Returns true if currently in the group chat (after calling the join(String) method.
+ voidjoin(String nickname) + +
+          Joins the chat room using the specified nickname.
+ voidjoin(String nickname, + long timeout) + +
+          Joins the chat room using the specified nickname.
+ voidleave() + +
+          Leave the chat room.
+ MessagenextMessage() + +
+          Returns the next available message in the chat.
+ MessagenextMessage(long timeout) + +
+          Returns the next available message in the chat.
+ MessagepollMessage() + +
+          Polls for and returns the next message, or null if there isn't + a message immediately available.
+ voidsendMessage(Message message) + +
+          Sends a Message to the chat room.
+ voidsendMessage(String text) + +
+          Sends a message to the chat room.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GroupChat

+
+public GroupChat(XMPPConnection connection,
+                 String room)
+
+
Creates a new group chat with the specified connection and room name. Note: no + information is sent to or received from the server until you attempt to + join the chat room. On some server implementations, + the room will not be created until the first person joins it.

+ + Most XMPP servers use a sub-domain for the chat service (eg chat.example.com + for the XMPP server example.com). You must ensure that the room address you're + trying to connect to includes the proper chat sub-domain. +

+

+
Parameters:
connection - the XMPP connection.
room - the name of the room in the form "roomName@service", where + "service" is the hostname at which the multi-user chat + service is running.
+
+ + + + + + + + +
+Method Detail
+ +

+getRoom

+
+public String getRoom()
+
+
Returns the name of the room this GroupChat object represents. +

+

+ +
Returns:
the groupchat room name.
+
+
+
+ +

+join

+
+public void join(String nickname)
+          throws XMPPException
+
+
Joins the chat room using the specified nickname. If already joined + using another nickname, this method will first leave the room and then + re-join using the new nickname. The default timeout of 5 seconds for a reply + from the group chat server that the join succeeded will be used. +

+

+
Parameters:
nickname - the nickname to use. +
Throws: +
XMPPException - if an error occurs joining the room. In particular, a + 409 error can occur if someone is already in the group chat with the same + nickname.
+
+
+
+ +

+join

+
+public void join(String nickname,
+                 long timeout)
+          throws XMPPException
+
+
Joins the chat room using the specified nickname. If already joined as + another nickname, will leave as that name first before joining under the new + name. +

+

+
Parameters:
nickname - the nickname to use.
timeout - the number of milleseconds to wait for a reply from the + group chat that joining the room succeeded. +
Throws: +
XMPPException - if an error occurs joining the room. In particular, a + 409 error can occur if someone is already in the group chat with the same + nickname.
+
+
+
+ +

+isJoined

+
+public boolean isJoined()
+
+
Returns true if currently in the group chat (after calling the join(String) method. +

+

+ +
Returns:
true if currently in the group chat room.
+
+
+
+ +

+leave

+
+public void leave()
+
+
Leave the chat room. +

+

+
+
+
+
+ +

+getNickname

+
+public String getNickname()
+
+
Returns the nickname that was used to join the room, or null if not + currently joined. +

+

+ +
Returns:
the nickname currently being used.
+
+
+
+ +

+getParticipantCount

+
+public int getParticipantCount()
+
+
Returns the number of participants in the group chat.

+ + Note: this value will only be accurate after joining the group chat, and + may fluctuate over time. If you query this value directly after joining the + group chat it may not be accurate, as it takes a certain amount of time for + the server to send all presence packets to this client. +

+

+ +
Returns:
the number of participants in the group chat.
+
+
+
+ +

+getParticipants

+
+public Iterator getParticipants()
+
+
Returns an Iterator (of Strings) for the list of fully qualified participants + in the group chat. For example, "conference@chat.jivesoftware.com/SomeUser". + Typically, a client would only display the nickname of the participant. To + get the nickname from the fully qualified name, use the + StringUtils.parseResource(String) method. + Note: this value will only be accurate after joining the group chat, and may + fluctuate over time. +

+

+ +
Returns:
an Iterator for the participants in the group chat.
+
+
+
+ +

+addParticipantListener

+
+public void addParticipantListener(PacketListener listener)
+
+
Adds a packet listener that will be notified of any new Presence packets + sent to the group chat. Using a listener is a suitable way to know when the list + of participants should be re-loaded due to any changes. +

+

+
Parameters:
listener - a packet listener that will be notified of any presence packets + sent to the group chat.
+
+
+
+ +

+sendMessage

+
+public void sendMessage(String text)
+                 throws XMPPException
+
+
Sends a message to the chat room. +

+

+
Parameters:
text - the text of the message to send. +
Throws: +
XMPPException - if sending the message fails.
+
+
+
+ +

+createMessage

+
+public Message createMessage()
+
+
Creates a new Message to send to the chat room. +

+

+ +
Returns:
a new Message addressed to the chat room.
+
+
+
+ +

+sendMessage

+
+public void sendMessage(Message message)
+                 throws XMPPException
+
+
Sends a Message to the chat room. +

+

+
Parameters:
message - the message. +
Throws: +
XMPPException - if sending the message fails.
+
+
+
+ +

+pollMessage

+
+public Message pollMessage()
+
+
Polls for and returns the next message, or null if there isn't + a message immediately available. This method provides significantly different + functionalty than the nextMessage() method since it's non-blocking. + In other words, the method call will always return immediately, whereas the + nextMessage method will return only when a message is available (or after + a specific timeout). +

+

+ +
Returns:
the next message if one is immediately available and + null otherwise.
+
+
+
+ +

+nextMessage

+
+public Message nextMessage()
+
+
Returns the next available message in the chat. The method call will block + (not return) until a message is available. +

+

+ +
Returns:
the next message.
+
+
+
+ +

+nextMessage

+
+public Message nextMessage(long timeout)
+
+
Returns the next available message in the chat. The method call will block + (not return) until a packet is available or the timeout has elapased. + If the timeout elapses without a result, null will be returned. +

+

+
Parameters:
timeout - the maximum amount of time to wait for the next message. +
Returns:
the next message, or null if the timeout elapses without a + message becoming available.
+
+
+
+ +

+addMessageListener

+
+public void addMessageListener(PacketListener listener)
+
+
Adds a packet listener that will be notified of any new messages in the + group chat. Only "group chat" messages addressed to this group chat will + be delivered to the listener. If you wish to listen for other packets + that may be associated with this group chat, you should register a + PacketListener directly with the XMPPConnection with the appropriate + PacketListener. +

+

+
Parameters:
listener - a packet listener.
+
+
+
+ +

+finalize

+
+public void finalize()
+              throws Throwable
+
+
+
Overrides:
finalize in class Object
+
+
+ +
Throws: +
Throwable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/PacketCollector.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/PacketCollector.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/PacketCollector.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,395 @@ + + + + + + +PacketCollector (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class PacketCollector

+
+java.lang.Object
+  extended by org.jivesoftware.smack.PacketCollector
+
+
+
+
public class PacketCollector
extends Object
+ + +

+Provides a mechanism to collect packets into a result queue that pass a + specified filter. The collector lets you perform blocking and polling + operations on the result queue. So, a PacketCollector is more suitable to + use than a PacketListener when you need to wait for a specific + result.

+ + Each packet collector will queue up to 2^16 packets for processing before + older packets are automatically dropped. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
XMPPConnection.createPacketCollector(PacketFilter)
+
+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected PacketCollector(org.jivesoftware.smack.PacketReader packetReader, + PacketFilter packetFilter) + +
+          Creates a new packet collector.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcancel() + +
+          Explicitly cancels the packet collector so that no more results are + queued up.
+ PacketFiltergetPacketFilter() + +
+          Returns the packet filter associated with this packet collector.
+ PacketnextResult() + +
+          Returns the next available packet.
+ PacketnextResult(long timeout) + +
+          Returns the next available packet.
+ PacketpollResult() + +
+          Polls to see if a packet is currently available and returns it, or + immediately returns null if no packets are currently in the + result queue.
+protected  voidprocessPacket(Packet packet) + +
+          Processes a packet to see if it meets the criteria for this packet collector.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PacketCollector

+
+protected PacketCollector(org.jivesoftware.smack.PacketReader packetReader,
+                          PacketFilter packetFilter)
+
+
Creates a new packet collector. If the packet filter is null, then + all packets will match this collector. +

+

+
Parameters:
packetReader - the packetReader the collector is tied to.
packetFilter - determines which packets will be returned by this collector.
+
+ + + + + + + + +
+Method Detail
+ +

+cancel

+
+public void cancel()
+
+
Explicitly cancels the packet collector so that no more results are + queued up. Once a packet collector has been cancelled, it cannot be + re-enabled. Instead, a new packet collector must be created. +

+

+
+
+
+
+ +

+getPacketFilter

+
+public PacketFilter getPacketFilter()
+
+
Returns the packet filter associated with this packet collector. The packet + filter is used to determine what packets are queued as results. +

+

+ +
Returns:
the packet filter.
+
+
+
+ +

+pollResult

+
+public Packet pollResult()
+
+
Polls to see if a packet is currently available and returns it, or + immediately returns null if no packets are currently in the + result queue. +

+

+ +
Returns:
the next packet result, or null if there are no more + results.
+
+
+
+ +

+nextResult

+
+public Packet nextResult()
+
+
Returns the next available packet. The method call will block (not return) + until a packet is available. +

+

+ +
Returns:
the next available packet.
+
+
+
+ +

+nextResult

+
+public Packet nextResult(long timeout)
+
+
Returns the next available packet. The method call will block (not return) + until a packet is available or the timeout has elapased. If the + timeout elapses without a result, null will be returned. +

+

+
Parameters:
timeout - the amount of time to wait for the next packet (in milleseconds). +
Returns:
the next available packet.
+
+
+
+ +

+processPacket

+
+protected void processPacket(Packet packet)
+
+
Processes a packet to see if it meets the criteria for this packet collector. + If so, the packet is added to the result queue. +

+

+
Parameters:
packet - the packet to process.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/PacketInterceptor.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/PacketInterceptor.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/PacketInterceptor.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,225 @@ + + + + + + +PacketInterceptor (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Interface PacketInterceptor

+
+
All Known Implementing Classes:
DeafOccupantInterceptor
+
+
+
+
public interface PacketInterceptor
+ + +

+Provides a mechanism to intercept and modify packets that are going to be + sent to the server. PacketInterceptors are added to the XMPPConnection + together with a PacketFilter so that only + certain packets are intercepted and processed by the interceptor.

+ + This allows event-style programming -- every time a new packet is found, + the interceptPacket(Packet) method will be called. +

+ +

+

+
Author:
+
Gaston Dombiak
+
See Also:
XMPPConnection.addPacketWriterInterceptor(PacketInterceptor, org.jivesoftware.smack.filter.PacketFilter)
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidinterceptPacket(Packet packet) + +
+          Process the packet that is about to be sent to the server.
+  +

+ + + + + + + + +
+Method Detail
+ +

+interceptPacket

+
+void interceptPacket(Packet packet)
+
+
Process the packet that is about to be sent to the server. The intercepted + packet can be modified by the interceptor.

+ + Interceptors are invoked using the same thread that requested the packet + to be sent, so it's very important that implementations of this method + not block for any extended period of time. +

+

+
Parameters:
packet - the packet to is going to be sent to the server.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/PacketListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/PacketListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/PacketListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,219 @@ + + + + + + +PacketListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Interface PacketListener

+
+
+
public interface PacketListener
+ + +

+Provides a mechanism to listen for packets that pass a specified filter. + This allows event-style programming -- every time a new packet is found, + the processPacket(Packet) method will be called. This is the + opposite approach to the functionality provided by a PacketCollector + which lets you block while waiting for results. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
XMPPConnection.addPacketListener(PacketListener, org.jivesoftware.smack.filter.PacketFilter)
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidprocessPacket(Packet packet) + +
+          Process the next packet sent to this packet listener.
+  +

+ + + + + + + + +
+Method Detail
+ +

+processPacket

+
+void processPacket(Packet packet)
+
+
Process the next packet sent to this packet listener.

+ + A single thread is responsible for invoking all listeners, so + it's very important that implementations of this method not block + for any extended period of time. +

+

+
Parameters:
packet - the packet to process.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/Roster.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/Roster.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/Roster.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,845 @@ + + + + + + +Roster (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class Roster

+
+java.lang.Object
+  extended by org.jivesoftware.smack.Roster
+
+
+
+
public class Roster
extends Object
+ + +

+Represents a user's roster, which is the collection of users a person receives + presence updates for. Roster items are categorized into groups for easier management.

+ + Others users may attempt to subscribe to this user using a subscription request. Three + modes are supported for handling these requests:

+

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
XMPPConnection.getRoster()
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+static intSUBSCRIPTION_ACCEPT_ALL + +
+          Automatically accept all subscription and unsubscription requests.
+static intSUBSCRIPTION_MANUAL + +
+          Subscription requests are ignored, which means they must be manually + processed by registering a listener for presence packets and then looking + for any presence requests that have the type Presence.Type.SUBSCRIBE or + Presence.Type.UNSUBSCRIBE.
+static intSUBSCRIPTION_REJECT_ALL + +
+          Automatically reject all subscription requests.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddRosterListener(RosterListener rosterListener) + +
+          Adds a listener to this roster.
+ booleancontains(String user) + +
+          Returns true if the specified XMPP address is an entry in the roster.
+ voidcreateEntry(String user, + String name, + String[] groups) + +
+          Creates a new roster entry and presence subscription.
+ RosterGroupcreateGroup(String name) + +
+          Creates a new group.
+static intgetDefaultSubscriptionMode() + +
+          Returns the default subscription processing mode to use when a new Roster is created.
+ IteratorgetEntries() + +
+          Returns all entries in the roster, including entries that don't belong to + any groups.
+ RosterEntrygetEntry(String user) + +
+          Returns the roster entry associated with the given XMPP address or + null if the user is not an entry in the roster.
+ intgetEntryCount() + +
+          Returns a count of the entries in the roster.
+ RosterGroupgetGroup(String name) + +
+          Returns the roster group with the specified name, or null if the + group doesn't exist.
+ intgetGroupCount() + +
+          Returns the number of the groups in the roster.
+ IteratorgetGroups() + +
+          Returns an iterator the for all the roster groups.
+ PresencegetPresence(String user) + +
+          Returns the presence info for a particular user, or null if the user + is unavailable (offline) or if no presence information is available, such as + when you are not subscribed to the user's presence updates.
+ PresencegetPresenceResource(String userResource) + +
+          Returns the presence info for a particular user's resource, or null if the user + is unavailable (offline) or if no presence information is available, such as + when you are not subscribed to the user's presence updates.
+ IteratorgetPresences(String user) + +
+          Returns an iterator (of Presence objects) for all the user's current presences + or null if the user is unavailable (offline) or if no presence information + is available, such as when you are not subscribed to the user's presence updates.
+ intgetSubscriptionMode() + +
+          Returns the subscription processing mode, which dictates what action + Smack will take when subscription requests from other users are made.
+ IteratorgetUnfiledEntries() + +
+          Returns an Iterator for the unfiled roster entries.
+ intgetUnfiledEntryCount() + +
+          Returns a count of the unfiled entries in the roster.
+ voidreload() + +
+          Reloads the entire roster from the server.
+ voidremoveEntry(RosterEntry entry) + +
+          Removes a roster entry from the roster.
+ voidremoveRosterListener(RosterListener rosterListener) + +
+          Removes a listener from this roster.
+static voidsetDefaultSubscriptionMode(int subscriptionMode) + +
+          Sets the default subscription processing mode to use when a new Roster is created.
+ voidsetSubscriptionMode(int subscriptionMode) + +
+          Sets the subscription processing mode, which dictates what action + Smack will take when subscription requests from other users are made.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+SUBSCRIPTION_ACCEPT_ALL

+
+public static final int SUBSCRIPTION_ACCEPT_ALL
+
+
Automatically accept all subscription and unsubscription requests. This is + the default mode and is suitable for simple client. More complex client will + likely wish to handle subscription requests manually. +

+

+
See Also:
Constant Field Values
+
+
+ +

+SUBSCRIPTION_REJECT_ALL

+
+public static final int SUBSCRIPTION_REJECT_ALL
+
+
Automatically reject all subscription requests. +

+

+
See Also:
Constant Field Values
+
+
+ +

+SUBSCRIPTION_MANUAL

+
+public static final int SUBSCRIPTION_MANUAL
+
+
Subscription requests are ignored, which means they must be manually + processed by registering a listener for presence packets and then looking + for any presence requests that have the type Presence.Type.SUBSCRIBE or + Presence.Type.UNSUBSCRIBE. +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Method Detail
+ +

+getDefaultSubscriptionMode

+
+public static int getDefaultSubscriptionMode()
+
+
Returns the default subscription processing mode to use when a new Roster is created. The + subscription processing mode dictates what action Smack will take when subscription + requests from other users are made. The default subscription mode + is SUBSCRIPTION_ACCEPT_ALL. +

+

+ +
Returns:
the default subscription mode to use for new Rosters
+
+
+
+ +

+setDefaultSubscriptionMode

+
+public static void setDefaultSubscriptionMode(int subscriptionMode)
+
+
Sets the default subscription processing mode to use when a new Roster is created. The + subscription processing mode dictates what action Smack will take when subscription + requests from other users are made. The default subscription mode + is SUBSCRIPTION_ACCEPT_ALL. +

+

+
Parameters:
subscriptionMode - the default subscription mode to use for new Rosters.
+
+
+
+ +

+getSubscriptionMode

+
+public int getSubscriptionMode()
+
+
Returns the subscription processing mode, which dictates what action + Smack will take when subscription requests from other users are made. + The default subscription mode is SUBSCRIPTION_ACCEPT_ALL.

+ + If using the manual mode, a PacketListener should be registered that + listens for Presence packets that have a type of + Presence.Type.SUBSCRIBE. +

+

+ +
Returns:
the subscription mode.
+
+
+
+ +

+setSubscriptionMode

+
+public void setSubscriptionMode(int subscriptionMode)
+
+
Sets the subscription processing mode, which dictates what action + Smack will take when subscription requests from other users are made. + The default subscription mode is SUBSCRIPTION_ACCEPT_ALL.

+ + If using the manual mode, a PacketListener should be registered that + listens for Presence packets that have a type of + Presence.Type.SUBSCRIBE. +

+

+
Parameters:
subscriptionMode - the subscription mode.
+
+
+
+ +

+reload

+
+public void reload()
+
+
Reloads the entire roster from the server. This is an asynchronous operation, + which means the method will return immediately, and the roster will be + reloaded at a later point when the server responds to the reload request. +

+

+
+
+
+
+ +

+addRosterListener

+
+public void addRosterListener(RosterListener rosterListener)
+
+
Adds a listener to this roster. The listener will be fired anytime one or more + changes to the roster are pushed from the server. +

+

+
Parameters:
rosterListener - a roster listener.
+
+
+
+ +

+removeRosterListener

+
+public void removeRosterListener(RosterListener rosterListener)
+
+
Removes a listener from this roster. The listener will be fired anytime one or more + changes to the roster are pushed from the server. +

+

+
Parameters:
rosterListener - a roster listener.
+
+
+
+ +

+createGroup

+
+public RosterGroup createGroup(String name)
+
+
Creates a new group.

+ + Note: you must add at least one entry to the group for the group to be kept + after a logout/login. This is due to the way that XMPP stores group information. +

+

+
Parameters:
name - the name of the group. +
Returns:
a new group.
+
+
+
+ +

+createEntry

+
+public void createEntry(String user,
+                        String name,
+                        String[] groups)
+                 throws XMPPException
+
+
Creates a new roster entry and presence subscription. The server will asynchronously + update the roster with the subscription status. +

+

+
Parameters:
user - the user. (e.g. johndoe@jabber.org)
name - the nickname of the user.
groups - the list of group names the entry will belong to, or null if the + the roster entry won't belong to a group. +
Throws: +
XMPPException
+
+
+
+ +

+removeEntry

+
+public void removeEntry(RosterEntry entry)
+                 throws XMPPException
+
+
Removes a roster entry from the roster. The roster entry will also be removed from the + unfiled entries or from any roster group where it could belong and will no longer be part + of the roster. Note that this is an asynchronous call -- Smack must wait for the server + to send an updated subscription status. +

+

+
Parameters:
entry - a roster entry. +
Throws: +
XMPPException
+
+
+
+ +

+getEntryCount

+
+public int getEntryCount()
+
+
Returns a count of the entries in the roster. +

+

+ +
Returns:
the number of entries in the roster.
+
+
+
+ +

+getEntries

+
+public Iterator getEntries()
+
+
Returns all entries in the roster, including entries that don't belong to + any groups. +

+

+ +
Returns:
all entries in the roster.
+
+
+
+ +

+getUnfiledEntryCount

+
+public int getUnfiledEntryCount()
+
+
Returns a count of the unfiled entries in the roster. An unfiled entry is + an entry that doesn't belong to any groups. +

+

+ +
Returns:
the number of unfiled entries in the roster.
+
+
+
+ +

+getUnfiledEntries

+
+public Iterator getUnfiledEntries()
+
+
Returns an Iterator for the unfiled roster entries. An unfiled entry is + an entry that doesn't belong to any groups. +

+

+ +
Returns:
an iterator the unfiled roster entries.
+
+
+
+ +

+getEntry

+
+public RosterEntry getEntry(String user)
+
+
Returns the roster entry associated with the given XMPP address or + null if the user is not an entry in the roster. +

+

+
Parameters:
user - the XMPP address of the user (eg "jsmith@example.com"). The address could be + in any valid format (e.g. "domain/resource", "user@domain" or "user@domain/resource"). +
Returns:
the roster entry or null if it does not exist.
+
+
+
+ +

+contains

+
+public boolean contains(String user)
+
+
Returns true if the specified XMPP address is an entry in the roster. +

+

+
Parameters:
user - the XMPP address of the user (eg "jsmith@example.com"). The address could be + in any valid format (e.g. "domain/resource", "user@domain" or "user@domain/resource"). +
Returns:
true if the XMPP address is an entry in the roster.
+
+
+
+ +

+getGroup

+
+public RosterGroup getGroup(String name)
+
+
Returns the roster group with the specified name, or null if the + group doesn't exist. +

+

+
Parameters:
name - the name of the group. +
Returns:
the roster group with the specified name.
+
+
+
+ +

+getGroupCount

+
+public int getGroupCount()
+
+
Returns the number of the groups in the roster. +

+

+ +
Returns:
the number of groups in the roster.
+
+
+
+ +

+getGroups

+
+public Iterator getGroups()
+
+
Returns an iterator the for all the roster groups. +

+

+ +
Returns:
an iterator for all roster groups.
+
+
+
+ +

+getPresence

+
+public Presence getPresence(String user)
+
+
Returns the presence info for a particular user, or null if the user + is unavailable (offline) or if no presence information is available, such as + when you are not subscribed to the user's presence updates.

+ + If the user has several presences (one for each resource) then answer the presence + with the highest priority. +

+

+
Parameters:
user - a fully qualified xmpp ID. The address could be in any valid format (e.g. + "domain/resource", "user@domain" or "user@domain/resource"). +
Returns:
the user's current presence, or null if the user is unavailable + or if no presence information is available..
+
+
+
+ +

+getPresenceResource

+
+public Presence getPresenceResource(String userResource)
+
+
Returns the presence info for a particular user's resource, or null if the user + is unavailable (offline) or if no presence information is available, such as + when you are not subscribed to the user's presence updates. +

+

+
Parameters:
userResource - a fully qualified xmpp ID including a resource. +
Returns:
the user's current presence, or null if the user is unavailable + or if no presence information is available.
+
+
+
+ +

+getPresences

+
+public Iterator getPresences(String user)
+
+
Returns an iterator (of Presence objects) for all the user's current presences + or null if the user is unavailable (offline) or if no presence information + is available, such as when you are not subscribed to the user's presence updates. +

+

+
Parameters:
user - a fully qualified xmpp ID, e.g. jdoe@example.com +
Returns:
an iterator (of Presence objects) for all the user's current presences, + or null if the user is unavailable or if no presence information + is available.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/RosterEntry.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/RosterEntry.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/RosterEntry.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,384 @@ + + + + + + +RosterEntry (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class RosterEntry

+
+java.lang.Object
+  extended by org.jivesoftware.smack.RosterEntry
+
+
+
+
public class RosterEntry
extends Object
+ + +

+Each user in your roster is represented by a roster entry, which contains the user's + JID and a name or nickname you assign. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object object) + +
+           
+ IteratorgetGroups() + +
+          Returns an iterator for all the roster groups that this entry belongs to.
+ StringgetName() + +
+          Returns the name associated with this entry.
+ RosterPacket.ItemStatusgetStatus() + +
+          Returns the roster subscription status of the entry.
+ RosterPacket.ItemTypegetType() + +
+          Returns the roster subscription type of the entry.
+ StringgetUser() + +
+          Returns the JID of the user associated with this entry.
+ voidsetName(String name) + +
+          Sets the name associated with this entry.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getUser

+
+public String getUser()
+
+
Returns the JID of the user associated with this entry. +

+

+ +
Returns:
the user associated with this entry.
+
+
+
+ +

+getName

+
+public String getName()
+
+
Returns the name associated with this entry. +

+

+ +
Returns:
the name.
+
+
+
+ +

+setName

+
+public void setName(String name)
+
+
Sets the name associated with this entry. +

+

+
Parameters:
name - the name.
+
+
+
+ +

+getGroups

+
+public Iterator getGroups()
+
+
Returns an iterator for all the roster groups that this entry belongs to. +

+

+ +
Returns:
an iterator for the groups this entry belongs to.
+
+
+
+ +

+getType

+
+public RosterPacket.ItemType getType()
+
+
Returns the roster subscription type of the entry. When the type is + RosterPacket.ItemType#NONE or RosterPacket.ItemType#FROM, + refer to getStatus() to see if a subscription request + is pending. +

+

+ +
Returns:
the type.
+
+
+
+ +

+getStatus

+
+public RosterPacket.ItemStatus getStatus()
+
+
Returns the roster subscription status of the entry. When the status is + RosterPacket.ItemStatus.SUBSCRIPTION_PENDING, the contact has to answer the + subscription request. +

+

+ +
Returns:
the status.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object object)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/RosterGroup.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/RosterGroup.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/RosterGroup.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,412 @@ + + + + + + +RosterGroup (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class RosterGroup

+
+java.lang.Object
+  extended by org.jivesoftware.smack.RosterGroup
+
+
+
+
public class RosterGroup
extends Object
+ + +

+A group of roster entries. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
Roster.getGroup(String)
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddEntry(RosterEntry entry) + +
+          Adds a roster entry to this group.
+ booleancontains(RosterEntry entry) + +
+          Returns true if the specified entry is part of this group.
+ booleancontains(String user) + +
+          Returns true if the specified XMPP address is an entry in this group.
+ IteratorgetEntries() + +
+          Returns an iterator for the entries in the group.
+ RosterEntrygetEntry(String user) + +
+          Returns the roster entry associated with the given XMPP address or + null if the user is not an entry in the group.
+ intgetEntryCount() + +
+          Returns the number of entries in the group.
+ StringgetName() + +
+          Returns the name of the group.
+ voidremoveEntry(RosterEntry entry) + +
+          Removes a roster entry from this group.
+ voidsetName(String name) + +
+          Sets the name of the group.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
Returns the name of the group. +

+

+ +
Returns:
the name of the group.
+
+
+
+ +

+setName

+
+public void setName(String name)
+
+
Sets the name of the group. Changing the group's name is like moving all the group entries + of the group to a new group specified by the new name. Since this group won't have entries + it will be removed from the roster. This means that all the references to this object will + be invalid and will need to be updated to the new group specified by the new name. +

+

+
Parameters:
name - the name of the group.
+
+
+
+ +

+getEntryCount

+
+public int getEntryCount()
+
+
Returns the number of entries in the group. +

+

+ +
Returns:
the number of entries in the group.
+
+
+
+ +

+getEntries

+
+public Iterator getEntries()
+
+
Returns an iterator for the entries in the group. +

+

+ +
Returns:
an iterator for the entries in the group.
+
+
+
+ +

+getEntry

+
+public RosterEntry getEntry(String user)
+
+
Returns the roster entry associated with the given XMPP address or + null if the user is not an entry in the group. +

+

+
Parameters:
user - the XMPP address of the user (eg "jsmith@example.com"). +
Returns:
the roster entry or null if it does not exist in the group.
+
+
+
+ +

+contains

+
+public boolean contains(RosterEntry entry)
+
+
Returns true if the specified entry is part of this group. +

+

+
Parameters:
entry - a roster entry. +
Returns:
true if the entry is part of this group.
+
+
+
+ +

+contains

+
+public boolean contains(String user)
+
+
Returns true if the specified XMPP address is an entry in this group. +

+

+
Parameters:
user - the XMPP address of the user. +
Returns:
true if the XMPP address is an entry in this group.
+
+
+
+ +

+addEntry

+
+public void addEntry(RosterEntry entry)
+              throws XMPPException
+
+
Adds a roster entry to this group. If the entry was unfiled then it will be removed from + the unfiled list and will be added to this group. +

+

+
Parameters:
entry - a roster entry. +
Throws: +
XMPPException - if an error occured while trying to add the entry to the group.
+
+
+
+ +

+removeEntry

+
+public void removeEntry(RosterEntry entry)
+                 throws XMPPException
+
+
Removes a roster entry from this group. If the entry does not belong to any other group + then it will be considered as unfiled, therefore it will be added to the list of unfiled + entries. +

+

+
Parameters:
entry - a roster entry. +
Throws: +
XMPPException - if an error occured while trying to remove the entry from the group.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/RosterListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/RosterListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/RosterListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,276 @@ + + + + + + +RosterListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Interface RosterListener

+
+
+
public interface RosterListener
+ + +

+A listener that is fired any time a roster is changed or the presence of + a user in the roster is changed. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidentriesAdded(Collection addresses) + +
+          Called when roster entries are added.
+ voidentriesDeleted(Collection addresses) + +
+          Called when a roster entries are removed.
+ voidentriesUpdated(Collection addresses) + +
+          Called when a roster entries are updated.
+ voidpresenceChanged(String XMPPAddress) + +
+          Called when the presence of a roster entry is changed.
+  +

+ + + + + + + + +
+Method Detail
+ +

+entriesAdded

+
+void entriesAdded(Collection addresses)
+
+
Called when roster entries are added. +

+

+
Parameters:
addresses - the XMPP addresses of the contacts that have been added to the roster.
+
+
+
+ +

+entriesUpdated

+
+void entriesUpdated(Collection addresses)
+
+
Called when a roster entries are updated. +

+

+
Parameters:
addresses - the XMPP addresses of the contacts whose entries have been updated.
+
+
+
+ +

+entriesDeleted

+
+void entriesDeleted(Collection addresses)
+
+
Called when a roster entries are removed. +

+

+
Parameters:
addresses - the XMPP addresses of the contacts that have been removed from the roster.
+
+
+
+ +

+presenceChanged

+
+void presenceChanged(String XMPPAddress)
+
+
Called when the presence of a roster entry is changed. +

+

+
Parameters:
XMPPAddress - the XMPP address of the user who's presence has changed, + including the resource.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/SASLAuthentication.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/SASLAuthentication.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/SASLAuthentication.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,476 @@ + + + + + + +SASLAuthentication (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class SASLAuthentication

+
+java.lang.Object
+  extended by org.jivesoftware.smack.SASLAuthentication
+
+
+
+
public class SASLAuthentication
extends Object
+ + +

+This class is responsible authenticating the user using SASL, binding the resource + to the connection and establishing a session with the server.

+ + Once TLS has been negotiated (i.e. the connection has been secured) it is possible to + register with the server, authenticate using Non-SASL or authenticate using SASL. If the + server supports SASL then Smack will first try to authenticate using SASL. But if that + fails then Non-SASL will be tried.

+ + The server may support many SASL mechanisms to use for authenticating. Out of the box + Smack provides SASL PLAIN but it is possible to register new SASL Mechanisms. Use + registerSASLMechanism(int, String, Class) to add new mechanisms. See + SASLMechanism.

+ + Once the user has been authenticated with SASL, it is necessary to bind a resource for + the connection. If no resource is passed in authenticate(String, String, String) + then the server will assign a resource for the connection. In case a resource is passed + then the server will receive the desired resource but may assign a modified resource for + the connection.

+ + Once a resource has been binded and if the server supports sessions then Smack will establish + a session so that instant messaging and presence functionalities may be used. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Stringauthenticate(String username, + String password, + String resource) + +
+          Performs SASL authentication of the specified user.
+ StringauthenticateAnonymously() + +
+          Performs ANONYMOUS SASL authentication.
+static ListgetRegisterSASLMechanisms() + +
+          Returns the registerd SASLMechanism classes sorted by the level of preference.
+ booleanhasAnonymousAuthentication() + +
+          Returns true if the server offered ANONYMOUS SASL as a way to authenticate users.
+ booleanhasNonAnonymousAuthentication() + +
+          Returns true if the server offered SASL authentication besides ANONYMOUS SASL.
+ booleanisAuthenticated() + +
+          Returns true if the user was able to authenticate with the server usins SASL.
+static voidregisterSASLMechanism(int index, + String name, + Class mClass) + +
+          Registers a new SASL mechanism in the specified preference position.
+ voidsend(String stanza) + +
+           
+static voidunregisterSASLMechanism(String name) + +
+          Unregisters an existing SASL mechanism.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+registerSASLMechanism

+
+public static void registerSASLMechanism(int index,
+                                         String name,
+                                         Class mClass)
+
+
Registers a new SASL mechanism in the specified preference position. The client will try + to authenticate using the most prefered SASL mechanism that is also supported by the server. +

+

+ Use the index parameter to set the level of preference of the new SASL mechanism. + A value of 0 means that the mechanism is the most prefered one. +

+

+
+
+
+
Parameters:
index - preference position amongst all the implemented SASL mechanism. Starts with 0.
name - common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or KERBEROS_V4.
mClass - a SASLMechanism subclass.
+
+
+
+ +

+unregisterSASLMechanism

+
+public static void unregisterSASLMechanism(String name)
+
+
Unregisters an existing SASL mechanism. Once the mechanism has been unregistered it won't + be possible to authenticate users using the removed SASL mechanism. +

+

+
+
+
+
Parameters:
name - common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or KERBEROS_V4.
+
+
+
+ +

+getRegisterSASLMechanisms

+
+public static List getRegisterSASLMechanisms()
+
+
Returns the registerd SASLMechanism classes sorted by the level of preference. +

+

+
+
+
+ +
Returns:
the registerd SASLMechanism classes sorted by the level of preference.
+
+
+
+ +

+hasAnonymousAuthentication

+
+public boolean hasAnonymousAuthentication()
+
+
Returns true if the server offered ANONYMOUS SASL as a way to authenticate users. +

+

+
+
+
+ +
Returns:
true if the server offered ANONYMOUS SASL as a way to authenticate users.
+
+
+
+ +

+hasNonAnonymousAuthentication

+
+public boolean hasNonAnonymousAuthentication()
+
+
Returns true if the server offered SASL authentication besides ANONYMOUS SASL. +

+

+
+
+
+ +
Returns:
true if the server offered SASL authentication besides ANONYMOUS SASL.
+
+
+
+ +

+authenticate

+
+public String authenticate(String username,
+                           String password,
+                           String resource)
+                    throws XMPPException
+
+
Performs SASL authentication of the specified user. If SASL authentication was successful + then resource binding and session establishment will be performed. This method will return + the full JID provided by the server while binding a resource to the connection.

+ + The server may assign a full JID with a username or resource different than the requested + by this method. +

+

+
+
+
+
Parameters:
username - the username that is authenticating with the server.
password - the password to send to the server.
resource - the desired resource. +
Returns:
the full JID provided by the server while binding a resource to the connection. +
Throws: +
XMPPException - if an error occures while authenticating.
+
+
+
+ +

+authenticateAnonymously

+
+public String authenticateAnonymously()
+                               throws XMPPException
+
+
Performs ANONYMOUS SASL authentication. If SASL authentication was successful + then resource binding and session establishment will be performed. This method will return + the full JID provided by the server while binding a resource to the connection.

+ + The server will assign a full JID with a randomly generated resource and possibly with + no username. +

+

+
+
+
+ +
Returns:
the full JID provided by the server while binding a resource to the connection. +
Throws: +
XMPPException - if an error occures while authenticating.
+
+
+
+ +

+isAuthenticated

+
+public boolean isAuthenticated()
+
+
Returns true if the user was able to authenticate with the server usins SASL. +

+

+
+
+
+ +
Returns:
true if the user was able to authenticate with the server usins SASL.
+
+
+
+ +

+send

+
+public void send(String stanza)
+          throws IOException
+
+
+
+
+
+ +
Throws: +
IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/SSLXMPPConnection.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/SSLXMPPConnection.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/SSLXMPPConnection.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,368 @@ + + + + + + +SSLXMPPConnection (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class SSLXMPPConnection

+
+java.lang.Object
+  extended by org.jivesoftware.smack.XMPPConnection
+      extended by org.jivesoftware.smack.SSLXMPPConnection
+
+
+
+
public class SSLXMPPConnection
extends XMPPConnection
+ + +

+Creates an SSL connection to a XMPP server using the legacy dedicated SSL port + mechanism. Fully compliant XMPP 1.0 servers (e.g. Wildfire 2.4.0) do not + require using a dedicated SSL port. Instead, TLS (a standardized version of SSL 3.0) + is dynamically negotiated over the standard XMPP port. Therefore, only use this + class to connect to an XMPP server if you know that the server does not support + XMPP 1.0 TLS connections. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.XMPPConnection
DEBUG_ENABLED
+  + + + + + + + + + + + + + + + + +
+Constructor Summary
SSLXMPPConnection(String host) + +
+          Creates a new SSL connection to the specified host on the default + SSL port (5223).
SSLXMPPConnection(String host, + int port) + +
+          Creates a new SSL connection to the specified host on the specified port.
SSLXMPPConnection(String host, + int port, + String serviceName) + +
+          Creates a new SSL connection to the specified XMPP server on the given host and port.
+  + + + + + + + + + + + +
+Method Summary
+ booleanisSecureConnection() + +
+          Returns true if the connection is a secured one, such as an SSL connection or + if TLS was negotiated successfully.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.XMPPConnection
addConnectionListener, addConnectionListener, addPacketListener, addPacketWriterInterceptor, addPacketWriterListener, close, createChat, createGroupChat, createPacketCollector, getAccountManager, getConnectionID, getHost, getPort, getRoster, getSASLAuthentication, getServiceName, getUser, isAnonymous, isAuthenticated, isConnected, isUsingCompression, isUsingTLS, login, login, login, loginAnonymously, removeConnectionListener, removeConnectionListener, removePacketListener, removePacketWriterInterceptor, removePacketWriterListener, sendPacket
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SSLXMPPConnection

+
+public SSLXMPPConnection(String host)
+                  throws XMPPException
+
+
Creates a new SSL connection to the specified host on the default + SSL port (5223). The IP address of the server is assumed to match the + service name. +

+

+
Parameters:
host - the XMPP host. +
Throws: +
XMPPException - if an error occurs while trying to establish the connection. + Two possible errors can occur which will be wrapped by an XMPPException -- + UnknownHostException (XMPP error code 504), and IOException (XMPP error code + 502). The error codes and wrapped exceptions can be used to present more + appropiate error messages to end-users.
+
+
+ +

+SSLXMPPConnection

+
+public SSLXMPPConnection(String host,
+                         int port)
+                  throws XMPPException
+
+
Creates a new SSL connection to the specified host on the specified port. The IP address + of the server is assumed to match the service name. +

+

+
Parameters:
host - the XMPP host.
port - the port to use for the connection (default XMPP SSL port is 5223). +
Throws: +
XMPPException - if an error occurs while trying to establish the connection. + Two possible errors can occur which will be wrapped by an XMPPException -- + UnknownHostException (XMPP error code 504), and IOException (XMPP error code + 502). The error codes and wrapped exceptions can be used to present more + appropiate error messages to end-users.
+
+
+ +

+SSLXMPPConnection

+
+public SSLXMPPConnection(String host,
+                         int port,
+                         String serviceName)
+                  throws XMPPException
+
+
Creates a new SSL connection to the specified XMPP server on the given host and port. +

+

+
Parameters:
host - the host name, or null for the loopback address.
port - the port on the server that should be used (default XMPP SSL port is 5223).
serviceName - the name of the XMPP server to connect to; e.g. jivesoftware.com. +
Throws: +
XMPPException - if an error occurs while trying to establish the connection. + Two possible errors can occur which will be wrapped by an XMPPException -- + UnknownHostException (XMPP error code 504), and IOException (XMPP error code + 502). The error codes and wrapped exceptions can be used to present more + appropiate error messages to end-users.
+
+ + + + + + + + +
+Method Detail
+ +

+isSecureConnection

+
+public boolean isSecureConnection()
+
+
Description copied from class: XMPPConnection
+
Returns true if the connection is a secured one, such as an SSL connection or + if TLS was negotiated successfully. +

+

+
Overrides:
isSecureConnection in class XMPPConnection
+
+
+ +
Returns:
true if a secure connection to the server.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/SmackConfiguration.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/SmackConfiguration.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/SmackConfiguration.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,333 @@ + + + + + + +SmackConfiguration (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class SmackConfiguration

+
+java.lang.Object
+  extended by org.jivesoftware.smack.SmackConfiguration
+
+
+
+
public final class SmackConfiguration
extends Object
+ + +

+Represents the configuration of Smack. The configuration is used for: +

+ + Configuration settings are stored in META-INF/smack-config.xml (typically inside the + smack.jar file). +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static intgetKeepAliveInterval() + +
+          Returns the number of milleseconds delay between sending keep-alive + requests to the server.
+static intgetPacketReplyTimeout() + +
+          Returns the number of milliseconds to wait for a response from + the server.
+static StringgetVersion() + +
+          Returns the Smack version information, eg "1.3.0".
+static voidsetKeepAliveInterval(int interval) + +
+          Sets the number of milleseconds delay between sending keep-alive + requests to the server.
+static voidsetPacketReplyTimeout(int timeout) + +
+          Sets the number of milliseconds to wait for a response from + the server.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getVersion

+
+public static String getVersion()
+
+
Returns the Smack version information, eg "1.3.0". +

+

+ +
Returns:
the Smack version information.
+
+
+
+ +

+getPacketReplyTimeout

+
+public static int getPacketReplyTimeout()
+
+
Returns the number of milliseconds to wait for a response from + the server. The default value is 5000 ms. +

+

+ +
Returns:
the milliseconds to wait for a response from the server
+
+
+
+ +

+setPacketReplyTimeout

+
+public static void setPacketReplyTimeout(int timeout)
+
+
Sets the number of milliseconds to wait for a response from + the server. +

+

+
Parameters:
timeout - the milliseconds to wait for a response from the server
+
+
+
+ +

+getKeepAliveInterval

+
+public static int getKeepAliveInterval()
+
+
Returns the number of milleseconds delay between sending keep-alive + requests to the server. The default value is 30000 ms. A value of -1 + mean no keep-alive requests will be sent to the server. +

+

+ +
Returns:
the milliseconds to wait between keep-alive requests, or -1 if + no keep-alive should be sent.
+
+
+
+ +

+setKeepAliveInterval

+
+public static void setKeepAliveInterval(int interval)
+
+
Sets the number of milleseconds delay between sending keep-alive + requests to the server. The default value is 30000 ms. A value of -1 + mean no keep-alive requests will be sent to the server. +

+

+
Parameters:
interval - the milliseconds to wait between keep-alive requests, + or -1 if no keep-alive should be sent.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/XMPPConnection.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/XMPPConnection.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/XMPPConnection.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,1256 @@ + + + + + + +XMPPConnection (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class XMPPConnection

+
+java.lang.Object
+  extended by org.jivesoftware.smack.XMPPConnection
+
+
+
Direct Known Subclasses:
GoogleTalkConnection, SSLXMPPConnection
+
+
+
+
public class XMPPConnection
extends Object
+ + +

+Creates a connection to a XMPP server. A simple use of this API might + look like the following: +

+ // Create a connection to the jivesoftware.com XMPP server.
+ XMPPConnection con = new XMPPConnection("jivesoftware.com");
+ // Most servers require you to login before performing other tasks.
+ con.login("jsmith", "mypass");
+ // Start a new conversation with John Doe and send him a message.
+ Chat chat = con.createChat("jdoe@jabber.org");
+ chat.sendMessage("Hey, how's it going?");
+ 
+

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static booleanDEBUG_ENABLED + +
+          Value that indicates whether debugging is enabled.
+  + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
XMPPConnection(ConnectionConfiguration config) + +
+           
XMPPConnection(ConnectionConfiguration config, + javax.net.SocketFactory socketFactory) + +
+           
XMPPConnection(String serviceName) + +
+          Creates a new connection to the specified XMPP server.
XMPPConnection(String host, + int port) + +
+          Creates a new connection to the XMPP server at the specifiec host and port.
XMPPConnection(String host, + int port, + String serviceName) + +
+          Creates a new connection to the specified XMPP server on the given host and port.
XMPPConnection(String host, + int port, + String serviceName, + javax.net.SocketFactory socketFactory) + +
+          Creates a new connection to the specified XMPP server on the given port using the + specified SocketFactory.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddConnectionListener(ConnectionEstablishedListener connectionEstablishedListener) + +
+          Adds a connection established listener that will be notified when a new connection + is established.
+ voidaddConnectionListener(ConnectionListener connectionListener) + +
+          Adds a connection listener to this connection that will be notified when + the connection closes or fails.
+ voidaddPacketListener(PacketListener packetListener, + PacketFilter packetFilter) + +
+          Registers a packet listener with this connection.
+ voidaddPacketWriterInterceptor(PacketInterceptor packetInterceptor, + PacketFilter packetFilter) + +
+          Registers a packet interceptor with this connection.
+ voidaddPacketWriterListener(PacketListener packetListener, + PacketFilter packetFilter) + +
+          Registers a packet listener with this connection.
+ voidclose() + +
+          Closes the connection by setting presence to unavailable then closing the stream to + the XMPP server.
+ ChatcreateChat(String participant) + +
+          Creates a new chat with the specified participant.
+ GroupChatcreateGroupChat(String room) + +
+          Creates a new group chat connected to the specified room.
+ PacketCollectorcreatePacketCollector(PacketFilter packetFilter) + +
+          Creates a new packet collector for this connection.
+ AccountManagergetAccountManager() + +
+          Returns an account manager instance for this connection.
+ StringgetConnectionID() + +
+          Returns the connection ID for this connection, which is the value set by the server + when opening a XMPP stream.
+ StringgetHost() + +
+          Returns the host name of the server where the XMPP server is running.
+ intgetPort() + +
+          Returns the port number of the XMPP server for this connection.
+ RostergetRoster() + +
+          Returns the roster for the user logged into the server.
+ SASLAuthenticationgetSASLAuthentication() + +
+          Returns the SASLAuthentication manager that is responsible for authenticating with + the server.
+ StringgetServiceName() + +
+          Returns the name of the service provided by the XMPP server for this connection.
+ StringgetUser() + +
+          Returns the full XMPP address of the user that is logged in to the connection or + null if not logged in yet.
+ booleanisAnonymous() + +
+          Returns true if currently authenticated anonymously.
+ booleanisAuthenticated() + +
+          Returns true if currently authenticated by successfully calling the login method.
+ booleanisConnected() + +
+          Returns true if currently connected to the XMPP server.
+ booleanisSecureConnection() + +
+          Returns true if the connection is a secured one, such as an SSL connection or + if TLS was negotiated successfully.
+ booleanisUsingCompression() + +
+          Returns true if network traffic is being compressed.
+ booleanisUsingTLS() + +
+          Returns true if the connection to the server has successfully negotiated TLS.
+ voidlogin(String username, + String password) + +
+          Logs in to the server using the strongest authentication mode supported by + the server, then set our presence to available.
+ voidlogin(String username, + String password, + String resource) + +
+          Logs in to the server using the strongest authentication mode supported by + the server, then sets presence to available.
+ voidlogin(String username, + String password, + String resource, + boolean sendPresence) + +
+          Logs in to the server using the strongest authentication mode supported by + the server.
+ voidloginAnonymously() + +
+          Logs in to the server anonymously.
+static voidremoveConnectionListener(ConnectionEstablishedListener connectionEstablishedListener) + +
+          Removes a listener on new established connections.
+ voidremoveConnectionListener(ConnectionListener connectionListener) + +
+          Removes a connection listener from this connection.
+ voidremovePacketListener(PacketListener packetListener) + +
+          Removes a packet listener from this connection.
+ voidremovePacketWriterInterceptor(PacketInterceptor packetInterceptor) + +
+          Removes a packet interceptor.
+ voidremovePacketWriterListener(PacketListener packetListener) + +
+          Removes a packet listener from this connection.
+ voidsendPacket(Packet packet) + +
+          Sends the specified packet to the server.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+DEBUG_ENABLED

+
+public static boolean DEBUG_ENABLED
+
+
Value that indicates whether debugging is enabled. When enabled, a debug + window will apear for each new connection that will contain the following + information: + + Debugging can be enabled by setting this field to true, or by setting the Java system + property smack.debugEnabled to true. The system property can be set on the + command line such as "java SomeApp -Dsmack.debugEnabled=true". +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+XMPPConnection

+
+public XMPPConnection(String serviceName)
+               throws XMPPException
+
+
Creates a new connection to the specified XMPP server. A DNS SRV lookup will be + performed to try to determine the IP address and port corresponding to the + serviceName; if that lookup fails, it's assumed that server resides at serviceName + with the default port of 5222. This is the preferred constructor for connecting + to an XMPP server. +

+

+
Parameters:
serviceName - the name of the XMPP server to connect to; e.g. jivesoftware.com. +
Throws: +
XMPPException - if an error occurs while trying to establish the connection. + Two possible errors can occur which will be wrapped by an XMPPException -- + UnknownHostException (XMPP error code 504), and IOException (XMPP error code + 502). The error codes and wrapped exceptions can be used to present more + appropiate error messages to end-users.
+
+
+ +

+XMPPConnection

+
+public XMPPConnection(String host,
+                      int port)
+               throws XMPPException
+
+
Creates a new connection to the XMPP server at the specifiec host and port. +

+

+
Parameters:
host - the name of the XMPP server to connect to; e.g. jivesoftware.com.
port - the port on the server that should be used; e.g. 5222. +
Throws: +
XMPPException - if an error occurs while trying to establish the connection. + Two possible errors can occur which will be wrapped by an XMPPException -- + UnknownHostException (XMPP error code 504), and IOException (XMPP error code + 502). The error codes and wrapped exceptions can be used to present more + appropiate error messages to end-users.
+
+
+ +

+XMPPConnection

+
+public XMPPConnection(String host,
+                      int port,
+                      String serviceName)
+               throws XMPPException
+
+
Creates a new connection to the specified XMPP server on the given host and port. +

+

+
Parameters:
host - the host name, or null for the loopback address.
port - the port on the server that should be used; e.g. 5222.
serviceName - the name of the XMPP server to connect to; e.g. jivesoftware.com. +
Throws: +
XMPPException - if an error occurs while trying to establish the connection. + Two possible errors can occur which will be wrapped by an XMPPException -- + UnknownHostException (XMPP error code 504), and IOException (XMPP error code + 502). The error codes and wrapped exceptions can be used to present more + appropiate error messages to end-users.
+
+
+ +

+XMPPConnection

+
+public XMPPConnection(String host,
+                      int port,
+                      String serviceName,
+                      javax.net.SocketFactory socketFactory)
+               throws XMPPException
+
+
Creates a new connection to the specified XMPP server on the given port using the + specified SocketFactory.

+ + A custom SocketFactory allows fine-grained control of the actual connection to the + XMPP server. A typical use for a custom SocketFactory is when connecting through a + SOCKS proxy. +

+

+
Parameters:
host - the host name, or null for the loopback address.
port - the port on the server that should be used; e.g. 5222.
serviceName - the name of the XMPP server to connect to; e.g. jivesoftware.com.
socketFactory - a SocketFactory that will be used to create the socket to the XMPP + server. +
Throws: +
XMPPException - if an error occurs while trying to establish the connection. + Two possible errors can occur which will be wrapped by an XMPPException -- + UnknownHostException (XMPP error code 504), and IOException (XMPP error code + 502). The error codes and wrapped exceptions can be used to present more + appropiate error messages to end-users.
+
+
+ +

+XMPPConnection

+
+public XMPPConnection(ConnectionConfiguration config)
+               throws XMPPException
+
+
+ +
Throws: +
XMPPException
+
+
+ +

+XMPPConnection

+
+public XMPPConnection(ConnectionConfiguration config,
+                      javax.net.SocketFactory socketFactory)
+               throws XMPPException
+
+
+ +
Throws: +
XMPPException
+
+ + + + + + + + +
+Method Detail
+ +

+getConnectionID

+
+public String getConnectionID()
+
+
Returns the connection ID for this connection, which is the value set by the server + when opening a XMPP stream. If the server does not set a connection ID, this value + will be null. +

+

+ +
Returns:
the ID of this connection returned from the XMPP server.
+
+
+
+ +

+getServiceName

+
+public String getServiceName()
+
+
Returns the name of the service provided by the XMPP server for this connection. After + authenticating with the server the returned value may be different. +

+

+ +
Returns:
the name of the service provided by the XMPP server.
+
+
+
+ +

+getHost

+
+public String getHost()
+
+
Returns the host name of the server where the XMPP server is running. This would be the + IP address of the server or a name that may be resolved by a DNS server. +

+

+ +
Returns:
the host name of the server where the XMPP server is running.
+
+
+
+ +

+getPort

+
+public int getPort()
+
+
Returns the port number of the XMPP server for this connection. The default port + for normal connections is 5222. The default port for SSL connections is 5223. +

+

+ +
Returns:
the port number of the XMPP server.
+
+
+
+ +

+getUser

+
+public String getUser()
+
+
Returns the full XMPP address of the user that is logged in to the connection or + null if not logged in yet. An XMPP address is in the form + username@server/resource. +

+

+ +
Returns:
the full XMPP address of the user logged in.
+
+
+
+ +

+login

+
+public void login(String username,
+                  String password)
+           throws XMPPException
+
+
Logs in to the server using the strongest authentication mode supported by + the server, then set our presence to available. If more than five seconds + (default timeout) elapses in each step of the authentication process without + a response from the server, or if an error occurs, a XMPPException will be thrown. +

+

+
Parameters:
username - the username.
password - the password. +
Throws: +
XMPPException - if an error occurs.
+
+
+
+ +

+login

+
+public void login(String username,
+                  String password,
+                  String resource)
+           throws XMPPException
+
+
Logs in to the server using the strongest authentication mode supported by + the server, then sets presence to available. If more than five seconds + (default timeout) elapses in each step of the authentication process without + a response from the server, or if an error occurs, a XMPPException will be thrown. +

+

+
Parameters:
username - the username.
password - the password.
resource - the resource. +
Throws: +
XMPPException - if an error occurs. +
IllegalStateException - if not connected to the server, or already logged in + to the serrver.
+
+
+
+ +

+login

+
+public void login(String username,
+                  String password,
+                  String resource,
+                  boolean sendPresence)
+           throws XMPPException
+
+
Logs in to the server using the strongest authentication mode supported by + the server. If the server supports SASL authentication then the user will be + authenticated using SASL if not Non-SASL authentication will be tried. An available + presence may optionally be sent. If sendPresence + is false, a presence packet must be sent manually later. If more than five seconds + (default timeout) elapses in each step of the authentication process without a + response from the server, or if an error occurs, a XMPPException will be thrown. +

+

+
Parameters:
username - the username.
password - the password.
resource - the resource.
sendPresence - if true an available presence will be sent automatically + after login is completed. +
Throws: +
XMPPException - if an error occurs. +
IllegalStateException - if not connected to the server, or already logged in + to the serrver.
+
+
+
+ +

+loginAnonymously

+
+public void loginAnonymously()
+                      throws XMPPException
+
+
Logs in to the server anonymously. Very few servers are configured to support anonymous + authentication, so it's fairly likely logging in anonymously will fail. If anonymous login + does succeed, your XMPP address will likely be in the form "server/123ABC" (where "123ABC" + is a random value generated by the server). +

+

+ +
Throws: +
XMPPException - if an error occurs or anonymous logins are not supported by the server. +
IllegalStateException - if not connected to the server, or already logged in + to the serrver.
+
+
+
+ +

+getRoster

+
+public Roster getRoster()
+
+
Returns the roster for the user logged into the server. If the user has not yet + logged into the server (or if the user is logged in anonymously), this method will return + null. +

+

+ +
Returns:
the user's roster, or null if the user has not logged in yet.
+
+
+
+ +

+getAccountManager

+
+public AccountManager getAccountManager()
+
+
Returns an account manager instance for this connection. +

+

+ +
Returns:
an account manager for this connection.
+
+
+
+ +

+createChat

+
+public Chat createChat(String participant)
+
+
Creates a new chat with the specified participant. The participant should + be a valid XMPP user such as jdoe@jivesoftware.com or + jdoe@jivesoftware.com/work. +

+

+
Parameters:
participant - the person to start the conversation with. +
Returns:
a new Chat object.
+
+
+
+ +

+createGroupChat

+
+public GroupChat createGroupChat(String room)
+
+
Creates a new group chat connected to the specified room. The room name + should be full address, such as room@chat.example.com. +

+ Most XMPP servers use a sub-domain for the chat service (eg chat.example.com + for the XMPP server example.com). You must ensure that the room address you're + trying to connect to includes the proper chat sub-domain. +

+

+
Parameters:
room - the fully qualifed name of the room. +
Returns:
a new GroupChat object.
+
+
+
+ +

+isConnected

+
+public boolean isConnected()
+
+
Returns true if currently connected to the XMPP server. +

+

+ +
Returns:
true if connected.
+
+
+
+ +

+isSecureConnection

+
+public boolean isSecureConnection()
+
+
Returns true if the connection is a secured one, such as an SSL connection or + if TLS was negotiated successfully. +

+

+ +
Returns:
true if a secure connection to the server.
+
+
+
+ +

+isAuthenticated

+
+public boolean isAuthenticated()
+
+
Returns true if currently authenticated by successfully calling the login method. +

+

+ +
Returns:
true if authenticated.
+
+
+
+ +

+isAnonymous

+
+public boolean isAnonymous()
+
+
Returns true if currently authenticated anonymously. +

+

+ +
Returns:
true if authenticated anonymously.
+
+
+
+ +

+close

+
+public void close()
+
+
Closes the connection by setting presence to unavailable then closing the stream to + the XMPP server. Once a connection has been closed, it cannot be re-opened. +

+

+
+
+
+
+ +

+sendPacket

+
+public void sendPacket(Packet packet)
+
+
Sends the specified packet to the server. +

+

+
Parameters:
packet - the packet to send.
+
+
+
+ +

+addPacketListener

+
+public void addPacketListener(PacketListener packetListener,
+                              PacketFilter packetFilter)
+
+
Registers a packet listener with this connection. A packet filter determines + which packets will be delivered to the listener. +

+

+
Parameters:
packetListener - the packet listener to notify of new packets.
packetFilter - the packet filter to use.
+
+
+
+ +

+removePacketListener

+
+public void removePacketListener(PacketListener packetListener)
+
+
Removes a packet listener from this connection. +

+

+
Parameters:
packetListener - the packet listener to remove.
+
+
+
+ +

+addPacketWriterListener

+
+public void addPacketWriterListener(PacketListener packetListener,
+                                    PacketFilter packetFilter)
+
+
Registers a packet listener with this connection. The listener will be + notified of every packet that this connection sends. A packet filter determines + which packets will be delivered to the listener. Note that the thread + that writes packets will be used to invoke the listeners. Therefore, each + packet listener should complete all operations quickly or use a different + thread for processing. +

+

+
Parameters:
packetListener - the packet listener to notify of sent packets.
packetFilter - the packet filter to use.
+
+
+
+ +

+removePacketWriterListener

+
+public void removePacketWriterListener(PacketListener packetListener)
+
+
Removes a packet listener from this connection. +

+

+
Parameters:
packetListener - the packet listener to remove.
+
+
+
+ +

+addPacketWriterInterceptor

+
+public void addPacketWriterInterceptor(PacketInterceptor packetInterceptor,
+                                       PacketFilter packetFilter)
+
+
Registers a packet interceptor with this connection. The interceptor will be + invoked every time a packet is about to be sent by this connection. Interceptors + may modify the packet to be sent. A packet filter determines which packets + will be delivered to the interceptor. +

+

+
Parameters:
packetInterceptor - the packet interceptor to notify of packets about to be sent.
packetFilter - the packet filter to use.
+
+
+
+ +

+removePacketWriterInterceptor

+
+public void removePacketWriterInterceptor(PacketInterceptor packetInterceptor)
+
+
Removes a packet interceptor. +

+

+
Parameters:
packetInterceptor - the packet interceptor to remove.
+
+
+
+ +

+createPacketCollector

+
+public PacketCollector createPacketCollector(PacketFilter packetFilter)
+
+
Creates a new packet collector for this connection. A packet filter determines + which packets will be accumulated by the collector. +

+

+
Parameters:
packetFilter - the packet filter to use. +
Returns:
a new packet collector.
+
+
+
+ +

+addConnectionListener

+
+public void addConnectionListener(ConnectionListener connectionListener)
+
+
Adds a connection listener to this connection that will be notified when + the connection closes or fails. +

+

+
Parameters:
connectionListener - a connection listener.
+
+
+
+ +

+removeConnectionListener

+
+public void removeConnectionListener(ConnectionListener connectionListener)
+
+
Removes a connection listener from this connection. +

+

+
Parameters:
connectionListener - a connection listener.
+
+
+
+ +

+addConnectionListener

+
+public static void addConnectionListener(ConnectionEstablishedListener connectionEstablishedListener)
+
+
Adds a connection established listener that will be notified when a new connection + is established. +

+

+
Parameters:
connectionEstablishedListener - a listener interested on connection established events.
+
+
+
+ +

+removeConnectionListener

+
+public static void removeConnectionListener(ConnectionEstablishedListener connectionEstablishedListener)
+
+
Removes a listener on new established connections. +

+

+
Parameters:
connectionEstablishedListener - a listener interested on connection established events.
+
+
+
+ +

+isUsingTLS

+
+public boolean isUsingTLS()
+
+
Returns true if the connection to the server has successfully negotiated TLS. Once TLS + has been negotiatied the connection has been secured. +

+

+ +
Returns:
true if the connection to the server has successfully negotiated TLS.
+
+
+
+ +

+getSASLAuthentication

+
+public SASLAuthentication getSASLAuthentication()
+
+
Returns the SASLAuthentication manager that is responsible for authenticating with + the server. +

+

+ +
Returns:
the SASLAuthentication manager that is responsible for authenticating with + the server.
+
+
+
+ +

+isUsingCompression

+
+public boolean isUsingCompression()
+
+
Returns true if network traffic is being compressed. When using stream compression network + traffic can be reduced up to 90%. Therefore, stream compression is ideal when using a slow + speed network connection. However, the server will need to use more CPU time in order to + un/compress network data so under high load the server performance might be affected.

+ + Note: To use stream compression the smackx.jar file has to be present in the classpath. +

+

+ +
Returns:
true if network traffic is being compressed.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/XMPPException.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/XMPPException.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/XMPPException.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,591 @@ + + + + + + +XMPPException (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack +
+Class XMPPException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by org.jivesoftware.smack.XMPPException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class XMPPException
extends Exception
+ + +

+A generic exception that is thrown when an error occurs performing an + XMPP operation. XMPP servers can respond to error conditions with an error code + and textual description of the problem, which are encapsulated in the XMPPError + class. When appropriate, an XMPPError instance is attached instances of this exception.

+ + When a stream error occured, the server will send a stream error to the client before + closing the connection. Stream errors are unrecoverable errors. When a stream error + is sent to the client an XMPPException will be thrown containing the StreamError sent + by the server. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
XMPPError, +Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
XMPPException() + +
+          Creates a new XMPPException.
XMPPException(StreamError streamError) + +
+          Cretaes a new XMPPException with the stream error that was the root case of the + exception.
XMPPException(String message) + +
+          Creates a new XMPPException with a description of the exception.
XMPPException(String message, + Throwable wrappedThrowable) + +
+          Creates a new XMPPException with a description of the exception and the + Throwable that was the root cause of the exception.
XMPPException(String message, + XMPPError error) + +
+          Creates a new XMPPException with a description of the exception and the + XMPPException that was the root cause of the exception.
XMPPException(String message, + XMPPError error, + Throwable wrappedThrowable) + +
+          Creates a new XMPPException with a description of the exception, an XMPPError, + and the Throwable that was the root cause of the exception.
XMPPException(Throwable wrappedThrowable) + +
+          Creates a new XMPPException with the Throwable that was the root cause of the + exception.
XMPPException(XMPPError error) + +
+          Cretaes a new XMPPException with the XMPPError that was the root case of the + exception.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetMessage() + +
+           
+ StreamErrorgetStreamError() + +
+          Returns the StreamError asscociated with this exception, or null if there + isn't one.
+ ThrowablegetWrappedThrowable() + +
+          Returns the Throwable asscociated with this exception, or null if there + isn't one.
+ XMPPErrorgetXMPPError() + +
+          Returns the XMPPError asscociated with this exception, or null if there + isn't one.
+ voidprintStackTrace() + +
+           
+ voidprintStackTrace(PrintStream out) + +
+           
+ voidprintStackTrace(PrintWriter out) + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XMPPException

+
+public XMPPException()
+
+
Creates a new XMPPException. +

+

+
+ +

+XMPPException

+
+public XMPPException(String message)
+
+
Creates a new XMPPException with a description of the exception. +

+

+
Parameters:
message - description of the exception.
+
+
+ +

+XMPPException

+
+public XMPPException(Throwable wrappedThrowable)
+
+
Creates a new XMPPException with the Throwable that was the root cause of the + exception. +

+

+
Parameters:
wrappedThrowable - the root cause of the exception.
+
+
+ +

+XMPPException

+
+public XMPPException(StreamError streamError)
+
+
Cretaes a new XMPPException with the stream error that was the root case of the + exception. When a stream error is received from the server then the underlying + TCP connection will be closed by the server. +

+

+
Parameters:
streamError - the root cause of the exception.
+
+
+ +

+XMPPException

+
+public XMPPException(XMPPError error)
+
+
Cretaes a new XMPPException with the XMPPError that was the root case of the + exception. +

+

+
Parameters:
error - the root cause of the exception.
+
+
+ +

+XMPPException

+
+public XMPPException(String message,
+                     Throwable wrappedThrowable)
+
+
Creates a new XMPPException with a description of the exception and the + Throwable that was the root cause of the exception. +

+

+
Parameters:
message - a description of the exception.
wrappedThrowable - the root cause of the exception.
+
+
+ +

+XMPPException

+
+public XMPPException(String message,
+                     XMPPError error,
+                     Throwable wrappedThrowable)
+
+
Creates a new XMPPException with a description of the exception, an XMPPError, + and the Throwable that was the root cause of the exception. +

+

+
Parameters:
message - a description of the exception.
error - the root cause of the exception.
wrappedThrowable - the root cause of the exception.
+
+
+ +

+XMPPException

+
+public XMPPException(String message,
+                     XMPPError error)
+
+
Creates a new XMPPException with a description of the exception and the + XMPPException that was the root cause of the exception. +

+

+
Parameters:
message - a description of the exception.
error - the root cause of the exception.
+
+ + + + + + + + +
+Method Detail
+ +

+getXMPPError

+
+public XMPPError getXMPPError()
+
+
Returns the XMPPError asscociated with this exception, or null if there + isn't one. +

+

+ +
Returns:
the XMPPError asscociated with this exception.
+
+
+
+ +

+getStreamError

+
+public StreamError getStreamError()
+
+
Returns the StreamError asscociated with this exception, or null if there + isn't one. The underlying TCP connection is closed by the server after sending the + stream error to the client. +

+

+ +
Returns:
the StreamError asscociated with this exception.
+
+
+
+ +

+getWrappedThrowable

+
+public Throwable getWrappedThrowable()
+
+
Returns the Throwable asscociated with this exception, or null if there + isn't one. +

+

+ +
Returns:
the Throwable asscociated with this exception.
+
+
+
+ +

+printStackTrace

+
+public void printStackTrace()
+
+
+
Overrides:
printStackTrace in class Throwable
+
+
+
+
+
+
+ +

+printStackTrace

+
+public void printStackTrace(PrintStream out)
+
+
+
Overrides:
printStackTrace in class Throwable
+
+
+
+
+
+
+ +

+printStackTrace

+
+public void printStackTrace(PrintWriter out)
+
+
+
Overrides:
printStackTrace in class Throwable
+
+
+
+
+
+
+ +

+getMessage

+
+public String getMessage()
+
+
+
Overrides:
getMessage in class Throwable
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Throwable
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/ConsoleDebugger.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/ConsoleDebugger.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/ConsoleDebugger.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,478 @@ + + + + + + +ConsoleDebugger (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.debugger +
+Class ConsoleDebugger

+
+java.lang.Object
+  extended by org.jivesoftware.smack.debugger.ConsoleDebugger
+
+
+
All Implemented Interfaces:
SmackDebugger
+
+
+
+
public class ConsoleDebugger
extends Object
implements SmackDebugger
+ + +

+Very simple debugger that prints to the console (stdout) the sent and received stanzas. Use + this debugger with caution since printing to the console is an expensive operation that may + even block the thread since only one thread may print at a time.

+

+ It is possible to not only print the raw sent and received stanzas but also the interpreted + packets by Smack. By default interpreted packets won't be printed. To enable this feature + just change the printInterpreted static variable to true. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static booleanprintInterpreted + +
+           
+  + + + + + + + + + + +
+Constructor Summary
ConsoleDebugger(XMPPConnection connection, + Writer writer, + Reader reader) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ReadergetReader() + +
+          Returns the special Reader that wraps the main Reader and logs data to the GUI.
+ PacketListenergetReaderListener() + +
+          Returns the thread that will listen for all incoming packets and write them to the GUI.
+ WritergetWriter() + +
+          Returns the special Writer that wraps the main Writer and logs data to the GUI.
+ PacketListenergetWriterListener() + +
+          Returns the thread that will listen for all outgoing packets and write them to the GUI.
+ ReadernewConnectionReader(Reader newReader) + +
+          Returns a new special Reader that wraps the new connection Reader.
+ WriternewConnectionWriter(Writer newWriter) + +
+          Returns a new special Writer that wraps the new connection Writer.
+ voiduserHasLogged(String user) + +
+          Called when a user has logged in to the server.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+printInterpreted

+
+public static boolean printInterpreted
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ConsoleDebugger

+
+public ConsoleDebugger(XMPPConnection connection,
+                       Writer writer,
+                       Reader reader)
+
+
+ + + + + + + + +
+Method Detail
+ +

+newConnectionReader

+
+public Reader newConnectionReader(Reader newReader)
+
+
Description copied from interface: SmackDebugger
+
Returns a new special Reader that wraps the new connection Reader. The connection + has been secured so the connection is using a new reader and writer. The debugger + needs to wrap the new reader and writer to keep being notified of the connection + traffic. +

+

+
Specified by:
newConnectionReader in interface SmackDebugger
+
+
+ +
Returns:
a new special Reader that wraps the new connection Reader.
+
+
+
+ +

+newConnectionWriter

+
+public Writer newConnectionWriter(Writer newWriter)
+
+
Description copied from interface: SmackDebugger
+
Returns a new special Writer that wraps the new connection Writer. The connection + has been secured so the connection is using a new reader and writer. The debugger + needs to wrap the new reader and writer to keep being notified of the connection + traffic. +

+

+
Specified by:
newConnectionWriter in interface SmackDebugger
+
+
+ +
Returns:
a new special Writer that wraps the new connection Writer.
+
+
+
+ +

+userHasLogged

+
+public void userHasLogged(String user)
+
+
Description copied from interface: SmackDebugger
+
Called when a user has logged in to the server. The user could be an anonymous user, this + means that the user would be of the form host/resource instead of the form + user@host/resource. +

+

+
Specified by:
userHasLogged in interface SmackDebugger
+
+
+
Parameters:
user - the user@host/resource that has just logged in
+
+
+
+ +

+getReader

+
+public Reader getReader()
+
+
Description copied from interface: SmackDebugger
+
Returns the special Reader that wraps the main Reader and logs data to the GUI. +

+

+
Specified by:
getReader in interface SmackDebugger
+
+
+ +
Returns:
the special Reader that wraps the main Reader and logs data to the GUI.
+
+
+
+ +

+getWriter

+
+public Writer getWriter()
+
+
Description copied from interface: SmackDebugger
+
Returns the special Writer that wraps the main Writer and logs data to the GUI. +

+

+
Specified by:
getWriter in interface SmackDebugger
+
+
+ +
Returns:
the special Writer that wraps the main Writer and logs data to the GUI.
+
+
+
+ +

+getReaderListener

+
+public PacketListener getReaderListener()
+
+
Description copied from interface: SmackDebugger
+
Returns the thread that will listen for all incoming packets and write them to the GUI. + This is what we call "interpreted" packet data, since it's the packet data as Smack sees + it and not as it's coming in as raw XML. +

+

+
Specified by:
getReaderListener in interface SmackDebugger
+
+
+ +
Returns:
the PacketListener that will listen for all incoming packets and write them to + the GUI
+
+
+
+ +

+getWriterListener

+
+public PacketListener getWriterListener()
+
+
Description copied from interface: SmackDebugger
+
Returns the thread that will listen for all outgoing packets and write them to the GUI. +

+

+
Specified by:
getWriterListener in interface SmackDebugger
+
+
+ +
Returns:
the PacketListener that will listen for all sent packets and write them to + the GUI
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/LiteDebugger.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/LiteDebugger.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/LiteDebugger.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,462 @@ + + + + + + +LiteDebugger (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.debugger +
+Class LiteDebugger

+
+java.lang.Object
+  extended by org.jivesoftware.smack.debugger.LiteDebugger
+
+
+
All Implemented Interfaces:
SmackDebugger
+
+
+
+
public class LiteDebugger
extends Object
implements SmackDebugger
+ + +

+The LiteDebugger is a very simple debugger that allows to debug sent, received and + interpreted messages. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
LiteDebugger(XMPPConnection connection, + Writer writer, + Reader reader) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ReadergetReader() + +
+          Returns the special Reader that wraps the main Reader and logs data to the GUI.
+ PacketListenergetReaderListener() + +
+          Returns the thread that will listen for all incoming packets and write them to the GUI.
+ WritergetWriter() + +
+          Returns the special Writer that wraps the main Writer and logs data to the GUI.
+ PacketListenergetWriterListener() + +
+          Returns the thread that will listen for all outgoing packets and write them to the GUI.
+ ReadernewConnectionReader(Reader newReader) + +
+          Returns a new special Reader that wraps the new connection Reader.
+ WriternewConnectionWriter(Writer newWriter) + +
+          Returns a new special Writer that wraps the new connection Writer.
+ voidrootWindowClosing(WindowEvent evt) + +
+          Notification that the root window is closing.
+ voiduserHasLogged(String user) + +
+          Called when a user has logged in to the server.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LiteDebugger

+
+public LiteDebugger(XMPPConnection connection,
+                    Writer writer,
+                    Reader reader)
+
+
+ + + + + + + + +
+Method Detail
+ +

+rootWindowClosing

+
+public void rootWindowClosing(WindowEvent evt)
+
+
Notification that the root window is closing. Stop listening for received and + transmitted packets. +

+

+
+
+
+
Parameters:
evt - the event that indicates that the root window is closing
+
+
+
+ +

+newConnectionReader

+
+public Reader newConnectionReader(Reader newReader)
+
+
Description copied from interface: SmackDebugger
+
Returns a new special Reader that wraps the new connection Reader. The connection + has been secured so the connection is using a new reader and writer. The debugger + needs to wrap the new reader and writer to keep being notified of the connection + traffic. +

+

+
Specified by:
newConnectionReader in interface SmackDebugger
+
+
+ +
Returns:
a new special Reader that wraps the new connection Reader.
+
+
+
+ +

+newConnectionWriter

+
+public Writer newConnectionWriter(Writer newWriter)
+
+
Description copied from interface: SmackDebugger
+
Returns a new special Writer that wraps the new connection Writer. The connection + has been secured so the connection is using a new reader and writer. The debugger + needs to wrap the new reader and writer to keep being notified of the connection + traffic. +

+

+
Specified by:
newConnectionWriter in interface SmackDebugger
+
+
+ +
Returns:
a new special Writer that wraps the new connection Writer.
+
+
+
+ +

+userHasLogged

+
+public void userHasLogged(String user)
+
+
Description copied from interface: SmackDebugger
+
Called when a user has logged in to the server. The user could be an anonymous user, this + means that the user would be of the form host/resource instead of the form + user@host/resource. +

+

+
Specified by:
userHasLogged in interface SmackDebugger
+
+
+
Parameters:
user - the user@host/resource that has just logged in
+
+
+
+ +

+getReader

+
+public Reader getReader()
+
+
Description copied from interface: SmackDebugger
+
Returns the special Reader that wraps the main Reader and logs data to the GUI. +

+

+
Specified by:
getReader in interface SmackDebugger
+
+
+ +
Returns:
the special Reader that wraps the main Reader and logs data to the GUI.
+
+
+
+ +

+getWriter

+
+public Writer getWriter()
+
+
Description copied from interface: SmackDebugger
+
Returns the special Writer that wraps the main Writer and logs data to the GUI. +

+

+
Specified by:
getWriter in interface SmackDebugger
+
+
+ +
Returns:
the special Writer that wraps the main Writer and logs data to the GUI.
+
+
+
+ +

+getReaderListener

+
+public PacketListener getReaderListener()
+
+
Description copied from interface: SmackDebugger
+
Returns the thread that will listen for all incoming packets and write them to the GUI. + This is what we call "interpreted" packet data, since it's the packet data as Smack sees + it and not as it's coming in as raw XML. +

+

+
Specified by:
getReaderListener in interface SmackDebugger
+
+
+ +
Returns:
the PacketListener that will listen for all incoming packets and write them to + the GUI
+
+
+
+ +

+getWriterListener

+
+public PacketListener getWriterListener()
+
+
Description copied from interface: SmackDebugger
+
Returns the thread that will listen for all outgoing packets and write them to the GUI. +

+

+
Specified by:
getWriterListener in interface SmackDebugger
+
+
+ +
Returns:
the PacketListener that will listen for all sent packets and write them to + the GUI
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/SmackDebugger.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/SmackDebugger.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/SmackDebugger.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,362 @@ + + + + + + +SmackDebugger (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.debugger +
+Interface SmackDebugger

+
+
All Known Implementing Classes:
ConsoleDebugger, EnhancedDebugger, LiteDebugger
+
+
+
+
public interface SmackDebugger
+ + +

+Interface that allows for implementing classes to debug XML traffic. That is a GUI window that + displays XML traffic.

+ + Every implementation of this interface must have a public constructor with the following + arguments: XMPPConnection, Writer, Reader. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ReadergetReader() + +
+          Returns the special Reader that wraps the main Reader and logs data to the GUI.
+ PacketListenergetReaderListener() + +
+          Returns the thread that will listen for all incoming packets and write them to the GUI.
+ WritergetWriter() + +
+          Returns the special Writer that wraps the main Writer and logs data to the GUI.
+ PacketListenergetWriterListener() + +
+          Returns the thread that will listen for all outgoing packets and write them to the GUI.
+ ReadernewConnectionReader(Reader reader) + +
+          Returns a new special Reader that wraps the new connection Reader.
+ WriternewConnectionWriter(Writer writer) + +
+          Returns a new special Writer that wraps the new connection Writer.
+ voiduserHasLogged(String user) + +
+          Called when a user has logged in to the server.
+  +

+ + + + + + + + +
+Method Detail
+ +

+userHasLogged

+
+void userHasLogged(String user)
+
+
Called when a user has logged in to the server. The user could be an anonymous user, this + means that the user would be of the form host/resource instead of the form + user@host/resource. +

+

+
Parameters:
user - the user@host/resource that has just logged in
+
+
+
+ +

+getReader

+
+Reader getReader()
+
+
Returns the special Reader that wraps the main Reader and logs data to the GUI. +

+

+ +
Returns:
the special Reader that wraps the main Reader and logs data to the GUI.
+
+
+
+ +

+getWriter

+
+Writer getWriter()
+
+
Returns the special Writer that wraps the main Writer and logs data to the GUI. +

+

+ +
Returns:
the special Writer that wraps the main Writer and logs data to the GUI.
+
+
+
+ +

+newConnectionReader

+
+Reader newConnectionReader(Reader reader)
+
+
Returns a new special Reader that wraps the new connection Reader. The connection + has been secured so the connection is using a new reader and writer. The debugger + needs to wrap the new reader and writer to keep being notified of the connection + traffic. +

+

+ +
Returns:
a new special Reader that wraps the new connection Reader.
+
+
+
+ +

+newConnectionWriter

+
+Writer newConnectionWriter(Writer writer)
+
+
Returns a new special Writer that wraps the new connection Writer. The connection + has been secured so the connection is using a new reader and writer. The debugger + needs to wrap the new reader and writer to keep being notified of the connection + traffic. +

+

+ +
Returns:
a new special Writer that wraps the new connection Writer.
+
+
+
+ +

+getReaderListener

+
+PacketListener getReaderListener()
+
+
Returns the thread that will listen for all incoming packets and write them to the GUI. + This is what we call "interpreted" packet data, since it's the packet data as Smack sees + it and not as it's coming in as raw XML. +

+

+ +
Returns:
the PacketListener that will listen for all incoming packets and write them to + the GUI
+
+
+
+ +

+getWriterListener

+
+PacketListener getWriterListener()
+
+
Returns the thread that will listen for all outgoing packets and write them to the GUI. +

+

+ +
Returns:
the PacketListener that will listen for all sent packets and write them to + the GUI
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,45 @@ + + + + + + +org.jivesoftware.smack.debugger (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smack.debugger + + + + +
+Interfaces  + +
+SmackDebugger
+ + + + + + +
+Classes  + +
+ConsoleDebugger +
+LiteDebugger
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,186 @@ + + + + + + +org.jivesoftware.smack.debugger (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smack.debugger +

+Core debugger functionality. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
SmackDebuggerInterface that allows for implementing classes to debug XML traffic.
+  + +

+ + + + + + + + + + + + + +
+Class Summary
ConsoleDebuggerVery simple debugger that prints to the console (stdout) the sent and received stanzas.
LiteDebuggerThe LiteDebugger is a very simple debugger that allows to debug sent, received and + interpreted messages.
+  + +

+

+Package org.jivesoftware.smack.debugger Description +

+ +

+Core debugger functionality. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/debugger/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,154 @@ + + + + + + +org.jivesoftware.smack.debugger Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smack.debugger +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/AndFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/AndFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/AndFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,336 @@ + + + + + + +AndFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class AndFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.AndFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class AndFilter
extends Object
implements PacketFilter
+ + +

+Implements the logical AND operation over two or more packet filters. + In other words, packets pass this filter if they pass all of the filters. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
AndFilter() + +
+          Creates an empty AND filter.
AndFilter(PacketFilter filter1, + PacketFilter filter2) + +
+          Creates an AND filter using the two specified filters.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ voidaddFilter(PacketFilter filter) + +
+          Adds a filter to the filter list for the AND operation.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AndFilter

+
+public AndFilter()
+
+
Creates an empty AND filter. Filters should be added using the + addFilter(PacketFilter) method. +

+

+
+ +

+AndFilter

+
+public AndFilter(PacketFilter filter1,
+                 PacketFilter filter2)
+
+
Creates an AND filter using the two specified filters. +

+

+
Parameters:
filter1 - the first packet filter.
filter2 - the second packet filter.
+
+ + + + + + + + +
+Method Detail
+ +

+addFilter

+
+public void addFilter(PacketFilter filter)
+
+
Adds a filter to the filter list for the AND operation. A packet + will pass the filter if all of the filters in the list accept it. +

+

+
+
+
+
Parameters:
filter - a filter to add to the filter list.
+
+
+
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/FromContainsFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/FromContainsFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/FromContainsFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,269 @@ + + + + + + +FromContainsFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class FromContainsFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.FromContainsFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class FromContainsFilter
extends Object
implements PacketFilter
+ + +

+Filters for packets where the "from" field contains a specified value. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
FromContainsFilter(String from) + +
+          Creates a "from" contains filter using the "from" field part.
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FromContainsFilter

+
+public FromContainsFilter(String from)
+
+
Creates a "from" contains filter using the "from" field part. +

+

+
Parameters:
from - the from field value the packet must contain.
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/FromMatchesFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/FromMatchesFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/FromMatchesFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,275 @@ + + + + + + +FromMatchesFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class FromMatchesFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.FromMatchesFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class FromMatchesFilter
extends Object
implements PacketFilter
+ + +

+Filter for packets where the "from" field exactly matches a specified JID. If the specified + address is a bare JID then the filter will match any address whose bare JID matches the + specified JID. But if the specified address is a full JID then the filter will only match + if the sender of the packet matches the specified resource. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
FromMatchesFilter(String address) + +
+          Creates a "from" filter using the "from" field part.
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FromMatchesFilter

+
+public FromMatchesFilter(String address)
+
+
Creates a "from" filter using the "from" field part. If the specified address is a bare JID + then the filter will match any address whose bare JID matches the specified JID. But if the + specified address is a full JID then the filter will only match if the sender of the packet + matches the specified resource. +

+

+
Parameters:
address - the from field value the packet must match. Could be a full or bare JID.
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/IQTypeFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/IQTypeFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/IQTypeFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,266 @@ + + + + + + +IQTypeFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class IQTypeFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.IQTypeFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class IQTypeFilter
extends Object
implements PacketFilter
+ + +

+A filter for IQ packet types. Returns true only if the packet is an IQ packet + and it matches the type provided in the constructor. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
IQTypeFilter(IQ.Type type) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IQTypeFilter

+
+public IQTypeFilter(IQ.Type type)
+
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/MessageTypeFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/MessageTypeFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/MessageTypeFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,269 @@ + + + + + + +MessageTypeFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class MessageTypeFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.MessageTypeFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class MessageTypeFilter
extends Object
implements PacketFilter
+ + +

+Filters for packets of a specific type of Message (e.g. CHAT). +

+ +

+

+
Author:
+
Ward Harold
+
See Also:
Message.Type
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MessageTypeFilter(Message.Type type) + +
+          Creates a new message type filter using the specified message type.
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MessageTypeFilter

+
+public MessageTypeFilter(Message.Type type)
+
+
Creates a new message type filter using the specified message type. +

+

+
Parameters:
type - the message type.
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/NotFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/NotFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/NotFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,270 @@ + + + + + + +NotFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class NotFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.NotFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class NotFilter
extends Object
implements PacketFilter
+ + +

+Implements the logical NOT operation on a packet filter. In other words, packets + pass this filter if they do not pass the supplied filter. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
NotFilter(PacketFilter filter) + +
+          Creates a NOT filter using the specified filter.
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NotFilter

+
+public NotFilter(PacketFilter filter)
+
+
Creates a NOT filter using the specified filter. +

+

+
Parameters:
filter - the filter.
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/OrFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/OrFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/OrFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,336 @@ + + + + + + +OrFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class OrFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.OrFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class OrFilter
extends Object
implements PacketFilter
+ + +

+Implements the logical OR operation over two or more packet filters. In + other words, packets pass this filter if they pass any of the filters. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
OrFilter() + +
+          Creates an empty OR filter.
OrFilter(PacketFilter filter1, + PacketFilter filter2) + +
+          Creates an OR filter using the two specified filters.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ voidaddFilter(PacketFilter filter) + +
+          Adds a filter to the filter list for the OR operation.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OrFilter

+
+public OrFilter()
+
+
Creates an empty OR filter. Filters should be added using the + addFilter(PacketFilter) method. +

+

+
+ +

+OrFilter

+
+public OrFilter(PacketFilter filter1,
+                PacketFilter filter2)
+
+
Creates an OR filter using the two specified filters. +

+

+
Parameters:
filter1 - the first packet filter.
filter2 - the second packet filter.
+
+ + + + + + + + +
+Method Detail
+ +

+addFilter

+
+public void addFilter(PacketFilter filter)
+
+
Adds a filter to the filter list for the OR operation. A packet + will pass the filter if any filter in the list accepts it. +

+

+
+
+
+
Parameters:
filter - a filter to add to the filter list.
+
+
+
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketExtensionFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketExtensionFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketExtensionFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,273 @@ + + + + + + +PacketExtensionFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class PacketExtensionFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.PacketExtensionFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class PacketExtensionFilter
extends Object
implements PacketFilter
+ + +

+Filters for packets with a particular type of packet extension. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
PacketExtensionFilter(String elementName, + String namespace) + +
+          Creates a new packet extension filter.
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PacketExtensionFilter

+
+public PacketExtensionFilter(String elementName,
+                             String namespace)
+
+
Creates a new packet extension filter. Packets will pass the filter if + they have a packet extension that matches the specified element name + and namespace. +

+

+
Parameters:
elementName - the XML element name of the packet extension.
namespace - the XML namespace of the packet extension.
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,238 @@ + + + + + + +PacketFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Interface PacketFilter

+
+
All Known Implementing Classes:
AndFilter, FromContainsFilter, FromMatchesFilter, IQTypeFilter, MessageTypeFilter, NotFilter, OrFilter, PacketExtensionFilter, PacketIDFilter, PacketTypeFilter, ThreadFilter, ToContainsFilter
+
+
+
+
public interface PacketFilter
+ + +

+Defines a way to filter packets for particular attributes. Packet filters are + used when constructing packet listeners or collectors -- the filter defines + what packets match the criteria of the collector or listener for further + packet processing.

+ + Several pre-defined filters are defined. These filters can be logically combined + for more complex packet filtering by using the + AndFilter and + OrFilter filters. It's also possible + to define your own filters by implementing this interface. The code example below + creates a trivial filter for packets with a specific ID. + +

+ // Use an anonymous inner class to define a packet filter that returns
+ // all packets that have a packet ID of "RS145".
+ PacketFilter myFilter = new PacketFilter() {
+     public boolean accept(Packet packet) {
+         return "RS145".equals(packet.getPacketID());
+     }
+ };
+ // Create a new packet collector using the filter we created.
+ PacketCollector myCollector = packetReader.createPacketCollector(myFilter);
+ 
+

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
PacketCollector, +PacketListener
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+  +

+ + + + + + + + +
+Method Detail
+ +

+accept

+
+boolean accept(Packet packet)
+
+
Tests whether or not the specified packet should pass the filter. +

+

+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketIDFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketIDFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketIDFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,269 @@ + + + + + + +PacketIDFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class PacketIDFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.PacketIDFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class PacketIDFilter
extends Object
implements PacketFilter
+ + +

+Filters for packets with a particular packet ID. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
PacketIDFilter(String packetID) + +
+          Creates a new packet ID filter using the specified packet ID.
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PacketIDFilter

+
+public PacketIDFilter(String packetID)
+
+
Creates a new packet ID filter using the specified packet ID. +

+

+
Parameters:
packetID - the packet ID to filter for.
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketTypeFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketTypeFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/PacketTypeFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,277 @@ + + + + + + +PacketTypeFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class PacketTypeFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.PacketTypeFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class PacketTypeFilter
extends Object
implements PacketFilter
+ + +

+Filters for packets of a particular type. The type is given as a Class object, so + example types would: +

+

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
PacketTypeFilter(Class packetType) + +
+          Creates a new packet type filter that will filter for packets that are the + same type as packetType.
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PacketTypeFilter

+
+public PacketTypeFilter(Class packetType)
+
+
Creates a new packet type filter that will filter for packets that are the + same type as packetType. +

+

+
Parameters:
packetType - the Class type.
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/ThreadFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/ThreadFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/ThreadFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,269 @@ + + + + + + +ThreadFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class ThreadFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.ThreadFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class ThreadFilter
extends Object
implements PacketFilter
+ + +

+Filters for message packets with a particular thread value. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ThreadFilter(String thread) + +
+          Creates a new thread filter using the specified thread value.
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ThreadFilter

+
+public ThreadFilter(String thread)
+
+
Creates a new thread filter using the specified thread value. +

+

+
Parameters:
thread - the thread value to filter for.
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/ToContainsFilter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/ToContainsFilter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/ToContainsFilter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,270 @@ + + + + + + +ToContainsFilter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.filter +
+Class ToContainsFilter

+
+java.lang.Object
+  extended by org.jivesoftware.smack.filter.ToContainsFilter
+
+
+
All Implemented Interfaces:
PacketFilter
+
+
+
+
public class ToContainsFilter
extends Object
implements PacketFilter
+ + +

+Filters for packets where the "to" field contains a specified value. For example, + the filter could be used to listen for all packets sent to a group chat nickname. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ToContainsFilter(String to) + +
+          Creates a "to" contains filter using the "to" field part.
+  + + + + + + + + + + + +
+Method Summary
+ booleanaccept(Packet packet) + +
+          Tests whether or not the specified packet should pass the filter.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ToContainsFilter

+
+public ToContainsFilter(String to)
+
+
Creates a "to" contains filter using the "to" field part. +

+

+
Parameters:
to - the to field value the packet must contain.
+
+ + + + + + + + +
+Method Detail
+ +

+accept

+
+public boolean accept(Packet packet)
+
+
Description copied from interface: PacketFilter
+
Tests whether or not the specified packet should pass the filter. +

+

+
Specified by:
accept in interface PacketFilter
+
+
+
Parameters:
packet - the packet to test. +
Returns:
true if and only if packet passes the filter.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,65 @@ + + + + + + +org.jivesoftware.smack.filter (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smack.filter + + + + +
+Interfaces  + +
+PacketFilter
+ + + + + + +
+Classes  + +
+AndFilter +
+FromContainsFilter +
+FromMatchesFilter +
+IQTypeFilter +
+MessageTypeFilter +
+NotFilter +
+OrFilter +
+PacketExtensionFilter +
+PacketIDFilter +
+PacketTypeFilter +
+ThreadFilter +
+ToContainsFilter
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,225 @@ + + + + + + +org.jivesoftware.smack.filter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smack.filter +

+Allows PacketCollector and PacketListener instances to filter for packets with particular attributes. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
PacketFilterDefines a way to filter packets for particular attributes.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AndFilterImplements the logical AND operation over two or more packet filters.
FromContainsFilterFilters for packets where the "from" field contains a specified value.
FromMatchesFilterFilter for packets where the "from" field exactly matches a specified JID.
IQTypeFilterA filter for IQ packet types.
MessageTypeFilterFilters for packets of a specific type of Message (e.g.
NotFilterImplements the logical NOT operation on a packet filter.
OrFilterImplements the logical OR operation over two or more packet filters.
PacketExtensionFilterFilters for packets with a particular type of packet extension.
PacketIDFilterFilters for packets with a particular packet ID.
PacketTypeFilterFilters for packets of a particular type.
ThreadFilterFilters for message packets with a particular thread value.
ToContainsFilterFilters for packets where the "to" field contains a specified value.
+  + +

+

+Package org.jivesoftware.smack.filter Description +

+ +

+Allows PacketCollector and PacketListener instances to filter for packets with particular attributes. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/filter/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,164 @@ + + + + + + +org.jivesoftware.smack.filter Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smack.filter +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,86 @@ + + + + + + +org.jivesoftware.smack (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smack + + + + +
+Interfaces  + +
+ConnectionEstablishedListener +
+ConnectionListener +
+PacketInterceptor +
+PacketListener +
+RosterListener
+ + + + + + +
+Classes  + +
+AccountManager +
+Chat +
+ConnectionConfiguration +
+GoogleTalkConnection +
+GroupChat +
+PacketCollector +
+Roster +
+RosterEntry +
+RosterGroup +
+SASLAuthentication +
+SmackConfiguration +
+SSLXMPPConnection +
+XMPPConnection
+ + + + + + +
+Exceptions  + +
+XMPPException
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,270 @@ + + + + + + +org.jivesoftware.smack (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smack +

+Core classes of the Smack API. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
ConnectionEstablishedListenerInterface that allows for implementing classes to listen for connection established + events.
ConnectionListenerInterface that allows for implementing classes to listen for connection closing + events.
PacketInterceptorProvides a mechanism to intercept and modify packets that are going to be + sent to the server.
PacketListenerProvides a mechanism to listen for packets that pass a specified filter.
RosterListenerA listener that is fired any time a roster is changed or the presence of + a user in the roster is changed.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AccountManagerAllows creation and management of accounts on an XMPP server.
ChatA chat is a series of messages sent between two users.
ConnectionConfigurationConfiguration to use while establishing the connection to the server.
GoogleTalkConnectionConvenience class to make it easier to connect to the Google Talk IM service.
GroupChatA GroupChat is a conversation that takes place among many users in a virtual + room.
PacketCollectorProvides a mechanism to collect packets into a result queue that pass a + specified filter.
RosterRepresents a user's roster, which is the collection of users a person receives + presence updates for.
RosterEntryEach user in your roster is represented by a roster entry, which contains the user's + JID and a name or nickname you assign.
RosterGroupA group of roster entries.
SASLAuthenticationThis class is responsible authenticating the user using SASL, binding the resource + to the connection and establishing a session with the server.
SmackConfigurationRepresents the configuration of Smack.
SSLXMPPConnectionCreates an SSL connection to a XMPP server using the legacy dedicated SSL port + mechanism.
XMPPConnectionCreates a connection to a XMPP server.
+  + +

+ + + + + + + + + +
+Exception Summary
XMPPExceptionA generic exception that is thrown when an error occurs performing an + XMPP operation.
+  + +

+

+Package org.jivesoftware.smack Description +

+ +

+Core classes of the Smack API. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,160 @@ + + + + + + +org.jivesoftware.smack Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smack +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Authentication.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Authentication.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Authentication.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,540 @@ + + + + + + +Authentication (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Authentication

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smack.packet.Authentication
+
+
+
+
public class Authentication
extends IQ
+ + +

+Authentication packet, which can be used to login to a XMPP server as well + as discover login information from the server. +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
Authentication() + +
+          Create a new authentication packet.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ StringgetDigest() + +
+          Returns the password digest or null if the digest hasn't + been set.
+ StringgetPassword() + +
+          Returns the plain text password or null if the password hasn't + been set.
+ StringgetResource() + +
+          Returns the resource or null if the resource hasn't been set.
+ StringgetUsername() + +
+          Returns the username, or null if the username hasn't been sent.
+ voidsetDigest(String digest) + +
+          Sets the digest value directly.
+ voidsetDigest(String connectionID, + String password) + +
+          Sets the digest value using a connection ID and password.
+ voidsetPassword(String password) + +
+          Sets the plain text password.
+ voidsetResource(String resource) + +
+          Sets the resource.
+ voidsetUsername(String username) + +
+          Sets the username.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Authentication

+
+public Authentication()
+
+
Create a new authentication packet. By default, the packet will be in + "set" mode in order to perform an actual authentication with the server. + In order to send a "get" request to get the available authentication + modes back from the server, change the type of the IQ packet to "get": +

+

setType(IQ.Type.GET); +

+

+ + + + + + + + +
+Method Detail
+ +

+getUsername

+
+public String getUsername()
+
+
Returns the username, or null if the username hasn't been sent. +

+

+ +
Returns:
the username.
+
+
+
+ +

+setUsername

+
+public void setUsername(String username)
+
+
Sets the username. +

+

+
Parameters:
username - the username.
+
+
+
+ +

+getPassword

+
+public String getPassword()
+
+
Returns the plain text password or null if the password hasn't + been set. +

+

+ +
Returns:
the password.
+
+
+
+ +

+setPassword

+
+public void setPassword(String password)
+
+
Sets the plain text password. +

+

+
Parameters:
password - the password.
+
+
+
+ +

+getDigest

+
+public String getDigest()
+
+
Returns the password digest or null if the digest hasn't + been set. Password digests offer a more secure alternative for + authentication compared to plain text. The digest is the hex-encoded + SHA-1 hash of the connection ID plus the user's password. If the + digest and password are set, digest authentication will be used. If + only one value is set, the respective authentication mode will be used. +

+

+ +
Returns:
the digest of the user's password.
+
+
+
+ +

+setDigest

+
+public void setDigest(String connectionID,
+                      String password)
+
+
Sets the digest value using a connection ID and password. Password + digests offer a more secure alternative for authentication compared to + plain text. The digest is the hex-encoded SHA-1 hash of the connection ID + plus the user's password. If the digest and password are set, digest + authentication will be used. If only one value is set, the respective + authentication mode will be used. +

+

+
Parameters:
connectionID - the connection ID.
password - the password.
See Also:
XMPPConnection.getConnectionID()
+
+
+
+ +

+setDigest

+
+public void setDigest(String digest)
+
+
Sets the digest value directly. Password digests offer a more secure + alternative for authentication compared to plain text. The digest is + the hex-encoded SHA-1 hash of the connection ID plus the user's password. + If the digest and password are set, digest authentication will be used. + If only one value is set, the respective authentication mode will be used. +

+

+
Parameters:
digest - the digest, which is the SHA-1 hash of the connection ID + the user's password, encoded as hex.
See Also:
XMPPConnection.getConnectionID()
+
+
+
+ +

+getResource

+
+public String getResource()
+
+
Returns the resource or null if the resource hasn't been set. +

+

+ +
Returns:
the resource.
+
+
+
+ +

+setResource

+
+public void setResource(String resource)
+
+
Sets the resource. +

+

+
Parameters:
resource - the resource.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Bind.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Bind.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Bind.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,405 @@ + + + + + + +Bind (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Bind

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smack.packet.Bind
+
+
+
+
public class Bind
extends IQ
+ + +

+IQ packet used by Smack to bind a resource and to obtain the jid assigned by the server. + There are two ways to bind a resource. One is simply sending an empty Bind packet where the + server will assign a new resource for this connection. The other option is to set a desired + resource but the server may return a modified version of the sent resource.

+ + For more information refer to the following + link. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
Bind() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ StringgetJid() + +
+           
+ StringgetResource() + +
+           
+ voidsetJid(String jid) + +
+           
+ voidsetResource(String resource) + +
+           
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Bind

+
+public Bind()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getResource

+
+public String getResource()
+
+
+
+
+
+
+ +

+setResource

+
+public void setResource(String resource)
+
+
+
+
+
+
+ +

+getJid

+
+public String getJid()
+
+
+
+
+
+
+ +

+setJid

+
+public void setJid(String jid)
+
+
+
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/DefaultPacketExtension.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/DefaultPacketExtension.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/DefaultPacketExtension.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,416 @@ + + + + + + +DefaultPacketExtension (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class DefaultPacketExtension

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.DefaultPacketExtension
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class DefaultPacketExtension
extends Object
implements PacketExtension
+ + +

+Default implementation of the PacketExtension interface. Unless a PacketExtensionProvider + is registered with ProviderManager, + instances of this class will be returned when getting packet extensions.

+ + This class provides a very simple representation of an XML sub-document. Each element + is a key in a Map with its CDATA being the value. For example, given the following + XML sub-document: + +

+ <foo xmlns="http://bar.com">
+     <color>blue</color>
+     <food>pizza</food>
+ </foo>
+ + In this case, getValue("color") would return "blue", and getValue("food") would + return "pizza". This parsing mechanism mechanism is very simplistic and will not work + as desired in all cases (for example, if some of the elements have attributes. In those + cases, a custom PacketExtensionProvider should be used. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DefaultPacketExtension(String elementName, + String namespace) + +
+          Creates a new generic packet extension.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the XML element name of the extension sub-packet root element.
+ IteratorgetNames() + +
+          Returns an Iterator for the names that can be used to get + values of the packet extension.
+ StringgetNamespace() + +
+          Returns the XML namespace of the extension sub-packet root element.
+ StringgetValue(String name) + +
+          Returns a packet extension value given a name.
+ voidsetValue(String name, + String value) + +
+          Sets a packet extension value using the given name.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DefaultPacketExtension

+
+public DefaultPacketExtension(String elementName,
+                              String namespace)
+
+
Creates a new generic packet extension. +

+

+
Parameters:
elementName - the name of the element of the XML sub-document.
namespace - the namespace of the element.
+
+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+public String getElementName()
+
+
Returns the XML element name of the extension sub-packet root element. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the XML element name of the packet extension.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Returns the XML namespace of the extension sub-packet root element. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the XML namespace of the packet extension.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+
+ +

+getNames

+
+public Iterator getNames()
+
+
Returns an Iterator for the names that can be used to get + values of the packet extension. +

+

+
+
+
+ +
Returns:
an Iterator for the names.
+
+
+
+ +

+getValue

+
+public String getValue(String name)
+
+
Returns a packet extension value given a name. +

+

+
+
+
+
Parameters:
name - the name. +
Returns:
the value.
+
+
+
+ +

+setValue

+
+public void setValue(String name,
+                     String value)
+
+
Sets a packet extension value using the given name. +

+

+
+
+
+
Parameters:
name - the name.
value - the value.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/IQ.Type.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/IQ.Type.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/IQ.Type.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,344 @@ + + + + + + +IQ.Type (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+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.TypeERROR + +
+           
+static IQ.TypeGET + +
+           
+static IQ.TypeRESULT + +
+           
+static IQ.TypeSET + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static IQ.TypefromString(String type) + +
+          Converts a String into the corresponding types.
+ StringtoString() + +
+           
+ + + + + + + +
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 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/IQ.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/IQ.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/IQ.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,393 @@ + + + + + + +IQ (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class IQ

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+
+
+
Direct Known Subclasses:
Authentication, Bind, Bytestream, DiscoverInfo, DiscoverItems, IBBExtensions.Close, IBBExtensions.Open, LastActivity, MUCAdmin, MUCOwner, OfflineMessageRequest, Registration, RosterPacket, Session, SharedGroupsInfo, StreamInitiation, Time, UserSearch, VCard, Version
+
+
+
+
public abstract class IQ
extends Packet
+ + +

+The base IQ (Info/Query) packet. IQ packets are used to get and set information + on the server, including authentication, roster operations, and creating + accounts. Each IQ packet has a specific type that indicates what type of action + is being taken: "get", "set", "result", or "error".

+ + IQ packets can contain a single child element that exists in a specific XML + namespace. The combination of the element name and namespace determines what + type of IQ packet it is. Some example IQ subpacket snippets:

+

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classIQ.Type + +
+          A class to represent the type of the IQ packet.
+ + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
IQ() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ IQ.TypegetType() + +
+          Returns the type of the IQ packet.
+ voidsetType(IQ.Type type) + +
+          Sets the type of the IQ packet.
+ StringtoXML() + +
+          Returns the packet as XML.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IQ

+
+public IQ()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public IQ.Type getType()
+
+
Returns the type of the IQ packet. +

+

+ +
Returns:
the type of the IQ packet.
+
+
+
+ +

+setType

+
+public void setType(IQ.Type type)
+
+
Sets the type of the IQ packet. +

+

+
Parameters:
type - the type of the IQ packet.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from class: Packet
+
Returns the packet as XML. Every concrete extension of Packet must implement + this method. In addition to writing out packet-specific data, every sub-class + should also write out the error and the extensions data if they are defined. +

+

+
Specified by:
toXML in class Packet
+
+
+ +
Returns:
the XML format of the packet as a String.
+
+
+
+ +

+getChildElementXML

+
+public abstract String getChildElementXML()
+
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Message.Type.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Message.Type.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Message.Type.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,364 @@ + + + + + + +Message.Type (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Message.Type

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Message.Type
+
+
+
Enclosing class:
Message
+
+
+
+
public static class Message.Type
extends Object
+ + +

+Represents the type of a message. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static Message.TypeCHAT + +
+          Typically short text message used in line-by-line chat interfaces.
+static Message.TypeERROR + +
+          indicates a messaging error.
+static Message.TypeGROUP_CHAT + +
+          Chat message sent to a groupchat server for group chats.
+static Message.TypeHEADLINE + +
+          Text message to be displayed in scrolling marquee displays.
+static Message.TypeNORMAL + +
+          (Default) a normal text message used in email like interface.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static Message.TypefromString(String type) + +
+          Converts a String value into its Type representation.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NORMAL

+
+public static final Message.Type NORMAL
+
+
(Default) a normal text message used in email like interface. +

+

+
+
+
+ +

+CHAT

+
+public static final Message.Type CHAT
+
+
Typically short text message used in line-by-line chat interfaces. +

+

+
+
+
+ +

+GROUP_CHAT

+
+public static final Message.Type GROUP_CHAT
+
+
Chat message sent to a groupchat server for group chats. +

+

+
+
+
+ +

+HEADLINE

+
+public static final Message.Type HEADLINE
+
+
Text message to be displayed in scrolling marquee displays. +

+

+
+
+
+ +

+ERROR

+
+public static final Message.Type ERROR
+
+
indicates a messaging error. +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+fromString

+
+public static Message.Type fromString(String type)
+
+
Converts a String value into its Type representation. +

+

+
Parameters:
type - the String value. +
Returns:
the Type corresponding to the String.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Message.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Message.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Message.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,547 @@ + + + + + + +Message (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Message

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.Message
+
+
+
+
public class Message
extends Packet
+ + +

+Represents XMPP message packets. A message can be one of several types: + +

+ + For each message type, different message fields are typically used as follows: +

+ + + + + + + +
 Message type
FieldNormalChatGroup ChatHeadlineXMPPError
subject SHOULDSHOULD NOTSHOULD NOTSHOULD NOTSHOULD NOT
thread OPTIONALSHOULDOPTIONALOPTIONALSHOULD NOT
body SHOULDSHOULDSHOULDSHOULDSHOULD NOT
error MUST NOTMUST NOTMUST NOTMUST NOTMUST
+

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classMessage.Type + +
+          Represents the type of a message.
+ + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + + + + + + + +
+Constructor Summary
Message() + +
+          Creates a new, "normal" message.
Message(String to) + +
+          Creates a new "normal" message to the specified recipient.
Message(String to, + Message.Type type) + +
+          Creates a new message of the specified type to a recipient.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetBody() + +
+          Returns the body of the message, or null if the body has not been set.
+ StringgetSubject() + +
+          Returns the subject of the message, or null if the subject has not been set.
+ StringgetThread() + +
+          Returns the thread id of the message, which is a unique identifier for a sequence + of "chat" messages.
+ Message.TypegetType() + +
+          Returns the type of the message.
+ voidsetBody(String body) + +
+          Sets the body of the message.
+ voidsetSubject(String subject) + +
+          Sets the subject of the message.
+ voidsetThread(String thread) + +
+          Sets the thread id of the message, which is a unique identifier for a sequence + of "chat" messages.
+ voidsetType(Message.Type type) + +
+          Sets the type of the message.
+ StringtoXML() + +
+          Returns the packet as XML.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Message

+
+public Message()
+
+
Creates a new, "normal" message. +

+

+
+ +

+Message

+
+public Message(String to)
+
+
Creates a new "normal" message to the specified recipient. +

+

+
Parameters:
to - the recipient of the message.
+
+
+ +

+Message

+
+public Message(String to,
+               Message.Type type)
+
+
Creates a new message of the specified type to a recipient. +

+

+
Parameters:
to - the user to send the message to.
type - the message type.
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public Message.Type getType()
+
+
Returns the type of the message. +

+

+ +
Returns:
the type of the message.
+
+
+
+ +

+setType

+
+public void setType(Message.Type type)
+
+
Sets the type of the message. +

+

+
Parameters:
type - the type of the message.
+
+
+
+ +

+getSubject

+
+public String getSubject()
+
+
Returns the subject of the message, or null if the subject has not been set. + The subject is a short description of message contents. +

+

+ +
Returns:
the subject of the message.
+
+
+
+ +

+setSubject

+
+public void setSubject(String subject)
+
+
Sets the subject of the message. The subject is a short description of + message contents. +

+

+
Parameters:
subject - the subject of the message.
+
+
+
+ +

+getBody

+
+public String getBody()
+
+
Returns the body of the message, or null if the body has not been set. The body + is the main message contents. +

+

+ +
Returns:
the body of the message.
+
+
+
+ +

+setBody

+
+public void setBody(String body)
+
+
Sets the body of the message. The body is the main message contents. +

+

+
Parameters:
body -
+
+
+
+ +

+getThread

+
+public String getThread()
+
+
Returns the thread id of the message, which is a unique identifier for a sequence + of "chat" messages. If no thread id is set, null will be returned. +

+

+ +
Returns:
the thread id of the message, or null if it doesn't exist.
+
+
+
+ +

+setThread

+
+public void setThread(String thread)
+
+
Sets the thread id of the message, which is a unique identifier for a sequence + of "chat" messages. +

+

+
Parameters:
thread - the thread id of the message.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from class: Packet
+
Returns the packet as XML. Every concrete extension of Packet must implement + this method. In addition to writing out packet-specific data, every sub-class + should also write out the error and the extensions data if they are defined. +

+

+
Specified by:
toXML in class Packet
+
+
+ +
Returns:
the XML format of the packet as a String.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Packet.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Packet.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Packet.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,826 @@ + + + + + + +Packet (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Packet

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+
+
+
Direct Known Subclasses:
IQ, Message, Presence
+
+
+
+
public abstract class Packet
extends Object
+ + +

+Base class for XMPP packets. Every packet has a unique ID (which is automatically + generated, but can be overriden). Optionally, the "to" and "from" fields can be set, + as well as an arbitrary number of properties. + + Properties provide an easy mechanism for clients to share data. Each property has a + String name, and a value that is a Java primitive (int, long, float, double, boolean) + or any Serializable object (a Java object is Serializable when it implements the + Serializable interface). +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static StringID_NOT_AVAILABLE + +
+          Constant used as packetID to indicate that a packet has no id.
+  + + + + + + + + + + +
+Constructor Summary
Packet() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddExtension(PacketExtension extension) + +
+          Adds a packet extension to the packet.
+ voiddeleteProperty(String name) + +
+          Deletes a property.
+ XMPPErrorgetError() + +
+          Returns the error associated with this packet, or null if there are + no errors.
+ PacketExtensiongetExtension(String elementName, + String namespace) + +
+          Returns the first packet extension that matches the specified element name and + namespace, or null if it doesn't exist.
+ IteratorgetExtensions() + +
+          Returns an Iterator for the packet extensions attached to the packet.
+protected  StringgetExtensionsXML() + +
+          Returns the extension sub-packets (including properties data) as an XML + String, or the Empty String if there are no packet extensions.
+ StringgetFrom() + +
+          Returns who the packet is being sent "from" or null if + the value is not set.
+ StringgetPacketID() + +
+          Returns the unique ID of the packet.
+ ObjectgetProperty(String name) + +
+          Returns the packet property with the specified name or null if the + property doesn't exist.
+ IteratorgetPropertyNames() + +
+          Returns an Iterator for all the property names that are set.
+ StringgetTo() + +
+          Returns who the packet is being sent "to", or null if + the value is not set.
+ voidremoveExtension(PacketExtension extension) + +
+          Removes a packet extension from the packet.
+ voidsetError(XMPPError error) + +
+          Sets the error for this packet.
+ voidsetFrom(String from) + +
+          Sets who the packet is being sent "from".
+ voidsetPacketID(String packetID) + +
+          Sets the unique ID of the packet.
+ voidsetProperty(String name, + boolean value) + +
+          Sets a packet property with a bboolean value.
+ voidsetProperty(String name, + double value) + +
+          Sets a packet property with a double value.
+ voidsetProperty(String name, + float value) + +
+          Sets a packet property with a float value.
+ voidsetProperty(String name, + int value) + +
+          Sets a packet property with an int value.
+ voidsetProperty(String name, + long value) + +
+          Sets a packet property with a long value.
+ voidsetProperty(String name, + Object value) + +
+          Sets a property with an Object as the value.
+ voidsetTo(String to) + +
+          Sets who the packet is being sent "to".
+abstract  StringtoXML() + +
+          Returns the packet as XML.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ID_NOT_AVAILABLE

+
+public static final String ID_NOT_AVAILABLE
+
+
Constant used as packetID to indicate that a packet has no id. To indicate that a packet + has no id set this constant as the packet's id. When the packet is asked for its id the + answer will be null. +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+Packet

+
+public Packet()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getPacketID

+
+public String getPacketID()
+
+
Returns the unique ID of the packet. The returned value could be null when + ID_NOT_AVAILABLE was set as the packet's id. +

+

+ +
Returns:
the packet's unique ID or null if the packet's id is not available.
+
+
+
+ +

+setPacketID

+
+public void setPacketID(String packetID)
+
+
Sets the unique ID of the packet. To indicate that a packet has no id + pass the constant ID_NOT_AVAILABLE as the packet's id value. +

+

+
Parameters:
packetID - the unique ID for the packet.
+
+
+
+ +

+getTo

+
+public String getTo()
+
+
Returns who the packet is being sent "to", or null if + the value is not set. The XMPP protocol often makes the "to" + attribute optional, so it does not always need to be set. +

+

+ +
Returns:
who the packet is being sent to, or null if the + value has not been set.
+
+
+
+ +

+setTo

+
+public void setTo(String to)
+
+
Sets who the packet is being sent "to". The XMPP protocol often makes + the "to" attribute optional, so it does not always need to be set. +

+

+
Parameters:
to - who the packet is being sent to.
+
+
+
+ +

+getFrom

+
+public String getFrom()
+
+
Returns who the packet is being sent "from" or null if + the value is not set. The XMPP protocol often makes the "from" + attribute optional, so it does not always need to be set. +

+

+ +
Returns:
who the packet is being sent from, or null if the + valud has not been set.
+
+
+
+ +

+setFrom

+
+public void setFrom(String from)
+
+
Sets who the packet is being sent "from". The XMPP protocol often + makes the "from" attribute optional, so it does not always need to + be set. +

+

+
Parameters:
from - who the packet is being sent to.
+
+
+
+ +

+getError

+
+public XMPPError getError()
+
+
Returns the error associated with this packet, or null if there are + no errors. +

+

+ +
Returns:
the error sub-packet or null if there isn't an error.
+
+
+
+ +

+setError

+
+public void setError(XMPPError error)
+
+
Sets the error for this packet. +

+

+
Parameters:
error - the error to associate with this packet.
+
+
+
+ +

+getExtensions

+
+public Iterator getExtensions()
+
+
Returns an Iterator for the packet extensions attached to the packet. +

+

+ +
Returns:
an Iterator for the packet extensions.
+
+
+
+ +

+getExtension

+
+public PacketExtension getExtension(String elementName,
+                                    String namespace)
+
+
Returns the first packet extension that matches the specified element name and + namespace, or null if it doesn't exist. Packet extensions are + are arbitrary XML sub-documents in standard XMPP packets. By default, a + DefaultPacketExtension instance will be returned for each extension. However, + PacketExtensionProvider instances can be registered with the + ProviderManager + class to handle custom parsing. In that case, the type of the Object + will be determined by the provider. +

+

+
Parameters:
elementName - the XML element name of the packet extension.
namespace - the XML element namespace of the packet extension. +
Returns:
the extension, or null if it doesn't exist.
+
+
+
+ +

+addExtension

+
+public void addExtension(PacketExtension extension)
+
+
Adds a packet extension to the packet. +

+

+
Parameters:
extension - a packet extension.
+
+
+
+ +

+removeExtension

+
+public void removeExtension(PacketExtension extension)
+
+
Removes a packet extension from the packet. +

+

+
Parameters:
extension - the packet extension to remove.
+
+
+
+ +

+getProperty

+
+public Object getProperty(String name)
+
+
Returns the packet property with the specified name or null if the + property doesn't exist. Property values that were orginally primitives will + be returned as their object equivalent. For example, an int property will be + returned as an Integer, a double as a Double, etc. +

+

+
Parameters:
name - the name of the property. +
Returns:
the property, or null if the property doesn't exist.
+
+
+
+ +

+setProperty

+
+public void setProperty(String name,
+                        int value)
+
+
Sets a packet property with an int value. +

+

+
Parameters:
name - the name of the property.
value - the value of the property.
+
+
+
+ +

+setProperty

+
+public void setProperty(String name,
+                        long value)
+
+
Sets a packet property with a long value. +

+

+
Parameters:
name - the name of the property.
value - the value of the property.
+
+
+
+ +

+setProperty

+
+public void setProperty(String name,
+                        float value)
+
+
Sets a packet property with a float value. +

+

+
Parameters:
name - the name of the property.
value - the value of the property.
+
+
+
+ +

+setProperty

+
+public void setProperty(String name,
+                        double value)
+
+
Sets a packet property with a double value. +

+

+
Parameters:
name - the name of the property.
value - the value of the property.
+
+
+
+ +

+setProperty

+
+public void setProperty(String name,
+                        boolean value)
+
+
Sets a packet property with a bboolean value. +

+

+
Parameters:
name - the name of the property.
value - the value of the property.
+
+
+
+ +

+setProperty

+
+public void setProperty(String name,
+                        Object value)
+
+
Sets a property with an Object as the value. The value must be Serializable + or an IllegalArgumentException will be thrown. +

+

+
Parameters:
name - the name of the property.
value - the value of the property.
+
+
+
+ +

+deleteProperty

+
+public void deleteProperty(String name)
+
+
Deletes a property. +

+

+
Parameters:
name - the name of the property to delete.
+
+
+
+ +

+getPropertyNames

+
+public Iterator getPropertyNames()
+
+
Returns an Iterator for all the property names that are set. +

+

+ +
Returns:
an Iterator for all property names.
+
+
+
+ +

+toXML

+
+public abstract String toXML()
+
+
Returns the packet as XML. Every concrete extension of Packet must implement + this method. In addition to writing out packet-specific data, every sub-class + should also write out the error and the extensions data if they are defined. +

+

+ +
Returns:
the XML format of the packet as a String.
+
+
+
+ +

+getExtensionsXML

+
+protected String getExtensionsXML()
+
+
Returns the extension sub-packets (including properties data) as an XML + String, or the Empty String if there are no packet extensions. +

+

+ +
Returns:
the extension sub-packets as XML or the Empty String if there + are no packet extensions.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/PacketExtension.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/PacketExtension.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/PacketExtension.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,264 @@ + + + + + + +PacketExtension (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Interface PacketExtension

+
+
All Known Implementing Classes:
Bytestream.Activate, Bytestream.StreamHost, Bytestream.StreamHostUsed, DataForm, DefaultPacketExtension, DelayInformation, GroupChatInvitation, IBBExtensions.Data, MessageEvent, MUCInitialPresence, MUCUser, MultipleAddresses, OfflineMessageInfo, RosterExchange, StreamInitiation.Feature, StreamInitiation.File, XHTMLExtension
+
+
+
+
public interface PacketExtension
+ + +

+Interface to represent packet extensions. A packet extension is an XML subdocument + with a root element name and namespace. Packet extensions are used to provide + extended functionality beyond what is in the base XMPP specification. Examples of + packet extensions include message events, message properties, and extra presence data. + IQ packets cannot contain packet extensions. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
DefaultPacketExtension, +PacketExtensionProvider
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+  +

+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+String getElementName()
+
+
Returns the root element name. +

+

+ +
Returns:
the element name.
+
+
+
+ +

+getNamespace

+
+String getNamespace()
+
+
Returns the root element XML namespace. +

+

+ +
Returns:
the namespace.
+
+
+
+ +

+toXML

+
+String toXML()
+
+
Returns the XML reppresentation of the PacketExtension. +

+

+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Presence.Mode.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Presence.Mode.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Presence.Mode.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,371 @@ + + + + + + +Presence.Mode (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Presence.Mode

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Presence.Mode
+
+
+
Enclosing class:
Presence
+
+
+
+
public static class Presence.Mode
extends Object
+ + +

+A typsafe enum class to represent the presence mode. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static Presence.ModeAVAILABLE + +
+           
+static Presence.ModeAWAY + +
+           
+static Presence.ModeCHAT + +
+           
+static Presence.ModeDO_NOT_DISTURB + +
+           
+static Presence.ModeEXTENDED_AWAY + +
+           
+static Presence.ModeINVISIBLE + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static Presence.ModefromString(String value) + +
+          Returns the mode constant associated with the String value.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+AVAILABLE

+
+public static final Presence.Mode AVAILABLE
+
+
+
+
+
+ +

+CHAT

+
+public static final Presence.Mode CHAT
+
+
+
+
+
+ +

+AWAY

+
+public static final Presence.Mode AWAY
+
+
+
+
+
+ +

+EXTENDED_AWAY

+
+public static final Presence.Mode EXTENDED_AWAY
+
+
+
+
+
+ +

+DO_NOT_DISTURB

+
+public static final Presence.Mode DO_NOT_DISTURB
+
+
+
+
+
+ +

+INVISIBLE

+
+public static final Presence.Mode INVISIBLE
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+fromString

+
+public static Presence.Mode fromString(String value)
+
+
Returns the mode constant associated with the String value. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Presence.Type.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Presence.Type.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Presence.Type.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,389 @@ + + + + + + +Presence.Type (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Presence.Type

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Presence.Type
+
+
+
Enclosing class:
Presence
+
+
+
+
public static class Presence.Type
extends Object
+ + +

+A typsafe enum class to represent the presecence type. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static Presence.TypeAVAILABLE + +
+           
+static Presence.TypeERROR + +
+           
+static Presence.TypeSUBSCRIBE + +
+           
+static Presence.TypeSUBSCRIBED + +
+           
+static Presence.TypeUNAVAILABLE + +
+           
+static Presence.TypeUNSUBSCRIBE + +
+           
+static Presence.TypeUNSUBSCRIBED + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static Presence.TypefromString(String value) + +
+          Returns the type constant associated with the String value.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+AVAILABLE

+
+public static final Presence.Type AVAILABLE
+
+
+
+
+
+ +

+UNAVAILABLE

+
+public static final Presence.Type UNAVAILABLE
+
+
+
+
+
+ +

+SUBSCRIBE

+
+public static final Presence.Type SUBSCRIBE
+
+
+
+
+
+ +

+SUBSCRIBED

+
+public static final Presence.Type SUBSCRIBED
+
+
+
+
+
+ +

+UNSUBSCRIBE

+
+public static final Presence.Type UNSUBSCRIBE
+
+
+
+
+
+ +

+UNSUBSCRIBED

+
+public static final Presence.Type UNSUBSCRIBED
+
+
+
+
+
+ +

+ERROR

+
+public static final Presence.Type ERROR
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+fromString

+
+public static Presence.Type fromString(String value)
+
+
Returns the type constant associated with the String value. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Presence.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Presence.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Presence.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,573 @@ + + + + + + +Presence (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Presence

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.Presence
+
+
+
+
public class Presence
extends Packet
+ + +

+Represents XMPP presence packets. Every presence packet has a type, which is one of + the following values: +

+ + A number of attributes are optional: +

+ + Presence packets are used for two purposes. First, to notify the server of our + the clients current presence status. Second, they are used to subscribe and + unsubscribe users from the roster. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
RosterPacket
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classPresence.Mode + +
+          A typsafe enum class to represent the presence mode.
+static classPresence.Type + +
+          A typsafe enum class to represent the presecence type.
+ + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + + + + +
+Constructor Summary
Presence(Presence.Type type) + +
+          Creates a new presence update.
Presence(Presence.Type type, + String status, + int priority, + Presence.Mode mode) + +
+          Creates a new presence update with a specified status, priority, and mode.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Presence.ModegetMode() + +
+          Returns the mode of the presence update.
+ intgetPriority() + +
+          Returns the priority of the presence, or -1 if no priority has been set.
+ StringgetStatus() + +
+          Returns the status message of the presence update, or null if there + is not a status.
+ Presence.TypegetType() + +
+          Returns the type of this presence packet.
+ voidsetMode(Presence.Mode mode) + +
+          Sets the mode of the presence update.
+ voidsetPriority(int priority) + +
+          Sets the priority of the presence.
+ voidsetStatus(String status) + +
+          Sets the status message of the presence update.
+ voidsetType(Presence.Type type) + +
+          Sets the type of the presence packet.
+ StringtoString() + +
+           
+ StringtoXML() + +
+          Returns the packet as XML.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Presence

+
+public Presence(Presence.Type type)
+
+
Creates a new presence update. Status, priority, and mode are left un-set. +

+

+
Parameters:
type - the type.
+
+
+ +

+Presence

+
+public Presence(Presence.Type type,
+                String status,
+                int priority,
+                Presence.Mode mode)
+
+
Creates a new presence update with a specified status, priority, and mode. +

+

+
Parameters:
type - the type.
status - a text message describing the presence update.
priority - the priority of this presence update.
mode - the mode type for this presence update.
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public Presence.Type getType()
+
+
Returns the type of this presence packet. +

+

+ +
Returns:
the type of the presence packet.
+
+
+
+ +

+setType

+
+public void setType(Presence.Type type)
+
+
Sets the type of the presence packet. +

+

+
Parameters:
type - the type of the presence packet.
+
+
+
+ +

+getStatus

+
+public String getStatus()
+
+
Returns the status message of the presence update, or null if there + is not a status. The status is free-form text describing a user's presence + (i.e., "gone to lunch"). +

+

+ +
Returns:
the status message.
+
+
+
+ +

+setStatus

+
+public void setStatus(String status)
+
+
Sets the status message of the presence update. The status is free-form text + describing a user's presence (i.e., "gone to lunch"). +

+

+
Parameters:
status - the status message.
+
+
+
+ +

+getPriority

+
+public int getPriority()
+
+
Returns the priority of the presence, or -1 if no priority has been set. +

+

+ +
Returns:
the priority.
+
+
+
+ +

+setPriority

+
+public void setPriority(int priority)
+
+
Sets the priority of the presence. The valid range is -128 through 128. +

+

+
Parameters:
priority - the priority of the presence. +
Throws: +
IllegalArgumentException - if the priority is outside the valid range.
+
+
+
+ +

+getMode

+
+public Presence.Mode getMode()
+
+
Returns the mode of the presence update. +

+

+ +
Returns:
the mode.
+
+
+
+ +

+setMode

+
+public void setMode(Presence.Mode mode)
+
+
Sets the mode of the presence update. For the standard "available" state, set + the mode to null. +

+

+
Parameters:
mode - the mode.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from class: Packet
+
Returns the packet as XML. Every concrete extension of Packet must implement + this method. In addition to writing out packet-specific data, every sub-class + should also write out the error and the extensions data if they are defined. +

+

+
Specified by:
toXML in class Packet
+
+
+ +
Returns:
the XML format of the packet as a String.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Registration.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Registration.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Registration.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,430 @@ + + + + + + +Registration (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Registration

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smack.packet.Registration
+
+
+
+
public class Registration
extends IQ
+ + +

+Represents registration packets. An empty GET query will cause the server to return information + about it's registration support. SET queries can be used to create accounts or update + existing account information. XMPP servers may require a number of attributes to be set + when creating a new account. The standard account attributes are as follows: +

+

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
Registration() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MapgetAttributes() + +
+          Returns the map of String key/value pairs of account attributes.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ StringgetInstructions() + +
+          Returns the registration instructions, or null if no instructions + have been set.
+ voidsetAttributes(Map attributes) + +
+          Sets the account attributes.
+ voidsetInstructions(String instructions) + +
+          Sets the registration instructions.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Registration

+
+public Registration()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstructions

+
+public String getInstructions()
+
+
Returns the registration instructions, or null if no instructions + have been set. If present, instructions should be displayed to the end-user + that will complete the registration process. +

+

+ +
Returns:
the registration instructions, or null if there are none.
+
+
+
+ +

+setInstructions

+
+public void setInstructions(String instructions)
+
+
Sets the registration instructions. +

+

+
Parameters:
instructions - the registration instructions.
+
+
+
+ +

+getAttributes

+
+public Map getAttributes()
+
+
Returns the map of String key/value pairs of account attributes. +

+

+ +
Returns:
the account attributes.
+
+
+
+ +

+setAttributes

+
+public void setAttributes(Map attributes)
+
+
Sets the account attributes. The map must only contain String key/value pairs. +

+

+
Parameters:
attributes - the account attributes.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.Item.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.Item.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.Item.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,478 @@ + + + + + + +RosterPacket.Item (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class RosterPacket.Item

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.RosterPacket.Item
+
+
+
Enclosing class:
RosterPacket
+
+
+
+
public static class RosterPacket.Item
extends Object
+ + +

+A roster item, which consists of a JID, their name, the type of subscription, and + the groups the roster item belongs to. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
RosterPacket.Item(String user, + String name) + +
+          Creates a new roster item.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddGroupName(String groupName) + +
+          Adds a group name.
+ IteratorgetGroupNames() + +
+          Returns an Iterator for the group names (as Strings) that the roster item + belongs to.
+ RosterPacket.ItemStatusgetItemStatus() + +
+          Returns the roster item status.
+ RosterPacket.ItemTypegetItemType() + +
+          Returns the roster item type.
+ StringgetName() + +
+          Returns the user's name.
+ StringgetUser() + +
+          Returns the user.
+ voidremoveGroupName(String groupName) + +
+          Removes a group name.
+ voidsetItemStatus(RosterPacket.ItemStatus itemStatus) + +
+          Sets the roster item status.
+ voidsetItemType(RosterPacket.ItemType itemType) + +
+          Sets the roster item type.
+ voidsetName(String name) + +
+          Sets the user's name.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RosterPacket.Item

+
+public RosterPacket.Item(String user,
+                         String name)
+
+
Creates a new roster item. +

+

+
Parameters:
user - the user.
name - the user's name.
+
+ + + + + + + + +
+Method Detail
+ +

+getUser

+
+public String getUser()
+
+
Returns the user. +

+

+ +
Returns:
the user.
+
+
+
+ +

+getName

+
+public String getName()
+
+
Returns the user's name. +

+

+ +
Returns:
the user's name.
+
+
+
+ +

+setName

+
+public void setName(String name)
+
+
Sets the user's name. +

+

+
Parameters:
name - the user's name.
+
+
+
+ +

+getItemType

+
+public RosterPacket.ItemType getItemType()
+
+
Returns the roster item type. +

+

+ +
Returns:
the roster item type.
+
+
+
+ +

+setItemType

+
+public void setItemType(RosterPacket.ItemType itemType)
+
+
Sets the roster item type. +

+

+
Parameters:
itemType - the roster item type.
+
+
+
+ +

+getItemStatus

+
+public RosterPacket.ItemStatus getItemStatus()
+
+
Returns the roster item status. +

+

+ +
Returns:
the roster item status.
+
+
+
+ +

+setItemStatus

+
+public void setItemStatus(RosterPacket.ItemStatus itemStatus)
+
+
Sets the roster item status. +

+

+
Parameters:
itemStatus - the roster item status.
+
+
+
+ +

+getGroupNames

+
+public Iterator getGroupNames()
+
+
Returns an Iterator for the group names (as Strings) that the roster item + belongs to. +

+

+ +
Returns:
an Iterator for the group names.
+
+
+
+ +

+addGroupName

+
+public void addGroupName(String groupName)
+
+
Adds a group name. +

+

+
Parameters:
groupName - the group name.
+
+
+
+ +

+removeGroupName

+
+public void removeGroupName(String groupName)
+
+
Removes a group name. +

+

+
Parameters:
groupName - the group name.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.ItemStatus.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.ItemStatus.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.ItemStatus.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,302 @@ + + + + + + +RosterPacket.ItemStatus (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class RosterPacket.ItemStatus

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.RosterPacket.ItemStatus
+
+
+
Enclosing class:
RosterPacket
+
+
+
+
public static class RosterPacket.ItemStatus
extends Object
+ + +

+The subscription status of a roster item. An optional element that indicates + the subscription status if a change request is pending. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static RosterPacket.ItemStatusSUBSCRIPTION_PENDING + +
+          Request to subcribe.
+static RosterPacket.ItemStatusUNSUBCRIPTION_PENDING + +
+          Request to unsubscribe.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static RosterPacket.ItemStatusfromString(String value) + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+SUBSCRIPTION_PENDING

+
+public static final RosterPacket.ItemStatus SUBSCRIPTION_PENDING
+
+
Request to subcribe. +

+

+
+
+
+ +

+UNSUBCRIPTION_PENDING

+
+public static final RosterPacket.ItemStatus UNSUBCRIPTION_PENDING
+
+
Request to unsubscribe. +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+fromString

+
+public static RosterPacket.ItemStatus fromString(String value)
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.ItemType.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.ItemType.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.ItemType.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,398 @@ + + + + + + +RosterPacket.ItemType (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class RosterPacket.ItemType

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.RosterPacket.ItemType
+
+
+
Enclosing class:
RosterPacket
+
+
+
+
public static class RosterPacket.ItemType
extends Object
+ + +

+The subscription type of a roster item. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static RosterPacket.ItemTypeBOTH + +
+          The user and subscriber have a mutual interest in each other's presence.
+static RosterPacket.ItemTypeFROM + +
+          The subscriber is interested in receiving presence updates from the user.
+static RosterPacket.ItemTypeNONE + +
+          The user and subscriber have no interest in each other's presence.
+static RosterPacket.ItemTypeREMOVE + +
+          The user wishes to stop receiving presence updates from the subscriber.
+static RosterPacket.ItemTypeTO + +
+          The user is interested in receiving presence updates from the subscriber.
+  + + + + + + + + + + +
+Constructor Summary
RosterPacket.ItemType(String value) + +
+          Returns the item type associated with the specified string.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static RosterPacket.ItemTypefromString(String value) + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NONE

+
+public static final RosterPacket.ItemType NONE
+
+
The user and subscriber have no interest in each other's presence. +

+

+
+
+
+ +

+TO

+
+public static final RosterPacket.ItemType TO
+
+
The user is interested in receiving presence updates from the subscriber. +

+

+
+
+
+ +

+FROM

+
+public static final RosterPacket.ItemType FROM
+
+
The subscriber is interested in receiving presence updates from the user. +

+

+
+
+
+ +

+BOTH

+
+public static final RosterPacket.ItemType BOTH
+
+
The user and subscriber have a mutual interest in each other's presence. +

+

+
+
+
+ +

+REMOVE

+
+public static final RosterPacket.ItemType REMOVE
+
+
The user wishes to stop receiving presence updates from the subscriber. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RosterPacket.ItemType

+
+public RosterPacket.ItemType(String value)
+
+
Returns the item type associated with the specified string. +

+

+
Parameters:
value - the item type.
+
+ + + + + + + + +
+Method Detail
+ +

+fromString

+
+public static RosterPacket.ItemType fromString(String value)
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/RosterPacket.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,413 @@ + + + + + + +RosterPacket (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class RosterPacket

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smack.packet.RosterPacket
+
+
+
+
public class RosterPacket
extends IQ
+ + +

+Represents XMPP roster packets. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Nested Class Summary
+static classRosterPacket.Item + +
+          A roster item, which consists of a JID, their name, the type of subscription, and + the groups the roster item belongs to.
+static classRosterPacket.ItemStatus + +
+          The subscription status of a roster item.
+static classRosterPacket.ItemType + +
+          The subscription type of a roster item.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
RosterPacket() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddRosterItem(RosterPacket.Item item) + +
+          Adds a roster item to the packet.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ intgetRosterItemCount() + +
+          Returns the number of roster items in this roster packet.
+ IteratorgetRosterItems() + +
+          Returns an Iterator for the roster items in the packet.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RosterPacket

+
+public RosterPacket()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addRosterItem

+
+public void addRosterItem(RosterPacket.Item item)
+
+
Adds a roster item to the packet. +

+

+
Parameters:
item - a roster item.
+
+
+
+ +

+getRosterItemCount

+
+public int getRosterItemCount()
+
+
Returns the number of roster items in this roster packet. +

+

+ +
Returns:
the number of roster items.
+
+
+
+ +

+getRosterItems

+
+public Iterator getRosterItems()
+
+
Returns an Iterator for the roster items in the packet. +

+

+ +
Returns:
and Iterator for the roster items in the packet.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Session.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Session.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/Session.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,331 @@ + + + + + + +Session (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class Session

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smack.packet.Session
+
+
+
+
public class Session
extends IQ
+ + +

+IQ packet that will be sent to the server to establish a session.

+ + If a server supports sessions, it MUST include a session element in the + stream features it advertises to a client after the completion of stream authentication. + Upon being informed that session establishment is required by the server the client MUST + establish a session if it desires to engage in instant messaging and presence functionality.

+ + For more information refer to the following + link. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
Session() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Session

+
+public Session()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/StreamError.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/StreamError.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/StreamError.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,336 @@ + + + + + + +StreamError (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class StreamError

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.StreamError
+
+
+
+
public class StreamError
extends Object
+ + +

+Represents a stream error packet. Stream errors are unrecoverable errors where the server + will close the unrelying TCP connection after the stream error was sent to the client. + These is the list of stream errors as defined in the XMPP spec:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeDescription
bad-format the entity has sent XML that cannot be processed
unsupported-encoding the entity has sent a namespace prefix that is + unsupported
bad-namespace-prefix Remote Server Timeout
conflict the server is closing the active stream for this entity + because a new stream has been initiated that conflicts with the existing + stream.
connection-timeout the entity has not generated any traffic over + the stream for some period of time.
host-gone the value of the 'to' attribute provided by the initiating + entity in the stream header corresponds to a hostname that is no longer hosted by + the server.
host-unknown the value of the 'to' attribute provided by the + initiating entity in the stream header does not correspond to a hostname that is + hosted by the server.
improper-addressing a stanza sent between two servers lacks a 'to' + or 'from' attribute
internal-server-error the server has experienced a + misconfiguration.
invalid-from the JID or hostname provided in a 'from' address does + not match an authorized JID.
invalid-id the stream ID or dialback ID is invalid or does not match + an ID previously provided.
invalid-namespace the streams namespace name is invalid.
invalid-xml the entity has sent invalid XML over the stream.
not-authorized the entity has attempted to send data before the + stream has been authenticated
policy-violation the entity has violated some local service + policy.
remote-connection-failed Rthe server is unable to properly connect + to a remote entity.
resource-constraint Rthe server lacks the system resources necessary + to service the stream.
restricted-xml the entity has attempted to send restricted XML + features.
see-other-host the server will not provide service to the initiating + entity but is redirecting traffic to another host.
system-shutdown the server is being shut down and all active streams + are being closed.
undefined-condition the error condition is not one of those defined + by the other conditions in this list.
unsupported-encoding the initiating entity has encoded the stream in + an encoding that is not supported.
unsupported-stanza-type the initiating entity has sent a first-level + child of the stream that is not supported.
unsupported-version the value of the 'version' attribute provided by + the initiating entity in the stream header specifies a version of XMPP that is not + supported.
xml-not-well-formed the initiating entity has sent XML that is + not well-formed.
+

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StreamError(String code) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetCode() + +
+          Returns the error code.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StreamError

+
+public StreamError(String code)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getCode

+
+public String getCode()
+
+
Returns the error code. +

+

+ +
Returns:
the error code.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/XMPPError.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/XMPPError.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/XMPPError.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,370 @@ + + + + + + +XMPPError (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.packet +
+Class XMPPError

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.XMPPError
+
+
+
+
public class XMPPError
extends Object
+ + +

+Represents a XMPP error sub-packet. Typically, a server responds to a request that has + problems by sending the packet back and including an error packet. Each error has a code + as well as as an optional text explanation. Typical error codes are as follows:

+ + + + + + + + + + + + + + + + + + + +
CodeDescription
302 Redirect
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Not Allowed
406 Not Acceptable
407 Registration Required
408 Request Timeout
409 Conflict
500 Internal Server XMPPError
501 Not Implemented
502 Remote Server Error
503 Service Unavailable
504 Remote Server Timeout
+

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
XMPPError(int code) + +
+          Creates a new error with the specified code and no message..
XMPPError(int code, + String message) + +
+          Creates a new error with the specified code and message.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetCode() + +
+          Returns the error code.
+ StringgetMessage() + +
+          Returns the message describing the error, or null if there is no message.
+ StringtoString() + +
+           
+ StringtoXML() + +
+          Returns the error as XML.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XMPPError

+
+public XMPPError(int code)
+
+
Creates a new error with the specified code and no message.. +

+

+
Parameters:
code - the error code.
+
+
+ +

+XMPPError

+
+public XMPPError(int code,
+                 String message)
+
+
Creates a new error with the specified code and message. +

+

+
Parameters:
code - the error code.
message - a message describing the error.
+
+ + + + + + + + +
+Method Detail
+ +

+getCode

+
+public int getCode()
+
+
Returns the error code. +

+

+ +
Returns:
the error code.
+
+
+
+ +

+getMessage

+
+public String getMessage()
+
+
Returns the message describing the error, or null if there is no message. +

+

+ +
Returns:
the message describing the error, or null if there is no message.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Returns the error as XML. +

+

+ +
Returns:
the error as XML.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,79 @@ + + + + + + +org.jivesoftware.smack.packet (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smack.packet + + + + +
+Interfaces  + +
+PacketExtension
+ + + + + + +
+Classes  + +
+Authentication +
+Bind +
+DefaultPacketExtension +
+IQ +
+IQ.Type +
+Message +
+Message.Type +
+Packet +
+Presence +
+Presence.Mode +
+Presence.Type +
+Registration +
+RosterPacket +
+RosterPacket.Item +
+RosterPacket.ItemStatus +
+RosterPacket.ItemType +
+Session +
+StreamError +
+XMPPError
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,255 @@ + + + + + + +org.jivesoftware.smack.packet (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smack.packet +

+XML packets that are part of the XMPP protocol. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
PacketExtensionInterface to represent packet extensions.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AuthenticationAuthentication packet, which can be used to login to a XMPP server as well + as discover login information from the server.
BindIQ packet used by Smack to bind a resource and to obtain the jid assigned by the server.
DefaultPacketExtensionDefault implementation of the PacketExtension interface.
IQThe base IQ (Info/Query) packet.
IQ.TypeA class to represent the type of the IQ packet.
MessageRepresents XMPP message packets.
Message.TypeRepresents the type of a message.
PacketBase class for XMPP packets.
PresenceRepresents XMPP presence packets.
Presence.ModeA typsafe enum class to represent the presence mode.
Presence.TypeA typsafe enum class to represent the presecence type.
RegistrationRepresents registration packets.
RosterPacketRepresents XMPP roster packets.
RosterPacket.ItemA roster item, which consists of a JID, their name, the type of subscription, and + the groups the roster item belongs to.
RosterPacket.ItemStatusThe subscription status of a roster item.
RosterPacket.ItemTypeThe subscription type of a roster item.
SessionIQ packet that will be sent to the server to establish a session.
StreamErrorRepresents a stream error packet.
XMPPErrorRepresents a XMPP error sub-packet.
+  + +

+

+Package org.jivesoftware.smack.packet Description +

+ +

+XML packets that are part of the XMPP protocol. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/packet/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,157 @@ + + + + + + +org.jivesoftware.smack.packet Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smack.packet +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/IQProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/IQProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/IQProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,224 @@ + + + + + + +IQProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.provider +
+Interface IQProvider

+
+
All Known Implementing Classes:
BytestreamsProvider, DiscoverInfoProvider, DiscoverItemsProvider, IBBProviders.Close, IBBProviders.Open, LastActivity.Provider, MUCAdminProvider, MUCOwnerProvider, OfflineMessageRequest.Provider, PrivateDataManager.PrivateDataIQProvider, SharedGroupsInfo.Provider, StreamInitiationProvider, UserSearch.Provider, VCardProvider
+
+
+
+
public interface IQProvider
+ + +

+An interface for parsing custom IQ packets. Each IQProvider must be registered with + the ProviderManager class for it to be used. Every implementation of this + interface must have a public, no-argument constructor. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+  +

+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/PacketExtensionProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/PacketExtensionProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/PacketExtensionProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,223 @@ + + + + + + +PacketExtensionProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.provider +
+Interface PacketExtensionProvider

+
+
All Known Implementing Classes:
DataFormProvider, DelayInformationProvider, GroupChatInvitation.Provider, IBBProviders.Data, MessageEventProvider, MUCUserProvider, MultipleAddressesProvider, OfflineMessageInfo.Provider, RosterExchangeProvider, XHTMLExtensionProvider
+
+
+
+
public interface PacketExtensionProvider
+ + +

+An interface for parsing custom packets extensions. Each PacketExtensionProvider must + be registered with the ProviderManager class for it to be used. Every implementation + of this interface must have a public, no-argument constructor. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse an extension sub-packet and create a PacketExtension instance.
+  +

+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Parse an extension sub-packet and create a PacketExtension instance. At + the beginning of the method call, the xml parser will be positioned on the + opening element of the packet extension. At the end of the method call, the + parser must be positioned on the closing element of the packet extension. +

+

+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/ProviderManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/ProviderManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/ProviderManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,500 @@ + + + + + + +ProviderManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.provider +
+Class ProviderManager

+
+java.lang.Object
+  extended by org.jivesoftware.smack.provider.ProviderManager
+
+
+
+
public class ProviderManager
extends Object
+ + +

+Manages providers for parsing custom XML sub-documents of XMPP packets. Two types of + providers exist:

+ + IQProvider

+ + By default, Smack only knows how to process IQ packets with sub-packets that + are in a few namespaces such as:

+ + Because many more IQ types are part of XMPP and its extensions, a pluggable IQ parsing + mechanism is provided. IQ providers are registered programatically or by creating a + smack.providers file in the META-INF directory of your JAR file. The file is an XML + document that contains one or more iqProvider entries, as in the following example: + +
+ <?xml version="1.0"?>
+ <smackProviders>
+     <iqProvider>
+         <elementName>query</elementName>
+         <namespace>jabber:iq:time</namespace>
+         <className>org.jivesoftware.smack.packet.Time</className>
+     </iqProvider>
+ </smackProviders>
+ + Each IQ provider is associated with an element name and a namespace. If multiple provider + entries attempt to register to handle the same namespace, the first entry loaded from the + classpath will take precedence. The IQ provider class can either implement the IQProvider + interface, or extend the IQ class. In the former case, each IQProvider is responsible for + parsing the raw XML stream to create an IQ instance. In the latter case, bean introspection + is used to try to automatically set properties of the IQ instance using the values found + in the IQ packet XML. For example, an XMPP time packet resembles the following: +
+ <iq type='result' to='joe@example.com' from='mary@example.com' id='time_1'>
+     <query xmlns='jabber:iq:time'>
+         <utc>20020910T17:58:35</utc>
+         <tz>MDT</tz>
+         <display>Tue Sep 10 12:58:35 2002</display>
+     </query>
+ </iq>
+ + In order for this packet to be automatically mapped to the Time object listed in the + providers file above, it must have the methods setUtc(String), setTz(String), and + setDisplay(String). The introspection service will automatically try to convert the String + value from the XML into a boolean, int, long, float, double, or Class depending on the + type the IQ instance expects.

+ + A pluggable system for packet extensions, child elements in a custom namespace for + message and presence packets, also exists. Each extension provider + is registered with a name space in the smack.providers file as in the following example: + +

+ <?xml version="1.0"?>
+ <smackProviders>
+     <extensionProvider>
+         <elementName>x</elementName>
+         <namespace>jabber:iq:event</namespace>
+         <className>org.jivesoftware.smack.packet.MessageEvent</className>
+     </extensionProvider>
+ </smackProviders>
+ + If multiple provider entries attempt to register to handle the same element name and namespace, + the first entry loaded from the classpath will take precedence. Whenever a packet extension + is found in a packet, parsing will be passed to the correct provider. Each provider + can either implement the PacketExtensionProvider interface or be a standard Java Bean. In + the former case, each extension provider is responsible for parsing the raw XML stream to + contruct an object. In the latter case, bean introspection is used to try to automatically + set the properties of the class using the values in the packet extension sub-element. When an + extension provider is not registered for an element name and namespace combination, Smack will + store all top-level elements of the sub-packet in DefaultPacketExtension object and then + attach it to the packet. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddExtensionProvider(String elementName, + String namespace, + Object provider) + +
+          Adds an extension provider with the specified element name and name space.
+static voidaddIQProvider(String elementName, + String namespace, + Object provider) + +
+          Adds an IQ provider (must be an instance of IQProvider or Class object that is an IQ) + with the specified element name and name space.
+static ObjectgetExtensionProvider(String elementName, + String namespace) + +
+          Returns the packet extension provider registered to the specified XML element name + and namespace.
+static IteratorgetExtensionProviders() + +
+          Returns an Iterator for all PacketExtensionProvider instances.
+static ObjectgetIQProvider(String elementName, + String namespace) + +
+          Returns the IQ provider registered to the specified XML element name and namespace.
+static IteratorgetIQProviders() + +
+          Returns an Iterator for all IQProvider instances.
+static voidremoveExtensionProvider(String elementName, + String namespace) + +
+          Removes an extension provider with the specified element name and namespace.
+static voidremoveIQProvider(String elementName, + String namespace) + +
+          Removes an IQ provider with the specified element name and namespace.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getIQProvider

+
+public static Object getIQProvider(String elementName,
+                                   String namespace)
+
+
Returns the IQ provider registered to the specified XML element name and namespace. + For example, if a provider was registered to the element name "query" and the + namespace "jabber:iq:time", then the following packet would trigger the provider: + +
+ <iq type='result' to='joe@example.com' from='mary@example.com' id='time_1'>
+     <query xmlns='jabber:iq:time'>
+         <utc>20020910T17:58:35</utc>
+         <tz>MDT</tz>
+         <display>Tue Sep 10 12:58:35 2002</display>
+     </query>
+ </iq>
+ +

Note: this method is generally only called by the internal Smack classes. +

+

+
Parameters:
elementName - the XML element name.
namespace - the XML namespace. +
Returns:
the IQ provider.
+
+
+
+ +

+getIQProviders

+
+public static Iterator getIQProviders()
+
+
Returns an Iterator for all IQProvider instances. +

+

+ +
Returns:
an Iterator for all IQProvider instances.
+
+
+
+ +

+addIQProvider

+
+public static void addIQProvider(String elementName,
+                                 String namespace,
+                                 Object provider)
+
+
Adds an IQ provider (must be an instance of IQProvider or Class object that is an IQ) + with the specified element name and name space. The provider will override any providers + loaded through the classpath. +

+

+
Parameters:
elementName - the XML element name.
namespace - the XML namespace.
provider - the IQ provider.
+
+
+
+ +

+removeIQProvider

+
+public static void removeIQProvider(String elementName,
+                                    String namespace)
+
+
Removes an IQ provider with the specified element name and namespace. This + method is typically called to cleanup providers that are programatically added + using the addIQProvider method. +

+

+
Parameters:
elementName - the XML element name.
namespace - the XML namespace.
+
+
+
+ +

+getExtensionProvider

+
+public static Object getExtensionProvider(String elementName,
+                                          String namespace)
+
+
Returns the packet extension provider registered to the specified XML element name + and namespace. For example, if a provider was registered to the element name "x" and the + namespace "jabber:x:event", then the following packet would trigger the provider: + +
+ <message to='romeo@montague.net' id='message_1'>
+     <body>Art thou not Romeo, and a Montague?</body>
+     <x xmlns='jabber:x:event'>
+         <composing/>
+     </x>
+ </message>
+ +

Note: this method is generally only called by the internal Smack classes. +

+

+
Parameters:
elementName -
namespace - +
Returns:
the extenion provider.
+
+
+
+ +

+addExtensionProvider

+
+public static void addExtensionProvider(String elementName,
+                                        String namespace,
+                                        Object provider)
+
+
Adds an extension provider with the specified element name and name space. The provider + will override any providers loaded through the classpath. The provider must be either + a PacketExtensionProvider instance, or a Class object of a Javabean. +

+

+
Parameters:
elementName - the XML element name.
namespace - the XML namespace.
provider - the extension provider.
+
+
+
+ +

+removeExtensionProvider

+
+public static void removeExtensionProvider(String elementName,
+                                           String namespace)
+
+
Removes an extension provider with the specified element name and namespace. This + method is typically called to cleanup providers that are programatically added + using the addExtensionProvider method. +

+

+
Parameters:
elementName - the XML element name.
namespace - the XML namespace.
+
+
+
+ +

+getExtensionProviders

+
+public static Iterator getExtensionProviders()
+
+
Returns an Iterator for all PacketExtensionProvider instances. +

+

+ +
Returns:
an Iterator for all PacketExtensionProvider instances.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,45 @@ + + + + + + +org.jivesoftware.smack.provider (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smack.provider + + + + +
+Interfaces  + +
+IQProvider +
+PacketExtensionProvider
+ + + + + + +
+Classes  + +
+ProviderManager
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,185 @@ + + + + + + +org.jivesoftware.smack.provider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smack.provider +

+Provides pluggable parsing of incoming IQ's and packet extensions. +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Interface Summary
IQProviderAn interface for parsing custom IQ packets.
PacketExtensionProviderAn interface for parsing custom packets extensions.
+  + +

+ + + + + + + + + +
+Class Summary
ProviderManagerManages providers for parsing custom XML sub-documents of XMPP packets.
+  + +

+

+Package org.jivesoftware.smack.provider Description +

+ +

+Provides pluggable parsing of incoming IQ's and packet extensions. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/provider/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,152 @@ + + + + + + +org.jivesoftware.smack.provider Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smack.provider +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/SASLAnonymous.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/SASLAnonymous.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/SASLAnonymous.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,334 @@ + + + + + + +SASLAnonymous (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.sasl +
+Class SASLAnonymous

+
+java.lang.Object
+  extended by org.jivesoftware.smack.sasl.SASLMechanism
+      extended by org.jivesoftware.smack.sasl.SASLAnonymous
+
+
+
+
public class SASLAnonymous
extends SASLMechanism
+ + +

+Implementation of the SASL ANONYMOUS mechanisn as defined by the + IETF draft + document. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
SASLAnonymous(SASLAuthentication saslAuthentication) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  StringgetAuthenticationText(String username, + String host, + String password) + +
+          Returns the authentication text to include in the initial auth stanza + or null if nothing should be added.
+protected  StringgetChallengeResponse(byte[] bytes) + +
+          Returns the response text to send answering the challenge sent by the server.
+protected  StringgetName() + +
+          Returns the common name of the SASL mechanism.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.sasl.SASLMechanism
authenticate, challengeReceived, getSASLAuthentication
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SASLAnonymous

+
+public SASLAnonymous(SASLAuthentication saslAuthentication)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+protected String getName()
+
+
Description copied from class: SASLMechanism
+
Returns the common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or KERBEROS_V4. +

+

+
Specified by:
getName in class SASLMechanism
+
+
+ +
Returns:
the common name of the SASL mechanism.
+
+
+
+ +

+getAuthenticationText

+
+protected String getAuthenticationText(String username,
+                                       String host,
+                                       String password)
+
+
Description copied from class: SASLMechanism
+
Returns the authentication text to include in the initial auth stanza + or null if nothing should be added. +

+

+
Specified by:
getAuthenticationText in class SASLMechanism
+
+
+
Parameters:
username - the username of the user being authenticated.
host - the hostname where the user account resides.
password - the password of the user. +
Returns:
the authentication text to include in the initial auth stanza + or null if nothing should be added.
+
+
+
+ +

+getChallengeResponse

+
+protected String getChallengeResponse(byte[] bytes)
+
+
Description copied from class: SASLMechanism
+
Returns the response text to send answering the challenge sent by the server. Mechanisms + that will never receive a challenge may redefine this method returning null. +

+

+
Specified by:
getChallengeResponse in class SASLMechanism
+
+
+
Parameters:
bytes - the challenge sent by the server. +
Returns:
the response text to send to answer the challenge sent by the server.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/SASLMechanism.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/SASLMechanism.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/SASLMechanism.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,391 @@ + + + + + + +SASLMechanism (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.sasl +
+Class SASLMechanism

+
+java.lang.Object
+  extended by org.jivesoftware.smack.sasl.SASLMechanism
+
+
+
Direct Known Subclasses:
SASLAnonymous, SASLPlainMechanism
+
+
+
+
public abstract class SASLMechanism
extends Object
+ + +

+Base class for SASL mechanisms. Subclasses must implement three methods: +

+

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
SASLMechanism(SASLAuthentication saslAuthentication) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidauthenticate(String username, + String host, + String password) + +
+          Builds and sends the auth stanza to the server.
+ voidchallengeReceived(String challenge) + +
+          The server is challenging the SASL mechanism for the stanza he just sent.
+protected abstract  StringgetAuthenticationText(String username, + String host, + String password) + +
+          Returns the authentication text to include in the initial auth stanza + or null if nothing should be added.
+protected abstract  StringgetChallengeResponse(byte[] bytes) + +
+          Returns the response text to send answering the challenge sent by the server.
+protected abstract  StringgetName() + +
+          Returns the common name of the SASL mechanism.
+protected  SASLAuthenticationgetSASLAuthentication() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SASLMechanism

+
+public SASLMechanism(SASLAuthentication saslAuthentication)
+
+
+ + + + + + + + +
+Method Detail
+ +

+authenticate

+
+public void authenticate(String username,
+                         String host,
+                         String password)
+                  throws IOException
+
+
Builds and sends the auth stanza to the server. +

+

+
Parameters:
username - the username of the user being authenticated.
host - the hostname where the user account resides.
password - the password of the user. +
Throws: +
IOException - If a network error occures while authenticating.
+
+
+
+ +

+challengeReceived

+
+public void challengeReceived(String challenge)
+                       throws IOException
+
+
The server is challenging the SASL mechanism for the stanza he just sent. Send a + response to the server's challenge. +

+

+
Parameters:
challenge - a base64 encoded string representing the challenge. +
Throws: +
IOException
+
+
+
+ +

+getChallengeResponse

+
+protected abstract String getChallengeResponse(byte[] bytes)
+
+
Returns the response text to send answering the challenge sent by the server. Mechanisms + that will never receive a challenge may redefine this method returning null. +

+

+
Parameters:
bytes - the challenge sent by the server. +
Returns:
the response text to send to answer the challenge sent by the server.
+
+
+
+ +

+getName

+
+protected abstract String getName()
+
+
Returns the common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or KERBEROS_V4. +

+

+ +
Returns:
the common name of the SASL mechanism.
+
+
+
+ +

+getAuthenticationText

+
+protected abstract String getAuthenticationText(String username,
+                                                String host,
+                                                String password)
+
+
Returns the authentication text to include in the initial auth stanza + or null if nothing should be added. +

+

+
Parameters:
username - the username of the user being authenticated.
host - the hostname where the user account resides.
password - the password of the user. +
Returns:
the authentication text to include in the initial auth stanza + or null if nothing should be added.
+
+
+
+ +

+getSASLAuthentication

+
+protected SASLAuthentication getSASLAuthentication()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/SASLPlainMechanism.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/SASLPlainMechanism.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/SASLPlainMechanism.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,334 @@ + + + + + + +SASLPlainMechanism (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.sasl +
+Class SASLPlainMechanism

+
+java.lang.Object
+  extended by org.jivesoftware.smack.sasl.SASLMechanism
+      extended by org.jivesoftware.smack.sasl.SASLPlainMechanism
+
+
+
+
public class SASLPlainMechanism
extends SASLMechanism
+ + +

+Implementation of the SASL PLAIN mechanisn as defined by the + IETF draft + document. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
SASLPlainMechanism(SASLAuthentication saslAuthentication) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  StringgetAuthenticationText(String username, + String host, + String password) + +
+          Returns the authentication text to include in the initial auth stanza + or null if nothing should be added.
+protected  StringgetChallengeResponse(byte[] bytes) + +
+          Returns the response text to send answering the challenge sent by the server.
+protected  StringgetName() + +
+          Returns the common name of the SASL mechanism.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.sasl.SASLMechanism
authenticate, challengeReceived, getSASLAuthentication
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SASLPlainMechanism

+
+public SASLPlainMechanism(SASLAuthentication saslAuthentication)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+protected String getName()
+
+
Description copied from class: SASLMechanism
+
Returns the common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or KERBEROS_V4. +

+

+
Specified by:
getName in class SASLMechanism
+
+
+ +
Returns:
the common name of the SASL mechanism.
+
+
+
+ +

+getAuthenticationText

+
+protected String getAuthenticationText(String username,
+                                       String host,
+                                       String password)
+
+
Description copied from class: SASLMechanism
+
Returns the authentication text to include in the initial auth stanza + or null if nothing should be added. +

+

+
Specified by:
getAuthenticationText in class SASLMechanism
+
+
+
Parameters:
username - the username of the user being authenticated.
host - the hostname where the user account resides.
password - the password of the user. +
Returns:
the authentication text to include in the initial auth stanza + or null if nothing should be added.
+
+
+
+ +

+getChallengeResponse

+
+protected String getChallengeResponse(byte[] bytes)
+
+
Description copied from class: SASLMechanism
+
Returns the response text to send answering the challenge sent by the server. Mechanisms + that will never receive a challenge may redefine this method returning null. +

+

+
Specified by:
getChallengeResponse in class SASLMechanism
+
+
+
Parameters:
bytes - the challenge sent by the server. +
Returns:
the response text to send to answer the challenge sent by the server.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,36 @@ + + + + + + +org.jivesoftware.smack.sasl (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smack.sasl + + + + +
+Classes  + +
+SASLAnonymous +
+SASLMechanism +
+SASLPlainMechanism
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,179 @@ + + + + + + +org.jivesoftware.smack.sasl (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smack.sasl +

+SASL Mechanisms. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Class Summary
SASLAnonymousImplementation of the SASL ANONYMOUS mechanisn as defined by the + IETF draft + document.
SASLMechanismBase class for SASL mechanisms.
SASLPlainMechanismImplementation of the SASL PLAIN mechanisn as defined by the + IETF draft + document.
+  + +

+

+Package org.jivesoftware.smack.sasl Description +

+ +

+SASL Mechanisms. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/sasl/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,149 @@ + + + + + + +org.jivesoftware.smack.sasl Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smack.sasl +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/Cache.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/Cache.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/Cache.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,943 @@ + + + + + + +Cache (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.util +
+Class Cache

+
+java.lang.Object
+  extended by org.jivesoftware.smack.util.Cache
+
+
+
All Implemented Interfaces:
Map
+
+
+
+
public class Cache
extends Object
implements Map
+ + +

+A specialized Map that is size-limited (using an LRU algorithm) and + has an optional expiration time for cache items. The Map is thread-safe.

+ + The algorithm for cache is as follows: a HashMap is maintained for fast + object lookup. Two linked lists are maintained: one keeps objects in the + order they are accessed from cache, the other keeps objects in the order + they were originally added to cache. When objects are added to cache, they + are first wrapped by a CacheObject which maintains the following pieces + of information:

+

+ To get an object from cache, a hash lookup is performed to get a reference + to the CacheObject that wraps the real object we are looking for. + The object is subsequently moved to the front of the accessed linked list + and any necessary cache cleanups are performed. Cache deletion and expiration + is performed as needed. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  org.jivesoftware.smack.util.Cache.LinkedListageList + +
+          Linked list to maintain time that cache objects were initially added + to the cache, most recently added to oldest added.
+protected  longcacheHits + +
+          Maintain the number of cache hits and misses.
+protected  longcacheMisses + +
+          Maintain the number of cache hits and misses.
+protected  org.jivesoftware.smack.util.Cache.LinkedListlastAccessedList + +
+          Linked list to maintain order that cache objects are accessed + in, most used to least used.
+protected  Mapmap + +
+          The map the keys and values are stored in.
+protected  intmaxCacheSize + +
+          Maximum number of items the cache will hold.
+protected  longmaxLifetime + +
+          Maximum length of time objects can exist in cache before expiring.
+  + + + + + + + + + + +
+Constructor Summary
Cache(int maxSize, + long maxLifetime) + +
+          Create a new cache and specify the maximum size of for the cache in + bytes, and the maximum lifetime of objects.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidclear() + +
+           
+ booleancontainsKey(Object key) + +
+           
+ booleancontainsValue(Object value) + +
+           
+protected  voidcullCache() + +
+          Removes the least recently used elements if the cache size is greater than + or equal to the maximum allowed size until the cache is at least 10% empty.
+protected  voiddeleteExpiredEntries() + +
+          Clears all entries out of cache where the entries are older than the + maximum defined age.
+ SetentrySet() + +
+           
+ Objectget(Object key) + +
+           
+ longgetCacheHits() + +
+           
+ longgetCacheMisses() + +
+           
+ intgetMaxCacheSize() + +
+           
+ longgetMaxLifetime() + +
+           
+ booleanisEmpty() + +
+           
+ SetkeySet() + +
+           
+ Objectput(Object key, + Object value) + +
+           
+ voidputAll(Map map) + +
+           
+ Objectremove(Object key) + +
+           
+ Objectremove(Object key, + boolean internal) + +
+           
+ voidsetMaxCacheSize(int maxCacheSize) + +
+           
+ voidsetMaxLifetime(long maxLifetime) + +
+           
+ intsize() + +
+           
+ Collectionvalues() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+ + + + + + + +
Methods inherited from interface java.util.Map
equals, hashCode
+  +

+ + + + + + + + +
+Field Detail
+ +

+map

+
+protected Map map
+
+
The map the keys and values are stored in. +

+

+
+
+
+ +

+lastAccessedList

+
+protected org.jivesoftware.smack.util.Cache.LinkedList lastAccessedList
+
+
Linked list to maintain order that cache objects are accessed + in, most used to least used. +

+

+
+
+
+ +

+ageList

+
+protected org.jivesoftware.smack.util.Cache.LinkedList ageList
+
+
Linked list to maintain time that cache objects were initially added + to the cache, most recently added to oldest added. +

+

+
+
+
+ +

+maxCacheSize

+
+protected int maxCacheSize
+
+
Maximum number of items the cache will hold. +

+

+
+
+
+ +

+maxLifetime

+
+protected long maxLifetime
+
+
Maximum length of time objects can exist in cache before expiring. +

+

+
+
+
+ +

+cacheHits

+
+protected long cacheHits
+
+
Maintain the number of cache hits and misses. A cache hit occurs every + time the get method is called and the cache contains the requested + object. A cache miss represents the opposite occurence.

+ + Keeping track of cache hits and misses lets one measure how efficient + the cache is; the higher the percentage of hits, the more efficient. +

+

+
+
+
+ +

+cacheMisses

+
+protected long cacheMisses
+
+
Maintain the number of cache hits and misses. A cache hit occurs every + time the get method is called and the cache contains the requested + object. A cache miss represents the opposite occurence.

+ + Keeping track of cache hits and misses lets one measure how efficient + the cache is; the higher the percentage of hits, the more efficient. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Cache

+
+public Cache(int maxSize,
+             long maxLifetime)
+
+
Create a new cache and specify the maximum size of for the cache in + bytes, and the maximum lifetime of objects. +

+

+
Parameters:
maxSize - the maximum number of objects the cache will hold. -1 + means the cache has no max size.
maxLifetime - the maximum amount of time (in ms) objects can exist in + cache before being deleted. -1 means objects never expire.
+
+ + + + + + + + +
+Method Detail
+ +

+put

+
+public Object put(Object key,
+                  Object value)
+
+
+
Specified by:
put in interface Map
+
+
+
+
+
+
+ +

+get

+
+public Object get(Object key)
+
+
+
Specified by:
get in interface Map
+
+
+
+
+
+
+ +

+remove

+
+public Object remove(Object key)
+
+
+
Specified by:
remove in interface Map
+
+
+
+
+
+
+ +

+remove

+
+public Object remove(Object key,
+                     boolean internal)
+
+
+
+
+
+
+
+
+
+ +

+clear

+
+public void clear()
+
+
+
Specified by:
clear in interface Map
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
+
Specified by:
size in interface Map
+
+
+
+
+
+
+ +

+isEmpty

+
+public boolean isEmpty()
+
+
+
Specified by:
isEmpty in interface Map
+
+
+
+
+
+
+ +

+values

+
+public Collection values()
+
+
+
Specified by:
values in interface Map
+
+
+
+
+
+
+ +

+containsKey

+
+public boolean containsKey(Object key)
+
+
+
Specified by:
containsKey in interface Map
+
+
+
+
+
+
+ +

+putAll

+
+public void putAll(Map map)
+
+
+
Specified by:
putAll in interface Map
+
+
+
+
+
+
+ +

+containsValue

+
+public boolean containsValue(Object value)
+
+
+
Specified by:
containsValue in interface Map
+
+
+
+
+
+
+ +

+entrySet

+
+public Set entrySet()
+
+
+
Specified by:
entrySet in interface Map
+
+
+
+
+
+
+ +

+keySet

+
+public Set keySet()
+
+
+
Specified by:
keySet in interface Map
+
+
+
+
+
+
+ +

+getCacheHits

+
+public long getCacheHits()
+
+
+
+
+
+
+
+
+
+ +

+getCacheMisses

+
+public long getCacheMisses()
+
+
+
+
+
+
+
+
+
+ +

+getMaxCacheSize

+
+public int getMaxCacheSize()
+
+
+
+
+
+
+
+
+
+ +

+setMaxCacheSize

+
+public void setMaxCacheSize(int maxCacheSize)
+
+
+
+
+
+
+
+
+
+ +

+getMaxLifetime

+
+public long getMaxLifetime()
+
+
+
+
+
+
+
+
+
+ +

+setMaxLifetime

+
+public void setMaxLifetime(long maxLifetime)
+
+
+
+
+
+
+
+
+
+ +

+deleteExpiredEntries

+
+protected void deleteExpiredEntries()
+
+
Clears all entries out of cache where the entries are older than the + maximum defined age. +

+

+
+
+
+
+
+
+
+ +

+cullCache

+
+protected void cullCache()
+
+
Removes the least recently used elements if the cache size is greater than + or equal to the maximum allowed size until the cache is at least 10% empty. +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/DNSUtil.HostAddress.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/DNSUtil.HostAddress.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/DNSUtil.HostAddress.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,290 @@ + + + + + + +DNSUtil.HostAddress (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.util +
+Class DNSUtil.HostAddress

+
+java.lang.Object
+  extended by org.jivesoftware.smack.util.DNSUtil.HostAddress
+
+
+
Enclosing class:
DNSUtil
+
+
+
+
public static class DNSUtil.HostAddress
extends Object
+ + +

+Encapsulates a hostname and port. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ StringgetHost() + +
+          Returns the hostname.
+ intgetPort() + +
+          Returns the port.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getHost

+
+public String getHost()
+
+
Returns the hostname. +

+

+ +
Returns:
the hostname.
+
+
+
+ +

+getPort

+
+public int getPort()
+
+
Returns the port. +

+

+ +
Returns:
the port.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/DNSUtil.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/DNSUtil.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/DNSUtil.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,321 @@ + + + + + + +DNSUtil (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.util +
+Class DNSUtil

+
+java.lang.Object
+  extended by org.jivesoftware.smack.util.DNSUtil
+
+
+
+
public class DNSUtil
extends Object
+ + +

+Utilty class to perform DNS lookups for XMPP services. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classDNSUtil.HostAddress + +
+          Encapsulates a hostname and port.
+  + + + + + + + + + + +
+Constructor Summary
DNSUtil() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static DNSUtil.HostAddressresolveXMPPDomain(String domain) + +
+          Returns the host name and port that the specified XMPP server can be + reached at for client-to-server communication.
+static DNSUtil.HostAddressresolveXMPPServerDomain(String domain) + +
+          Returns the host name and port that the specified XMPP server can be + reached at for server-to-server communication.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DNSUtil

+
+public DNSUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+resolveXMPPDomain

+
+public static DNSUtil.HostAddress resolveXMPPDomain(String domain)
+
+
Returns the host name and port that the specified XMPP server can be + reached at for client-to-server communication. A DNS lookup for a SRV + record in the form "_xmpp-client._tcp.example.com" is attempted, according + to section 14.4 of RFC 3920. If that lookup fails, a lookup in the older form + of "_jabber._tcp.example.com" is attempted since servers that implement an + older version of the protocol may be listed using that notation. If that + lookup fails as well, it's assumed that the XMPP server lives at the + host resolved by a DNS lookup at the specified domain on the default port + of 5222.

+ + As an example, a lookup for "example.com" may return "im.example.com:5269". +

+

+
Parameters:
domain - the domain. +
Returns:
a HostAddress, which encompasses the hostname and port that the XMPP + server can be reached at for the specified domain.
+
+
+
+ +

+resolveXMPPServerDomain

+
+public static DNSUtil.HostAddress resolveXMPPServerDomain(String domain)
+
+
Returns the host name and port that the specified XMPP server can be + reached at for server-to-server communication. A DNS lookup for a SRV + record in the form "_xmpp-server._tcp.example.com" is attempted, according + to section 14.4 of RFC 3920. If that lookup fails, a lookup in the older form + of "_jabber._tcp.example.com" is attempted since servers that implement an + older version of the protocol may be listed using that notation. If that + lookup fails as well, it's assumed that the XMPP server lives at the + host resolved by a DNS lookup at the specified domain on the default port + of 5269.

+ + As an example, a lookup for "example.com" may return "im.example.com:5269". +

+

+
Parameters:
domain - the domain. +
Returns:
a HostAddress, which encompasses the hostname and port that the XMPP + server can be reached at for the specified domain.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/ObservableReader.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/ObservableReader.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/ObservableReader.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,538 @@ + + + + + + +ObservableReader (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.util +
+Class ObservableReader

+
+java.lang.Object
+  extended by java.io.Reader
+      extended by org.jivesoftware.smack.util.ObservableReader
+
+
+
All Implemented Interfaces:
Closeable, Readable
+
+
+
+
public class ObservableReader
extends Reader
+ + +

+An ObservableReader is a wrapper on a Reader that notifies to its listeners when + reading character streams. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class java.io.Reader
lock
+  + + + + + + + + + + +
+Constructor Summary
ObservableReader(Reader wrappedReader) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddReaderListener(ReaderListener readerListener) + +
+          Adds a reader listener to this reader that will be notified when + new strings are read.
+ voidclose() + +
+           
+ voidmark(int readAheadLimit) + +
+           
+ booleanmarkSupported() + +
+           
+ intread() + +
+           
+ intread(char[] cbuf) + +
+           
+ intread(char[] cbuf, + int off, + int len) + +
+           
+ booleanready() + +
+           
+ voidremoveReaderListener(ReaderListener readerListener) + +
+          Removes a reader listener from this reader.
+ voidreset() + +
+           
+ longskip(long n) + +
+           
+ + + + + + + +
Methods inherited from class java.io.Reader
read
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ObservableReader

+
+public ObservableReader(Reader wrappedReader)
+
+
+ + + + + + + + +
+Method Detail
+ +

+read

+
+public int read(char[] cbuf,
+                int off,
+                int len)
+         throws IOException
+
+
+
Specified by:
read in class Reader
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+close

+
+public void close()
+           throws IOException
+
+
+
Specified by:
close in interface Closeable
Specified by:
close in class Reader
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+read

+
+public int read()
+         throws IOException
+
+
+
Overrides:
read in class Reader
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+read

+
+public int read(char[] cbuf)
+         throws IOException
+
+
+
Overrides:
read in class Reader
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+skip

+
+public long skip(long n)
+          throws IOException
+
+
+
Overrides:
skip in class Reader
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+ready

+
+public boolean ready()
+              throws IOException
+
+
+
Overrides:
ready in class Reader
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+markSupported

+
+public boolean markSupported()
+
+
+
Overrides:
markSupported in class Reader
+
+
+
+
+
+
+ +

+mark

+
+public void mark(int readAheadLimit)
+          throws IOException
+
+
+
Overrides:
mark in class Reader
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+reset

+
+public void reset()
+           throws IOException
+
+
+
Overrides:
reset in class Reader
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+addReaderListener

+
+public void addReaderListener(ReaderListener readerListener)
+
+
Adds a reader listener to this reader that will be notified when + new strings are read. +

+

+
Parameters:
readerListener - a reader listener.
+
+
+
+ +

+removeReaderListener

+
+public void removeReaderListener(ReaderListener readerListener)
+
+
Removes a reader listener from this reader. +

+

+
Parameters:
readerListener - a reader listener.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/ObservableWriter.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/ObservableWriter.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/ObservableWriter.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,495 @@ + + + + + + +ObservableWriter (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.util +
+Class ObservableWriter

+
+java.lang.Object
+  extended by java.io.Writer
+      extended by org.jivesoftware.smack.util.ObservableWriter
+
+
+
All Implemented Interfaces:
Closeable, Flushable, Appendable
+
+
+
+
public class ObservableWriter
extends Writer
+ + +

+An ObservableWriter is a wrapper on a Writer that notifies to its listeners when + writing to character streams. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class java.io.Writer
lock
+  + + + + + + + + + + +
+Constructor Summary
ObservableWriter(Writer wrappedWriter) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddWriterListener(WriterListener writerListener) + +
+          Adds a writer listener to this writer that will be notified when + new strings are sent.
+ voidclose() + +
+           
+ voidflush() + +
+           
+ voidremoveWriterListener(WriterListener writerListener) + +
+          Removes a writer listener from this writer.
+ voidwrite(char[] cbuf) + +
+           
+ voidwrite(char[] cbuf, + int off, + int len) + +
+           
+ voidwrite(int c) + +
+           
+ voidwrite(String str) + +
+           
+ voidwrite(String str, + int off, + int len) + +
+           
+ + + + + + + +
Methods inherited from class java.io.Writer
append, append, append
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ObservableWriter

+
+public ObservableWriter(Writer wrappedWriter)
+
+
+ + + + + + + + +
+Method Detail
+ +

+write

+
+public void write(char[] cbuf,
+                  int off,
+                  int len)
+           throws IOException
+
+
+
Specified by:
write in class Writer
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+flush

+
+public void flush()
+           throws IOException
+
+
+
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+close

+
+public void close()
+           throws IOException
+
+
+
Specified by:
close in interface Closeable
Specified by:
close in class Writer
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+write

+
+public void write(int c)
+           throws IOException
+
+
+
Overrides:
write in class Writer
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+write

+
+public void write(char[] cbuf)
+           throws IOException
+
+
+
Overrides:
write in class Writer
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+write

+
+public void write(String str)
+           throws IOException
+
+
+
Overrides:
write in class Writer
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+write

+
+public void write(String str,
+                  int off,
+                  int len)
+           throws IOException
+
+
+
Overrides:
write in class Writer
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+addWriterListener

+
+public void addWriterListener(WriterListener writerListener)
+
+
Adds a writer listener to this writer that will be notified when + new strings are sent. +

+

+
Parameters:
writerListener - a writer listener.
+
+
+
+ +

+removeWriterListener

+
+public void removeWriterListener(WriterListener writerListener)
+
+
Removes a writer listener from this writer. +

+

+
Parameters:
writerListener - a writer listener.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/PacketParserUtils.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/PacketParserUtils.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/PacketParserUtils.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,396 @@ + + + + + + +PacketParserUtils (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.util +
+Class PacketParserUtils

+
+java.lang.Object
+  extended by org.jivesoftware.smack.util.PacketParserUtils
+
+
+
+
public class PacketParserUtils
extends Object
+ + +

+Utility class that helps to parse packets. Any parsing packets method that must be shared + between many clients must be placed in this utility class. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
PacketParserUtils() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static XMPPErrorparseError(org.xmlpull.v1.XmlPullParser parser) + +
+          Parses error sub-packets.
+static PacketparseMessage(org.xmlpull.v1.XmlPullParser parser) + +
+          Parses a message packet.
+static PacketExtensionparsePacketExtension(String elementName, + String namespace, + org.xmlpull.v1.XmlPullParser parser) + +
+          Parses a packet extension sub-packet.
+static PresenceparsePresence(org.xmlpull.v1.XmlPullParser parser) + +
+          Parses a presence packet.
+static MapparseProperties(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse a properties sub-packet.
+static ObjectparseWithIntrospection(String elementName, + Class objectClass, + org.xmlpull.v1.XmlPullParser parser) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PacketParserUtils

+
+public PacketParserUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseMessage

+
+public static Packet parseMessage(org.xmlpull.v1.XmlPullParser parser)
+                           throws Exception
+
+
Parses a message packet. +

+

+
Parameters:
parser - the XML parser, positioned at the start of a message packet. +
Returns:
a Message packet. +
Throws: +
Exception - if an exception occurs while parsing the packet.
+
+
+
+ +

+parsePresence

+
+public static Presence parsePresence(org.xmlpull.v1.XmlPullParser parser)
+                              throws Exception
+
+
Parses a presence packet. +

+

+
Parameters:
parser - the XML parser, positioned at the start of a presence packet. +
Returns:
a Presence packet. +
Throws: +
Exception - if an exception occurs while parsing the packet.
+
+
+
+ +

+parseProperties

+
+public static Map parseProperties(org.xmlpull.v1.XmlPullParser parser)
+                           throws Exception
+
+
Parse a properties sub-packet. If any errors occur while de-serializing Java object + properties, an exception will be printed and not thrown since a thrown + exception will shut down the entire connection. ClassCastExceptions will occur + when both the sender and receiver of the packet don't have identical versions + of the same class. +

+

+
Parameters:
parser - the XML parser, positioned at the start of a properties sub-packet. +
Returns:
a map of the properties. +
Throws: +
Exception - if an error occurs while parsing the properties.
+
+
+
+ +

+parseError

+
+public static XMPPError parseError(org.xmlpull.v1.XmlPullParser parser)
+                            throws Exception
+
+
Parses error sub-packets. +

+

+
Parameters:
parser - the XML parser. +
Returns:
an error sub-packet. +
Throws: +
Exception - if an exception occurs while parsing the packet.
+
+
+
+ +

+parsePacketExtension

+
+public static PacketExtension parsePacketExtension(String elementName,
+                                                   String namespace,
+                                                   org.xmlpull.v1.XmlPullParser parser)
+                                            throws Exception
+
+
Parses a packet extension sub-packet. +

+

+
Parameters:
elementName - the XML element name of the packet extension.
namespace - the XML namespace of the packet extension.
parser - the XML parser, positioned at the starting element of the extension. +
Returns:
a PacketExtension. +
Throws: +
Exception - if a parsing error occurs.
+
+
+
+ +

+parseWithIntrospection

+
+public static Object parseWithIntrospection(String elementName,
+                                            Class objectClass,
+                                            org.xmlpull.v1.XmlPullParser parser)
+                                     throws Exception
+
+
+ +
Throws: +
Exception
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/ReaderListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/ReaderListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/ReaderListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,213 @@ + + + + + + +ReaderListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.util +
+Interface ReaderListener

+
+
+
public interface ReaderListener
+ + +

+Interface that allows for implementing classes to listen for string reading + events. Listeners are registered with ObservableReader objects. +

+ +

+

+
Author:
+
Gaston Dombiak
+
See Also:
ObservableReader.addReaderListener(org.jivesoftware.smack.util.ReaderListener), +ObservableReader.removeReaderListener(org.jivesoftware.smack.util.ReaderListener)
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidread(String str) + +
+          Notification that the Reader has read a new string.
+  +

+ + + + + + + + +
+Method Detail
+ +

+read

+
+void read(String str)
+
+
Notification that the Reader has read a new string. +

+

+
Parameters:
str - the read String
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/StringUtils.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/StringUtils.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/StringUtils.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,470 @@ + + + + + + +StringUtils (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.util +
+Class StringUtils

+
+java.lang.Object
+  extended by org.jivesoftware.smack.util.StringUtils
+
+
+
+
public class StringUtils
extends Object
+ + +

+A collection of utility methods for String objects. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static byte[]decodeBase64(String data) + +
+          Decodes a base64 String.
+static StringencodeBase64(byte[] data) + +
+          Encodes a byte array into a base64 String.
+static StringencodeBase64(String data) + +
+          Encodes a String as a base64 String.
+static StringencodeHex(byte[] bytes) + +
+          Encodes an array of bytes as String representation of hexadecimal.
+static StringescapeForXML(String string) + +
+          Escapes all necessary characters in the String so that it can be used + in an XML doc.
+static Stringhash(String data) + +
+          Hashes a String using the SHA-1 algorithm and returns the result as a + String of hexadecimal numbers.
+static StringparseBareAddress(String XMPPAddress) + +
+          Returns the XMPP address with any resource information removed.
+static StringparseName(String XMPPAddress) + +
+          Returns the name portion of a XMPP address.
+static StringparseResource(String XMPPAddress) + +
+          Returns the resource portion of a XMPP address.
+static StringparseServer(String XMPPAddress) + +
+          Returns the server portion of a XMPP address.
+static StringrandomString(int length) + +
+          Returns a random String of numbers and letters (lower and upper case) + of the specified length.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+parseName

+
+public static String parseName(String XMPPAddress)
+
+
Returns the name portion of a XMPP address. For example, for the + address "matt@jivesoftware.com/Smack", "matt" would be returned. If no + username is present in the address, the empty string will be returned. +

+

+
Parameters:
XMPPAddress - the XMPP address. +
Returns:
the name portion of the XMPP address.
+
+
+
+ +

+parseServer

+
+public static String parseServer(String XMPPAddress)
+
+
Returns the server portion of a XMPP address. For example, for the + address "matt@jivesoftware.com/Smack", "jivesoftware.com" would be returned. + If no server is present in the address, the empty string will be returned. +

+

+
Parameters:
XMPPAddress - the XMPP address. +
Returns:
the server portion of the XMPP address.
+
+
+
+ +

+parseResource

+
+public static String parseResource(String XMPPAddress)
+
+
Returns the resource portion of a XMPP address. For example, for the + address "matt@jivesoftware.com/Smack", "Smack" would be returned. If no + resource is present in the address, the empty string will be returned. +

+

+
Parameters:
XMPPAddress - the XMPP address. +
Returns:
the resource portion of the XMPP address.
+
+
+
+ +

+parseBareAddress

+
+public static String parseBareAddress(String XMPPAddress)
+
+
Returns the XMPP address with any resource information removed. For example, + for the address "matt@jivesoftware.com/Smack", "matt@jivesoftware.com" would + be returned. +

+

+
Parameters:
XMPPAddress - the XMPP address. +
Returns:
the bare XMPP address without resource information.
+
+
+
+ +

+escapeForXML

+
+public static String escapeForXML(String string)
+
+
Escapes all necessary characters in the String so that it can be used + in an XML doc. +

+

+
Parameters:
string - the string to escape. +
Returns:
the string with appropriate characters escaped.
+
+
+
+ +

+hash

+
+public static String hash(String data)
+
+
Hashes a String using the SHA-1 algorithm and returns the result as a + String of hexadecimal numbers. This method is synchronized to avoid + excessive MessageDigest object creation. If calling this method becomes + a bottleneck in your code, you may wish to maintain a pool of + MessageDigest objects instead of using this method. +

+ A hash is a one-way function -- that is, given an + input, an output is easily computed. However, given the output, the + input is almost impossible to compute. This is useful for passwords + since we can store the hash and a hacker will then have a very hard time + determining the original password. +

+

+
Parameters:
data - the String to compute the hash of. +
Returns:
a hashed version of the passed-in String
+
+
+
+ +

+encodeHex

+
+public static String encodeHex(byte[] bytes)
+
+
Encodes an array of bytes as String representation of hexadecimal. +

+

+
Parameters:
bytes - an array of bytes to convert to a hex string. +
Returns:
generated hex string.
+
+
+
+ +

+encodeBase64

+
+public static String encodeBase64(String data)
+
+
Encodes a String as a base64 String. +

+

+
Parameters:
data - a String to encode. +
Returns:
a base64 encoded String.
+
+
+
+ +

+encodeBase64

+
+public static String encodeBase64(byte[] data)
+
+
Encodes a byte array into a base64 String. +

+

+
Parameters:
data - a byte array to encode. +
Returns:
a base64 encode String.
+
+
+
+ +

+decodeBase64

+
+public static byte[] decodeBase64(String data)
+
+
Decodes a base64 String. +

+

+
Parameters:
data - a base64 encoded String to decode. +
Returns:
the decoded String.
+
+
+
+ +

+randomString

+
+public static final String randomString(int length)
+
+
Returns a random String of numbers and letters (lower and upper case) + of the specified length. The method uses the Random class that is + built-in to Java which is suitable for low to medium grade security uses. + This means that the output is only pseudo random, i.e., each number is + mathematically generated so is not truly random.

+ + The specified length must be at least one. If not, the method will return + null. +

+

+
Parameters:
length - the desired length of the random String to return. +
Returns:
a random String of numbers and letters of the specified length.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/WriterListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/WriterListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/WriterListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,213 @@ + + + + + + +WriterListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smack.util +
+Interface WriterListener

+
+
+
public interface WriterListener
+ + +

+Interface that allows for implementing classes to listen for string writing + events. Listeners are registered with ObservableWriter objects. +

+ +

+

+
Author:
+
Gaston Dombiak
+
See Also:
ObservableWriter.addWriterListener(org.jivesoftware.smack.util.WriterListener), +ObservableWriter.removeWriterListener(org.jivesoftware.smack.util.WriterListener)
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidwrite(String str) + +
+          Notification that the Writer has written a new string.
+  +

+ + + + + + + + +
+Method Detail
+ +

+write

+
+void write(String str)
+
+
Notification that the Writer has written a new string. +

+

+
Parameters:
str - the written string
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,57 @@ + + + + + + +org.jivesoftware.smack.util (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smack.util + + + + +
+Interfaces  + +
+ReaderListener +
+WriterListener
+ + + + + + +
+Classes  + +
+Cache +
+DNSUtil +
+DNSUtil.HostAddress +
+ObservableReader +
+ObservableWriter +
+PacketParserUtils +
+StringUtils
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,214 @@ + + + + + + +org.jivesoftware.smack.util (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smack.util +

+Utility classes. +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Interface Summary
ReaderListenerInterface that allows for implementing classes to listen for string reading + events.
WriterListenerInterface that allows for implementing classes to listen for string writing + events.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
CacheA specialized Map that is size-limited (using an LRU algorithm) and + has an optional expiration time for cache items.
DNSUtilUtilty class to perform DNS lookups for XMPP services.
DNSUtil.HostAddressEncapsulates a hostname and port.
ObservableReaderAn ObservableReader is a wrapper on a Reader that notifies to its listeners when + reading character streams.
ObservableWriterAn ObservableWriter is a wrapper on a Writer that notifies to its listeners when + writing to character streams.
PacketParserUtilsUtility class that helps to parse packets.
StringUtilsA collection of utility methods for String objects.
+  + +

+

+Package org.jivesoftware.smack.util Description +

+ +

+Utility classes. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smack/util/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,159 @@ + + + + + + +org.jivesoftware.smack.util Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smack.util +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/DefaultMessageEventRequestListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/DefaultMessageEventRequestListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/DefaultMessageEventRequestListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,360 @@ + + + + + + +DefaultMessageEventRequestListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class DefaultMessageEventRequestListener

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.DefaultMessageEventRequestListener
+
+
+
All Implemented Interfaces:
MessageEventRequestListener
+
+
+
+
public class DefaultMessageEventRequestListener
extends Object
implements MessageEventRequestListener
+ + +

+Default implementation of the MessageEventRequestListener interface.

+ + This class automatically sends a delivered notification to the sender of the message + if the sender has requested to be notified when the message is delivered. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DefaultMessageEventRequestListener() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcomposingNotificationRequested(String from, + String packetID, + MessageEventManager messageEventManager) + +
+          Called when a request that the receiver of the message is composing a reply notification is + received.
+ voiddeliveredNotificationRequested(String from, + String packetID, + MessageEventManager messageEventManager) + +
+          Called when a request for message delivered notification is received.
+ voiddisplayedNotificationRequested(String from, + String packetID, + MessageEventManager messageEventManager) + +
+          Called when a request for message displayed notification is received.
+ voidofflineNotificationRequested(String from, + String packetID, + MessageEventManager messageEventManager) + +
+          Called when a request that the receiver of the message is offline is received.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DefaultMessageEventRequestListener

+
+public DefaultMessageEventRequestListener()
+
+
+ + + + + + + + +
+Method Detail
+ +

+deliveredNotificationRequested

+
+public void deliveredNotificationRequested(String from,
+                                           String packetID,
+                                           MessageEventManager messageEventManager)
+
+
Description copied from interface: MessageEventRequestListener
+
Called when a request for message delivered notification is received. +

+

+
Specified by:
deliveredNotificationRequested in interface MessageEventRequestListener
+
+
+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
messageEventManager - the messageEventManager that fired the listener.
+
+
+
+ +

+displayedNotificationRequested

+
+public void displayedNotificationRequested(String from,
+                                           String packetID,
+                                           MessageEventManager messageEventManager)
+
+
Description copied from interface: MessageEventRequestListener
+
Called when a request for message displayed notification is received. +

+

+
Specified by:
displayedNotificationRequested in interface MessageEventRequestListener
+
+
+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
messageEventManager - the messageEventManager that fired the listener.
+
+
+
+ +

+composingNotificationRequested

+
+public void composingNotificationRequested(String from,
+                                           String packetID,
+                                           MessageEventManager messageEventManager)
+
+
Description copied from interface: MessageEventRequestListener
+
Called when a request that the receiver of the message is composing a reply notification is + received. +

+

+
Specified by:
composingNotificationRequested in interface MessageEventRequestListener
+
+
+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
messageEventManager - the messageEventManager that fired the listener.
+
+
+
+ +

+offlineNotificationRequested

+
+public void offlineNotificationRequested(String from,
+                                         String packetID,
+                                         MessageEventManager messageEventManager)
+
+
Description copied from interface: MessageEventRequestListener
+
Called when a request that the receiver of the message is offline is received. +

+

+
Specified by:
offlineNotificationRequested in interface MessageEventRequestListener
+
+
+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
messageEventManager - the messageEventManager that fired the listener.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/Form.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/Form.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/Form.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,848 @@ + + + + + + +Form (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class Form

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.Form
+
+
+
+
public class Form
extends Object
+ + +

+Represents a Form for gathering data. The form could be of the following types: +

+ + Depending of the form's type different operations are available. For example, it's only possible + to set answers if the form is of type "submit". +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static StringTYPE_CANCEL + +
+           
+static StringTYPE_FORM + +
+           
+static StringTYPE_RESULT + +
+           
+static StringTYPE_SUBMIT + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Form(String type) + +
+          Creates a new Form of a given type from scratch.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddField(FormField field) + +
+          Adds a new field to complete as part of the form.
+ FormcreateAnswerForm() + +
+          Returns a new Form to submit the completed values.
+ DataFormgetDataFormToSend() + +
+          Returns a DataForm that serves to send this Form to the server.
+ FormFieldgetField(String variable) + +
+          Returns the field of the form whose variable matches the specified variable.
+ IteratorgetFields() + +
+          Returns an Iterator for the fields that are part of the form.
+static FormgetFormFrom(Packet packet) + +
+          Returns a new ReportedData if the packet is used for gathering data and includes an + extension that matches the elementName and namespace "x","jabber:x:data".
+ StringgetInstructions() + +
+          Returns the instructions that explain how to fill out the form and what the form is about.
+ StringgetTitle() + +
+          Returns the description of the data.
+ StringgetType() + +
+          Returns the meaning of the data within the context.
+ voidsetAnswer(String variable, + boolean value) + +
+          Sets a new boolean value to a given form's field.
+ voidsetAnswer(String variable, + double value) + +
+          Sets a new double value to a given form's field.
+ voidsetAnswer(String variable, + float value) + +
+          Sets a new float value to a given form's field.
+ voidsetAnswer(String variable, + int value) + +
+          Sets a new int value to a given form's field.
+ voidsetAnswer(String variable, + List values) + +
+          Sets a new values to a given form's field.
+ voidsetAnswer(String variable, + long value) + +
+          Sets a new long value to a given form's field.
+ voidsetAnswer(String variable, + String value) + +
+          Sets a new String value to a given form's field.
+ voidsetDefaultAnswer(String variable) + +
+          Sets the default value as the value of a given form's field.
+ voidsetInstructions(String instructions) + +
+          Sets instructions that explain how to fill out the form and what the form is about.
+ voidsetTitle(String title) + +
+          Sets the description of the data.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+TYPE_FORM

+
+public static final String TYPE_FORM
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_SUBMIT

+
+public static final String TYPE_SUBMIT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_CANCEL

+
+public static final String TYPE_CANCEL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_RESULT

+
+public static final String TYPE_RESULT
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+Form

+
+public Form(String type)
+
+
Creates a new Form of a given type from scratch.

+ + Possible form types are: +

+

+

+
Parameters:
type - the form's type (e.g. form, submit,cancel,result).
+
+ + + + + + + + +
+Method Detail
+ +

+getFormFrom

+
+public static Form getFormFrom(Packet packet)
+
+
Returns a new ReportedData if the packet is used for gathering data and includes an + extension that matches the elementName and namespace "x","jabber:x:data". +

+

+
Parameters:
packet - the packet used for gathering data.
+
+
+
+ +

+addField

+
+public void addField(FormField field)
+
+
Adds a new field to complete as part of the form. +

+

+
Parameters:
field - the field to complete.
+
+
+
+ +

+setAnswer

+
+public void setAnswer(String variable,
+                      String value)
+
+
Sets a new String value to a given form's field. The field whose variable matches the + requested variable will be completed with the specified value. If no field could be found + for the specified variable then an exception will be raised.

+ + If the value to set to the field is not a basic type (e.g. String, boolean, int, etc.) you + can use this message where the String value is the String representation of the object. +

+

+
Parameters:
variable - the variable name that was completed.
value - the String value that was answered. +
Throws: +
IllegalStateException - if the form is not of type "submit". +
IllegalArgumentException - if the form does not include the specified variable. +
IllegalArgumentException - if the answer type does not correspond with the field type.
+
+
+
+ +

+setAnswer

+
+public void setAnswer(String variable,
+                      int value)
+
+
Sets a new int value to a given form's field. The field whose variable matches the + requested variable will be completed with the specified value. If no field could be found + for the specified variable then an exception will be raised. +

+

+
Parameters:
variable - the variable name that was completed.
value - the int value that was answered. +
Throws: +
IllegalStateException - if the form is not of type "submit". +
IllegalArgumentException - if the form does not include the specified variable. +
IllegalArgumentException - if the answer type does not correspond with the field type.
+
+
+
+ +

+setAnswer

+
+public void setAnswer(String variable,
+                      long value)
+
+
Sets a new long value to a given form's field. The field whose variable matches the + requested variable will be completed with the specified value. If no field could be found + for the specified variable then an exception will be raised. +

+

+
Parameters:
variable - the variable name that was completed.
value - the long value that was answered. +
Throws: +
IllegalStateException - if the form is not of type "submit". +
IllegalArgumentException - if the form does not include the specified variable. +
IllegalArgumentException - if the answer type does not correspond with the field type.
+
+
+
+ +

+setAnswer

+
+public void setAnswer(String variable,
+                      float value)
+
+
Sets a new float value to a given form's field. The field whose variable matches the + requested variable will be completed with the specified value. If no field could be found + for the specified variable then an exception will be raised. +

+

+
Parameters:
variable - the variable name that was completed.
value - the float value that was answered. +
Throws: +
IllegalStateException - if the form is not of type "submit". +
IllegalArgumentException - if the form does not include the specified variable. +
IllegalArgumentException - if the answer type does not correspond with the field type.
+
+
+
+ +

+setAnswer

+
+public void setAnswer(String variable,
+                      double value)
+
+
Sets a new double value to a given form's field. The field whose variable matches the + requested variable will be completed with the specified value. If no field could be found + for the specified variable then an exception will be raised. +

+

+
Parameters:
variable - the variable name that was completed.
value - the double value that was answered. +
Throws: +
IllegalStateException - if the form is not of type "submit". +
IllegalArgumentException - if the form does not include the specified variable. +
IllegalArgumentException - if the answer type does not correspond with the field type.
+
+
+
+ +

+setAnswer

+
+public void setAnswer(String variable,
+                      boolean value)
+
+
Sets a new boolean value to a given form's field. The field whose variable matches the + requested variable will be completed with the specified value. If no field could be found + for the specified variable then an exception will be raised. +

+

+
Parameters:
variable - the variable name that was completed.
value - the boolean value that was answered. +
Throws: +
IllegalStateException - if the form is not of type "submit". +
IllegalArgumentException - if the form does not include the specified variable. +
IllegalArgumentException - if the answer type does not correspond with the field type.
+
+
+
+ +

+setAnswer

+
+public void setAnswer(String variable,
+                      List values)
+
+
Sets a new values to a given form's field. The field whose variable matches the requested + variable will be completed with the specified values. If no field could be found for + the specified variable then an exception will be raised.

+ + The Objects contained in the List could be of any type. The String representation of them + (i.e. #toString) will be actually used when sending the answer to the server. +

+

+
Parameters:
variable - the variable that was completed.
values - the values that were answered. +
Throws: +
IllegalStateException - if the form is not of type "submit". +
IllegalArgumentException - if the form does not include the specified variable.
+
+
+
+ +

+setDefaultAnswer

+
+public void setDefaultAnswer(String variable)
+
+
Sets the default value as the value of a given form's field. The field whose variable matches + the requested variable will be completed with its default value. If no field could be found + for the specified variable then an exception will be raised. +

+

+
Parameters:
variable - the variable to complete with its default value. +
Throws: +
IllegalStateException - if the form is not of type "submit". +
IllegalArgumentException - if the form does not include the specified variable.
+
+
+
+ +

+getFields

+
+public Iterator getFields()
+
+
Returns an Iterator for the fields that are part of the form. +

+

+ +
Returns:
an Iterator for the fields that are part of the form.
+
+
+
+ +

+getField

+
+public FormField getField(String variable)
+
+
Returns the field of the form whose variable matches the specified variable. + The fields of type FIXED will never be returned since they do not specify a + variable. +

+

+
Parameters:
variable - the variable to look for in the form fields. +
Returns:
the field of the form whose variable matches the specified variable.
+
+
+
+ +

+getInstructions

+
+public String getInstructions()
+
+
Returns the instructions that explain how to fill out the form and what the form is about. +

+

+ +
Returns:
instructions that explain how to fill out the form.
+
+
+
+ +

+getTitle

+
+public String getTitle()
+
+
Returns the description of the data. It is similar to the title on a web page or an X + window. You can put a on either a form to fill out, or a set of data results. +<P> +<DD><DL> + +<DT><B>Returns:</B><DD>description of the data.</DL> +</DD> +</DL> +<HR> + +<A NAME="getType()"><!-- --></A><H3> +getType</H3> +<PRE> +public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getType</B>()</PRE> +<DL> +<DD>Returns the meaning of the data within the context. The data could be part of a form + to fill out, a form submission or data results.<p> + + Possible form types are: + <ul> + <li>form -> Indicates a form to fill out.</li> + <li>submit -> The form is filled out, and this is the data that is being returned from + the form.</li> + <li>cancel -> The form was cancelled. Tell the asker that piece of information.</li> + <li>result -> Data results being returned from a search, or some other query.</li> + </ul> +<P> +<DD><DL> + +<DT><B>Returns:</B><DD>the form's type.</DL> +</DD> +</DL> +<HR> + +<A NAME="setInstructions(java.lang.String)"><!-- --></A><H3> +setInstructions</H3> +<PRE> +public void <B>setInstructions</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> instructions)</PRE> +<DL> +<DD>Sets instructions that explain how to fill out the form and what the form is about. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>instructions</CODE> - instructions that explain how to fill out the form.</DL> +</DD> +</DL> +<HR> + +<A NAME="setTitle(java.lang.String)"><!-- --></A><H3> +setTitle</H3> +<PRE> +public void <B>setTitle</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> title)</PRE> +<DL> +<DD>Sets the description of the data. It is similar to the title on a web page or an X window. + You can put a <title/> on either a form to fill out, or a set of data results. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>title</CODE> - description of the data.</DL> +</DD> +</DL> +<HR> + +<A NAME="getDataFormToSend()"><!-- --></A><H3> +getDataFormToSend</H3> +<PRE> +public <A HREF="../../../org/jivesoftware/smackx/packet/DataForm.html" title="class in org.jivesoftware.smackx.packet">DataForm</A> <B>getDataFormToSend</B>()</PRE> +<DL> +<DD>Returns a DataForm that serves to send this Form to the server. If the form is of type + submit, it may contain fields with no value. These fields will be removed since they only + exist to assist the user while editing/completing the form in a UI. +<P> +<DD><DL> + +<DT><B>Returns:</B><DD>the wrapped DataForm.</DL> +</DD> +</DL> +<HR> + +<A NAME="createAnswerForm()"><!-- --></A><H3> +createAnswerForm</H3> +<PRE> +public <A HREF="../../../org/jivesoftware/smackx/Form.html" title="class in org.jivesoftware.smackx">Form</A> <B>createAnswerForm</B>()</PRE> +<DL> +<DD>Returns a new Form to submit the completed values. The new Form will include all the fields + of the original form except for the fields of type FIXED. Only the HIDDEN fields will + include the same value of the original form. The other fields of the new form MUST be + completed. If a field remains with no answer when sending the completed form, then it won't + be included as part of the completed form.<p> + + The reason why the fields with variables are included in the new form is to provide a model + for binding with any UI. This means that the UIs will use the original form (of type + "form") to learn how to render the form, but the UIs will bind the fields to the form of + type submit. +<P> +<DD><DL> + +<DT><B>Returns:</B><DD>a Form to submit the completed values.</DL> +</DD> +</DL> +<!-- ========= END OF CLASS DATA ========= --> +<HR> + + +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<A NAME="navbar_bottom"><!-- --></A> +<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> +<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> +<TR> +<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> +<A NAME="navbar_bottom_firstrow"><!-- --></A> +<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> + <TR ALIGN="center" VALIGN="top"> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> + </TR> +</TABLE> +</TD> +<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> +<b>Smack</b></EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../org/jivesoftware/smackx/DefaultMessageEventRequestListener.html" title="class in org.jivesoftware.smackx"><B>PREV CLASS</B></A>  + <A HREF="../../../org/jivesoftware/smackx/FormField.html" title="class in org.jivesoftware.smackx"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../index.html?org/jivesoftware/smackx/Form.html" target="_top"><B>FRAMES</B></A>   + <A HREF="Form.html" target="_top"><B>NO FRAMES</B></A>   + <SCRIPT type="text/javascript"> + <!-- + if(window==top) { + document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); + } + //--> +</SCRIPT> +<NOSCRIPT> + <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> +</NOSCRIPT> + + +</FONT></TD> +</TR> +<TR> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> + SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> +DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> +</TR> +</TABLE> +<A NAME="skip-navbar_bottom"></A> +<!-- ======== END OF BOTTOM NAVBAR ======= --> + +<HR> +<i>Copyright © 2003 Jive Software. </i> +</BODY> +</HTML> Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/FormField.Option.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/FormField.Option.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/FormField.Option.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,340 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc (build 1.5.0_06) on Thu Mar 09 12:10:16 ART 2006 --> +<TITLE> +FormField.Option (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class FormField.Option

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.FormField.Option
+
+
+
Enclosing class:
FormField
+
+
+
+
public static class FormField.Option
extends Object
+ + +

+Represents the available option of a given FormField. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
FormField.Option(String value) + +
+           
FormField.Option(String label, + String value) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetLabel() + +
+          Returns the label that represents the option.
+ StringgetValue() + +
+          Returns the value of the option.
+ StringtoString() + +
+           
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FormField.Option

+
+public FormField.Option(String value)
+
+
+
+ +

+FormField.Option

+
+public FormField.Option(String label,
+                        String value)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getLabel

+
+public String getLabel()
+
+
Returns the label that represents the option. +

+

+ +
Returns:
the label that represents the option.
+
+
+
+ +

+getValue

+
+public String getValue()
+
+
Returns the value of the option. +

+

+ +
Returns:
the value of the option.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/FormField.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/FormField.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/FormField.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,870 @@ + + + + + + +FormField (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class FormField

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.FormField
+
+
+
+
public class FormField
extends Object
+ + +

+Represents a field of a form. The field could be used to represent a question to complete, + a completed question or a data returned from a search. The exact interpretation of the field + depends on the context where the field is used. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classFormField.Option + +
+          Represents the available option of a given FormField.
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static StringTYPE_BOOLEAN + +
+           
+static StringTYPE_FIXED + +
+           
+static StringTYPE_HIDDEN + +
+           
+static StringTYPE_JID_MULTI + +
+           
+static StringTYPE_JID_SINGLE + +
+           
+static StringTYPE_LIST_MULTI + +
+           
+static StringTYPE_LIST_SINGLE + +
+           
+static StringTYPE_TEXT_MULTI + +
+           
+static StringTYPE_TEXT_PRIVATE + +
+           
+static StringTYPE_TEXT_SINGLE + +
+           
+  + + + + + + + + + + + + + +
+Constructor Summary
FormField() + +
+          Creates a new FormField of type FIXED.
FormField(String variable) + +
+          Creates a new FormField with the variable name that uniquely identifies the field + in the context of the form.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddOption(FormField.Option option) + +
+          Adss an available options to the question that the user has in order to answer + the question.
+ voidaddValue(String value) + +
+          Adds a default value to the question if the question is part of a form to fill out.
+ voidaddValues(List newValues) + +
+          Adds a default values to the question if the question is part of a form to fill out.
+ StringgetDescription() + +
+          Returns a description that provides extra clarification about the question.
+ StringgetLabel() + +
+          Returns the label of the question which should give enough information to the user to + fill out the form.
+ IteratorgetOptions() + +
+          Returns an Iterator for the available options that the user has in order to answer + the question.
+ StringgetType() + +
+          Returns an indicative of the format for the data to answer.
+ IteratorgetValues() + +
+          Returns an Iterator for the default values of the question if the question is part + of a form to fill out.
+ StringgetVariable() + +
+          Returns the variable name that the question is filling out.
+ booleanisRequired() + +
+          Returns true if the question must be answered in order to complete the questionnaire.
+protected  voidresetValues() + +
+          Removes all the values of the field.
+ voidsetDescription(String description) + +
+          Sets a description that provides extra clarification about the question.
+ voidsetLabel(String label) + +
+          Sets the label of the question which should give enough information to the user to + fill out the form.
+ voidsetRequired(boolean required) + +
+          Sets if the question must be answered in order to complete the questionnaire.
+ voidsetType(String type) + +
+          Sets an indicative of the format for the data to answer.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+TYPE_BOOLEAN

+
+public static final String TYPE_BOOLEAN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_FIXED

+
+public static final String TYPE_FIXED
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_HIDDEN

+
+public static final String TYPE_HIDDEN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_JID_MULTI

+
+public static final String TYPE_JID_MULTI
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_JID_SINGLE

+
+public static final String TYPE_JID_SINGLE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_LIST_MULTI

+
+public static final String TYPE_LIST_MULTI
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_LIST_SINGLE

+
+public static final String TYPE_LIST_SINGLE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_TEXT_MULTI

+
+public static final String TYPE_TEXT_MULTI
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_TEXT_PRIVATE

+
+public static final String TYPE_TEXT_PRIVATE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TYPE_TEXT_SINGLE

+
+public static final String TYPE_TEXT_SINGLE
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+FormField

+
+public FormField(String variable)
+
+
Creates a new FormField with the variable name that uniquely identifies the field + in the context of the form. +

+

+
Parameters:
variable - the variable name of the question.
+
+
+ +

+FormField

+
+public FormField()
+
+
Creates a new FormField of type FIXED. The fields of type FIXED do not define a variable + name. +

+

+ + + + + + + + +
+Method Detail
+ +

+getDescription

+
+public String getDescription()
+
+
Returns a description that provides extra clarification about the question. This information + could be presented to the user either in tool-tip, help button, or as a section of text + before the question.

+ + If the question is of type FIXED then the description should remain empty. +

+

+ +
Returns:
description that provides extra clarification about the question.
+
+
+
+ +

+getLabel

+
+public String getLabel()
+
+
Returns the label of the question which should give enough information to the user to + fill out the form. +

+

+ +
Returns:
label of the question.
+
+
+
+ +

+getOptions

+
+public Iterator getOptions()
+
+
Returns an Iterator for the available options that the user has in order to answer + the question. +

+

+ +
Returns:
Iterator for the available options.
+
+
+
+ +

+isRequired

+
+public boolean isRequired()
+
+
Returns true if the question must be answered in order to complete the questionnaire. +

+

+ +
Returns:
true if the question must be answered in order to complete the questionnaire.
+
+
+
+ +

+getType

+
+public String getType()
+
+
Returns an indicative of the format for the data to answer. Valid formats are: + +
    +
  • text-single -> single line or word of text +
  • text-private -> instead of showing the user what they typed, you show ***** to + protect it +
  • text-multi -> multiple lines of text entry +
  • list-single -> given a list of choices, pick one +
  • list-multi -> given a list of choices, pick one or more +
  • boolean -> 0 or 1, true or false, yes or no. Default value is 0 +
  • fixed -> fixed for putting in text to show sections, or just advertise your web + site in the middle of the form +
  • hidden -> is not given to the user at all, but returned with the questionnaire +
  • jid-single -> Jabber ID - choosing a JID from your roster, and entering one based + on the rules for a JID. +
  • jid-multi -> multiple entries for JIDs +
+

+

+ +
Returns:
format for the data to answer.
+
+
+
+ +

+getValues

+
+public Iterator getValues()
+
+
Returns an Iterator for the default values of the question if the question is part + of a form to fill out. Otherwise, returns an Iterator for the answered values of + the question. +

+

+ +
Returns:
an Iterator for the default values or answered values of the question.
+
+
+
+ +

+getVariable

+
+public String getVariable()
+
+
Returns the variable name that the question is filling out. +

+

+ +
Returns:
the variable name of the question.
+
+
+
+ +

+setDescription

+
+public void setDescription(String description)
+
+
Sets a description that provides extra clarification about the question. This information + could be presented to the user either in tool-tip, help button, or as a section of text + before the question.

+ + If the question is of type FIXED then the description should remain empty. +

+

+
Parameters:
description - provides extra clarification about the question.
+
+
+
+ +

+setLabel

+
+public void setLabel(String label)
+
+
Sets the label of the question which should give enough information to the user to + fill out the form. +

+

+
Parameters:
label - the label of the question.
+
+
+
+ +

+setRequired

+
+public void setRequired(boolean required)
+
+
Sets if the question must be answered in order to complete the questionnaire. +

+

+
Parameters:
required - if the question must be answered in order to complete the questionnaire.
+
+
+
+ +

+setType

+
+public void setType(String type)
+
+
Sets an indicative of the format for the data to answer. Valid formats are: + +
    +
  • text-single -> single line or word of text +
  • text-private -> instead of showing the user what they typed, you show ***** to + protect it +
  • text-multi -> multiple lines of text entry +
  • list-single -> given a list of choices, pick one +
  • list-multi -> given a list of choices, pick one or more +
  • boolean -> 0 or 1, true or false, yes or no. Default value is 0 +
  • fixed -> fixed for putting in text to show sections, or just advertise your web + site in the middle of the form +
  • hidden -> is not given to the user at all, but returned with the questionnaire +
  • jid-single -> Jabber ID - choosing a JID from your roster, and entering one based + on the rules for a JID. +
  • jid-multi -> multiple entries for JIDs +
+

+

+
Parameters:
type - an indicative of the format for the data to answer.
+
+
+
+ +

+addValue

+
+public void addValue(String value)
+
+
Adds a default value to the question if the question is part of a form to fill out. + Otherwise, adds an answered value to the question. +

+

+
Parameters:
value - a default value or an answered value of the question.
+
+
+
+ +

+addValues

+
+public void addValues(List newValues)
+
+
Adds a default values to the question if the question is part of a form to fill out. + Otherwise, adds an answered values to the question. +

+

+
Parameters:
newValues - default values or an answered values of the question.
+
+
+
+ +

+resetValues

+
+protected void resetValues()
+
+
Removes all the values of the field. +

+

+
+
+
+
+ +

+addOption

+
+public void addOption(FormField.Option option)
+
+
Adss an available options to the question that the user has in order to answer + the question. +

+

+
Parameters:
option - a new available option for the question.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/GroupChatInvitation.Provider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/GroupChatInvitation.Provider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/GroupChatInvitation.Provider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,266 @@ + + + + + + +GroupChatInvitation.Provider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class GroupChatInvitation.Provider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.GroupChatInvitation.Provider
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
Enclosing class:
GroupChatInvitation
+
+
+
+
public static class GroupChatInvitation.Provider
extends Object
implements PacketExtensionProvider
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
GroupChatInvitation.Provider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse an extension sub-packet and create a PacketExtension instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GroupChatInvitation.Provider

+
+public GroupChatInvitation.Provider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Description copied from interface: PacketExtensionProvider
+
Parse an extension sub-packet and create a PacketExtension instance. At + the beginning of the method call, the xml parser will be positioned on the + opening element of the packet extension. At the end of the method call, the + parser must be positioned on the closing element of the packet extension. +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/GroupChatInvitation.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/GroupChatInvitation.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/GroupChatInvitation.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,450 @@ + + + + + + +GroupChatInvitation (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class GroupChatInvitation

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.GroupChatInvitation
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class GroupChatInvitation
extends Object
implements PacketExtension
+ + +

+A group chat invitation packet extension, which is used to invite other + users to a group chat room. To invite a user to a group chat room, address + a new message to the user and set the room name appropriately, as in the + following code example: + +

+ Message message = new Message("user@chat.example.com");
+ message.setBody("Join me for a group chat!");
+ message.addExtension(new GroupChatInvitation("room@chat.example.com"););
+ con.sendPacket(message);
+ 
+ + To listen for group chat invitations, use a PacketExtensionFilter for the + x element name and jabber:x:conference namespace, as in the + following code example: + +
+ PacketFilter filter = new PacketExtensionFilter("x", "jabber:x:conference");
+ // Create a packet collector or packet listeners using the filter...
+ 
+ + Note: this protocol is outdated now that the Multi-User Chat (MUC) JEP is available + (JEP-45). However, most + existing clients still use this older protocol. Once MUC support becomes more + widespread, this API may be deprecated. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classGroupChatInvitation.Provider + +
+           
+ + + + + + + + + + + + + + +
+Field Summary
+static StringELEMENT_NAME + +
+          Element name of the packet extension.
+static StringNAMESPACE + +
+          Namespace of the packet extension.
+  + + + + + + + + + + +
+Constructor Summary
GroupChatInvitation(String roomAddress) + +
+          Creates a new group chat invitation to the specified room address.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ StringgetRoomAddress() + +
+          Returns the address of the group chat room.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ELEMENT_NAME

+
+public static final String ELEMENT_NAME
+
+
Element name of the packet extension. +

+

+
See Also:
Constant Field Values
+
+
+ +

+NAMESPACE

+
+public static final String NAMESPACE
+
+
Namespace of the packet extension. +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+GroupChatInvitation

+
+public GroupChatInvitation(String roomAddress)
+
+
Creates a new group chat invitation to the specified room address. + GroupChat room addresses are in the form room@service, + where service is the name of groupchat server, such as + chat.example.com. +

+

+
Parameters:
roomAddress - the address of the group chat room.
+
+ + + + + + + + +
+Method Detail
+ +

+getRoomAddress

+
+public String getRoomAddress()
+
+
Returns the address of the group chat room. GroupChat room addresses + are in the form room@service, where service is + the name of groupchat server, such as chat.example.com. +

+

+
+
+
+ +
Returns:
the address of the group chat room.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MessageEventManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MessageEventManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MessageEventManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,494 @@ + + + + + + +MessageEventManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class MessageEventManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.MessageEventManager
+
+
+
+
public class MessageEventManager
extends Object
+ + +

+Manages message events requests and notifications. A MessageEventManager provides a high + level access to request for notifications and send event notifications. It also provides + an easy way to hook up custom logic when requests or notifications are received. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MessageEventManager(XMPPConnection con) + +
+          Creates a new message event manager.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddMessageEventNotificationListener(MessageEventNotificationListener messageEventNotificationListener) + +
+          Adds a message event notification listener.
+ voidaddMessageEventRequestListener(MessageEventRequestListener messageEventRequestListener) + +
+          Adds a message event request listener.
+static voidaddNotificationsRequests(Message message, + boolean offline, + boolean delivered, + boolean displayed, + boolean composing) + +
+          Adds event notification requests to a message.
+ voiddestroy() + +
+           
+ voidfinalize() + +
+           
+ voidremoveMessageEventNotificationListener(MessageEventNotificationListener messageEventNotificationListener) + +
+          Removes a message event notification listener.
+ voidremoveMessageEventRequestListener(MessageEventRequestListener messageEventRequestListener) + +
+          Removes a message event request listener.
+ voidsendCancelledNotification(String to, + String packetID) + +
+          Sends the notification that the receiver of the message has cancelled composing a reply.
+ voidsendComposingNotification(String to, + String packetID) + +
+          Sends the notification that the receiver of the message is composing a reply
+ voidsendDeliveredNotification(String to, + String packetID) + +
+          Sends the notification that the message was delivered to the sender of the original message
+ voidsendDisplayedNotification(String to, + String packetID) + +
+          Sends the notification that the message was displayed to the sender of the original message
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MessageEventManager

+
+public MessageEventManager(XMPPConnection con)
+
+
Creates a new message event manager. +

+

+
Parameters:
con - an XMPPConnection.
+
+ + + + + + + + +
+Method Detail
+ +

+addNotificationsRequests

+
+public static void addNotificationsRequests(Message message,
+                                            boolean offline,
+                                            boolean delivered,
+                                            boolean displayed,
+                                            boolean composing)
+
+
Adds event notification requests to a message. For each event type that + the user wishes event notifications from the message recepient for, true + should be passed in to this method. +

+

+
Parameters:
message - the message to add the requested notifications.
offline - specifies if the offline event is requested.
delivered - specifies if the delivered event is requested.
displayed - specifies if the displayed event is requested.
composing - specifies if the composing event is requested.
+
+
+
+ +

+addMessageEventRequestListener

+
+public void addMessageEventRequestListener(MessageEventRequestListener messageEventRequestListener)
+
+
Adds a message event request listener. The listener will be fired anytime a request for + event notification is received. +

+

+
Parameters:
messageEventRequestListener - a message event request listener.
+
+
+
+ +

+removeMessageEventRequestListener

+
+public void removeMessageEventRequestListener(MessageEventRequestListener messageEventRequestListener)
+
+
Removes a message event request listener. The listener will be fired anytime a request for + event notification is received. +

+

+
Parameters:
messageEventRequestListener - a message event request listener.
+
+
+
+ +

+addMessageEventNotificationListener

+
+public void addMessageEventNotificationListener(MessageEventNotificationListener messageEventNotificationListener)
+
+
Adds a message event notification listener. The listener will be fired anytime a notification + event is received. +

+

+
Parameters:
messageEventNotificationListener - a message event notification listener.
+
+
+
+ +

+removeMessageEventNotificationListener

+
+public void removeMessageEventNotificationListener(MessageEventNotificationListener messageEventNotificationListener)
+
+
Removes a message event notification listener. The listener will be fired anytime a notification + event is received. +

+

+
Parameters:
messageEventNotificationListener - a message event notification listener.
+
+
+
+ +

+sendDeliveredNotification

+
+public void sendDeliveredNotification(String to,
+                                      String packetID)
+
+
Sends the notification that the message was delivered to the sender of the original message +

+

+
Parameters:
to - the recipient of the notification.
packetID - the id of the message to send.
+
+
+
+ +

+sendDisplayedNotification

+
+public void sendDisplayedNotification(String to,
+                                      String packetID)
+
+
Sends the notification that the message was displayed to the sender of the original message +

+

+
Parameters:
to - the recipient of the notification.
packetID - the id of the message to send.
+
+
+
+ +

+sendComposingNotification

+
+public void sendComposingNotification(String to,
+                                      String packetID)
+
+
Sends the notification that the receiver of the message is composing a reply +

+

+
Parameters:
to - the recipient of the notification.
packetID - the id of the message to send.
+
+
+
+ +

+sendCancelledNotification

+
+public void sendCancelledNotification(String to,
+                                      String packetID)
+
+
Sends the notification that the receiver of the message has cancelled composing a reply. +

+

+
Parameters:
to - the recipient of the notification.
packetID - the id of the message to send.
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
+
+
+
+
+ +

+finalize

+
+public void finalize()
+
+
+
Overrides:
finalize in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MessageEventNotificationListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MessageEventNotificationListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MessageEventNotificationListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,311 @@ + + + + + + +MessageEventNotificationListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Interface MessageEventNotificationListener

+
+
+
public interface MessageEventNotificationListener
+ + +

+A listener that is fired anytime a message event notification is received. + Message event notifications are received as a consequence of the request + to receive notifications when sending a message. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcancelledNotification(String from, + String packetID) + +
+          Called when a notification that the receiver of the message cancelled the reply + is received.
+ voidcomposingNotification(String from, + String packetID) + +
+          Called when a notification that the receiver of the message is composing a reply is + received.
+ voiddeliveredNotification(String from, + String packetID) + +
+          Called when a notification of message delivered is received.
+ voiddisplayedNotification(String from, + String packetID) + +
+          Called when a notification of message displayed is received.
+ voidofflineNotification(String from, + String packetID) + +
+          Called when a notification that the receiver of the message is offline is received.
+  +

+ + + + + + + + +
+Method Detail
+ +

+deliveredNotification

+
+void deliveredNotification(String from,
+                           String packetID)
+
+
Called when a notification of message delivered is received. +

+

+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
+
+
+
+ +

+displayedNotification

+
+void displayedNotification(String from,
+                           String packetID)
+
+
Called when a notification of message displayed is received. +

+

+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
+
+
+
+ +

+composingNotification

+
+void composingNotification(String from,
+                           String packetID)
+
+
Called when a notification that the receiver of the message is composing a reply is + received. +

+

+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
+
+
+
+ +

+offlineNotification

+
+void offlineNotification(String from,
+                         String packetID)
+
+
Called when a notification that the receiver of the message is offline is received. +

+

+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
+
+
+
+ +

+cancelledNotification

+
+void cancelledNotification(String from,
+                           String packetID)
+
+
Called when a notification that the receiver of the message cancelled the reply + is received. +

+

+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MessageEventRequestListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MessageEventRequestListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MessageEventRequestListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,309 @@ + + + + + + +MessageEventRequestListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Interface MessageEventRequestListener

+
+
All Known Implementing Classes:
DefaultMessageEventRequestListener
+
+
+
+
public interface MessageEventRequestListener
+ + +

+A listener that is fired anytime a message event request is received. + Message event requests are received when the received message includes an extension + like this: + +

+ <x xmlns='jabber:x:event'>
+  <offline/>
+  <delivered/>
+  <composing/>
+ </x>
+ 
+ + In this example you can see that the sender of the message requests to be notified + when the user couldn't receive the message because he/she is offline, the message + was delivered or when the receiver of the message is composing a reply. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcomposingNotificationRequested(String from, + String packetID, + MessageEventManager messageEventManager) + +
+          Called when a request that the receiver of the message is composing a reply notification is + received.
+ voiddeliveredNotificationRequested(String from, + String packetID, + MessageEventManager messageEventManager) + +
+          Called when a request for message delivered notification is received.
+ voiddisplayedNotificationRequested(String from, + String packetID, + MessageEventManager messageEventManager) + +
+          Called when a request for message displayed notification is received.
+ voidofflineNotificationRequested(String from, + String packetID, + MessageEventManager messageEventManager) + +
+          Called when a request that the receiver of the message is offline is received.
+  +

+ + + + + + + + +
+Method Detail
+ +

+deliveredNotificationRequested

+
+void deliveredNotificationRequested(String from,
+                                    String packetID,
+                                    MessageEventManager messageEventManager)
+
+
Called when a request for message delivered notification is received. +

+

+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
messageEventManager - the messageEventManager that fired the listener.
+
+
+
+ +

+displayedNotificationRequested

+
+void displayedNotificationRequested(String from,
+                                    String packetID,
+                                    MessageEventManager messageEventManager)
+
+
Called when a request for message displayed notification is received. +

+

+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
messageEventManager - the messageEventManager that fired the listener.
+
+
+
+ +

+composingNotificationRequested

+
+void composingNotificationRequested(String from,
+                                    String packetID,
+                                    MessageEventManager messageEventManager)
+
+
Called when a request that the receiver of the message is composing a reply notification is + received. +

+

+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
messageEventManager - the messageEventManager that fired the listener.
+
+
+
+ +

+offlineNotificationRequested

+
+void offlineNotificationRequested(String from,
+                                  String packetID,
+                                  MessageEventManager messageEventManager)
+
+
Called when a request that the receiver of the message is offline is received. +

+

+
Parameters:
from - the user that sent the notification.
packetID - the id of the message that was sent.
messageEventManager - the messageEventManager that fired the listener.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MultipleRecipientInfo.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MultipleRecipientInfo.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MultipleRecipientInfo.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,329 @@ + + + + + + +MultipleRecipientInfo (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class MultipleRecipientInfo

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.MultipleRecipientInfo
+
+
+
+
public class MultipleRecipientInfo
extends Object
+ + +

+MultipleRecipientInfo keeps information about the multiple recipients extension included + in a received packet. Among the information we can find the list of TO and CC addresses. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ListgetCCAddresses() + +
+          Returns the list of MultipleAddresses.Address + that were the secondary recipients of the packet.
+ MultipleAddresses.AddressgetReplyAddress() + +
+          Returns the address to which all replies are requested to be sent or null if + no specific address was provided.
+ StringgetReplyRoom() + +
+          Returns the JID of a MUC room to which responses should be sent or null if + no specific address was provided.
+ ListgetTOAddresses() + +
+          Returns the list of MultipleAddresses.Address + that were the primary recipients of the packet.
+ booleanshouldNotReply() + +
+          Returns true if the received packet should not be replied.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getTOAddresses

+
+public List getTOAddresses()
+
+
Returns the list of MultipleAddresses.Address + that were the primary recipients of the packet. +

+

+ +
Returns:
list of primary recipients of the packet.
+
+
+
+ +

+getCCAddresses

+
+public List getCCAddresses()
+
+
Returns the list of MultipleAddresses.Address + that were the secondary recipients of the packet. +

+

+ +
Returns:
list of secondary recipients of the packet.
+
+
+
+ +

+getReplyRoom

+
+public String getReplyRoom()
+
+
Returns the JID of a MUC room to which responses should be sent or null if + no specific address was provided. When no specific address was provided then the reply + can be sent to any or all recipients. Otherwise, the user should join the specified room + and send the reply to the room. +

+

+ +
Returns:
the JID of a MUC room to which responses should be sent or null if + no specific address was provided.
+
+
+
+ +

+shouldNotReply

+
+public boolean shouldNotReply()
+
+
Returns true if the received packet should not be replied. Use + MultipleRecipientManager.reply(org.jivesoftware.smack.XMPPConnection, org.jivesoftware.smack.packet.Message, org.jivesoftware.smack.packet.Message) + to send replies. +

+

+ +
Returns:
true if the received packet should not be replied.
+
+
+
+ +

+getReplyAddress

+
+public MultipleAddresses.Address getReplyAddress()
+
+
Returns the address to which all replies are requested to be sent or null if + no specific address was provided. When no specific address was provided then the reply + can be sent to any or all recipients. +

+

+ +
Returns:
the address to which all replies are requested to be sent or null if + no specific address was provided.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MultipleRecipientManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MultipleRecipientManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/MultipleRecipientManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,385 @@ + + + + + + +MultipleRecipientManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class MultipleRecipientManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.MultipleRecipientManager
+
+
+
+
public class MultipleRecipientManager
extends Object
+ + +

+A MultipleRecipientManager allows to send packets to multiple recipients by making use of + JEP-33: Extended Stanza Addressing. + It also allows to send replies to packets that were sent to multiple recipients. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MultipleRecipientManager() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static MultipleRecipientInfogetMultipleRecipientInfo(Packet packet) + +
+          Returns the MultipleRecipientInfo contained in the specified packet or + null if none was found.
+static voidreply(XMPPConnection connection, + Message original, + Message reply) + +
+          Sends a reply to a previously received packet that was sent to multiple recipients.
+static voidsend(XMPPConnection connection, + Packet packet, + List to, + List cc, + List bcc) + +
+          Sends the specified packet to the list of specified recipients using the + specified connection.
+static voidsend(XMPPConnection connection, + Packet packet, + List to, + List cc, + List bcc, + String replyTo, + String replyRoom, + boolean noReply) + +
+          Sends the specified packet to the list of specified recipients using the + specified connection.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MultipleRecipientManager

+
+public MultipleRecipientManager()
+
+
+ + + + + + + + +
+Method Detail
+ +

+send

+
+public static void send(XMPPConnection connection,
+                        Packet packet,
+                        List to,
+                        List cc,
+                        List bcc)
+                 throws XMPPException
+
+
Sends the specified packet to the list of specified recipients using the + specified connection. If the server has support for JEP-33 then only one + packet is going to be sent to the server with the multiple recipient instructions. + However, if JEP-33 is not supported by the server then the client is going to send + the packet to each recipient. +

+

+
Parameters:
connection - the connection to use to send the packet.
packet - the packet to send to the list of recipients.
to - the list of JIDs to include in the TO list or null if no TO + list exists.
cc - the list of JIDs to include in the CC list or null if no CC + list exists.
bcc - the list of JIDs to include in the BCC list or null if no BCC + list exists. +
Throws: +
XMPPException - if server does not support JEP-33: Extended Stanza Addressing and + some JEP-33 specific features were requested.
+
+
+
+ +

+send

+
+public static void send(XMPPConnection connection,
+                        Packet packet,
+                        List to,
+                        List cc,
+                        List bcc,
+                        String replyTo,
+                        String replyRoom,
+                        boolean noReply)
+                 throws XMPPException
+
+
Sends the specified packet to the list of specified recipients using the + specified connection. If the server has support for JEP-33 then only one + packet is going to be sent to the server with the multiple recipient instructions. + However, if JEP-33 is not supported by the server then the client is going to send + the packet to each recipient. +

+

+
Parameters:
connection - the connection to use to send the packet.
packet - the packet to send to the list of recipients.
to - the list of JIDs to include in the TO list or null if no TO + list exists.
cc - the list of JIDs to include in the CC list or null if no CC + list exists.
bcc - the list of JIDs to include in the BCC list or null if no BCC + list exists.
replyTo - address to which all replies are requested to be sent or null + indicating that they can reply to any address.
replyRoom - JID of a MUC room to which responses should be sent or null + indicating that they can reply to any address.
noReply - true means that receivers should not reply to the message. +
Throws: +
XMPPException - if server does not support JEP-33: Extended Stanza Addressing and + some JEP-33 specific features were requested.
+
+
+
+ +

+reply

+
+public static void reply(XMPPConnection connection,
+                         Message original,
+                         Message reply)
+                  throws XMPPException
+
+
Sends a reply to a previously received packet that was sent to multiple recipients. Before + attempting to send the reply message some checkings are performed. If any of those checkings + fail then an XMPPException is going to be thrown with the specific error detail. +

+

+
Parameters:
connection - the connection to use to send the reply.
original - the previously received packet that was sent to multiple recipients.
reply - the new message to send as a reply. +
Throws: +
XMPPException - if the original message was not sent to multiple recipients, or the + original message cannot be replied or reply should be sent to a room.
+
+
+
+ +

+getMultipleRecipientInfo

+
+public static MultipleRecipientInfo getMultipleRecipientInfo(Packet packet)
+
+
Returns the MultipleRecipientInfo contained in the specified packet or + null if none was found. Only packets sent to multiple recipients will + contain such information. +

+

+
Parameters:
packet - the packet to check. +
Returns:
the MultipleRecipientInfo contained in the specified packet or null + if none was found.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/NodeInformationProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/NodeInformationProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/NodeInformationProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,217 @@ + + + + + + +NodeInformationProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Interface NodeInformationProvider

+
+
+
public interface NodeInformationProvider
+ + +

+The NodeInformationProvider is responsible for providing information (i.e. DiscoverItems.Item) + about a given node. This information will be requested each time this XMPPP client receives a + disco items requests on the given node. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ IteratorgetNodeItems() + +
+          Returns an Iterator on the Items DiscoverItems.Item + defined in the node.
+  +

+ + + + + + + + +
+Method Detail
+ +

+getNodeItems

+
+Iterator getNodeItems()
+
+
Returns an Iterator on the Items DiscoverItems.Item + defined in the node. For example, the MUC protocol specifies that an XMPP client should + answer an Item for each joined room when asked for the rooms where the use has joined. +

+

+ +
Returns:
an Iterator on the Items defined in the node.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/OfflineMessageHeader.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/OfflineMessageHeader.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/OfflineMessageHeader.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,308 @@ + + + + + + +OfflineMessageHeader (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class OfflineMessageHeader

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.OfflineMessageHeader
+
+
+
+
public class OfflineMessageHeader
extends Object
+ + +

+The OfflineMessageHeader holds header information of an offline message. The header + information was retrieved using the OfflineMessageManager class.

+ + Each offline message is identified by the target user of the offline message and a unique stamp. + Use OfflineMessageManager.getMessages(java.util.List) to retrieve the whole message. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OfflineMessageHeader(DiscoverItems.Item item) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetJid() + +
+          Returns the full JID of the user that sent the message.
+ StringgetStamp() + +
+          Returns the stamp that uniquely identifies the offline message.
+ StringgetUser() + +
+          Returns the bare JID of the user that was offline when the message was sent.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OfflineMessageHeader

+
+public OfflineMessageHeader(DiscoverItems.Item item)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getUser

+
+public String getUser()
+
+
Returns the bare JID of the user that was offline when the message was sent. +

+

+ +
Returns:
the bare JID of the user that was offline when the message was sent.
+
+
+
+ +

+getJid

+
+public String getJid()
+
+
Returns the full JID of the user that sent the message. +

+

+ +
Returns:
the full JID of the user that sent the message.
+
+
+
+ +

+getStamp

+
+public String getStamp()
+
+
Returns the stamp that uniquely identifies the offline message. This stamp will + be used for getting the specific message or delete it. The stamp may be of the + form UTC timestamps but it is not required to have that format. +

+

+ +
Returns:
the stamp that uniquely identifies the offline message.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/OfflineMessageManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/OfflineMessageManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/OfflineMessageManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,440 @@ + + + + + + +OfflineMessageManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class OfflineMessageManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.OfflineMessageManager
+
+
+
+
public class OfflineMessageManager
extends Object
+ + +

+The OfflineMessageManager helps manage offline messages even before the user has sent an + available presence. When a user asks for his offline messages before sending an available + presence then the server will not send a flood with all the offline messages when the user + becomes online. The server will not send a flood with all the offline messages to the session + that made the offline messages request or to any other session used by the user that becomes + online.

+ + Once the session that made the offline messages request has been closed and the user becomes + offline in all the resources then the server will resume storing the messages offline and will + send all the offline messages to the user when he becomes online. Therefore, the server will + flood the user when he becomes online unless the user uses this class to manage his offline + messages. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OfflineMessageManager(XMPPConnection connection) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddeleteMessages() + +
+          Deletes all offline messages of the user.
+ voiddeleteMessages(List nodes) + +
+          Deletes the specified list of offline messages.
+ IteratorgetHeaders() + +
+          Returns an iterator on OfflineMessageHeader that keep information about the + offline message.
+ intgetMessageCount() + +
+          Returns the number of offline messages for the user of the connection.
+ IteratorgetMessages() + +
+          Returns an Iterator with all the offline Messages of the user.
+ IteratorgetMessages(List nodes) + +
+          Returns an Iterator with the offline Messages whose stamp matches the specified + request.
+ booleansupportsFlexibleRetrieval() + +
+          Returns true if the server supports Flexible Offline Message Retrieval.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OfflineMessageManager

+
+public OfflineMessageManager(XMPPConnection connection)
+
+
+ + + + + + + + +
+Method Detail
+ +

+supportsFlexibleRetrieval

+
+public boolean supportsFlexibleRetrieval()
+                                  throws XMPPException
+
+
Returns true if the server supports Flexible Offline Message Retrieval. When the server + supports Flexible Offline Message Retrieval it is possible to get the header of the offline + messages, get specific messages, delete specific messages, etc. +

+

+ +
Returns:
a boolean indicating if the server supports Flexible Offline Message Retrieval. +
Throws: +
XMPPException - If the user is not allowed to make this request.
+
+
+
+ +

+getMessageCount

+
+public int getMessageCount()
+                    throws XMPPException
+
+
Returns the number of offline messages for the user of the connection. +

+

+ +
Returns:
the number of offline messages for the user of the connection. +
Throws: +
XMPPException - If the user is not allowed to make this request or the server does + not support offline message retrieval.
+
+
+
+ +

+getHeaders

+
+public Iterator getHeaders()
+                    throws XMPPException
+
+
Returns an iterator on OfflineMessageHeader that keep information about the + offline message. The OfflineMessageHeader includes a stamp that could be used to retrieve + the complete message or delete the specific message. +

+

+ +
Returns:
an iterator on OfflineMessageHeader that keep information about the offline + message. +
Throws: +
XMPPException - If the user is not allowed to make this request or the server does + not support offline message retrieval.
+
+
+
+ +

+getMessages

+
+public Iterator getMessages(List nodes)
+                     throws XMPPException
+
+
Returns an Iterator with the offline Messages whose stamp matches the specified + request. The request will include the list of stamps that uniquely identifies + the offline messages to retrieve. The returned offline messages will not be deleted + from the server. Use deleteMessages(java.util.List) to delete the messages. +

+

+
Parameters:
nodes - the list of stamps that uniquely identifies offline message. +
Returns:
an Iterator with the offline Messages that were received as part of + this request. +
Throws: +
XMPPException - If the user is not allowed to make this request or the server does + not support offline message retrieval.
+
+
+
+ +

+getMessages

+
+public Iterator getMessages()
+                     throws XMPPException
+
+
Returns an Iterator with all the offline Messages of the user. The returned offline + messages will not be deleted from the server. Use deleteMessages(java.util.List) + to delete the messages. +

+

+ +
Returns:
an Iterator with all the offline Messages of the user. +
Throws: +
XMPPException - If the user is not allowed to make this request or the server does + not support offline message retrieval.
+
+
+
+ +

+deleteMessages

+
+public void deleteMessages(List nodes)
+                    throws XMPPException
+
+
Deletes the specified list of offline messages. The request will include the list of + stamps that uniquely identifies the offline messages to delete. +

+

+
Parameters:
nodes - the list of stamps that uniquely identifies offline message. +
Throws: +
XMPPException - If the user is not allowed to make this request or the server does + not support offline message retrieval.
+
+
+
+ +

+deleteMessages

+
+public void deleteMessages()
+                    throws XMPPException
+
+
Deletes all offline messages of the user. +

+

+ +
Throws: +
XMPPException - If the user is not allowed to make this request or the server does + not support offline message retrieval.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/PrivateDataManager.PrivateDataIQProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/PrivateDataManager.PrivateDataIQProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/PrivateDataManager.PrivateDataIQProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,271 @@ + + + + + + +PrivateDataManager.PrivateDataIQProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class PrivateDataManager.PrivateDataIQProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.PrivateDataManager.PrivateDataIQProvider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
Enclosing class:
PrivateDataManager
+
+
+
+
public static class PrivateDataManager.PrivateDataIQProvider
extends Object
implements IQProvider
+ + +

+An IQ provider to parse IQ results containing private data. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
PrivateDataManager.PrivateDataIQProvider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PrivateDataManager.PrivateDataIQProvider

+
+public PrivateDataManager.PrivateDataIQProvider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/PrivateDataManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/PrivateDataManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/PrivateDataManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,426 @@ + + + + + + +PrivateDataManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class PrivateDataManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.PrivateDataManager
+
+
+
+
public class PrivateDataManager
extends Object
+ + +

+Manages private data, which is a mechanism to allow users to store arbitrary XML + data on an XMPP server. Each private data chunk is defined by a element name and + XML namespace. Example private data: + +

+ <color xmlns="http://example.com/xmpp/color">
+     <favorite>blue</blue>
+     <leastFavorite>puce</leastFavorite>
+ </color>
+ 
+ + PrivateDataProvider instances are responsible for translating the XML into objects. + If no PrivateDataProvider is registered for a given element name and namespace, then + a DefaultPrivateData instance will be returned.

+ + Warning: this is an non-standard protocol documented by + JEP-49. Because this is a + non-standard protocol, it is subject to change. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classPrivateDataManager.PrivateDataIQProvider + +
+          An IQ provider to parse IQ results containing private data.
+  + + + + + + + + + + + + + +
+Constructor Summary
PrivateDataManager(XMPPConnection connection) + +
+          Creates a new private data manager.
PrivateDataManager(XMPPConnection connection, + String user) + +
+          Creates a new private data manager for a specific user (special case).
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddPrivateDataProvider(String elementName, + String namespace, + PrivateDataProvider provider) + +
+          Adds a private data provider with the specified element name and name space.
+ PrivateDatagetPrivateData(String elementName, + String namespace) + +
+          Returns the private data specified by the given element name and namespace.
+static PrivateDataProvidergetPrivateDataProvider(String elementName, + String namespace) + +
+          Returns the private data provider registered to the specified XML element name and namespace.
+ voidsetPrivateData(PrivateData privateData) + +
+          Sets a private data value.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PrivateDataManager

+
+public PrivateDataManager(XMPPConnection connection)
+
+
Creates a new private data manager. The connection must have + undergone a successful login before being used to construct an instance of + this class. +

+

+
Parameters:
connection - an XMPP connection which must have already undergone a + successful login.
+
+
+ +

+PrivateDataManager

+
+public PrivateDataManager(XMPPConnection connection,
+                          String user)
+
+
Creates a new private data manager for a specific user (special case). Most + servers only support getting and setting private data for the user that + authenticated via the connection. However, some servers support the ability + to get and set private data for other users (for example, if you are the + administrator). The connection must have undergone a successful login before + being used to construct an instance of this class. +

+

+
Parameters:
connection - an XMPP connection which must have already undergone a + successful login.
user - the XMPP address of the user to get and set private data for.
+
+ + + + + + + + +
+Method Detail
+ +

+getPrivateDataProvider

+
+public static PrivateDataProvider getPrivateDataProvider(String elementName,
+                                                         String namespace)
+
+
Returns the private data provider registered to the specified XML element name and namespace. + For example, if a provider was registered to the element name "prefs" and the + namespace "http://www.xmppclient.com/prefs", then the following packet would trigger + the provider: + +
+ <iq type='result' to='joe@example.com' from='mary@example.com' id='time_1'>
+     <query xmlns='jabber:iq:private'>
+         <prefs xmlns='http://www.xmppclient.com/prefs'>
+             <value1>ABC</value1>
+             <value2>XYZ</value2>
+         </prefs>
+     </query>
+ </iq>
+ +

Note: this method is generally only called by the internal Smack classes. +

+

+
Parameters:
elementName - the XML element name.
namespace - the XML namespace. +
Returns:
the PrivateData provider.
+
+
+
+ +

+addPrivateDataProvider

+
+public static void addPrivateDataProvider(String elementName,
+                                          String namespace,
+                                          PrivateDataProvider provider)
+
+
Adds a private data provider with the specified element name and name space. The provider + will override any providers loaded through the classpath. +

+

+
Parameters:
elementName - the XML element name.
namespace - the XML namespace.
provider - the private data provider.
+
+
+
+ +

+getPrivateData

+
+public PrivateData getPrivateData(String elementName,
+                                  String namespace)
+                           throws XMPPException
+
+
Returns the private data specified by the given element name and namespace. Each chunk + of private data is uniquely identified by an element name and namespace pair.

+ + If a PrivateDataProvider is registered for the specified element name/namespace pair then + that provider will determine the specific object type that is returned. If no provider + is registered, a DefaultPrivateData instance will be returned. +

+

+
Parameters:
elementName - the element name.
namespace - the namespace. +
Returns:
the private data. +
Throws: +
XMPPException - if an error occurs getting the private data.
+
+
+
+ +

+setPrivateData

+
+public void setPrivateData(PrivateData privateData)
+                    throws XMPPException
+
+
Sets a private data value. Each chunk of private data is uniquely identified by an + element name and namespace pair. If private data has already been set with the + element name and namespace, then the new private data will overwrite the old value. +

+

+
Parameters:
privateData - the private data. +
Throws: +
XMPPException - if setting the private data fails.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/RemoteRosterEntry.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/RemoteRosterEntry.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/RemoteRosterEntry.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,360 @@ + + + + + + +RemoteRosterEntry (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class RemoteRosterEntry

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.RemoteRosterEntry
+
+
+
+
public class RemoteRosterEntry
extends Object
+ + +

+Represents a roster item, which consists of a JID and , their name and + the groups the roster item belongs to. This roster item does not belong + to the local roster. Therefore, it does not persist in the server.

+ + The idea of a RemoteRosterEntry is to be used as part of a roster exchange. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
RemoteRosterEntry(String user, + String name, + String[] groups) + +
+          Creates a new remote roster entry.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ String[]getGroupArrayNames() + +
+          Returns a String array for the group names that the roster entry + belongs to.
+ IteratorgetGroupNames() + +
+          Returns an Iterator for the group names (as Strings) that the roster entry + belongs to.
+ StringgetName() + +
+          Returns the user's name.
+ StringgetUser() + +
+          Returns the user.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RemoteRosterEntry

+
+public RemoteRosterEntry(String user,
+                         String name,
+                         String[] groups)
+
+
Creates a new remote roster entry. +

+

+
Parameters:
user - the user.
name - the user's name.
groups - the list of group names the entry will belong to, or null if the + the roster entry won't belong to a group.
+
+ + + + + + + + +
+Method Detail
+ +

+getUser

+
+public String getUser()
+
+
Returns the user. +

+

+ +
Returns:
the user.
+
+
+
+ +

+getName

+
+public String getName()
+
+
Returns the user's name. +

+

+ +
Returns:
the user's name.
+
+
+
+ +

+getGroupNames

+
+public Iterator getGroupNames()
+
+
Returns an Iterator for the group names (as Strings) that the roster entry + belongs to. +

+

+ +
Returns:
an Iterator for the group names.
+
+
+
+ +

+getGroupArrayNames

+
+public String[] getGroupArrayNames()
+
+
Returns a String array for the group names that the roster entry + belongs to. +

+

+ +
Returns:
a String[] for the group names.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.Column.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.Column.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.Column.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,329 @@ + + + + + + +ReportedData.Column (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class ReportedData.Column

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.ReportedData.Column
+
+
+
Enclosing class:
ReportedData
+
+
+
+
public static class ReportedData.Column
extends Object
+ + +

+Represents the columns definition of the reported data. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ReportedData.Column(String label, + String variable, + String type) + +
+          Creates a new column with the specified definition.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetLabel() + +
+          Returns the column's label.
+ StringgetType() + +
+          Returns the column's data format.
+ StringgetVariable() + +
+          Returns the variable name that the column is showing.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ReportedData.Column

+
+public ReportedData.Column(String label,
+                           String variable,
+                           String type)
+
+
Creates a new column with the specified definition. +

+

+
Parameters:
label - the columns's label.
variable - the variable name of the column.
type - the format for the returned data.
+
+ + + + + + + + +
+Method Detail
+ +

+getLabel

+
+public String getLabel()
+
+
Returns the column's label. +

+

+ +
Returns:
label of the column.
+
+
+
+ +

+getType

+
+public String getType()
+
+
Returns the column's data format. Valid formats are: + +
    +
  • text-single -> single line or word of text +
  • text-private -> instead of showing the user what they typed, you show ***** to + protect it +
  • text-multi -> multiple lines of text entry +
  • list-single -> given a list of choices, pick one +
  • list-multi -> given a list of choices, pick one or more +
  • boolean -> 0 or 1, true or false, yes or no. Default value is 0 +
  • fixed -> fixed for putting in text to show sections, or just advertise your web + site in the middle of the form +
  • hidden -> is not given to the user at all, but returned with the questionnaire +
  • jid-single -> Jabber ID - choosing a JID from your roster, and entering one based + on the rules for a JID. +
  • jid-multi -> multiple entries for JIDs +
+

+

+ +
Returns:
format for the returned data.
+
+
+
+ +

+getVariable

+
+public String getVariable()
+
+
Returns the variable name that the column is showing. +

+

+ +
Returns:
the variable name of the column.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.Field.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.Field.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.Field.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,277 @@ + + + + + + +ReportedData.Field (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class ReportedData.Field

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.ReportedData.Field
+
+
+
Enclosing class:
ReportedData
+
+
+
+
public static class ReportedData.Field
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ReportedData.Field(String variable, + List values) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ IteratorgetValues() + +
+          Returns an iterator on the values reported as part of the search.
+ StringgetVariable() + +
+          Returns the variable name that the field represents.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ReportedData.Field

+
+public ReportedData.Field(String variable,
+                          List values)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getVariable

+
+public String getVariable()
+
+
Returns the variable name that the field represents. +

+

+ +
Returns:
the variable name of the field.
+
+
+
+ +

+getValues

+
+public Iterator getValues()
+
+
Returns an iterator on the values reported as part of the search. +

+

+ +
Returns:
the returned values of the search.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.Row.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.Row.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.Row.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,253 @@ + + + + + + +ReportedData.Row (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class ReportedData.Row

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.ReportedData.Row
+
+
+
Enclosing class:
ReportedData
+
+
+
+
public static class ReportedData.Row
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ReportedData.Row(List fields) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IteratorgetValues(String variable) + +
+          Returns the values of the field whose variable matches the requested variable.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ReportedData.Row

+
+public ReportedData.Row(List fields)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public Iterator getValues(String variable)
+
+
Returns the values of the field whose variable matches the requested variable. +

+

+
Parameters:
variable - the variable to match. +
Returns:
the values of the field whose variable matches the requested variable.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ReportedData.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,402 @@ + + + + + + +ReportedData (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class ReportedData

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.ReportedData
+
+
+
+
public class ReportedData
extends Object
+ + +

+Represents a set of data results returned as part of a search. The report is structured + in columns and rows. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Nested Class Summary
+static classReportedData.Column + +
+          Represents the columns definition of the reported data.
+static classReportedData.Field + +
+           
+static classReportedData.Row + +
+           
+  + + + + + + + + + + +
+Constructor Summary
ReportedData() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddColumn(ReportedData.Column column) + +
+          Adds a new Column
+ voidaddRow(ReportedData.Row row) + +
+          Adds a new Row.
+ IteratorgetColumns() + +
+          Returns an Iterator for the columns returned from a search.
+static ReportedDatagetReportedDataFrom(Packet packet) + +
+          Returns a new ReportedData if the packet is used for reporting data and includes an + extension that matches the elementName and namespace "x","jabber:x:data".
+ IteratorgetRows() + +
+          Returns an Iterator for the rows returned from a search.
+ StringgetTitle() + +
+          Returns the report's title.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ReportedData

+
+public ReportedData()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getReportedDataFrom

+
+public static ReportedData getReportedDataFrom(Packet packet)
+
+
Returns a new ReportedData if the packet is used for reporting data and includes an + extension that matches the elementName and namespace "x","jabber:x:data". +

+

+
Parameters:
packet - the packet used for reporting data.
+
+
+
+ +

+addRow

+
+public void addRow(ReportedData.Row row)
+
+
Adds a new Row. +

+

+
Parameters:
row - the new row to add.
+
+
+
+ +

+addColumn

+
+public void addColumn(ReportedData.Column column)
+
+
Adds a new Column +

+

+
Parameters:
column - the column to add.
+
+
+
+ +

+getRows

+
+public Iterator getRows()
+
+
Returns an Iterator for the rows returned from a search. +

+

+ +
Returns:
an Iterator for the rows returned from a search.
+
+
+
+ +

+getColumns

+
+public Iterator getColumns()
+
+
Returns an Iterator for the columns returned from a search. +

+

+ +
Returns:
an Iterator for the columns returned from a search.
+
+
+
+ +

+getTitle

+
+public String getTitle()
+
+
Returns the report's title. It is similar to the title on a web page or an X + window. +

+

+ +
Returns:
title of the report.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/RosterExchangeListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/RosterExchangeListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/RosterExchangeListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,214 @@ + + + + + + +RosterExchangeListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Interface RosterExchangeListener

+
+
+
public interface RosterExchangeListener
+ + +

+A listener that is fired anytime a roster exchange is received. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidentriesReceived(String from, + Iterator remoteRosterEntries) + +
+          Called when roster entries are received as part of a roster exchange.
+  +

+ + + + + + + + +
+Method Detail
+ +

+entriesReceived

+
+void entriesReceived(String from,
+                     Iterator remoteRosterEntries)
+
+
Called when roster entries are received as part of a roster exchange. +

+

+
Parameters:
from - the user that sent the entries.
remoteRosterEntries - the entries sent by the user. The entries are instances of + RemoteRosterEntry.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/RosterExchangeManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/RosterExchangeManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/RosterExchangeManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,399 @@ + + + + + + +RosterExchangeManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class RosterExchangeManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.RosterExchangeManager
+
+
+
+
public class RosterExchangeManager
extends Object
+ + +

+Manages Roster exchanges. A RosterExchangeManager provides a high level access to send + rosters, roster groups and roster entries to XMPP clients. It also provides an easy way + to hook up custom logic when entries are received from another XMPP client through + RosterExchangeListeners. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
RosterExchangeManager(XMPPConnection con) + +
+          Creates a new roster exchange manager.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddRosterListener(RosterExchangeListener rosterExchangeListener) + +
+          Adds a listener to roster exchanges.
+ voiddestroy() + +
+           
+ voidfinalize() + +
+           
+ voidremoveRosterListener(RosterExchangeListener rosterExchangeListener) + +
+          Removes a listener from roster exchanges.
+ voidsend(RosterEntry rosterEntry, + String targetUserID) + +
+          Sends a roster entry to userID.
+ voidsend(RosterGroup rosterGroup, + String targetUserID) + +
+          Sends a roster group to userID.
+ voidsend(Roster roster, + String targetUserID) + +
+          Sends a roster to userID.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RosterExchangeManager

+
+public RosterExchangeManager(XMPPConnection con)
+
+
Creates a new roster exchange manager. +

+

+
Parameters:
con - an XMPPConnection.
+
+ + + + + + + + +
+Method Detail
+ +

+addRosterListener

+
+public void addRosterListener(RosterExchangeListener rosterExchangeListener)
+
+
Adds a listener to roster exchanges. The listener will be fired anytime roster entries + are received from remote XMPP clients. +

+

+
Parameters:
rosterExchangeListener - a roster exchange listener.
+
+
+
+ +

+removeRosterListener

+
+public void removeRosterListener(RosterExchangeListener rosterExchangeListener)
+
+
Removes a listener from roster exchanges. The listener will be fired anytime roster + entries are received from remote XMPP clients. +

+

+
Parameters:
rosterExchangeListener - a roster exchange listener..
+
+
+
+ +

+send

+
+public void send(Roster roster,
+                 String targetUserID)
+
+
Sends a roster to userID. All the entries of the roster will be sent to the + target user. +

+

+
Parameters:
roster - the roster to send
targetUserID - the user that will receive the roster entries
+
+
+
+ +

+send

+
+public void send(RosterEntry rosterEntry,
+                 String targetUserID)
+
+
Sends a roster entry to userID. +

+

+
Parameters:
rosterEntry - the roster entry to send
targetUserID - the user that will receive the roster entries
+
+
+
+ +

+send

+
+public void send(RosterGroup rosterGroup,
+                 String targetUserID)
+
+
Sends a roster group to userID. All the entries of the group will be sent to the + target user. +

+

+
Parameters:
rosterGroup - the roster group to send
targetUserID - the user that will receive the roster entries
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
+
+
+
+
+ +

+finalize

+
+public void finalize()
+
+
+
Overrides:
finalize in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ServiceDiscoveryManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ServiceDiscoveryManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/ServiceDiscoveryManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,721 @@ + + + + + + +ServiceDiscoveryManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class ServiceDiscoveryManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.ServiceDiscoveryManager
+
+
+
+
public class ServiceDiscoveryManager
extends Object
+ + +

+Manages discovery of services in XMPP entities. This class provides: +

    +
  1. A registry of supported features in this XMPP entity. +
  2. Automatic response when this XMPP entity is queried for information. +
  3. Ability to discover items and information of remote XMPP entities. +
  4. Ability to publish publicly available items. +
+

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ServiceDiscoveryManager(XMPPConnection connection) + +
+          Creates a new ServiceDiscoveryManager for a given XMPPConnection.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFeature(String feature) + +
+          Registers that a new feature is supported by this XMPP entity.
+ booleancanPublishItems(String entityID) + +
+          Returns true if the server supports publishing of items.
+ DiscoverInfodiscoverInfo(String entityID) + +
+          Returns the discovered information of a given XMPP entity addressed by its JID.
+ DiscoverInfodiscoverInfo(String entityID, + String node) + +
+          Returns the discovered information of a given XMPP entity addressed by its JID and + note attribute.
+ DiscoverItemsdiscoverItems(String entityID) + +
+          Returns the discovered items of a given XMPP entity addressed by its JID.
+ DiscoverItemsdiscoverItems(String entityID, + String node) + +
+          Returns the discovered items of a given XMPP entity addressed by its JID and + note attribute.
+ IteratorgetFeatures() + +
+          Returns the supported features by this XMPP entity.
+static StringgetIdentityName() + +
+          Returns the name of the client that will be returned when asked for the client identity + in a disco request.
+static StringgetIdentityType() + +
+          Returns the type of client that will be returned when asked for the client identity in a + disco request.
+static ServiceDiscoveryManagergetInstanceFor(XMPPConnection connection) + +
+          Returns the ServiceDiscoveryManager instance associated with a given XMPPConnection.
+ booleanincludesFeature(String feature) + +
+          Returns true if the specified feature is registered in the ServiceDiscoveryManager.
+ voidpublishItems(String entityID, + DiscoverItems discoverItems) + +
+          Publishes new items to a parent entity.
+ voidpublishItems(String entityID, + String node, + DiscoverItems discoverItems) + +
+          Publishes new items to a parent entity and node.
+ voidremoveFeature(String feature) + +
+          Removes the specified feature from the supported features by this XMPP entity.
+ voidremoveNodeInformationProvider(String node) + +
+          Removes the NodeInformationProvider responsible for providing information + (ie items) related to a given node.
+static voidsetIdentityName(String name) + +
+          Sets the name of the client that will be returned when asked for the client identity + in a disco request.
+static voidsetIdentityType(String type) + +
+          Sets the type of client that will be returned when asked for the client identity in a + disco request.
+ voidsetNodeInformationProvider(String node, + NodeInformationProvider listener) + +
+          Sets the NodeInformationProvider responsible for providing information + (ie items) related to a given node.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ServiceDiscoveryManager

+
+public ServiceDiscoveryManager(XMPPConnection connection)
+
+
Creates a new ServiceDiscoveryManager for a given XMPPConnection. This means that the + service manager will respond to any service discovery request that the connection may + receive. +

+

+
Parameters:
connection - the connection to which a ServiceDiscoveryManager is going to be created.
+
+ + + + + + + + +
+Method Detail
+ +

+getInstanceFor

+
+public static ServiceDiscoveryManager getInstanceFor(XMPPConnection connection)
+
+
Returns the ServiceDiscoveryManager instance associated with a given XMPPConnection. +

+

+
Parameters:
connection - the connection used to look for the proper ServiceDiscoveryManager. +
Returns:
the ServiceDiscoveryManager associated with a given XMPPConnection.
+
+
+
+ +

+getIdentityName

+
+public static String getIdentityName()
+
+
Returns the name of the client that will be returned when asked for the client identity + in a disco request. The name could be any value you need to identity this client. +

+

+ +
Returns:
the name of the client that will be returned when asked for the client identity + in a disco request.
+
+
+
+ +

+setIdentityName

+
+public static void setIdentityName(String name)
+
+
Sets the name of the client that will be returned when asked for the client identity + in a disco request. The name could be any value you need to identity this client. +

+

+
Parameters:
name - the name of the client that will be returned when asked for the client identity + in a disco request.
+
+
+
+ +

+getIdentityType

+
+public static String getIdentityType()
+
+
Returns the type of client that will be returned when asked for the client identity in a + disco request. The valid types are defined by the category client. Follow this link to learn + the possible types: Jabber::Registrar. +

+

+ +
Returns:
the type of client that will be returned when asked for the client identity in a + disco request.
+
+
+
+ +

+setIdentityType

+
+public static void setIdentityType(String type)
+
+
Sets the type of client that will be returned when asked for the client identity in a + disco request. The valid types are defined by the category client. Follow this link to learn + the possible types: Jabber::Registrar. +

+

+
Parameters:
type - the type of client that will be returned when asked for the client identity in a + disco request.
+
+
+
+ +

+setNodeInformationProvider

+
+public void setNodeInformationProvider(String node,
+                                       NodeInformationProvider listener)
+
+
Sets the NodeInformationProvider responsible for providing information + (ie items) related to a given node. Every time this client receives a disco request + regarding the items of a given node, the provider associated to that node will be the + responsible for providing the requested information.

+ + In MUC, a node could be 'http://jabber.org/protocol/muc#rooms' which means that the + NodeInformationProvider will provide information about the rooms where the user has joined. +

+

+
Parameters:
node - the node whose items will be provided by the NodeInformationProvider.
listener - the NodeInformationProvider responsible for providing items related + to the node.
+
+
+
+ +

+removeNodeInformationProvider

+
+public void removeNodeInformationProvider(String node)
+
+
Removes the NodeInformationProvider responsible for providing information + (ie items) related to a given node. This means that no more information will be + available for the specified node. + + In MUC, a node could be 'http://jabber.org/protocol/muc#rooms' which means that the + NodeInformationProvider will provide information about the rooms where the user has joined. +

+

+
Parameters:
node - the node to remove the associated NodeInformationProvider.
+
+
+
+ +

+getFeatures

+
+public Iterator getFeatures()
+
+
Returns the supported features by this XMPP entity. +

+

+ +
Returns:
an Iterator on the supported features by this XMPP entity.
+
+
+
+ +

+addFeature

+
+public void addFeature(String feature)
+
+
Registers that a new feature is supported by this XMPP entity. When this client is + queried for its information the registered features will be answered.

+ + Since no packet is actually sent to the server it is safe to perform this operation + before logging to the server. In fact, you may want to configure the supported features + before logging to the server so that the information is already available if it is required + upon login. +

+

+
Parameters:
feature - the feature to register as supported.
+
+
+
+ +

+removeFeature

+
+public void removeFeature(String feature)
+
+
Removes the specified feature from the supported features by this XMPP entity.

+ + Since no packet is actually sent to the server it is safe to perform this operation + before logging to the server. +

+

+
Parameters:
feature - the feature to remove from the supported features.
+
+
+
+ +

+includesFeature

+
+public boolean includesFeature(String feature)
+
+
Returns true if the specified feature is registered in the ServiceDiscoveryManager. +

+

+
Parameters:
feature - the feature to look for. +
Returns:
a boolean indicating if the specified featured is registered or not.
+
+
+
+ +

+discoverInfo

+
+public DiscoverInfo discoverInfo(String entityID)
+                          throws XMPPException
+
+
Returns the discovered information of a given XMPP entity addressed by its JID. +

+

+
Parameters:
entityID - the address of the XMPP entity. +
Returns:
the discovered information. +
Throws: +
XMPPException - if the operation failed for some reason.
+
+
+
+ +

+discoverInfo

+
+public DiscoverInfo discoverInfo(String entityID,
+                                 String node)
+                          throws XMPPException
+
+
Returns the discovered information of a given XMPP entity addressed by its JID and + note attribute. Use this message only when trying to query information which is not + directly addressable. +

+

+
Parameters:
entityID - the address of the XMPP entity.
node - the attribute that supplements the 'jid' attribute. +
Returns:
the discovered information. +
Throws: +
XMPPException - if the operation failed for some reason.
+
+
+
+ +

+discoverItems

+
+public DiscoverItems discoverItems(String entityID)
+                            throws XMPPException
+
+
Returns the discovered items of a given XMPP entity addressed by its JID. +

+

+
Parameters:
entityID - the address of the XMPP entity. +
Returns:
the discovered information. +
Throws: +
XMPPException - if the operation failed for some reason.
+
+
+
+ +

+discoverItems

+
+public DiscoverItems discoverItems(String entityID,
+                                   String node)
+                            throws XMPPException
+
+
Returns the discovered items of a given XMPP entity addressed by its JID and + note attribute. Use this message only when trying to query information which is not + directly addressable. +

+

+
Parameters:
entityID - the address of the XMPP entity.
node - the attribute that supplements the 'jid' attribute. +
Returns:
the discovered items. +
Throws: +
XMPPException - if the operation failed for some reason.
+
+
+
+ +

+canPublishItems

+
+public boolean canPublishItems(String entityID)
+                        throws XMPPException
+
+
Returns true if the server supports publishing of items. A client may wish to publish items + to the server so that the server can provide items associated to the client. These items will + be returned by the server whenever the server receives a disco request targeted to the bare + address of the client (i.e. user@host.com). +

+

+
Parameters:
entityID - the address of the XMPP entity. +
Returns:
true if the server supports publishing of items. +
Throws: +
XMPPException - if the operation failed for some reason.
+
+
+
+ +

+publishItems

+
+public void publishItems(String entityID,
+                         DiscoverItems discoverItems)
+                  throws XMPPException
+
+
Publishes new items to a parent entity. The item elements to publish MUST have at least + a 'jid' attribute specifying the Entity ID of the item, and an action attribute which + specifies the action being taken for that item. Possible action values are: "update" and + "remove". +

+

+
Parameters:
entityID - the address of the XMPP entity.
discoverItems - the DiscoveryItems to publish. +
Throws: +
XMPPException - if the operation failed for some reason.
+
+
+
+ +

+publishItems

+
+public void publishItems(String entityID,
+                         String node,
+                         DiscoverItems discoverItems)
+                  throws XMPPException
+
+
Publishes new items to a parent entity and node. The item elements to publish MUST have at + least a 'jid' attribute specifying the Entity ID of the item, and an action attribute which + specifies the action being taken for that item. Possible action values are: "update" and + "remove". +

+

+
Parameters:
entityID - the address of the XMPP entity.
node - the attribute that supplements the 'jid' attribute.
discoverItems - the DiscoveryItems to publish. +
Throws: +
XMPPException - if the operation failed for some reason.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/SharedGroupManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/SharedGroupManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/SharedGroupManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,266 @@ + + + + + + +SharedGroupManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class SharedGroupManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.SharedGroupManager
+
+
+
+
public class SharedGroupManager
extends Object
+ + +

+A SharedGroupManager provides services for discovering the shared groups where a user belongs.

+ + Important note: This functionality is not part of the XMPP spec and it will only work + with Wildfire. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
SharedGroupManager() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static ListgetSharedGroups(XMPPConnection connection) + +
+          Returns the collection that will contain the name of the shared groups where the user + logged in with the specified session belongs.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SharedGroupManager

+
+public SharedGroupManager()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getSharedGroups

+
+public static List getSharedGroups(XMPPConnection connection)
+                            throws XMPPException
+
+
Returns the collection that will contain the name of the shared groups where the user + logged in with the specified session belongs. +

+

+
Parameters:
connection - connection to use to get the user's shared groups. +
Returns:
collection with the shared groups' name of the logged user. +
Throws: +
XMPPException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/XHTMLManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/XHTMLManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/XHTMLManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,378 @@ + + + + + + +XHTMLManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class XHTMLManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.XHTMLManager
+
+
+
+
public class XHTMLManager
extends Object
+ + +

+Manages XHTML formatted texts within messages. A XHTMLManager provides a high level access to + get and set XHTML bodies to messages, enable and disable XHTML support and check if remote XMPP + clients support XHTML. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
XHTMLManager() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddBody(Message message, + String body) + +
+          Adds an XHTML body to the message.
+static IteratorgetBodies(Message message) + +
+          Returns an Iterator for the XHTML bodies in the message.
+static booleanisServiceEnabled(XMPPConnection connection) + +
+          Returns true if the XHTML support is enabled for the given connection.
+static booleanisServiceEnabled(XMPPConnection connection, + String userID) + +
+          Returns true if the specified user handles XHTML messages.
+static booleanisXHTMLMessage(Message message) + +
+          Returns true if the message contains an XHTML extension.
+static voidsetServiceEnabled(XMPPConnection connection, + boolean enabled) + +
+          Enables or disables the XHTML support on a given connection.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XHTMLManager

+
+public XHTMLManager()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getBodies

+
+public static Iterator getBodies(Message message)
+
+
Returns an Iterator for the XHTML bodies in the message. Returns null if + the message does not contain an XHTML extension. +

+

+
Parameters:
message - an XHTML message +
Returns:
an Iterator for the bodies in the message or null if none.
+
+
+
+ +

+addBody

+
+public static void addBody(Message message,
+                           String body)
+
+
Adds an XHTML body to the message. +

+

+
Parameters:
message - the message that will receive the XHTML body
body - the string to add as an XHTML body to the message
+
+
+
+ +

+isXHTMLMessage

+
+public static boolean isXHTMLMessage(Message message)
+
+
Returns true if the message contains an XHTML extension. +

+

+
Parameters:
message - the message to check if contains an XHTML extentsion or not +
Returns:
a boolean indicating whether the message is an XHTML message
+
+
+
+ +

+setServiceEnabled

+
+public static void setServiceEnabled(XMPPConnection connection,
+                                     boolean enabled)
+
+
Enables or disables the XHTML support on a given connection.

+ + Before starting to send XHTML messages to a user, check that the user can handle XHTML + messages. Enable the XHTML support to indicate that this client handles XHTML messages. +

+

+
Parameters:
connection - the connection where the service will be enabled or disabled
enabled - indicates if the service will be enabled or disabled
+
+
+
+ +

+isServiceEnabled

+
+public static boolean isServiceEnabled(XMPPConnection connection)
+
+
Returns true if the XHTML support is enabled for the given connection. +

+

+
Parameters:
connection - the connection to look for XHTML support +
Returns:
a boolean indicating if the XHTML support is enabled for the given connection
+
+
+
+ +

+isServiceEnabled

+
+public static boolean isServiceEnabled(XMPPConnection connection,
+                                       String userID)
+
+
Returns true if the specified user handles XHTML messages. +

+

+
Parameters:
connection - the connection to use to perform the service discovery
userID - the user to check. A fully qualified xmpp ID, e.g. jdoe@example.com +
Returns:
a boolean indicating whether the specified user handles XHTML messages
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/XHTMLText.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/XHTMLText.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/XHTMLText.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,853 @@ + + + + + + +XHTMLText (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx +
+Class XHTMLText

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.XHTMLText
+
+
+
+
public class XHTMLText
extends Object
+ + +

+An XHTMLText represents formatted text. This class also helps to build valid + XHTML tags. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
XHTMLText(String style, + String lang) + +
+          Creates a new XHTMLText with body tag params.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidappend(String textToAppend) + +
+          Appends a given text to the XHTMLText.
+ voidappendBrTag() + +
+          Appends a tag that inserts a single carriage return.
+ voidappendCloseAnchorTag() + +
+          Appends a tag that indicates that an anchor section ends.
+ voidappendCloseBlockQuoteTag() + +
+          Appends a tag that indicates that a blockquote section ends.
+ voidappendCloseCodeTag() + +
+          Appends a tag that indicates end of text that is the code for a program.
+ voidappendCloseEmTag() + +
+          Appends a tag that indicates end of emphasis.
+ voidappendCloseHeaderTag(int level) + +
+          Appends a tag that indicates that a header section ends.
+ voidappendCloseInlinedQuoteTag() + +
+          Appends a tag that indicates that an inlined quote section ends.
+ voidappendCloseOrderedListTag() + +
+          Appends a tag that indicates that an ordered list section ends.
+ voidappendCloseParagraphTag() + +
+          Appends a tag that indicates the end of a new paragraph.
+ voidappendCloseSpanTag() + +
+          Appends a tag that indicates that a span section ends.
+ voidappendCloseStrongTag() + +
+          Appends a tag that indicates that a strong section ends.
+ voidappendCloseUnorderedListTag() + +
+          Appends a tag that indicates that an unordered list section ends.
+ voidappendImageTag(String align, + String alt, + String height, + String src, + String width) + +
+          Appends a tag that indicates an image.
+ voidappendLineItemTag(String style) + +
+          Appends a tag that indicates the start of a new line item within a list.
+ voidappendOpenAnchorTag(String href, + String style) + +
+          Appends a tag that indicates that an anchor section begins.
+ voidappendOpenBlockQuoteTag(String style) + +
+          Appends a tag that indicates that a blockquote section begins.
+ voidappendOpenCiteTag() + +
+          Appends a tag that indicates a reference to work, such as a book, report or web site.
+ voidappendOpenCodeTag() + +
+          Appends a tag that indicates text that is the code for a program.
+ voidappendOpenEmTag() + +
+          Appends a tag that indicates emphasis.
+ voidappendOpenHeaderTag(int level, + String style) + +
+          Appends a tag that indicates a header, a title of a section of the message.
+ voidappendOpenInlinedQuoteTag(String style) + +
+          Appends a tag that indicates that an inlined quote section begins.
+ voidappendOpenOrderedListTag(String style) + +
+          Appends a tag that creates an ordered list.
+ voidappendOpenParagraphTag(String style) + +
+          Appends a tag that indicates the start of a new paragraph.
+ voidappendOpenSpanTag(String style) + +
+          Appends a tag that allows to set the fonts for a span of text.
+ voidappendOpenStrongTag() + +
+          Appends a tag that indicates text which should be more forceful than surrounding text.
+ voidappendOpenUnorderedListTag(String style) + +
+          Appends a tag that creates an unordered list.
+ StringtoString() + +
+          Returns the text of the XHTMLText.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XHTMLText

+
+public XHTMLText(String style,
+                 String lang)
+
+
Creates a new XHTMLText with body tag params. +

+

+
Parameters:
style - the XHTML style of the body
lang - the language of the body
+
+ + + + + + + + +
+Method Detail
+ +

+appendOpenAnchorTag

+
+public void appendOpenAnchorTag(String href,
+                                String style)
+
+
Appends a tag that indicates that an anchor section begins. +

+

+
Parameters:
href - indicates the URL being linked to
style - the XHTML style of the anchor
+
+
+
+ +

+appendCloseAnchorTag

+
+public void appendCloseAnchorTag()
+
+
Appends a tag that indicates that an anchor section ends. +

+

+
+
+
+
+ +

+appendOpenBlockQuoteTag

+
+public void appendOpenBlockQuoteTag(String style)
+
+
Appends a tag that indicates that a blockquote section begins. +

+

+
Parameters:
style - the XHTML style of the blockquote
+
+
+
+ +

+appendCloseBlockQuoteTag

+
+public void appendCloseBlockQuoteTag()
+
+
Appends a tag that indicates that a blockquote section ends. +

+

+
+
+
+
+ +

+appendBrTag

+
+public void appendBrTag()
+
+
Appends a tag that inserts a single carriage return. +

+

+
+
+
+
+ +

+appendOpenCiteTag

+
+public void appendOpenCiteTag()
+
+
Appends a tag that indicates a reference to work, such as a book, report or web site. +

+

+
+
+
+
+ +

+appendOpenCodeTag

+
+public void appendOpenCodeTag()
+
+
Appends a tag that indicates text that is the code for a program. +

+

+
+
+
+
+ +

+appendCloseCodeTag

+
+public void appendCloseCodeTag()
+
+
Appends a tag that indicates end of text that is the code for a program. +

+

+
+
+
+
+ +

+appendOpenEmTag

+
+public void appendOpenEmTag()
+
+
Appends a tag that indicates emphasis. +

+

+
+
+
+
+ +

+appendCloseEmTag

+
+public void appendCloseEmTag()
+
+
Appends a tag that indicates end of emphasis. +

+

+
+
+
+
+ +

+appendOpenHeaderTag

+
+public void appendOpenHeaderTag(int level,
+                                String style)
+
+
Appends a tag that indicates a header, a title of a section of the message. +

+

+
Parameters:
level - the level of the Header. It should be a value between 1 and 3
style - the XHTML style of the blockquote
+
+
+
+ +

+appendCloseHeaderTag

+
+public void appendCloseHeaderTag(int level)
+
+
Appends a tag that indicates that a header section ends. +

+

+
Parameters:
level - the level of the Header. It should be a value between 1 and 3
+
+
+
+ +

+appendImageTag

+
+public void appendImageTag(String align,
+                           String alt,
+                           String height,
+                           String src,
+                           String width)
+
+
Appends a tag that indicates an image. +

+

+
Parameters:
align - how text should flow around the picture
alt - the text to show if you don't show the picture
height - how tall is the picture
src - where to get the picture
width - how wide is the picture
+
+
+
+ +

+appendLineItemTag

+
+public void appendLineItemTag(String style)
+
+
Appends a tag that indicates the start of a new line item within a list. +

+

+
Parameters:
style - the style of the line item
+
+
+
+ +

+appendOpenOrderedListTag

+
+public void appendOpenOrderedListTag(String style)
+
+
Appends a tag that creates an ordered list. "Ordered" means that the order of the items + in the list is important. To show this, browsers automatically number the list. +

+

+
Parameters:
style - the style of the ordered list
+
+
+
+ +

+appendCloseOrderedListTag

+
+public void appendCloseOrderedListTag()
+
+
Appends a tag that indicates that an ordered list section ends. +

+

+
+
+
+
+ +

+appendOpenUnorderedListTag

+
+public void appendOpenUnorderedListTag(String style)
+
+
Appends a tag that creates an unordered list. The unordered part means that the items + in the list are not in any particular order. +

+

+
Parameters:
style - the style of the unordered list
+
+
+
+ +

+appendCloseUnorderedListTag

+
+public void appendCloseUnorderedListTag()
+
+
Appends a tag that indicates that an unordered list section ends. +

+

+
+
+
+
+ +

+appendOpenParagraphTag

+
+public void appendOpenParagraphTag(String style)
+
+
Appends a tag that indicates the start of a new paragraph. This is usually rendered + with two carriage returns, producing a single blank line in between the two paragraphs. +

+

+
Parameters:
style - the style of the paragraph
+
+
+
+ +

+appendCloseParagraphTag

+
+public void appendCloseParagraphTag()
+
+
Appends a tag that indicates the end of a new paragraph. This is usually rendered + with two carriage returns, producing a single blank line in between the two paragraphs. +

+

+
+
+
+
+ +

+appendOpenInlinedQuoteTag

+
+public void appendOpenInlinedQuoteTag(String style)
+
+
Appends a tag that indicates that an inlined quote section begins. +

+

+
Parameters:
style - the style of the inlined quote
+
+
+
+ +

+appendCloseInlinedQuoteTag

+
+public void appendCloseInlinedQuoteTag()
+
+
Appends a tag that indicates that an inlined quote section ends. +

+

+
+
+
+
+ +

+appendOpenSpanTag

+
+public void appendOpenSpanTag(String style)
+
+
Appends a tag that allows to set the fonts for a span of text. +

+

+
Parameters:
style - the style for a span of text
+
+
+
+ +

+appendCloseSpanTag

+
+public void appendCloseSpanTag()
+
+
Appends a tag that indicates that a span section ends. +

+

+
+
+
+
+ +

+appendOpenStrongTag

+
+public void appendOpenStrongTag()
+
+
Appends a tag that indicates text which should be more forceful than surrounding text. +

+

+
+
+
+
+ +

+appendCloseStrongTag

+
+public void appendCloseStrongTag()
+
+
Appends a tag that indicates that a strong section ends. +

+

+
+
+
+
+ +

+append

+
+public void append(String textToAppend)
+
+
Appends a given text to the XHTMLText. +

+

+
Parameters:
textToAppend - the text to append
+
+
+
+ +

+toString

+
+public String toString()
+
+
Returns the text of the XHTMLText. + + Note: Automatically adds the closing body tag. +

+

+
Overrides:
toString in class Object
+
+
+ +
Returns:
the text of the XHTMLText
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/EnhancedDebugger.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/EnhancedDebugger.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/EnhancedDebugger.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,440 @@ + + + + + + +EnhancedDebugger (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.debugger +
+Class EnhancedDebugger

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.debugger.EnhancedDebugger
+
+
+
All Implemented Interfaces:
SmackDebugger
+
+
+
+
public class EnhancedDebugger
extends Object
implements SmackDebugger
+ + +

+The EnhancedDebugger is a debugger that allows to debug sent, received and interpreted messages + but also provides the ability to send ad-hoc messages composed by the user.

+

+ A new EnhancedDebugger will be created for each connection to debug. All the EnhancedDebuggers + will be shown in the same debug window provided by the class EnhancedDebuggerWindow. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
EnhancedDebugger(XMPPConnection connection, + Writer writer, + Reader reader) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ReadergetReader() + +
+          Returns the special Reader that wraps the main Reader and logs data to the GUI.
+ PacketListenergetReaderListener() + +
+          Returns the thread that will listen for all incoming packets and write them to the GUI.
+ WritergetWriter() + +
+          Returns the special Writer that wraps the main Writer and logs data to the GUI.
+ PacketListenergetWriterListener() + +
+          Returns the thread that will listen for all outgoing packets and write them to the GUI.
+ ReadernewConnectionReader(Reader newReader) + +
+          Returns a new special Reader that wraps the new connection Reader.
+ WriternewConnectionWriter(Writer newWriter) + +
+          Returns a new special Writer that wraps the new connection Writer.
+ voiduserHasLogged(String user) + +
+          Called when a user has logged in to the server.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+EnhancedDebugger

+
+public EnhancedDebugger(XMPPConnection connection,
+                        Writer writer,
+                        Reader reader)
+
+
+ + + + + + + + +
+Method Detail
+ +

+newConnectionReader

+
+public Reader newConnectionReader(Reader newReader)
+
+
Description copied from interface: SmackDebugger
+
Returns a new special Reader that wraps the new connection Reader. The connection + has been secured so the connection is using a new reader and writer. The debugger + needs to wrap the new reader and writer to keep being notified of the connection + traffic. +

+

+
Specified by:
newConnectionReader in interface SmackDebugger
+
+
+ +
Returns:
a new special Reader that wraps the new connection Reader.
+
+
+
+ +

+newConnectionWriter

+
+public Writer newConnectionWriter(Writer newWriter)
+
+
Description copied from interface: SmackDebugger
+
Returns a new special Writer that wraps the new connection Writer. The connection + has been secured so the connection is using a new reader and writer. The debugger + needs to wrap the new reader and writer to keep being notified of the connection + traffic. +

+

+
Specified by:
newConnectionWriter in interface SmackDebugger
+
+
+ +
Returns:
a new special Writer that wraps the new connection Writer.
+
+
+
+ +

+userHasLogged

+
+public void userHasLogged(String user)
+
+
Description copied from interface: SmackDebugger
+
Called when a user has logged in to the server. The user could be an anonymous user, this + means that the user would be of the form host/resource instead of the form + user@host/resource. +

+

+
Specified by:
userHasLogged in interface SmackDebugger
+
+
+
Parameters:
user - the user@host/resource that has just logged in
+
+
+
+ +

+getReader

+
+public Reader getReader()
+
+
Description copied from interface: SmackDebugger
+
Returns the special Reader that wraps the main Reader and logs data to the GUI. +

+

+
Specified by:
getReader in interface SmackDebugger
+
+
+ +
Returns:
the special Reader that wraps the main Reader and logs data to the GUI.
+
+
+
+ +

+getWriter

+
+public Writer getWriter()
+
+
Description copied from interface: SmackDebugger
+
Returns the special Writer that wraps the main Writer and logs data to the GUI. +

+

+
Specified by:
getWriter in interface SmackDebugger
+
+
+ +
Returns:
the special Writer that wraps the main Writer and logs data to the GUI.
+
+
+
+ +

+getReaderListener

+
+public PacketListener getReaderListener()
+
+
Description copied from interface: SmackDebugger
+
Returns the thread that will listen for all incoming packets and write them to the GUI. + This is what we call "interpreted" packet data, since it's the packet data as Smack sees + it and not as it's coming in as raw XML. +

+

+
Specified by:
getReaderListener in interface SmackDebugger
+
+
+ +
Returns:
the PacketListener that will listen for all incoming packets and write them to + the GUI
+
+
+
+ +

+getWriterListener

+
+public PacketListener getWriterListener()
+
+
Description copied from interface: SmackDebugger
+
Returns the thread that will listen for all outgoing packets and write them to the GUI. +

+

+
Specified by:
getWriterListener in interface SmackDebugger
+
+
+ +
Returns:
the PacketListener that will listen for all sent packets and write them to + the GUI
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,349 @@ + + + + + + +EnhancedDebuggerWindow (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.debugger +
+Class EnhancedDebuggerWindow

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.debugger.EnhancedDebuggerWindow
+
+
+
+
public class EnhancedDebuggerWindow
extends Object
+ + +

+The EnhancedDebuggerWindow is the main debug window that will show all the EnhancedDebuggers. + For each connection to debug there will be an EnhancedDebugger that will be shown in the + EnhancedDebuggerWindow.

+

+ This class also provides information about Smack like for example the Smack version and the + installed providers. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static intMAX_TABLE_ROWS + +
+          Keeps the max number of rows to keep in the tables.
+static booleanPERSISTED_DEBUGGER + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static EnhancedDebuggerWindowgetInstance() + +
+          Returns the unique EnhancedDebuggerWindow instance available in the system.
+ booleanisVisible() + +
+           
+ voidrootWindowClosing(WindowEvent evt) + +
+          Notification that the root window is closing.
+ voidsetVisible(boolean visible) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+PERSISTED_DEBUGGER

+
+public static boolean PERSISTED_DEBUGGER
+
+
+
+
+
+ +

+MAX_TABLE_ROWS

+
+public static int MAX_TABLE_ROWS
+
+
Keeps the max number of rows to keep in the tables. A value less than 0 means that packets + will never be removed. If you are planning to use this debugger in a + production environment then you should set a lower value (e.g. 50) to prevent the debugger + from consuming all the JVM memory. +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static EnhancedDebuggerWindow getInstance()
+
+
Returns the unique EnhancedDebuggerWindow instance available in the system. +

+

+ +
Returns:
the unique EnhancedDebuggerWindow instance
+
+
+
+ +

+rootWindowClosing

+
+public void rootWindowClosing(WindowEvent evt)
+
+
Notification that the root window is closing. Stop listening for received and + transmitted packets in all the debugged connections. +

+

+
Parameters:
evt - the event that indicates that the root window is closing
+
+
+
+ +

+setVisible

+
+public void setVisible(boolean visible)
+
+
+
+
+
+
+ +

+isVisible

+
+public boolean isVisible()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,34 @@ + + + + + + +org.jivesoftware.smackx.debugger (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smackx.debugger + + + + +
+Classes  + +
+EnhancedDebugger +
+EnhancedDebuggerWindow
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,172 @@ + + + + + + +org.jivesoftware.smackx.debugger (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smackx.debugger +

+Smack optional Debuggers. +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Class Summary
EnhancedDebuggerThe EnhancedDebugger is a debugger that allows to debug sent, received and interpreted messages + but also provides the ability to send ad-hoc messages composed by the user.
EnhancedDebuggerWindowThe EnhancedDebuggerWindow is the main debug window that will show all the EnhancedDebuggers.
+  + +

+

+Package org.jivesoftware.smackx.debugger Description +

+ +

+Smack optional Debuggers. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/debugger/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,148 @@ + + + + + + +org.jivesoftware.smackx.debugger Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smackx.debugger +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FaultTolerantNegotiator.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FaultTolerantNegotiator.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FaultTolerantNegotiator.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,406 @@ + + + + + + +FaultTolerantNegotiator (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class FaultTolerantNegotiator

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.StreamNegotiator
+      extended by org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator
+
+
+
+
public class FaultTolerantNegotiator
extends StreamNegotiator
+ + +

+The fault tolerant negotiator takes two stream negotiators, the primary and the secondary negotiator. + If the primary negotiator fails during the stream negotiaton process, the second negotiator is used. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
FaultTolerantNegotiator(XMPPConnection connection, + StreamNegotiator primary, + StreamNegotiator secondary) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcleanup() + +
+          Cleanup any and all resources associated with this negotiator.
+ InputStreamcreateIncomingStream(StreamInitiation initiation) + +
+          This method handles the file stream download negotiation process.
+ OutputStreamcreateOutgoingStream(String streamID, + String initiator, + String target) + +
+          This method handles the file upload stream negotiation process.
+ PacketFiltergetInitiationPacketFilter(String from, + String streamID) + +
+          Returns the packet filter that will return the initiation packet for the appropriate stream + initiation.
+ String[]getNamespaces() + +
+          Returns the XMPP namespace reserved for this particular type of file + transfer.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smackx.filetransfer.StreamNegotiator
createError, createInitiationAccept
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FaultTolerantNegotiator

+
+public FaultTolerantNegotiator(XMPPConnection connection,
+                               StreamNegotiator primary,
+                               StreamNegotiator secondary)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInitiationPacketFilter

+
+public PacketFilter getInitiationPacketFilter(String from,
+                                              String streamID)
+
+
Description copied from class: StreamNegotiator
+
Returns the packet filter that will return the initiation packet for the appropriate stream + initiation. +

+

+
Specified by:
getInitiationPacketFilter in class StreamNegotiator
+
+
+
Parameters:
from - The initiatior of the file transfer.
streamID - The stream ID related to the transfer. +
Returns:
The PacketFilter that will return the packet relatable to the stream + initiation.
+
+
+
+ +

+createIncomingStream

+
+public InputStream createIncomingStream(StreamInitiation initiation)
+                                 throws XMPPException
+
+
Description copied from class: StreamNegotiator
+
This method handles the file stream download negotiation process. The + appropriate stream negotiator's initiate incoming stream is called after + an appropriate file transfer method is selected. The manager will respond + to the initatior with the selected means of transfer, then it will handle + any negotation specific to the particular transfer method. This method + returns the InputStream, ready to transfer the file. +

+

+
Specified by:
createIncomingStream in class StreamNegotiator
+
+
+
Parameters:
initiation - The initation that triggered this download. +
Returns:
After the negotation process is complete, the InputStream to + write a file to is returned. +
Throws: +
XMPPException - If an error occurs during this process an XMPPException is + thrown.
+
+
+
+ +

+createOutgoingStream

+
+public OutputStream createOutgoingStream(String streamID,
+                                         String initiator,
+                                         String target)
+                                  throws XMPPException
+
+
Description copied from class: StreamNegotiator
+
This method handles the file upload stream negotiation process. The + particular stream negotiator is determined during the file transfer + negotiation process. This method returns the OutputStream to transmit the + file to the remote user. +

+

+
Specified by:
createOutgoingStream in class StreamNegotiator
+
+
+
Parameters:
streamID - The streamID that uniquely identifies the file transfer.
initiator - The fully-qualified JID of the initiator of the file transfer.
target - The fully-qualified JID of the target or reciever of the file + transfer. +
Returns:
The negotiated stream ready for data. +
Throws: +
XMPPException - If an error occurs during the negotiation process an + exception will be thrown.
+
+
+
+ +

+getNamespaces

+
+public String[] getNamespaces()
+
+
Description copied from class: StreamNegotiator
+
Returns the XMPP namespace reserved for this particular type of file + transfer. +

+

+
Specified by:
getNamespaces in class StreamNegotiator
+
+
+ +
Returns:
Returns the XMPP namespace reserved for this particular type of + file transfer.
+
+
+
+ +

+cleanup

+
+public void cleanup()
+
+
Description copied from class: StreamNegotiator
+
Cleanup any and all resources associated with this negotiator. +

+

+
Specified by:
cleanup in class StreamNegotiator
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransfer.Error.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransfer.Error.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransfer.Error.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,382 @@ + + + + + + +FileTransfer.Error (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class FileTransfer.Error

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.FileTransfer.Error
+
+
+
Enclosing class:
FileTransfer
+
+
+
+
public static class FileTransfer.Error
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static FileTransfer.ErrorBAD_FILE + +
+          The provided file to transfer does not exist or could not be read.
+static FileTransfer.ErrorCONNECTION + +
+          An error occured over the socket connected to send the file.
+static FileTransfer.ErrorNO_RESPONSE + +
+          The remote user did not respond or the connection timed out.
+static FileTransfer.ErrorNONE + +
+          No error
+static FileTransfer.ErrorNOT_ACCEPTABLE + +
+          The peer did not find any of the provided stream mechanisms + acceptable.
+protected static FileTransfer.ErrorSTREAM + +
+          An error occured while sending or recieving the file
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetMessage() + +
+          Returns a String representation of this error.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NONE

+
+public static final FileTransfer.Error NONE
+
+
No error +

+

+
+
+
+ +

+NOT_ACCEPTABLE

+
+public static final FileTransfer.Error NOT_ACCEPTABLE
+
+
The peer did not find any of the provided stream mechanisms + acceptable. +

+

+
+
+
+ +

+BAD_FILE

+
+public static final FileTransfer.Error BAD_FILE
+
+
The provided file to transfer does not exist or could not be read. +

+

+
+
+
+ +

+NO_RESPONSE

+
+public static final FileTransfer.Error NO_RESPONSE
+
+
The remote user did not respond or the connection timed out. +

+

+
+
+
+ +

+CONNECTION

+
+public static final FileTransfer.Error CONNECTION
+
+
An error occured over the socket connected to send the file. +

+

+
+
+
+ +

+STREAM

+
+protected static final FileTransfer.Error STREAM
+
+
An error occured while sending or recieving the file +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+getMessage

+
+public String getMessage()
+
+
Returns a String representation of this error. +

+

+ +
Returns:
Returns a String representation of this error.
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransfer.Status.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransfer.Status.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransfer.Status.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,420 @@ + + + + + + +FileTransfer.Status (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class FileTransfer.Status

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.FileTransfer.Status
+
+
+
Enclosing class:
FileTransfer
+
+
+
+
public static class FileTransfer.Status
extends Object
+ + +

+A class to represent the current status of the file transfer. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static FileTransfer.StatusCANCLED + +
+          The file transfer was canceled
+static FileTransfer.StatusCOMPLETE + +
+          The transfer has completed successfully.
+static FileTransfer.StatusERROR + +
+          An error occured during the transfer.
+static FileTransfer.StatusIN_PROGRESS + +
+          The transfer is in progress.
+static FileTransfer.StatusNEGOTIATED + +
+          After the stream negotitation has completed the intermediate state + between the time when the negotiation is finished and the actual + transfer begins.
+static FileTransfer.StatusNEGOTIATING_STREAM + +
+          The stream to transfer the file is being negotiated over the chosen + stream type.
+static FileTransfer.StatusNEGOTIATING_TRANSFER + +
+          The file transfer is being negotiated with the peer.
+static FileTransfer.StatusREFUSED + +
+          The peer has refused the file transfer request halting the file + transfer negotiation process.
+  + + + + + + + + + + +
+Constructor Summary
FileTransfer.Status() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ERROR

+
+public static final FileTransfer.Status ERROR
+
+
An error occured during the transfer. +

+

+
See Also:
FileTransfer.getError()
+
+
+ +

+NEGOTIATING_TRANSFER

+
+public static final FileTransfer.Status NEGOTIATING_TRANSFER
+
+
The file transfer is being negotiated with the peer. The party + recieving the file has the option to accept or refuse a file transfer + request. If they accept, then the process of stream negotiation will + begin. If they refuse the file will not be transfered. +

+

+
See Also:
NEGOTIATING_STREAM
+
+
+ +

+REFUSED

+
+public static final FileTransfer.Status REFUSED
+
+
The peer has refused the file transfer request halting the file + transfer negotiation process. +

+

+
+
+
+ +

+NEGOTIATING_STREAM

+
+public static final FileTransfer.Status NEGOTIATING_STREAM
+
+
The stream to transfer the file is being negotiated over the chosen + stream type. After the stream negotiating process is complete the + status becomes negotiated. +

+

+
See Also:
NEGOTIATED
+
+
+ +

+NEGOTIATED

+
+public static final FileTransfer.Status NEGOTIATED
+
+
After the stream negotitation has completed the intermediate state + between the time when the negotiation is finished and the actual + transfer begins. +

+

+
+
+
+ +

+IN_PROGRESS

+
+public static final FileTransfer.Status IN_PROGRESS
+
+
The transfer is in progress. +

+

+
See Also:
FileTransfer.getProgress()
+
+
+ +

+COMPLETE

+
+public static final FileTransfer.Status COMPLETE
+
+
The transfer has completed successfully. +

+

+
+
+
+ +

+CANCLED

+
+public static final FileTransfer.Status CANCLED
+
+
The file transfer was canceled +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+FileTransfer.Status

+
+public FileTransfer.Status()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransfer.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransfer.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransfer.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,719 @@ + + + + + + +FileTransfer (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class FileTransfer

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.FileTransfer
+
+
+
Direct Known Subclasses:
IncomingFileTransfer, OutgoingFileTransfer
+
+
+
+
public abstract class FileTransfer
extends Object
+ + +

+Contains the generic file information and progress related to a particular + file transfer. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classFileTransfer.Error + +
+           
+static classFileTransfer.Status + +
+          A class to represent the current status of the file transfer.
+ + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  longamountWritten + +
+           
+protected  FileTransferNegotiatornegotiator + +
+           
+protected  StringstreamID + +
+           
+  + + + + + + + + + + + +
+Constructor Summary
+protected FileTransfer(String peer, + String streamID, + FileTransferNegotiator negotiator) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  voidcancel() + +
+          Cancels the file transfer.
+ longgetAmountWritten() + +
+          Return the length of bytes written out to the stream.
+ FileTransfer.ErrorgetError() + +
+          When getStatus() returns that there was an FileTransfer.Status.ERROR + during the transfer, the type of error can be retrieved through this + method.
+ ExceptiongetException() + +
+          If an exception occurs asynchronously it will be stored for later + retrival.
+ StringgetFileName() + +
+          Returns the name of the file being transfered.
+ StringgetFilePath() + +
+          Returns the local path of the file.
+ longgetFileSize() + +
+          Returns the size of the file being transfered.
+ StringgetPeer() + +
+          Returns the JID of the peer for this file transfer.
+ doublegetProgress() + +
+          Returns the progress of the file transfer as a number between 0 and 1.
+ FileTransfer.StatusgetStatus() + +
+          Retuns the current status of the file transfer.
+ booleanisDone() + +
+          Returns true if the transfer has been cancled, if it has stopped because + of a an error, or the transfer completed succesfully.
+protected  voidsetError(FileTransfer.Error type) + +
+           
+protected  voidsetException(Exception exception) + +
+           
+protected  voidsetFileInfo(String fileName, + long fileSize) + +
+           
+protected  voidsetFileInfo(String path, + String fileName, + long fileSize) + +
+           
+protected  voidsetStatus(FileTransfer.Status status) + +
+           
+protected  voidwriteToStream(InputStream in, + OutputStream out) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+negotiator

+
+protected FileTransferNegotiator negotiator
+
+
+
+
+
+ +

+streamID

+
+protected String streamID
+
+
+
+
+
+ +

+amountWritten

+
+protected long amountWritten
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+FileTransfer

+
+protected FileTransfer(String peer,
+                       String streamID,
+                       FileTransferNegotiator negotiator)
+
+
+ + + + + + + + +
+Method Detail
+ +

+setFileInfo

+
+protected void setFileInfo(String fileName,
+                           long fileSize)
+
+
+
+
+
+
+ +

+setFileInfo

+
+protected void setFileInfo(String path,
+                           String fileName,
+                           long fileSize)
+
+
+
+
+
+
+ +

+getFileSize

+
+public long getFileSize()
+
+
Returns the size of the file being transfered. +

+

+ +
Returns:
Returns the size of the file being transfered.
+
+
+
+ +

+getFileName

+
+public String getFileName()
+
+
Returns the name of the file being transfered. +

+

+ +
Returns:
Returns the name of the file being transfered.
+
+
+
+ +

+getFilePath

+
+public String getFilePath()
+
+
Returns the local path of the file. +

+

+ +
Returns:
Returns the local path of the file.
+
+
+
+ +

+getPeer

+
+public String getPeer()
+
+
Returns the JID of the peer for this file transfer. +

+

+ +
Returns:
Returns the JID of the peer for this file transfer.
+
+
+
+ +

+getProgress

+
+public double getProgress()
+
+
Returns the progress of the file transfer as a number between 0 and 1. +

+

+ +
Returns:
Returns the progress of the file transfer as a number between 0 + and 1.
+
+
+
+ +

+isDone

+
+public boolean isDone()
+
+
Returns true if the transfer has been cancled, if it has stopped because + of a an error, or the transfer completed succesfully. +

+

+ +
Returns:
Returns true if the transfer has been cancled, if it has stopped + because of a an error, or the transfer completed succesfully.
+
+
+
+ +

+getStatus

+
+public FileTransfer.Status getStatus()
+
+
Retuns the current status of the file transfer. +

+

+ +
Returns:
Retuns the current status of the file transfer.
+
+
+
+ +

+setError

+
+protected void setError(FileTransfer.Error type)
+
+
+
+
+
+
+ +

+getError

+
+public FileTransfer.Error getError()
+
+
When getStatus() returns that there was an FileTransfer.Status.ERROR + during the transfer, the type of error can be retrieved through this + method. +

+

+ +
Returns:
Returns the type of error that occured if one has occured.
+
+
+
+ +

+getException

+
+public Exception getException()
+
+
If an exception occurs asynchronously it will be stored for later + retrival. If there is an error there maybe an exception set. +

+

+ +
Returns:
The exception that occured or null if there was no exception.
See Also:
getError()
+
+
+
+ +

+cancel

+
+public abstract void cancel()
+
+
Cancels the file transfer. +

+

+
+
+
+
+ +

+setException

+
+protected void setException(Exception exception)
+
+
+
+
+
+
+ +

+setStatus

+
+protected final void setStatus(FileTransfer.Status status)
+
+
+
+
+
+
+ +

+writeToStream

+
+protected void writeToStream(InputStream in,
+                             OutputStream out)
+                      throws XMPPException
+
+
+ +
Throws: +
XMPPException
+
+
+
+ +

+getAmountWritten

+
+public long getAmountWritten()
+
+
Return the length of bytes written out to the stream. +

+

+ +
Returns:
the amount in bytes written out.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,212 @@ + + + + + + +FileTransferListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Interface FileTransferListener

+
+
+
public interface FileTransferListener
+ + +

+File transfers can cause several events to be raised. These events can be + monitored through this interface. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidfileTransferRequest(FileTransferRequest request) + +
+          A request to send a file has been recieved from another user.
+  +

+ + + + + + + + +
+Method Detail
+ +

+fileTransferRequest

+
+void fileTransferRequest(FileTransferRequest request)
+
+
A request to send a file has been recieved from another user. +

+

+
Parameters:
request - The request from the other user.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,378 @@ + + + + + + +FileTransferManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class FileTransferManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.FileTransferManager
+
+
+
+
public class FileTransferManager
extends Object
+ + +

+The file transfer manager class handles the sending and recieving of files. + To send a file invoke the createOutgoingFileTransfer(String) method. +

+ And to recieve a file add a file transfer listener to the manager. The + listener will notify you when there is a new file transfer request. To create + the IncomingFileTransfer object accept the transfer, or, if the + transfer is not desirable reject it. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
FileTransferManager(XMPPConnection connection) + +
+          Creates a file transfer manager to initiate and receive file transfers.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFileTransferListener(FileTransferListener li) + +
+          Add a file transfer listener to listen to incoming file transfer + requests.
+protected  IncomingFileTransfercreateIncomingFileTransfer(FileTransferRequest request) + +
+          When the file transfer request is acceptable, this method should be + invoked.
+ OutgoingFileTransfercreateOutgoingFileTransfer(String userID) + +
+          Creates an OutgoingFileTransfer to send a file to another user.
+protected  voidfireNewRequest(StreamInitiation initiation) + +
+           
+protected  voidrejectIncomingFileTransfer(FileTransferRequest request) + +
+           
+ voidremoveFileTransferListener(FileTransferListener li) + +
+          Removes a file transfer listener.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FileTransferManager

+
+public FileTransferManager(XMPPConnection connection)
+
+
Creates a file transfer manager to initiate and receive file transfers. +

+

+
Parameters:
connection - The XMPPConnection that the file transfers will use.
+
+ + + + + + + + +
+Method Detail
+ +

+addFileTransferListener

+
+public void addFileTransferListener(FileTransferListener li)
+
+
Add a file transfer listener to listen to incoming file transfer + requests. +

+

+
Parameters:
li - The listener
See Also:
removeFileTransferListener(FileTransferListener), +FileTransferListener
+
+
+
+ +

+fireNewRequest

+
+protected void fireNewRequest(StreamInitiation initiation)
+
+
+
+
+
+
+ +

+removeFileTransferListener

+
+public void removeFileTransferListener(FileTransferListener li)
+
+
Removes a file transfer listener. +

+

+
Parameters:
li - The file transfer listener to be removed
See Also:
FileTransferListener
+
+
+
+ +

+createOutgoingFileTransfer

+
+public OutgoingFileTransfer createOutgoingFileTransfer(String userID)
+
+
Creates an OutgoingFileTransfer to send a file to another user. +

+

+
Parameters:
userID - The fully qualified jabber ID with resource of the user to + send the file to. +
Returns:
The send file object on which the negotiated transfer can be run.
+
+
+
+ +

+createIncomingFileTransfer

+
+protected IncomingFileTransfer createIncomingFileTransfer(FileTransferRequest request)
+
+
When the file transfer request is acceptable, this method should be + invoked. It will create an IncomingFileTransfer which allows the + transmission of the file to procede. +

+

+
Parameters:
request - The remote request that is being accepted. +
Returns:
The IncomingFileTransfer which manages the download of the file + from the transfer initiator.
+
+
+
+ +

+rejectIncomingFileTransfer

+
+protected void rejectIncomingFileTransfer(FileTransferRequest request)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferNegotiator.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferNegotiator.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferNegotiator.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,545 @@ + + + + + + +FileTransferNegotiator (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class FileTransferNegotiator

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.FileTransferNegotiator
+
+
+
+
public class FileTransferNegotiator
extends Object
+ + +

+Manages the negotiation of file transfers according to JEP-0096. If a file is + being sent the remote user chooses the type of stream under which the file + will be sent. +

+ +

+

+
Author:
+
Alexander Wenckus
+
See Also:
JEP-0096: File Transfer
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static StringBYTE_STREAM + +
+          The XMPP namespace of the SOCKS5 bytestream
+static booleanIBB_ONLY + +
+           
+static StringINBAND_BYTE_STREAM + +
+          The XMPP namespace of the In-Band bytestream
+protected static StringSTREAM_DATA_FIELD_NAME + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected static IQcreateIQ(String ID, + String to, + String from, + IQ.Type type) + +
+          A convience method to create an IQ packet.
+static FileTransferNegotiatorgetInstanceFor(XMPPConnection connection) + +
+          Returns the file transfer negotiator related to a particular connection.
+ StringgetNextStreamID() + +
+          Returns a new, unique, stream ID to identify a file transfer.
+static CollectiongetSupportedProtocols() + +
+          Returns a collection of the supported transfer protocols.
+static booleanisServiceEnabled(XMPPConnection connection) + +
+          Checks to see if all file transfer related services are enabled on the + connection.
+ StreamNegotiatornegotiateOutgoingTransfer(String userID, + String streamID, + String fileName, + long size, + String desc, + int responseTimeout) + +
+          Send a request to another user to send them a file.
+ voidrejectStream(StreamInitiation si) + +
+          Reject a stream initiation request from a remote user.
+ StreamNegotiatorselectStreamNegotiator(FileTransferRequest request) + +
+          Selects an appropriate stream negotiator after examining the incoming file transfer request.
+static voidsetServiceEnabled(XMPPConnection connection, + boolean isEnabled) + +
+          Enable the Jabber services related to file transfer on the particular + connection.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+BYTE_STREAM

+
+public static final String BYTE_STREAM
+
+
The XMPP namespace of the SOCKS5 bytestream +

+

+
See Also:
Constant Field Values
+
+
+ +

+INBAND_BYTE_STREAM

+
+public static final String INBAND_BYTE_STREAM
+
+
The XMPP namespace of the In-Band bytestream +

+

+
See Also:
Constant Field Values
+
+
+ +

+STREAM_DATA_FIELD_NAME

+
+protected static final String STREAM_DATA_FIELD_NAME
+
+
+
See Also:
Constant Field Values
+
+
+ +

+IBB_ONLY

+
+public static boolean IBB_ONLY
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstanceFor

+
+public static FileTransferNegotiator getInstanceFor(XMPPConnection connection)
+
+
Returns the file transfer negotiator related to a particular connection. + When this class is requested on a particular connection the file transfer + service is automatically enabled. +

+

+
Parameters:
connection - The connection for which the transfer manager is desired +
Returns:
The IMFileTransferManager
+
+
+
+ +

+setServiceEnabled

+
+public static void setServiceEnabled(XMPPConnection connection,
+                                     boolean isEnabled)
+
+
Enable the Jabber services related to file transfer on the particular + connection. +

+

+
Parameters:
connection - The connection on which to enable or disable the services.
isEnabled - True to enable, false to disable.
+
+
+
+ +

+isServiceEnabled

+
+public static boolean isServiceEnabled(XMPPConnection connection)
+
+
Checks to see if all file transfer related services are enabled on the + connection. +

+

+
Parameters:
connection - The connection to check +
Returns:
True if all related services are enabled, false if they are not.
+
+
+
+ +

+createIQ

+
+protected static IQ createIQ(String ID,
+                             String to,
+                             String from,
+                             IQ.Type type)
+
+
A convience method to create an IQ packet. +

+

+
Parameters:
ID - The packet ID of the
to - To whom the packet is addressed.
from - From whom the packet is sent.
type - The iq type of the packet. +
Returns:
The created IQ packet.
+
+
+
+ +

+getSupportedProtocols

+
+public static Collection getSupportedProtocols()
+
+
Returns a collection of the supported transfer protocols. +

+

+ +
Returns:
Returns a collection of the supported transfer protocols.
+
+
+
+ +

+selectStreamNegotiator

+
+public StreamNegotiator selectStreamNegotiator(FileTransferRequest request)
+                                        throws XMPPException
+
+
Selects an appropriate stream negotiator after examining the incoming file transfer request. +

+

+
Parameters:
request - The related file transfer request. +
Returns:
The file transfer object that handles the transfer +
Throws: +
XMPPException - If there are either no stream methods contained in the packet, or + there is not an appropriate stream method.
+
+
+
+ +

+rejectStream

+
+public void rejectStream(StreamInitiation si)
+
+
Reject a stream initiation request from a remote user. +

+

+
Parameters:
si - The Stream Initiation request to reject.
+
+
+
+ +

+getNextStreamID

+
+public String getNextStreamID()
+
+
Returns a new, unique, stream ID to identify a file transfer. +

+

+ +
Returns:
Returns a new, unique, stream ID to identify a file transfer.
+
+
+
+ +

+negotiateOutgoingTransfer

+
+public StreamNegotiator negotiateOutgoingTransfer(String userID,
+                                                  String streamID,
+                                                  String fileName,
+                                                  long size,
+                                                  String desc,
+                                                  int responseTimeout)
+                                           throws XMPPException
+
+
Send a request to another user to send them a file. The other user has + the option of, accepting, rejecting, or not responding to a received file + transfer request. +

+ If they accept, the packet will contain the other user's choosen stream + type to send the file across. The two choices this implementation + provides to the other user for file transfer are SOCKS5 Bytestreams, + which is the prefered method of transfer, and In-Band Bytestreams, + which is the fallback mechanism. +

+ The other user may choose to decline the file request if they do not + desire the file, their client does not support JEP-0096, or if there are + no acceptable means to transfer the file. +

+ Finally, if the other user does not respond this method will return null + after the specified timeout. +

+

+
Parameters:
userID - The userID of the user to whom the file will be sent.
streamID - The unique identifier for this file transfer.
fileName - The name of this file. Preferably it should include an + extension as it is used to determine what type of file it is.
size - The size, in bytes, of the file.
desc - A description of the file.
responseTimeout - The amount of time, in milliseconds, to wait for the remote + user to respond. If they do not respond in time, this +
Returns:
Returns the stream negotiator selected by the peer. +
Throws: +
XMPPException - Thrown if there is an error negotiating the file transfer.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferRequest.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferRequest.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/FileTransferRequest.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,453 @@ + + + + + + +FileTransferRequest (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class FileTransferRequest

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.FileTransferRequest
+
+
+
+
public class FileTransferRequest
extends Object
+ + +

+A request to send a file recieved from another user. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
FileTransferRequest(FileTransferManager manager, + StreamInitiation si) + +
+          A recieve request is constructed from the Stream Initiation request + received from the initator.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IncomingFileTransferaccept() + +
+          Accepts this file transfer and creates the incoming file transfer.
+ StringgetDescription() + +
+          Returns the description of the file provided by the requestor.
+ StringgetFileName() + +
+          Returns the name of the file.
+ longgetFileSize() + +
+          Returns the size in bytes of the file.
+ StringgetMimeType() + +
+          Returns the mime-type of the file.
+ StringgetRequestor() + +
+          Returns the fully-qualified jabber ID of the user that requested this + file transfer.
+ StringgetStreamID() + +
+          Returns the stream ID that uniquely identifies this file transfer.
+protected  StreamInitiationgetStreamInitiation() + +
+          Returns the stream initiation packet that was sent by the requestor which + contains the parameters of the file transfer being transfer and also the + methods available to transfer the file.
+ voidreject() + +
+          Rejects the file transfer request.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FileTransferRequest

+
+public FileTransferRequest(FileTransferManager manager,
+                           StreamInitiation si)
+
+
A recieve request is constructed from the Stream Initiation request + received from the initator. +

+

+
Parameters:
manager - The manager handling this file transfer
si - The Stream initiaton recieved from the initiator.
+
+ + + + + + + + +
+Method Detail
+ +

+getFileName

+
+public String getFileName()
+
+
Returns the name of the file. +

+

+ +
Returns:
Returns the name of the file.
+
+
+
+ +

+getFileSize

+
+public long getFileSize()
+
+
Returns the size in bytes of the file. +

+

+ +
Returns:
Returns the size in bytes of the file.
+
+
+
+ +

+getDescription

+
+public String getDescription()
+
+
Returns the description of the file provided by the requestor. +

+

+ +
Returns:
Returns the description of the file provided by the requestor.
+
+
+
+ +

+getMimeType

+
+public String getMimeType()
+
+
Returns the mime-type of the file. +

+

+ +
Returns:
Returns the mime-type of the file.
+
+
+
+ +

+getRequestor

+
+public String getRequestor()
+
+
Returns the fully-qualified jabber ID of the user that requested this + file transfer. +

+

+ +
Returns:
Returns the fully-qualified jabber ID of the user that requested + this file transfer.
+
+
+
+ +

+getStreamID

+
+public String getStreamID()
+
+
Returns the stream ID that uniquely identifies this file transfer. +

+

+ +
Returns:
Returns the stream ID that uniquely identifies this file + transfer.
+
+
+
+ +

+getStreamInitiation

+
+protected StreamInitiation getStreamInitiation()
+
+
Returns the stream initiation packet that was sent by the requestor which + contains the parameters of the file transfer being transfer and also the + methods available to transfer the file. +

+

+ +
Returns:
Returns the stream initiation packet that was sent by the + requestor which contains the parameters of the file transfer + being transfer and also the methods available to transfer the + file.
+
+
+
+ +

+accept

+
+public IncomingFileTransfer accept()
+
+
Accepts this file transfer and creates the incoming file transfer. +

+

+ +
Returns:
Returns the IncomingFileTransfer on which the + file transfer can be carried out.
+
+
+
+ +

+reject

+
+public void reject()
+
+
Rejects the file transfer request. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/IBBTransferNegotiator.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/IBBTransferNegotiator.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/IBBTransferNegotiator.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,468 @@ + + + + + + +IBBTransferNegotiator (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class IBBTransferNegotiator

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.StreamNegotiator
+      extended by org.jivesoftware.smackx.filetransfer.IBBTransferNegotiator
+
+
+
+
public class IBBTransferNegotiator
extends StreamNegotiator
+ + +

+The in-band bytestream file transfer method, or IBB for short, transfers the + file over the same XML Stream used by XMPP. It is the fall-back mechanism in + case the SOCKS5 bytestream method of transfering files is not available. +

+ +

+

+
Author:
+
Alexander Wenckus
+
See Also:
JEP-0047: In-Band + Bytestreams (IBB)
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static intDEFAULT_BLOCK_SIZE + +
+           
+protected static StringNAMESPACE + +
+           
+  + + + + + + + + + + + +
+Constructor Summary
+protected IBBTransferNegotiator(XMPPConnection connection) + +
+          The default constructor for the In-Band Bystream Negotiator.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcleanup() + +
+          Cleanup any and all resources associated with this negotiator.
+ InputStreamcreateIncomingStream(StreamInitiation initiation) + +
+          This method handles the file stream download negotiation process.
+ OutputStreamcreateOutgoingStream(String streamID, + String initiator, + String target) + +
+          This method handles the file upload stream negotiation process.
+ PacketFiltergetInitiationPacketFilter(String from, + String streamID) + +
+          Returns the packet filter that will return the initiation packet for the appropriate stream + initiation.
+ String[]getNamespaces() + +
+          Returns the XMPP namespace reserved for this particular type of file + transfer.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smackx.filetransfer.StreamNegotiator
createError, createInitiationAccept
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NAMESPACE

+
+protected static final String NAMESPACE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DEFAULT_BLOCK_SIZE

+
+public static final int DEFAULT_BLOCK_SIZE
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+IBBTransferNegotiator

+
+protected IBBTransferNegotiator(XMPPConnection connection)
+
+
The default constructor for the In-Band Bystream Negotiator. +

+

+
Parameters:
connection - The connection which this negotiator works on.
+
+ + + + + + + + +
+Method Detail
+ +

+getInitiationPacketFilter

+
+public PacketFilter getInitiationPacketFilter(String from,
+                                              String streamID)
+
+
Description copied from class: StreamNegotiator
+
Returns the packet filter that will return the initiation packet for the appropriate stream + initiation. +

+

+
Specified by:
getInitiationPacketFilter in class StreamNegotiator
+
+
+
Parameters:
from - The initiatior of the file transfer.
streamID - The stream ID related to the transfer. +
Returns:
The PacketFilter that will return the packet relatable to the stream + initiation.
+
+
+
+ +

+createIncomingStream

+
+public InputStream createIncomingStream(StreamInitiation initiation)
+                                 throws XMPPException
+
+
Description copied from class: StreamNegotiator
+
This method handles the file stream download negotiation process. The + appropriate stream negotiator's initiate incoming stream is called after + an appropriate file transfer method is selected. The manager will respond + to the initatior with the selected means of transfer, then it will handle + any negotation specific to the particular transfer method. This method + returns the InputStream, ready to transfer the file. +

+

+
Specified by:
createIncomingStream in class StreamNegotiator
+
+
+
Parameters:
initiation - The initation that triggered this download. +
Returns:
After the negotation process is complete, the InputStream to + write a file to is returned. +
Throws: +
XMPPException - If an error occurs during this process an XMPPException is + thrown.
+
+
+
+ +

+createOutgoingStream

+
+public OutputStream createOutgoingStream(String streamID,
+                                         String initiator,
+                                         String target)
+                                  throws XMPPException
+
+
Description copied from class: StreamNegotiator
+
This method handles the file upload stream negotiation process. The + particular stream negotiator is determined during the file transfer + negotiation process. This method returns the OutputStream to transmit the + file to the remote user. +

+

+
Specified by:
createOutgoingStream in class StreamNegotiator
+
+
+
Parameters:
streamID - The streamID that uniquely identifies the file transfer.
initiator - The fully-qualified JID of the initiator of the file transfer.
target - The fully-qualified JID of the target or reciever of the file + transfer. +
Returns:
The negotiated stream ready for data. +
Throws: +
XMPPException - If an error occurs during the negotiation process an + exception will be thrown.
+
+
+
+ +

+getNamespaces

+
+public String[] getNamespaces()
+
+
Description copied from class: StreamNegotiator
+
Returns the XMPP namespace reserved for this particular type of file + transfer. +

+

+
Specified by:
getNamespaces in class StreamNegotiator
+
+
+ +
Returns:
Returns the XMPP namespace reserved for this particular type of + file transfer.
+
+
+
+ +

+cleanup

+
+public void cleanup()
+
+
Description copied from class: StreamNegotiator
+
Cleanup any and all resources associated with this negotiator. +

+

+
Specified by:
cleanup in class StreamNegotiator
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/IncomingFileTransfer.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/IncomingFileTransfer.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/IncomingFileTransfer.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,393 @@ + + + + + + +IncomingFileTransfer (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class IncomingFileTransfer

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.FileTransfer
+      extended by org.jivesoftware.smackx.filetransfer.IncomingFileTransfer
+
+
+
+
public class IncomingFileTransfer
extends FileTransfer
+ + +

+An incoming file transfer is created when the + FileTransferManager.createIncomingFileTransfer(FileTransferRequest) + method is invoked. It is a file being sent to the local user from another + user on the jabber network. There are two stages of the file transfer to be + concerned with and they can be handled in different ways depending upon the + method that is invoked on this class. +

+ The first way that a file is recieved is by calling the + recieveFile() method. This method, negotiates the appropriate stream + method and then returns the InputStream to read the file + data from. +

+ The second way that a file can be recieved through this class is by invoking + the recieveFile(File) method. This method returns immediatly and + takes as its parameter a file on the local file system where the file + recieved from the transfer will be put. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smackx.filetransfer.FileTransfer
FileTransfer.Error, FileTransfer.Status
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smackx.filetransfer.FileTransfer
amountWritten, negotiator, streamID
+  + + + + + + + + + + + +
+Constructor Summary
+protected IncomingFileTransfer(FileTransferRequest request, + FileTransferNegotiator transferNegotiator) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcancel() + +
+          Cancels the file transfer.
+ InputStreamrecieveFile() + +
+          Negotiates the stream method to transfer the file over and then returns + the negotiated stream.
+ voidrecieveFile(File file) + +
+          This method negotitates the stream and then transfer's the file over the + negotiated stream.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smackx.filetransfer.FileTransfer
getAmountWritten, getError, getException, getFileName, getFilePath, getFileSize, getPeer, getProgress, getStatus, isDone, setError, setException, setFileInfo, setFileInfo, setStatus, writeToStream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IncomingFileTransfer

+
+protected IncomingFileTransfer(FileTransferRequest request,
+                               FileTransferNegotiator transferNegotiator)
+
+
+ + + + + + + + +
+Method Detail
+ +

+recieveFile

+
+public InputStream recieveFile()
+                        throws XMPPException
+
+
Negotiates the stream method to transfer the file over and then returns + the negotiated stream. +

+

+ +
Returns:
The negotiated InputStream from which to read the data. +
Throws: +
XMPPException - If there is an error in the negotiation process an exception + is thrown.
+
+
+
+ +

+recieveFile

+
+public void recieveFile(File file)
+                 throws XMPPException
+
+
This method negotitates the stream and then transfer's the file over the + negotiated stream. The transfered file will be saved at the provided + location. +

+ This method will return immedialtly, file transfer progress can be + monitored through several methods: +

+

+

+

+
Parameters:
file - The location to save the file. +
Throws: +
XMPPException +
IllegalArgumentException - This exception is thrown when the the provided file is + either null, or cannot be written to.
+
+
+
+ +

+cancel

+
+public void cancel()
+
+
Description copied from class: FileTransfer
+
Cancels the file transfer. +

+

+
Specified by:
cancel in class FileTransfer
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/OutgoingFileTransfer.NegotiationProgress.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/OutgoingFileTransfer.NegotiationProgress.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/OutgoingFileTransfer.NegotiationProgress.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,287 @@ + + + + + + +OutgoingFileTransfer.NegotiationProgress (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class OutgoingFileTransfer.NegotiationProgress

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.NegotiationProgress
+
+
+
Enclosing class:
OutgoingFileTransfer
+
+
+
+
public static class OutgoingFileTransfer.NegotiationProgress
extends Object
+ + +

+A callback class to retrive the status of an outgoing transfer + negotiation process. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OutgoingFileTransfer.NegotiationProgress() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ OutputStreamgetOutputStream() + +
+          Once the negotiation process is completed the output stream can be + retrieved.
+ FileTransfer.StatusgetStatus() + +
+          Returns the current status of the negotiation process.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OutgoingFileTransfer.NegotiationProgress

+
+public OutgoingFileTransfer.NegotiationProgress()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getStatus

+
+public FileTransfer.Status getStatus()
+
+
Returns the current status of the negotiation process. +

+

+ +
Returns:
Returns the current status of the negotiation process.
+
+
+
+ +

+getOutputStream

+
+public OutputStream getOutputStream()
+
+
Once the negotiation process is completed the output stream can be + retrieved. +

+

+ +
Returns:
Once the negotiation process is completed the output stream + can be retrieved.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/OutgoingFileTransfer.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/OutgoingFileTransfer.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/OutgoingFileTransfer.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,554 @@ + + + + + + +OutgoingFileTransfer (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class OutgoingFileTransfer

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.FileTransfer
+      extended by org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer
+
+
+
+
public class OutgoingFileTransfer
extends FileTransfer
+ + +

+Handles the sending of a file to another user. File transfer's in jabber have + several steps and there are several methods in this class that handle these + steps differently. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classOutgoingFileTransfer.NegotiationProgress + +
+          A callback class to retrive the status of an outgoing transfer + negotiation process.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smackx.filetransfer.FileTransfer
FileTransfer.Error, FileTransfer.Status
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smackx.filetransfer.FileTransfer
amountWritten, negotiator, streamID
+  + + + + + + + + + + + +
+Constructor Summary
+protected OutgoingFileTransfer(String initiator, + String target, + String streamID, + FileTransferNegotiator transferNegotiator) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcancel() + +
+          Cancels the file transfer.
+ longgetBytesSent() + +
+          Returns the amount of bytes that have been sent for the file transfer.
+protected  OutputStreamgetOutputStream() + +
+          Returns the output stream connected to the peer to transfer the file.
+static intgetResponseTimeout() + +
+          Returns the time in milliseconds after which the file transfer + negotiation process will timeout if the other user has not responded.
+ voidsendFile(File file, + String description) + +
+          This method handles the stream negotiation process and transmits the file + to the remote user.
+ OutputStreamsendFile(String fileName, + long fileSize, + String description) + +
+          This method handles the negotiation of the file transfer and the stream, + it only returns the created stream after the negotiation has been completed.
+ voidsendFile(String fileName, + long fileSize, + String description, + OutgoingFileTransfer.NegotiationProgress progress) + +
+          This methods handles the transfer and stream negotiation process.
+protected  voidsetOutputStream(OutputStream stream) + +
+           
+ voidsetResponseTimeout(int responseTimeout) + +
+          Sets the time in milliseconds after which the file transfer negotiation + process will timeout if the other user has not responded.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smackx.filetransfer.FileTransfer
getAmountWritten, getError, getException, getFileName, getFilePath, getFileSize, getPeer, getProgress, getStatus, isDone, setError, setException, setFileInfo, setFileInfo, setStatus, writeToStream
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OutgoingFileTransfer

+
+protected OutgoingFileTransfer(String initiator,
+                               String target,
+                               String streamID,
+                               FileTransferNegotiator transferNegotiator)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getResponseTimeout

+
+public static int getResponseTimeout()
+
+
Returns the time in milliseconds after which the file transfer + negotiation process will timeout if the other user has not responded. +

+

+ +
Returns:
Returns the time in milliseconds after which the file transfer + negotiation process will timeout if the remote user has not + responded.
+
+
+
+ +

+setResponseTimeout

+
+public void setResponseTimeout(int responseTimeout)
+
+
Sets the time in milliseconds after which the file transfer negotiation + process will timeout if the other user has not responded. +

+

+
Parameters:
responseTimeout - The timeout time in milliseconds.
+
+
+
+ +

+setOutputStream

+
+protected void setOutputStream(OutputStream stream)
+
+
+
+
+
+
+ +

+getOutputStream

+
+protected OutputStream getOutputStream()
+
+
Returns the output stream connected to the peer to transfer the file. It + is only available after it has been succesfully negotiated by the + StreamNegotiator. +

+

+ +
Returns:
Returns the output stream connected to the peer to transfer the + file.
+
+
+
+ +

+sendFile

+
+public OutputStream sendFile(String fileName,
+                             long fileSize,
+                             String description)
+                      throws XMPPException
+
+
This method handles the negotiation of the file transfer and the stream, + it only returns the created stream after the negotiation has been completed. +

+

+
Parameters:
fileName - The name of the file that will be transmitted. It is + preferable for this name to have an extension as it will be + used to determine the type of file it is.
fileSize - The size in bytes of the file that will be transmitted.
description - A description of the file that will be transmitted. +
Returns:
The OutputStream that is connected to the peer to transmit the + file. +
Throws: +
XMPPException - Thrown if an error occurs during the file transfer + negotiation process.
+
+
+
+ +

+sendFile

+
+public void sendFile(String fileName,
+                     long fileSize,
+                     String description,
+                     OutgoingFileTransfer.NegotiationProgress progress)
+
+
This methods handles the transfer and stream negotiation process. It + returns immediately and its progress can be monitored through the + OutgoingFileTransfer.NegotiationProgress callback. When the negotiation process is + complete the OutputStream can be retrieved from the callback via the + OutgoingFileTransfer.NegotiationProgress.getOutputStream() method. +

+

+
Parameters:
fileName - The name of the file that will be transmitted. It is + preferable for this name to have an extension as it will be + used to determine the type of file it is.
fileSize - The size in bytes of the file that will be transmitted.
description - A description of the file that will be transmitted.
progress - A callback to monitor the progress of the file transfer + negotiation process and to retrieve the OutputStream when it + is complete.
+
+
+
+ +

+sendFile

+
+public void sendFile(File file,
+                     String description)
+              throws XMPPException
+
+
This method handles the stream negotiation process and transmits the file + to the remote user. It returns immediatly and the progress of the file + transfer can be monitored through several methods: + + +

+

+ +
Throws: +
XMPPException - If there is an error during the negotiation process or the + sending of the file.
+
+
+
+ +

+getBytesSent

+
+public long getBytesSent()
+
+
Returns the amount of bytes that have been sent for the file transfer. Or + -1 if the file transfer has not started. +

+ Note: This method is only useful when the sendFile(File, String) + method is called, as it is the only method that actualy transmits the + file. +

+

+ +
Returns:
Returns the amount of bytes that have been sent for the file + transfer. Or -1 if the file transfer has not started.
+
+
+
+ +

+cancel

+
+public void cancel()
+
+
Description copied from class: FileTransfer
+
Cancels the file transfer. +

+

+
Specified by:
cancel in class FileTransfer
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/Socks5TransferNegotiator.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/Socks5TransferNegotiator.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/Socks5TransferNegotiator.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,476 @@ + + + + + + +Socks5TransferNegotiator (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class Socks5TransferNegotiator

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.StreamNegotiator
+      extended by org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator
+
+
+
+
public class Socks5TransferNegotiator
extends StreamNegotiator
+ + +

+A SOCKS5 bytestream is negotiated partly over the XMPP XML stream and partly + over a seperate socket. The actual transfer though takes place over a + seperatly created socket. +

+ A SOCKS5 file transfer generally has three parites, the initiator, the + target, and the stream host. The stream host is a specialized SOCKS5 proxy + setup on the server, or, the Initiator can act as the Stream Host if the + proxy is not available. +

+ The advantage of having a seperate proxy over directly connecting to + eachother is if the Initator and the Target are not on the same LAN and are + operating behind NAT, the proxy allows for a common location for both parties + to connect to and transfer the file. +

+ Smack will attempt to automatically discover any proxies present on your + server. If any are detected they will be forwarded to any user attempting to + recieve files from you. +

+ +

+

+
Author:
+
Alexander Wenckus
+
See Also:
JEP-0065: SOCKS5 + Bytestreams
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static booleanisAllowLocalProxyHost + +
+           
+protected static StringNAMESPACE + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Socks5TransferNegotiator(XMPPConnection connection) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcleanup() + +
+          Cleanup any and all resources associated with this negotiator.
+ InputStreamcreateIncomingStream(StreamInitiation initiation) + +
+          This method handles the file stream download negotiation process.
+ OutputStreamcreateOutgoingStream(String streamID, + String initiator, + String target) + +
+          This method handles the file upload stream negotiation process.
+ PacketFiltergetInitiationPacketFilter(String from, + String sessionID) + +
+          Returns the packet filter that will return the initiation packet for the appropriate stream + initiation.
+ String[]getNamespaces() + +
+          Returns the XMPP namespace reserved for this particular type of file + transfer.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smackx.filetransfer.StreamNegotiator
createError, createInitiationAccept
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NAMESPACE

+
+protected static final String NAMESPACE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+isAllowLocalProxyHost

+
+public static boolean isAllowLocalProxyHost
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Socks5TransferNegotiator

+
+public Socks5TransferNegotiator(XMPPConnection connection)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInitiationPacketFilter

+
+public PacketFilter getInitiationPacketFilter(String from,
+                                              String sessionID)
+
+
Description copied from class: StreamNegotiator
+
Returns the packet filter that will return the initiation packet for the appropriate stream + initiation. +

+

+
Specified by:
getInitiationPacketFilter in class StreamNegotiator
+
+
+
Parameters:
from - The initiatior of the file transfer.
sessionID - The stream ID related to the transfer. +
Returns:
The PacketFilter that will return the packet relatable to the stream + initiation.
+
+
+
+ +

+createIncomingStream

+
+public InputStream createIncomingStream(StreamInitiation initiation)
+                                 throws XMPPException
+
+
Description copied from class: StreamNegotiator
+
This method handles the file stream download negotiation process. The + appropriate stream negotiator's initiate incoming stream is called after + an appropriate file transfer method is selected. The manager will respond + to the initatior with the selected means of transfer, then it will handle + any negotation specific to the particular transfer method. This method + returns the InputStream, ready to transfer the file. +

+

+
Specified by:
createIncomingStream in class StreamNegotiator
+
+
+
Parameters:
initiation - The initation that triggered this download. +
Returns:
After the negotation process is complete, the InputStream to + write a file to is returned. +
Throws: +
XMPPException - If an error occurs during this process an XMPPException is + thrown.
+
+
+
+ +

+createOutgoingStream

+
+public OutputStream createOutgoingStream(String streamID,
+                                         String initiator,
+                                         String target)
+                                  throws XMPPException
+
+
Description copied from class: StreamNegotiator
+
This method handles the file upload stream negotiation process. The + particular stream negotiator is determined during the file transfer + negotiation process. This method returns the OutputStream to transmit the + file to the remote user. +

+

+
Specified by:
createOutgoingStream in class StreamNegotiator
+
+
+
Parameters:
streamID - The streamID that uniquely identifies the file transfer.
initiator - The fully-qualified JID of the initiator of the file transfer.
target - The fully-qualified JID of the target or reciever of the file + transfer. +
Returns:
The negotiated stream ready for data. +
Throws: +
XMPPException - If an error occurs during the negotiation process an + exception will be thrown.
+
+
+
+ +

+getNamespaces

+
+public String[] getNamespaces()
+
+
Description copied from class: StreamNegotiator
+
Returns the XMPP namespace reserved for this particular type of file + transfer. +

+

+
Specified by:
getNamespaces in class StreamNegotiator
+
+
+ +
Returns:
Returns the XMPP namespace reserved for this particular type of + file transfer.
+
+
+
+ +

+cleanup

+
+public void cleanup()
+
+
Description copied from class: StreamNegotiator
+
Cleanup any and all resources associated with this negotiator. +

+

+
Specified by:
cleanup in class StreamNegotiator
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/StreamNegotiator.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/StreamNegotiator.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/StreamNegotiator.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,432 @@ + + + + + + +StreamNegotiator (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.filetransfer +
+Class StreamNegotiator

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.filetransfer.StreamNegotiator
+
+
+
Direct Known Subclasses:
FaultTolerantNegotiator, IBBTransferNegotiator, Socks5TransferNegotiator
+
+
+
+
public abstract class StreamNegotiator
extends Object
+ + +

+After the file transfer negotiation process is completed according to + JEP-0096, the negotation process is passed off to a particular stream + negotiator. The stream negotiator will then negotiate the chosen stream and + return the stream to transfer the file. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StreamNegotiator() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  voidcleanup() + +
+          Cleanup any and all resources associated with this negotiator.
+ IQcreateError(String from, + String to, + String packetID, + XMPPError xmppError) + +
+           
+abstract  InputStreamcreateIncomingStream(StreamInitiation initiation) + +
+          This method handles the file stream download negotiation process.
+ StreamInitiationcreateInitiationAccept(StreamInitiation streamInitiationOffer, + String[] namespaces) + +
+          Creates the initiation acceptance packet to forward to the stream + initiator.
+abstract  OutputStreamcreateOutgoingStream(String streamID, + String initiator, + String target) + +
+          This method handles the file upload stream negotiation process.
+abstract  PacketFiltergetInitiationPacketFilter(String from, + String streamID) + +
+          Returns the packet filter that will return the initiation packet for the appropriate stream + initiation.
+abstract  String[]getNamespaces() + +
+          Returns the XMPP namespace reserved for this particular type of file + transfer.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StreamNegotiator

+
+public StreamNegotiator()
+
+
+ + + + + + + + +
+Method Detail
+ +

+createInitiationAccept

+
+public StreamInitiation createInitiationAccept(StreamInitiation streamInitiationOffer,
+                                               String[] namespaces)
+
+
Creates the initiation acceptance packet to forward to the stream + initiator. +

+

+
Parameters:
streamInitiationOffer - The offer from the stream initatior to connect for a stream.
namespaces - The namespace that relates to the accepted means of transfer. +
Returns:
The response to be forwarded to the initator.
+
+
+
+ +

+createError

+
+public IQ createError(String from,
+                      String to,
+                      String packetID,
+                      XMPPError xmppError)
+
+
+
+
+
+
+ +

+getInitiationPacketFilter

+
+public abstract PacketFilter getInitiationPacketFilter(String from,
+                                                       String streamID)
+
+
Returns the packet filter that will return the initiation packet for the appropriate stream + initiation. +

+

+
Parameters:
from - The initiatior of the file transfer.
streamID - The stream ID related to the transfer. +
Returns:
The PacketFilter that will return the packet relatable to the stream + initiation.
+
+
+
+ +

+createIncomingStream

+
+public abstract InputStream createIncomingStream(StreamInitiation initiation)
+                                          throws XMPPException
+
+
This method handles the file stream download negotiation process. The + appropriate stream negotiator's initiate incoming stream is called after + an appropriate file transfer method is selected. The manager will respond + to the initatior with the selected means of transfer, then it will handle + any negotation specific to the particular transfer method. This method + returns the InputStream, ready to transfer the file. +

+

+
Parameters:
initiation - The initation that triggered this download. +
Returns:
After the negotation process is complete, the InputStream to + write a file to is returned. +
Throws: +
XMPPException - If an error occurs during this process an XMPPException is + thrown.
+
+
+
+ +

+createOutgoingStream

+
+public abstract OutputStream createOutgoingStream(String streamID,
+                                                  String initiator,
+                                                  String target)
+                                           throws XMPPException
+
+
This method handles the file upload stream negotiation process. The + particular stream negotiator is determined during the file transfer + negotiation process. This method returns the OutputStream to transmit the + file to the remote user. +

+

+
Parameters:
streamID - The streamID that uniquely identifies the file transfer.
initiator - The fully-qualified JID of the initiator of the file transfer.
target - The fully-qualified JID of the target or reciever of the file + transfer. +
Returns:
The negotiated stream ready for data. +
Throws: +
XMPPException - If an error occurs during the negotiation process an + exception will be thrown.
+
+
+
+ +

+getNamespaces

+
+public abstract String[] getNamespaces()
+
+
Returns the XMPP namespace reserved for this particular type of file + transfer. +

+

+ +
Returns:
Returns the XMPP namespace reserved for this particular type of + file transfer.
+
+
+
+ +

+cleanup

+
+public abstract void cleanup()
+
+
Cleanup any and all resources associated with this negotiator. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,67 @@ + + + + + + +org.jivesoftware.smackx.filetransfer (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smackx.filetransfer + + + + +
+Interfaces  + +
+FileTransferListener
+ + + + + + +
+Classes  + +
+FaultTolerantNegotiator +
+FileTransfer +
+FileTransfer.Error +
+FileTransfer.Status +
+FileTransferManager +
+FileTransferNegotiator +
+FileTransferRequest +
+IBBTransferNegotiator +
+IncomingFileTransfer +
+OutgoingFileTransfer +
+OutgoingFileTransfer.NegotiationProgress +
+Socks5TransferNegotiator +
+StreamNegotiator
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,222 @@ + + + + + + +org.jivesoftware.smackx.filetransfer (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smackx.filetransfer +

+ + + + + + + + + +
+Interface Summary
FileTransferListenerFile transfers can cause several events to be raised.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
FaultTolerantNegotiatorThe fault tolerant negotiator takes two stream negotiators, the primary and the secondary negotiator.
FileTransferContains the generic file information and progress related to a particular + file transfer.
FileTransfer.Error 
FileTransfer.StatusA class to represent the current status of the file transfer.
FileTransferManagerThe file transfer manager class handles the sending and recieving of files.
FileTransferNegotiatorManages the negotiation of file transfers according to JEP-0096.
FileTransferRequestA request to send a file recieved from another user.
IBBTransferNegotiatorThe in-band bytestream file transfer method, or IBB for short, transfers the + file over the same XML Stream used by XMPP.
IncomingFileTransferAn incoming file transfer is created when the + FileTransferManager.createIncomingFileTransfer(FileTransferRequest) + method is invoked.
OutgoingFileTransferHandles the sending of a file to another user.
OutgoingFileTransfer.NegotiationProgressA callback class to retrive the status of an outgoing transfer + negotiation process.
Socks5TransferNegotiatorA SOCKS5 bytestream is negotiated partly over the XMPP XML stream and partly + over a seperate socket.
StreamNegotiatorAfter the file transfer negotiation process is completed according to + JEP-0096, the negotation process is passed off to a particular stream + negotiator.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/filetransfer/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,156 @@ + + + + + + +org.jivesoftware.smackx.filetransfer Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smackx.filetransfer +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/Affiliate.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/Affiliate.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/Affiliate.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,298 @@ + + + + + + +Affiliate (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Class Affiliate

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.muc.Affiliate
+
+
+
+
public class Affiliate
extends Object
+ + +

+Represents an affiliation of a user to a given room. The affiliate's information will always have + the bare jid of the real user and its affiliation. If the affiliate is an occupant of the room + then we will also have information about the role and nickname of the user in the room. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetAffiliation() + +
+          Returns the affiliation of the afffiliated user.
+ StringgetJid() + +
+          Returns the bare JID of the affiliated user.
+ StringgetNick() + +
+          Returns the current nickname of the affiliated user if the user is currently in the room.
+ StringgetRole() + +
+          Returns the current role of the affiliated user if the user is currently in the room.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getJid

+
+public String getJid()
+
+
Returns the bare JID of the affiliated user. This information will always be available. +

+

+ +
Returns:
the bare JID of the affiliated user.
+
+
+
+ +

+getAffiliation

+
+public String getAffiliation()
+
+
Returns the affiliation of the afffiliated user. Possible affiliations are: "owner", "admin", + "member", "outcast". This information will always be available. +

+

+ +
Returns:
the affiliation of the afffiliated user.
+
+
+
+ +

+getRole

+
+public String getRole()
+
+
Returns the current role of the affiliated user if the user is currently in the room. + If the user is not present in the room then the answer will be null. +

+

+ +
Returns:
the current role of the affiliated user in the room or null if the user is not in + the room.
+
+
+
+ +

+getNick

+
+public String getNick()
+
+
Returns the current nickname of the affiliated user if the user is currently in the room. + If the user is not present in the room then the answer will be null. +

+

+ +
Returns:
the current nickname of the affiliated user in the room or null if the user is not in + the room.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DeafOccupantInterceptor.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DeafOccupantInterceptor.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DeafOccupantInterceptor.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,281 @@ + + + + + + +DeafOccupantInterceptor (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Class DeafOccupantInterceptor

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.muc.DeafOccupantInterceptor
+
+
+
All Implemented Interfaces:
PacketInterceptor
+
+
+
+
public class DeafOccupantInterceptor
extends Object
implements PacketInterceptor
+ + +

+Packet interceptor that will intercept presence packets sent to the MUC service to indicate + that the user wants to be a deaf occupant. A user can only indicate that he wants to be a + deaf occupant while joining the room. It is not possible to become deaf or stop being deaf + after the user joined the room.

+ + Deaf occupants will not get messages broadcasted to all room occupants. However, they will + be able to get private messages, presences, IQ packets or room history. To use this + functionality you will need to send the message + MultiUserChat.addPresenceInterceptor(org.jivesoftware.smack.PacketInterceptor) and + pass this interceptor as the parameter.

+ + Note that this is a custom extension to the MUC service so it may not work with other servers + than Wildfire. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DeafOccupantInterceptor() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidinterceptPacket(Packet packet) + +
+          Process the packet that is about to be sent to the server.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DeafOccupantInterceptor

+
+public DeafOccupantInterceptor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+interceptPacket

+
+public void interceptPacket(Packet packet)
+
+
Description copied from interface: PacketInterceptor
+
Process the packet that is about to be sent to the server. The intercepted + packet can be modified by the interceptor.

+ + Interceptors are invoked using the same thread that requested the packet + to be sent, so it's very important that implementations of this method + not block for any extended period of time. +

+

+
Specified by:
interceptPacket in interface PacketInterceptor
+
+
+
Parameters:
packet - the packet to is going to be sent to the server.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DefaultParticipantStatusListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DefaultParticipantStatusListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DefaultParticipantStatusListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,666 @@ + + + + + + +DefaultParticipantStatusListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Class DefaultParticipantStatusListener

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.muc.DefaultParticipantStatusListener
+
+
+
All Implemented Interfaces:
ParticipantStatusListener
+
+
+
+
public class DefaultParticipantStatusListener
extends Object
implements ParticipantStatusListener
+ + +

+Default implementation of the ParticipantStatusListener interface.

+ + This class does not provide any behavior by default. It just avoids having + to implement all the inteface methods if the user is only interested in implementing + some of the methods. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DefaultParticipantStatusListener() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadminGranted(String participant) + +
+          Called when an owner grants administrator privileges to a user.
+ voidadminRevoked(String participant) + +
+          Called when an owner revokes administrator privileges from a user.
+ voidbanned(String participant, + String actor, + String reason) + +
+          Called when an administrator or owner banned a participant from the room.
+ voidjoined(String participant) + +
+          Called when a new room occupant has joined the room.
+ voidkicked(String participant, + String actor, + String reason) + +
+          Called when a room participant has been kicked from the room.
+ voidleft(String participant) + +
+          Called when a room occupant has left the room on its own.
+ voidmembershipGranted(String participant) + +
+          Called when an administrator grants a user membership to the room.
+ voidmembershipRevoked(String participant) + +
+          Called when an administrator revokes a user membership to the room.
+ voidmoderatorGranted(String participant) + +
+          Called when an administrator grants moderator privileges to a user.
+ voidmoderatorRevoked(String participant) + +
+          Called when an administrator revokes moderator privileges from a user.
+ voidnicknameChanged(String participant, + String newNickname) + +
+          Called when a participant changed his/her nickname in the room.
+ voidownershipGranted(String participant) + +
+          Called when an owner grants a user ownership on the room.
+ voidownershipRevoked(String participant) + +
+          Called when an owner revokes a user ownership on the room.
+ voidvoiceGranted(String participant) + +
+          Called when a moderator grants voice to a visitor.
+ voidvoiceRevoked(String participant) + +
+          Called when a moderator revokes voice from a participant.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DefaultParticipantStatusListener

+
+public DefaultParticipantStatusListener()
+
+
+ + + + + + + + +
+Method Detail
+ +

+joined

+
+public void joined(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when a new room occupant has joined the room. Note: Take in consideration that when + you join a room you will receive the list of current occupants in the room. This message will + be sent for each occupant. +

+

+
Specified by:
joined in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that has just joined the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+left

+
+public void left(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when a room occupant has left the room on its own. This means that the occupant was + neither kicked nor banned from the room. +

+

+
Specified by:
left in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that has left the room on its own. + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+kicked

+
+public void kicked(String participant,
+                   String actor,
+                   String reason)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when a room participant has been kicked from the room. This means that the kicked + participant is no longer participating in the room. +

+

+
Specified by:
kicked in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was kicked from the room + (e.g. room@conference.jabber.org/nick).
actor - the moderator that kicked the occupant from the room (e.g. user@host.org).
reason - the reason provided by the actor to kick the occupant from the room.
+
+
+
+ +

+voiceGranted

+
+public void voiceGranted(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when a moderator grants voice to a visitor. This means that the visitor + can now participate in the moderated room sending messages to all occupants. +

+

+
Specified by:
voiceGranted in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was granted voice in the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+voiceRevoked

+
+public void voiceRevoked(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when a moderator revokes voice from a participant. This means that the participant + in the room was able to speak and now is a visitor that can't send messages to the room + occupants. +

+

+
Specified by:
voiceRevoked in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was revoked voice from the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+banned

+
+public void banned(String participant,
+                   String actor,
+                   String reason)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when an administrator or owner banned a participant from the room. This means that + banned participant will no longer be able to join the room unless the ban has been removed. +

+

+
Specified by:
banned in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was banned from the room + (e.g. room@conference.jabber.org/nick).
actor - the administrator that banned the occupant (e.g. user@host.org).
reason - the reason provided by the administrator to ban the occupant.
+
+
+
+ +

+membershipGranted

+
+public void membershipGranted(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when an administrator grants a user membership to the room. This means that the user + will be able to join the members-only room. +

+

+
Specified by:
membershipGranted in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was granted membership in the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+membershipRevoked

+
+public void membershipRevoked(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when an administrator revokes a user membership to the room. This means that the + user will not be able to join the members-only room. +

+

+
Specified by:
membershipRevoked in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was revoked membership from the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+moderatorGranted

+
+public void moderatorGranted(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when an administrator grants moderator privileges to a user. This means that the user + will be able to kick users, grant and revoke voice, invite other users, modify room's + subject plus all the partcipants privileges. +

+

+
Specified by:
moderatorGranted in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was granted moderator privileges in the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+moderatorRevoked

+
+public void moderatorRevoked(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when an administrator revokes moderator privileges from a user. This means that the + user will no longer be able to kick users, grant and revoke voice, invite other users, + modify room's subject plus all the partcipants privileges. +

+

+
Specified by:
moderatorRevoked in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was revoked moderator privileges in the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+ownershipGranted

+
+public void ownershipGranted(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when an owner grants a user ownership on the room. This means that the user + will be able to change defining room features as well as perform all administrative + functions. +

+

+
Specified by:
ownershipGranted in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was granted ownership on the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+ownershipRevoked

+
+public void ownershipRevoked(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when an owner revokes a user ownership on the room. This means that the user + will no longer be able to change defining room features as well as perform all + administrative functions. +

+

+
Specified by:
ownershipRevoked in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was revoked ownership on the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+adminGranted

+
+public void adminGranted(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when an owner grants administrator privileges to a user. This means that the user + will be able to perform administrative functions such as banning users and edit moderator + list. +

+

+
Specified by:
adminGranted in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was granted administrator privileges + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+adminRevoked

+
+public void adminRevoked(String participant)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when an owner revokes administrator privileges from a user. This means that the user + will no longer be able to perform administrative functions such as banning users and edit + moderator list. +

+

+
Specified by:
adminRevoked in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was revoked administrator privileges + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+nicknameChanged

+
+public void nicknameChanged(String participant,
+                            String newNickname)
+
+
Description copied from interface: ParticipantStatusListener
+
Called when a participant changed his/her nickname in the room. The new participant's + nickname will be informed with the next available presence. +

+

+
Specified by:
nicknameChanged in interface ParticipantStatusListener
+
+
+
Parameters:
participant - the participant that was revoked administrator privileges + (e.g. room@conference.jabber.org/nick).
newNickname - the new nickname that the participant decided to use.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DefaultUserStatusListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DefaultUserStatusListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DefaultUserStatusListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,567 @@ + + + + + + +DefaultUserStatusListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Class DefaultUserStatusListener

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.muc.DefaultUserStatusListener
+
+
+
All Implemented Interfaces:
UserStatusListener
+
+
+
+
public class DefaultUserStatusListener
extends Object
implements UserStatusListener
+ + +

+Default implementation of the UserStatusListener interface.

+ + This class does not provide any behavior by default. It just avoids having + to implement all the inteface methods if the user is only interested in implementing + some of the methods. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DefaultUserStatusListener() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadminGranted() + +
+          Called when an owner grants administrator privileges to your user.
+ voidadminRevoked() + +
+          Called when an owner revokes administrator privileges from your user.
+ voidbanned(String actor, + String reason) + +
+          Called when an administrator or owner banned your user from the room.
+ voidkicked(String actor, + String reason) + +
+          Called when a moderator kicked your user from the room.
+ voidmembershipGranted() + +
+          Called when an administrator grants your user membership to the room.
+ voidmembershipRevoked() + +
+          Called when an administrator revokes your user membership to the room.
+ voidmoderatorGranted() + +
+          Called when an administrator grants moderator privileges to your user.
+ voidmoderatorRevoked() + +
+          Called when an administrator revokes moderator privileges from your user.
+ voidownershipGranted() + +
+          Called when an owner grants to your user ownership on the room.
+ voidownershipRevoked() + +
+          Called when an owner revokes from your user ownership on the room.
+ voidvoiceGranted() + +
+          Called when a moderator grants voice to your user.
+ voidvoiceRevoked() + +
+          Called when a moderator revokes voice from your user.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DefaultUserStatusListener

+
+public DefaultUserStatusListener()
+
+
+ + + + + + + + +
+Method Detail
+ +

+kicked

+
+public void kicked(String actor,
+                   String reason)
+
+
Description copied from interface: UserStatusListener
+
Called when a moderator kicked your user from the room. This means that you are no longer + participanting in the room. +

+

+
Specified by:
kicked in interface UserStatusListener
+
+
+
Parameters:
actor - the moderator that kicked your user from the room (e.g. user@host.org).
reason - the reason provided by the actor to kick you from the room.
+
+
+
+ +

+voiceGranted

+
+public void voiceGranted()
+
+
Description copied from interface: UserStatusListener
+
Called when a moderator grants voice to your user. This means that you were a visitor in + the moderated room before and now you can participate in the room by sending messages to + all occupants. +

+

+
Specified by:
voiceGranted in interface UserStatusListener
+
+
+
+
+
+
+ +

+voiceRevoked

+
+public void voiceRevoked()
+
+
Description copied from interface: UserStatusListener
+
Called when a moderator revokes voice from your user. This means that you were a + participant in the room able to speak and now you are a visitor that can't send + messages to the room occupants. +

+

+
Specified by:
voiceRevoked in interface UserStatusListener
+
+
+
+
+
+
+ +

+banned

+
+public void banned(String actor,
+                   String reason)
+
+
Description copied from interface: UserStatusListener
+
Called when an administrator or owner banned your user from the room. This means that you + will no longer be able to join the room unless the ban has been removed. +

+

+
Specified by:
banned in interface UserStatusListener
+
+
+
Parameters:
actor - the administrator that banned your user (e.g. user@host.org).
reason - the reason provided by the administrator to banned you.
+
+
+
+ +

+membershipGranted

+
+public void membershipGranted()
+
+
Description copied from interface: UserStatusListener
+
Called when an administrator grants your user membership to the room. This means that you + will be able to join the members-only room. +

+

+
Specified by:
membershipGranted in interface UserStatusListener
+
+
+
+
+
+
+ +

+membershipRevoked

+
+public void membershipRevoked()
+
+
Description copied from interface: UserStatusListener
+
Called when an administrator revokes your user membership to the room. This means that you + will not be able to join the members-only room. +

+

+
Specified by:
membershipRevoked in interface UserStatusListener
+
+
+
+
+
+
+ +

+moderatorGranted

+
+public void moderatorGranted()
+
+
Description copied from interface: UserStatusListener
+
Called when an administrator grants moderator privileges to your user. This means that you + will be able to kick users, grant and revoke voice, invite other users, modify room's + subject plus all the partcipants privileges. +

+

+
Specified by:
moderatorGranted in interface UserStatusListener
+
+
+
+
+
+
+ +

+moderatorRevoked

+
+public void moderatorRevoked()
+
+
Description copied from interface: UserStatusListener
+
Called when an administrator revokes moderator privileges from your user. This means that + you will no longer be able to kick users, grant and revoke voice, invite other users, + modify room's subject plus all the partcipants privileges. +

+

+
Specified by:
moderatorRevoked in interface UserStatusListener
+
+
+
+
+
+
+ +

+ownershipGranted

+
+public void ownershipGranted()
+
+
Description copied from interface: UserStatusListener
+
Called when an owner grants to your user ownership on the room. This means that you + will be able to change defining room features as well as perform all administrative + functions. +

+

+
Specified by:
ownershipGranted in interface UserStatusListener
+
+
+
+
+
+
+ +

+ownershipRevoked

+
+public void ownershipRevoked()
+
+
Description copied from interface: UserStatusListener
+
Called when an owner revokes from your user ownership on the room. This means that you + will no longer be able to change defining room features as well as perform all + administrative functions. +

+

+
Specified by:
ownershipRevoked in interface UserStatusListener
+
+
+
+
+
+
+ +

+adminGranted

+
+public void adminGranted()
+
+
Description copied from interface: UserStatusListener
+
Called when an owner grants administrator privileges to your user. This means that you + will be able to perform administrative functions such as banning users and edit moderator + list. +

+

+
Specified by:
adminGranted in interface UserStatusListener
+
+
+
+
+
+
+ +

+adminRevoked

+
+public void adminRevoked()
+
+
Description copied from interface: UserStatusListener
+
Called when an owner revokes administrator privileges from your user. This means that you + will no longer be able to perform administrative functions such as banning users and edit + moderator list. +

+

+
Specified by:
adminRevoked in interface UserStatusListener
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DiscussionHistory.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DiscussionHistory.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/DiscussionHistory.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,431 @@ + + + + + + +DiscussionHistory (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Class DiscussionHistory

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.muc.DiscussionHistory
+
+
+
+
public class DiscussionHistory
extends Object
+ + +

+The DiscussionHistory class controls the number of characters or messages to receive + when entering a room. The room will decide the amount of history to return if you don't + specify a DiscussionHistory while joining a room.

+ + You can use some or all of these variable to control the amount of history to receive: +

+ + Note: Setting maxchars to 0 indicates that the user requests to receive no history. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DiscussionHistory() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetMaxChars() + +
+          Returns the total number of characters to receive in the history.
+ intgetMaxStanzas() + +
+          Returns the total number of messages to receive in the history.
+ intgetSeconds() + +
+          Returns the number of seconds to use to filter the messages received during that time.
+ DategetSince() + +
+          Returns the since date to use to filter the messages received during that time.
+ voidsetMaxChars(int maxChars) + +
+          Sets the total number of characters to receive in the history.
+ voidsetMaxStanzas(int maxStanzas) + +
+          Sets the total number of messages to receive in the history.
+ voidsetSeconds(int seconds) + +
+          Sets the number of seconds to use to filter the messages received during that time.
+ voidsetSince(Date since) + +
+          Sets the since date to use to filter the messages received during that time.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DiscussionHistory

+
+public DiscussionHistory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getMaxChars

+
+public int getMaxChars()
+
+
Returns the total number of characters to receive in the history. +

+

+ +
Returns:
total number of characters to receive in the history.
+
+
+
+ +

+getMaxStanzas

+
+public int getMaxStanzas()
+
+
Returns the total number of messages to receive in the history. +

+

+ +
Returns:
the total number of messages to receive in the history.
+
+
+
+ +

+getSeconds

+
+public int getSeconds()
+
+
Returns the number of seconds to use to filter the messages received during that time. + In other words, only the messages received in the last "X" seconds will be included in + the history. +

+

+ +
Returns:
the number of seconds to use to filter the messages received during that time.
+
+
+
+ +

+getSince

+
+public Date getSince()
+
+
Returns the since date to use to filter the messages received during that time. + In other words, only the messages received since the datetime specified will be + included in the history. +

+

+ +
Returns:
the since date to use to filter the messages received during that time.
+
+
+
+ +

+setMaxChars

+
+public void setMaxChars(int maxChars)
+
+
Sets the total number of characters to receive in the history. +

+

+
Parameters:
maxChars - the total number of characters to receive in the history.
+
+
+
+ +

+setMaxStanzas

+
+public void setMaxStanzas(int maxStanzas)
+
+
Sets the total number of messages to receive in the history. +

+

+
Parameters:
maxStanzas - the total number of messages to receive in the history.
+
+
+
+ +

+setSeconds

+
+public void setSeconds(int seconds)
+
+
Sets the number of seconds to use to filter the messages received during that time. + In other words, only the messages received in the last "X" seconds will be included in + the history. +

+

+
Parameters:
seconds - the number of seconds to use to filter the messages received during + that time.
+
+
+
+ +

+setSince

+
+public void setSince(Date since)
+
+
Sets the since date to use to filter the messages received during that time. + In other words, only the messages received since the datetime specified will be + included in the history. +

+

+
Parameters:
since - the since date to use to filter the messages received during that time.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/HostedRoom.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/HostedRoom.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/HostedRoom.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,287 @@ + + + + + + +HostedRoom (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Class HostedRoom

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.muc.HostedRoom
+
+
+
+
public class HostedRoom
extends Object
+ + +

+Hosted rooms by a chat service may be discovered if they are configured to appear in the room + directory . The information that may be discovered is the XMPP address of the room and the room + name. The address of the room may be used for obtaining more detailed information + MultiUserChat.getRoomInfo(org.jivesoftware.smack.XMPPConnection, String) + or could be used for joining the room + MultiUserChat.MultiUserChat(org.jivesoftware.smack.XMPPConnection, String) + and MultiUserChat.join(String). +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
HostedRoom(DiscoverItems.Item item) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetJid() + +
+          Returns the XMPP address of the hosted room by the chat service.
+ StringgetName() + +
+          Returns the name of the room.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+HostedRoom

+
+public HostedRoom(DiscoverItems.Item item)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getJid

+
+public String getJid()
+
+
Returns the XMPP address of the hosted room by the chat service. This address may be used + when creating a MultiUserChat when joining a room. +

+

+ +
Returns:
the XMPP address of the hosted room by the chat service.
+
+
+
+ +

+getName

+
+public String getName()
+
+
Returns the name of the room. +

+

+ +
Returns:
the name of the room.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/InvitationListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/InvitationListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/InvitationListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,224 @@ + + + + + + +InvitationListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Interface InvitationListener

+
+
+
public interface InvitationListener
+ + +

+A listener that is fired anytime an invitation to join a MUC room is received. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidinvitationReceived(XMPPConnection conn, + String room, + String inviter, + String reason, + String password, + Message message) + +
+          Called when the an invitation to join a MUC room is received.
+  +

+ + + + + + + + +
+Method Detail
+ +

+invitationReceived

+
+void invitationReceived(XMPPConnection conn,
+                        String room,
+                        String inviter,
+                        String reason,
+                        String password,
+                        Message message)
+
+
Called when the an invitation to join a MUC room is received.

+ + If the room is password-protected, the invitee will receive a password to use to join + the room. If the room is members-only, the the invitee may be added to the member list. +

+

+
Parameters:
conn - the XMPPConnection that received the invitation.
room - the room that invitation refers to.
inviter - the inviter that sent the invitation. (e.g. crone1@shakespeare.lit).
reason - the reason why the inviter sent the invitation.
password - the password to use when joining the room.
message - the message used by the inviter to send the invitation.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/InvitationRejectionListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/InvitationRejectionListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/InvitationRejectionListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,213 @@ + + + + + + +InvitationRejectionListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Interface InvitationRejectionListener

+
+
+
public interface InvitationRejectionListener
+ + +

+A listener that is fired anytime an invitee declines or rejects an invitation. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidinvitationDeclined(String invitee, + String reason) + +
+          Called when the invitee declines the invitation.
+  +

+ + + + + + + + +
+Method Detail
+ +

+invitationDeclined

+
+void invitationDeclined(String invitee,
+                        String reason)
+
+
Called when the invitee declines the invitation. +

+

+
Parameters:
invitee - the invitee that declined the invitation. (e.g. hecate@shakespeare.lit).
reason - the reason why the invitee declined the invitation.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/MultiUserChat.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/MultiUserChat.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/MultiUserChat.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,2483 @@ + + + + + + +MultiUserChat (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Class MultiUserChat

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.muc.MultiUserChat
+
+
+
+
public class MultiUserChat
extends Object
+ + +

+A MultiUserChat is a conversation that takes place among many users in a virtual + room. A room could have many occupants with different affiliation and roles. + Possible affiliatons are "owner", "admin", "member", and "outcast". Possible roles + are "moderator", "participant", and "visitor". Each role and affiliation guarantees + different privileges (e.g. Send messages to all occupants, Kick participants and visitors, + Grant voice, Edit member list, etc.). +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MultiUserChat(XMPPConnection connection, + String room) + +
+          Creates a new multi user chat with the specified connection and room name.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddInvitationListener(XMPPConnection conn, + InvitationListener listener) + +
+          Adds a listener to invitation notifications.
+ voidaddInvitationRejectionListener(InvitationRejectionListener listener) + +
+          Adds a listener to invitation rejections notifications.
+ voidaddMessageListener(PacketListener listener) + +
+          Adds a packet listener that will be notified of any new messages in the + group chat.
+ voidaddParticipantListener(PacketListener listener) + +
+          Adds a packet listener that will be notified of any new Presence packets + sent to the group chat.
+ voidaddParticipantStatusListener(ParticipantStatusListener listener) + +
+          Adds a listener that will be notified of changes in occupants status in the room + such as the user being kicked, banned, or granted admin permissions.
+ voidaddPresenceInterceptor(PacketInterceptor presenceInterceptor) + +
+          Adds a new PacketInterceptor that will be invoked every time a new presence + is going to be sent by this MultiUserChat to the server.
+ voidaddSubjectUpdatedListener(SubjectUpdatedListener listener) + +
+          Adds a listener to subject change notifications.
+ voidaddUserStatusListener(UserStatusListener listener) + +
+          Adds a listener that will be notified of changes in your status in the room + such as the user being kicked, banned, or granted admin permissions.
+ voidbanUser(String jid, + String reason) + +
+          Bans a user from the room.
+ voidbanUsers(Collection jids) + +
+          Bans users from the room.
+ voidchangeAvailabilityStatus(String status, + Presence.Mode mode) + +
+          Changes the occupant's availability status within the room.
+ voidchangeNickname(String nickname) + +
+          Changes the occupant's nickname to a new nickname within the room.
+ voidchangeSubject(String subject) + +
+          Changes the subject within the room.
+ voidcreate(String nickname) + +
+          Creates the room according to some default configuration, assign the requesting user + as the room owner, and add the owner to the room but not allow anyone else to enter + the room (effectively "locking" the room).
+ MessagecreateMessage() + +
+          Creates a new Message to send to the chat room.
+ ChatcreatePrivateChat(String occupant) + +
+          Returns a new Chat for sending private messages to a given room occupant.
+static voiddecline(XMPPConnection conn, + String room, + String inviter, + String reason) + +
+          Informs the sender of an invitation that the invitee declines the invitation.
+ voiddestroy(String reason, + String alternateJID) + +
+          Sends a request to the server to destroy the room.
+ voidfinalize() + +
+           
+ CollectiongetAdmins() + +
+          Returns a collection of Affiliate with the room administrators.
+ FormgetConfigurationForm() + +
+          Returns the room's configuration form that the room's owner can use or null if + no configuration is possible.
+static CollectiongetHostedRooms(XMPPConnection connection, + String serviceName) + +
+          Returns a collection of HostedRooms where each HostedRoom has the XMPP address of the room + and the room's name.
+static IteratorgetJoinedRooms(XMPPConnection connection, + String user) + +
+          Returns an Iterator on the rooms where the requested user has joined.
+ CollectiongetMembers() + +
+          Returns a collection of Affiliate with the room members.
+ CollectiongetModerators() + +
+          Returns a collection of Occupant with the room moderators.
+ StringgetNickname() + +
+          Returns the nickname that was used to join the room, or null if not + currently joined.
+ OccupantgetOccupant(String user) + +
+          Returns the Occupant information for a particular occupant, or null if the + user is not in the room.
+ PresencegetOccupantPresence(String user) + +
+          Returns the presence info for a particular user, or null if the user + is not in the room.
+ IteratorgetOccupants() + +
+          Returns an Iterator (of Strings) for the list of fully qualified occupants + in the group chat.
+ intgetOccupantsCount() + +
+          Returns the number of occupants in the group chat.
+ CollectiongetOutcasts() + +
+          Returns a collection of Affiliate with the room outcasts.
+ CollectiongetOwners() + +
+          Returns a collection of Affiliate with the room owners.
+ CollectiongetParticipants() + +
+          Returns a collection of Occupant with the room participants.
+ FormgetRegistrationForm() + +
+          Returns the room's registration form that an unaffiliated user, can use to become a member + of the room or null if no registration is possible.
+ StringgetReservedNickname() + +
+          Returns the reserved room nickname for the user in the room.
+ StringgetRoom() + +
+          Returns the name of the room this MultiUserChat object represents.
+static RoomInfogetRoomInfo(XMPPConnection connection, + String room) + +
+          Returns the discovered information of a given room without actually having to join the room.
+static CollectiongetServiceNames(XMPPConnection connection) + +
+          Returns a collection with the XMPP addresses of the Multi-User Chat services.
+ StringgetSubject() + +
+          Returns the last known room's subject or null if the user hasn't joined the room + or the room does not have a subject yet.
+ voidgrantAdmin(Collection jids) + +
+          Grants administrator privileges to other users.
+ voidgrantAdmin(String jid) + +
+          Grants administrator privileges to another user.
+ voidgrantMembership(Collection jids) + +
+          Grants membership to other users.
+ voidgrantMembership(String jid) + +
+          Grants membership to a user.
+ voidgrantModerator(Collection nicknames) + +
+          Grants moderator privileges to participants or visitors.
+ voidgrantModerator(String nickname) + +
+          Grants moderator privileges to a participant or visitor.
+ voidgrantOwnership(Collection jids) + +
+          Grants ownership privileges to other users.
+ voidgrantOwnership(String jid) + +
+          Grants ownership privileges to another user.
+ voidgrantVoice(Collection nicknames) + +
+          Grants voice to visitors in the room.
+ voidgrantVoice(String nickname) + +
+          Grants voice to a visitor in the room.
+ voidinvite(Message message, + String user, + String reason) + +
+          Invites another user to the room in which one is an occupant using a given Message.
+ voidinvite(String user, + String reason) + +
+          Invites another user to the room in which one is an occupant.
+ booleanisJoined() + +
+          Returns true if currently in the multi user chat (after calling the join(String) method).
+static booleanisServiceEnabled(XMPPConnection connection, + String user) + +
+          Returns true if the specified user supports the Multi-User Chat protocol.
+ voidjoin(String nickname) + +
+          Joins the chat room using the specified nickname.
+ voidjoin(String nickname, + String password) + +
+          Joins the chat room using the specified nickname and password.
+ voidjoin(String nickname, + String password, + DiscussionHistory history, + long timeout) + +
+          Joins the chat room using the specified nickname and password.
+ voidkickParticipant(String nickname, + String reason) + +
+          Kicks a visitor or participant from the room.
+ voidleave() + +
+          Leave the chat room.
+ MessagenextMessage() + +
+          Returns the next available message in the chat.
+ MessagenextMessage(long timeout) + +
+          Returns the next available message in the chat.
+ MessagepollMessage() + +
+          Polls for and returns the next message, or null if there isn't + a message immediately available.
+static voidremoveInvitationListener(XMPPConnection conn, + InvitationListener listener) + +
+          Removes a listener to invitation notifications.
+ voidremoveInvitationRejectionListener(InvitationRejectionListener listener) + +
+          Removes a listener from invitation rejections notifications.
+ voidremoveMessageListener(PacketListener listener) + +
+          Removes a packet listener that was being notified of any new messages in the + multi user chat.
+ voidremoveParticipantListener(PacketListener listener) + +
+          Remoces a packet listener that was being notified of any new Presence packets + sent to the group chat.
+ voidremoveParticipantStatusListener(ParticipantStatusListener listener) + +
+          Removes a listener that was being notified of changes in occupants status in the room + such as the user being kicked, banned, or granted admin permissions.
+ voidremovePresenceInterceptor(PacketInterceptor presenceInterceptor) + +
+          Removes a PacketInterceptor that was being invoked every time a new presence + was being sent by this MultiUserChat to the server.
+ voidremoveSubjectUpdatedListener(SubjectUpdatedListener listener) + +
+          Removes a listener from subject change notifications.
+ voidremoveUserStatusListener(UserStatusListener listener) + +
+          Removes a listener that was being notified of changes in your status in the room + such as the user being kicked, banned, or granted admin permissions.
+ voidrevokeAdmin(Collection jids) + +
+          Revokes administrator privileges from users.
+ voidrevokeAdmin(String jid) + +
+          Revokes administrator privileges from a user.
+ voidrevokeMembership(Collection jids) + +
+          Revokes users' membership.
+ voidrevokeMembership(String jid) + +
+          Revokes a user's membership.
+ voidrevokeModerator(Collection nicknames) + +
+          Revokes moderator privileges from other users.
+ voidrevokeModerator(String nickname) + +
+          Revokes moderator privileges from another user.
+ voidrevokeOwnership(Collection jids) + +
+          Revokes ownership privileges from other users.
+ voidrevokeOwnership(String jid) + +
+          Revokes ownership privileges from another user.
+ voidrevokeVoice(Collection nicknames) + +
+          Revokes voice from participants in the room.
+ voidrevokeVoice(String nickname) + +
+          Revokes voice from a participant in the room.
+ voidsendConfigurationForm(Form form) + +
+          Sends the completed configuration form to the server.
+ voidsendMessage(Message message) + +
+          Sends a Message to the chat room.
+ voidsendMessage(String text) + +
+          Sends a message to the chat room.
+ voidsendRegistrationForm(Form form) + +
+          Sends the completed registration form to the server.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MultiUserChat

+
+public MultiUserChat(XMPPConnection connection,
+                     String room)
+
+
Creates a new multi user chat with the specified connection and room name. Note: no + information is sent to or received from the server until you attempt to + join the chat room. On some server implementations, + the room will not be created until the first person joins it.

+ + Most XMPP servers use a sub-domain for the chat service (eg chat.example.com + for the XMPP server example.com). You must ensure that the room address you're + trying to connect to includes the proper chat sub-domain. +

+

+
Parameters:
connection - the XMPP connection.
room - the name of the room in the form "roomName@service", where + "service" is the hostname at which the multi-user chat + service is running. Make sure to provide a valid JID.
+
+ + + + + + + + +
+Method Detail
+ +

+isServiceEnabled

+
+public static boolean isServiceEnabled(XMPPConnection connection,
+                                       String user)
+
+
Returns true if the specified user supports the Multi-User Chat protocol. +

+

+
Parameters:
connection - the connection to use to perform the service discovery.
user - the user to check. A fully qualified xmpp ID, e.g. jdoe@example.com. +
Returns:
a boolean indicating whether the specified user supports the MUC protocol.
+
+
+
+ +

+getJoinedRooms

+
+public static Iterator getJoinedRooms(XMPPConnection connection,
+                                      String user)
+
+
Returns an Iterator on the rooms where the requested user has joined. The Iterator will + contain Strings where each String represents a room (e.g. room@muc.jabber.org). +

+

+
Parameters:
connection - the connection to use to perform the service discovery.
user - the user to check. A fully qualified xmpp ID, e.g. jdoe@example.com. +
Returns:
an Iterator on the rooms where the requested user has joined.
+
+
+
+ +

+getRoomInfo

+
+public static RoomInfo getRoomInfo(XMPPConnection connection,
+                                   String room)
+                            throws XMPPException
+
+
Returns the discovered information of a given room without actually having to join the room. + The server will provide information only for rooms that are public. +

+

+
Parameters:
connection - the XMPP connection to use for discovering information about the room.
room - the name of the room in the form "roomName@service" of which we want to discover + its information. +
Returns:
the discovered information of a given room without actually having to join the room. +
Throws: +
XMPPException - if an error occured while trying to discover information of a room.
+
+
+
+ +

+getServiceNames

+
+public static Collection getServiceNames(XMPPConnection connection)
+                                  throws XMPPException
+
+
Returns a collection with the XMPP addresses of the Multi-User Chat services. +

+

+
Parameters:
connection - the XMPP connection to use for discovering Multi-User Chat services. +
Returns:
a collection with the XMPP addresses of the Multi-User Chat services. +
Throws: +
XMPPException - if an error occured while trying to discover MUC services.
+
+
+
+ +

+getHostedRooms

+
+public static Collection getHostedRooms(XMPPConnection connection,
+                                        String serviceName)
+                                 throws XMPPException
+
+
Returns a collection of HostedRooms where each HostedRoom has the XMPP address of the room + and the room's name. Once discovered the rooms hosted by a chat service it is possible to + discover more detailed room information or join the room. +

+

+
Parameters:
connection - the XMPP connection to use for discovering hosted rooms by the MUC service.
serviceName - the service that is hosting the rooms to discover. +
Returns:
a collection of HostedRooms. +
Throws: +
XMPPException - if an error occured while trying to discover the information.
+
+
+
+ +

+getRoom

+
+public String getRoom()
+
+
Returns the name of the room this MultiUserChat object represents. +

+

+ +
Returns:
the multi user chat room name.
+
+
+
+ +

+create

+
+public void create(String nickname)
+            throws XMPPException
+
+
Creates the room according to some default configuration, assign the requesting user + as the room owner, and add the owner to the room but not allow anyone else to enter + the room (effectively "locking" the room). The requesting user will join the room + under the specified nickname as soon as the room has been created.

+ + To create an "Instant Room", that means a room with some default configuration that is + available for immediate access, the room's owner should send an empty form after creating + the room. sendConfigurationForm(Form)

+ + To create a "Reserved Room", that means a room manually configured by the room creator + before anyone is allowed to enter, the room's owner should complete and send a form after + creating the room. Once the completed configutation form is sent to the server, the server + will unlock the room. sendConfigurationForm(Form) +

+

+
Parameters:
nickname - the nickname to use. +
Throws: +
XMPPException - if the room couldn't be created for some reason + (e.g. room already exists; user already joined to an existant room or + 405 error if the user is not allowed to create the room)
+
+
+
+ +

+join

+
+public void join(String nickname)
+          throws XMPPException
+
+
Joins the chat room using the specified nickname. If already joined + using another nickname, this method will first leave the room and then + re-join using the new nickname. The default timeout of Smack for a reply + from the group chat server that the join succeeded will be used. After + joining the room, the room will decide the amount of history to send. +

+

+
Parameters:
nickname - the nickname to use. +
Throws: +
XMPPException - if an error occurs joining the room. In particular, a + 401 error can occur if no password was provided and one is required; or a + 403 error can occur if the user is banned; or a + 404 error can occur if the room does not exist or is locked; or a + 407 error can occur if user is not on the member list; or a + 409 error can occur if someone is already in the group chat with the same nickname.
+
+
+
+ +

+join

+
+public void join(String nickname,
+                 String password)
+          throws XMPPException
+
+
Joins the chat room using the specified nickname and password. If already joined + using another nickname, this method will first leave the room and then + re-join using the new nickname. The default timeout of Smack for a reply + from the group chat server that the join succeeded will be used. After + joining the room, the room will decide the amount of history to send.

+ + A password is required when joining password protected rooms. If the room does + not require a password there is no need to provide one. +

+

+
Parameters:
nickname - the nickname to use.
password - the password to use. +
Throws: +
XMPPException - if an error occurs joining the room. In particular, a + 401 error can occur if no password was provided and one is required; or a + 403 error can occur if the user is banned; or a + 404 error can occur if the room does not exist or is locked; or a + 407 error can occur if user is not on the member list; or a + 409 error can occur if someone is already in the group chat with the same nickname.
+
+
+
+ +

+join

+
+public void join(String nickname,
+                 String password,
+                 DiscussionHistory history,
+                 long timeout)
+          throws XMPPException
+
+
Joins the chat room using the specified nickname and password. If already joined + using another nickname, this method will first leave the room and then + re-join using the new nickname.

+ + To control the amount of history to receive while joining a room you will need to provide + a configured DiscussionHistory object.

+ + A password is required when joining password protected rooms. If the room does + not require a password there is no need to provide one.

+ + If the room does not already exist when the user seeks to enter it, the server will + decide to create a new room or not. +

+

+
Parameters:
nickname - the nickname to use.
password - the password to use.
history - the amount of discussion history to receive while joining a room.
timeout - the amount of time to wait for a reply from the MUC service(in milleseconds). +
Throws: +
XMPPException - if an error occurs joining the room. In particular, a + 401 error can occur if no password was provided and one is required; or a + 403 error can occur if the user is banned; or a + 404 error can occur if the room does not exist or is locked; or a + 407 error can occur if user is not on the member list; or a + 409 error can occur if someone is already in the group chat with the same nickname.
+
+
+
+ +

+isJoined

+
+public boolean isJoined()
+
+
Returns true if currently in the multi user chat (after calling the join(String) method). +

+

+ +
Returns:
true if currently in the multi user chat room.
+
+
+
+ +

+leave

+
+public void leave()
+
+
Leave the chat room. +

+

+
+
+
+
+ +

+getConfigurationForm

+
+public Form getConfigurationForm()
+                          throws XMPPException
+
+
Returns the room's configuration form that the room's owner can use or null if + no configuration is possible. The configuration form allows to set the room's language, + enable logging, specify room's type, etc.. +

+

+ +
Returns:
the Form that contains the fields to complete together with the instrucions or + null if no configuration is possible. +
Throws: +
XMPPException - if an error occurs asking the configuration form for the room.
+
+
+
+ +

+sendConfigurationForm

+
+public void sendConfigurationForm(Form form)
+                           throws XMPPException
+
+
Sends the completed configuration form to the server. The room will be configured + with the new settings defined in the form. If the form is empty then the server + will create an instant room (will use default configuration). +

+

+
Parameters:
form - the form with the new settings. +
Throws: +
XMPPException - if an error occurs setting the new rooms' configuration.
+
+
+
+ +

+getRegistrationForm

+
+public Form getRegistrationForm()
+                         throws XMPPException
+
+
Returns the room's registration form that an unaffiliated user, can use to become a member + of the room or null if no registration is possible. Some rooms may restrict the + privilege to register members and allow only room admins to add new members.

+ + If the user requesting registration requirements is not allowed to register with the room + (e.g. because that privilege has been restricted), the room will return a "Not Allowed" + error to the user (error code 405). +

+

+ +
Returns:
the registration Form that contains the fields to complete together with the + instrucions or null if no registration is possible. +
Throws: +
XMPPException - if an error occurs asking the registration form for the room or a + 405 error if the user is not allowed to register with the room.
+
+
+
+ +

+sendRegistrationForm

+
+public void sendRegistrationForm(Form form)
+                          throws XMPPException
+
+
Sends the completed registration form to the server. After the user successfully submits + the form, the room may queue the request for review by the room admins or may immediately + add the user to the member list by changing the user's affiliation from "none" to "member.

+ + If the desired room nickname is already reserved for that room, the room will return a + "Conflict" error to the user (error code 409). If the room does not support registration, + it will return a "Service Unavailable" error to the user (error code 503). +

+

+
Parameters:
form - the completed registration form. +
Throws: +
XMPPException - if an error occurs submitting the registration form. In particular, a + 409 error can occur if the desired room nickname is already reserved for that room; + or a 503 error can occur if the room does not support registration.
+
+
+
+ +

+destroy

+
+public void destroy(String reason,
+                    String alternateJID)
+             throws XMPPException
+
+
Sends a request to the server to destroy the room. The sender of the request + should be the room's owner. If the sender of the destroy request is not the room's owner + then the server will answer a "Forbidden" error (403). +

+

+
Parameters:
reason - the reason for the room destruction.
alternateJID - the JID of an alternate location. +
Throws: +
XMPPException - if an error occurs while trying to destroy the room. + An error can occur which will be wrapped by an XMPPException -- + XMPP error code 403. The error code can be used to present more + appropiate error messages to end-users.
+
+
+
+ +

+invite

+
+public void invite(String user,
+                   String reason)
+
+
Invites another user to the room in which one is an occupant. The invitation + will be sent to the room which in turn will forward the invitation to the invitee.

+ + If the room is password-protected, the invitee will receive a password to use to join + the room. If the room is members-only, the the invitee may be added to the member list. +

+

+
Parameters:
user - the user to invite to the room.(e.g. hecate@shakespeare.lit)
reason - the reason why the user is being invited.
+
+
+
+ +

+invite

+
+public void invite(Message message,
+                   String user,
+                   String reason)
+
+
Invites another user to the room in which one is an occupant using a given Message. The invitation + will be sent to the room which in turn will forward the invitation to the invitee.

+ + If the room is password-protected, the invitee will receive a password to use to join + the room. If the room is members-only, the the invitee may be added to the member list. +

+

+
Parameters:
message - the message to use for sending the invitation.
user - the user to invite to the room.(e.g. hecate@shakespeare.lit)
reason - the reason why the user is being invited.
+
+
+
+ +

+decline

+
+public static void decline(XMPPConnection conn,
+                           String room,
+                           String inviter,
+                           String reason)
+
+
Informs the sender of an invitation that the invitee declines the invitation. The rejection + will be sent to the room which in turn will forward the rejection to the inviter. +

+

+
Parameters:
conn - the connection to use for sending the rejection.
room - the room that sent the original invitation.
inviter - the inviter of the declined invitation.
reason - the reason why the invitee is declining the invitation.
+
+
+
+ +

+addInvitationListener

+
+public static void addInvitationListener(XMPPConnection conn,
+                                         InvitationListener listener)
+
+
Adds a listener to invitation notifications. The listener will be fired anytime + an invitation is received. +

+

+
Parameters:
conn - the connection where the listener will be applied.
listener - an invitation listener.
+
+
+
+ +

+removeInvitationListener

+
+public static void removeInvitationListener(XMPPConnection conn,
+                                            InvitationListener listener)
+
+
Removes a listener to invitation notifications. The listener will be fired anytime + an invitation is received. +

+

+
Parameters:
conn - the connection where the listener was applied.
listener - an invitation listener.
+
+
+
+ +

+addInvitationRejectionListener

+
+public void addInvitationRejectionListener(InvitationRejectionListener listener)
+
+
Adds a listener to invitation rejections notifications. The listener will be fired anytime + an invitation is declined. +

+

+
Parameters:
listener - an invitation rejection listener.
+
+
+
+ +

+removeInvitationRejectionListener

+
+public void removeInvitationRejectionListener(InvitationRejectionListener listener)
+
+
Removes a listener from invitation rejections notifications. The listener will be fired + anytime an invitation is declined. +

+

+
Parameters:
listener - an invitation rejection listener.
+
+
+
+ +

+addSubjectUpdatedListener

+
+public void addSubjectUpdatedListener(SubjectUpdatedListener listener)
+
+
Adds a listener to subject change notifications. The listener will be fired anytime + the room's subject changes. +

+

+
Parameters:
listener - a subject updated listener.
+
+
+
+ +

+removeSubjectUpdatedListener

+
+public void removeSubjectUpdatedListener(SubjectUpdatedListener listener)
+
+
Removes a listener from subject change notifications. The listener will be fired + anytime the room's subject changes. +

+

+
Parameters:
listener - a subject updated listener.
+
+
+
+ +

+addPresenceInterceptor

+
+public void addPresenceInterceptor(PacketInterceptor presenceInterceptor)
+
+
Adds a new PacketInterceptor that will be invoked every time a new presence + is going to be sent by this MultiUserChat to the server. Packet interceptors may + add new extensions to the presence that is going to be sent to the MUC service. +

+

+
Parameters:
presenceInterceptor - the new packet interceptor that will intercept presence packets.
+
+
+
+ +

+removePresenceInterceptor

+
+public void removePresenceInterceptor(PacketInterceptor presenceInterceptor)
+
+
Removes a PacketInterceptor that was being invoked every time a new presence + was being sent by this MultiUserChat to the server. Packet interceptors may + add new extensions to the presence that is going to be sent to the MUC service. +

+

+
Parameters:
presenceInterceptor - the packet interceptor to remove.
+
+
+
+ +

+getSubject

+
+public String getSubject()
+
+
Returns the last known room's subject or null if the user hasn't joined the room + or the room does not have a subject yet. In case the room has a subject, as soon as the + user joins the room a message with the current room's subject will be received.

+ + To be notified every time the room's subject change you should add a listener + to this room. addSubjectUpdatedListener(SubjectUpdatedListener)

+ + To change the room's subject use changeSubject(String). +

+

+ +
Returns:
the room's subject or null if the user hasn't joined the room or the + room does not have a subject yet.
+
+
+
+ +

+getReservedNickname

+
+public String getReservedNickname()
+
+
Returns the reserved room nickname for the user in the room. A user may have a reserved + nickname, for example through explicit room registration or database integration. In such + cases it may be desirable for the user to discover the reserved nickname before attempting + to enter the room. +

+

+ +
Returns:
the reserved room nickname or null if none.
+
+
+
+ +

+getNickname

+
+public String getNickname()
+
+
Returns the nickname that was used to join the room, or null if not + currently joined. +

+

+ +
Returns:
the nickname currently being used.
+
+
+
+ +

+changeNickname

+
+public void changeNickname(String nickname)
+                    throws XMPPException
+
+
Changes the occupant's nickname to a new nickname within the room. Each room occupant + will receive two presence packets. One of type "unavailable" for the old nickname and one + indicating availability for the new nickname. The unavailable presence will contain the new + nickname and an appropriate status code (namely 303) as extended presence information. The + status code 303 indicates that the occupant is changing his/her nickname. +

+

+
Parameters:
nickname - the new nickname within the room. +
Throws: +
XMPPException - if the new nickname is already in use by another occupant.
+
+
+
+ +

+changeAvailabilityStatus

+
+public void changeAvailabilityStatus(String status,
+                                     Presence.Mode mode)
+
+
Changes the occupant's availability status within the room. The presence type + will remain available but with a new status that describes the presence update and + a new presence mode (e.g. Extended away). +

+

+
Parameters:
status - a text message describing the presence update.
mode - the mode type for the presence update.
+
+
+
+ +

+kickParticipant

+
+public void kickParticipant(String nickname,
+                            String reason)
+                     throws XMPPException
+
+
Kicks a visitor or participant from the room. The kicked occupant will receive a presence + of type "unavailable" including a status code 307 and optionally along with the reason + (if provided) and the bare JID of the user who initiated the kick. After the occupant + was kicked from the room, the rest of the occupants will receive a presence of type + "unavailable". The presence will include a status code 307 which means that the occupant + was kicked from the room. +

+

+
Parameters:
nickname - the nickname of the participant or visitor to kick from the room + (e.g. "john").
reason - the reason why the participant or visitor is being kicked from the room. +
Throws: +
XMPPException - if an error occurs kicking the occupant. In particular, a + 405 error can occur if a moderator or a user with an affiliation of "owner" or "admin" + was intended to be kicked (i.e. Not Allowed error); or a + 403 error can occur if the occupant that intended to kick another occupant does + not have kicking privileges (i.e. Forbidden error); or a + 400 error can occur if the provided nickname is not present in the room.
+
+
+
+ +

+grantVoice

+
+public void grantVoice(Collection nicknames)
+                throws XMPPException
+
+
Grants voice to visitors in the room. In a moderated room, a moderator may want to manage + who does and does not have "voice" in the room. To have voice means that a room occupant + is able to send messages to the room occupants. +

+

+
Parameters:
nicknames - the nicknames of the visitors to grant voice in the room (e.g. "john"). +
Throws: +
XMPPException - if an error occurs granting voice to a visitor. In particular, a + 403 error can occur if the occupant that intended to grant voice is not + a moderator in this room (i.e. Forbidden error); or a + 400 error can occur if the provided nickname is not present in the room.
+
+
+
+ +

+grantVoice

+
+public void grantVoice(String nickname)
+                throws XMPPException
+
+
Grants voice to a visitor in the room. In a moderated room, a moderator may want to manage + who does and does not have "voice" in the room. To have voice means that a room occupant + is able to send messages to the room occupants. +

+

+
Parameters:
nickname - the nickname of the visitor to grant voice in the room (e.g. "john"). +
Throws: +
XMPPException - if an error occurs granting voice to a visitor. In particular, a + 403 error can occur if the occupant that intended to grant voice is not + a moderator in this room (i.e. Forbidden error); or a + 400 error can occur if the provided nickname is not present in the room.
+
+
+
+ +

+revokeVoice

+
+public void revokeVoice(Collection nicknames)
+                 throws XMPPException
+
+
Revokes voice from participants in the room. In a moderated room, a moderator may want to + revoke an occupant's privileges to speak. To have voice means that a room occupant + is able to send messages to the room occupants. +

+

+
Parameters:
nicknames - the nicknames of the participants to revoke voice (e.g. "john"). +
Throws: +
XMPPException - if an error occurs revoking voice from a participant. In particular, a + 405 error can occur if a moderator or a user with an affiliation of "owner" or "admin" + was tried to revoke his voice (i.e. Not Allowed error); or a + 400 error can occur if the provided nickname is not present in the room.
+
+
+
+ +

+revokeVoice

+
+public void revokeVoice(String nickname)
+                 throws XMPPException
+
+
Revokes voice from a participant in the room. In a moderated room, a moderator may want to + revoke an occupant's privileges to speak. To have voice means that a room occupant + is able to send messages to the room occupants. +

+

+
Parameters:
nickname - the nickname of the participant to revoke voice (e.g. "john"). +
Throws: +
XMPPException - if an error occurs revoking voice from a participant. In particular, a + 405 error can occur if a moderator or a user with an affiliation of "owner" or "admin" + was tried to revoke his voice (i.e. Not Allowed error); or a + 400 error can occur if the provided nickname is not present in the room.
+
+
+
+ +

+banUsers

+
+public void banUsers(Collection jids)
+              throws XMPPException
+
+
Bans users from the room. An admin or owner of the room can ban users from a room. This + means that the banned user will no longer be able to join the room unless the ban has been + removed. If the banned user was present in the room then he/she will be removed from the + room and notified that he/she was banned along with the reason (if provided) and the bare + XMPP user ID of the user who initiated the ban. +

+

+
Parameters:
jids - the bare XMPP user IDs of the users to ban. +
Throws: +
XMPPException - if an error occurs banning a user. In particular, a + 405 error can occur if a moderator or a user with an affiliation of "owner" or "admin" + was tried to be banned (i.e. Not Allowed error).
+
+
+
+ +

+banUser

+
+public void banUser(String jid,
+                    String reason)
+             throws XMPPException
+
+
Bans a user from the room. An admin or owner of the room can ban users from a room. This + means that the banned user will no longer be able to join the room unless the ban has been + removed. If the banned user was present in the room then he/she will be removed from the + room and notified that he/she was banned along with the reason (if provided) and the bare + XMPP user ID of the user who initiated the ban. +

+

+
Parameters:
jid - the bare XMPP user ID of the user to ban (e.g. "user@host.org").
reason - the reason why the user was banned. +
Throws: +
XMPPException - if an error occurs banning a user. In particular, a + 405 error can occur if a moderator or a user with an affiliation of "owner" or "admin" + was tried to be banned (i.e. Not Allowed error).
+
+
+
+ +

+grantMembership

+
+public void grantMembership(Collection jids)
+                     throws XMPPException
+
+
Grants membership to other users. Only administrators are able to grant membership. A user + that becomes a room member will be able to enter a room of type Members-Only (i.e. a room + that a user cannot enter without being on the member list). +

+

+
Parameters:
jids - the XMPP user IDs of the users to grant membership. +
Throws: +
XMPPException - if an error occurs granting membership to a user.
+
+
+
+ +

+grantMembership

+
+public void grantMembership(String jid)
+                     throws XMPPException
+
+
Grants membership to a user. Only administrators are able to grant membership. A user + that becomes a room member will be able to enter a room of type Members-Only (i.e. a room + that a user cannot enter without being on the member list). +

+

+
Parameters:
jid - the XMPP user ID of the user to grant membership (e.g. "user@host.org"). +
Throws: +
XMPPException - if an error occurs granting membership to a user.
+
+
+
+ +

+revokeMembership

+
+public void revokeMembership(Collection jids)
+                      throws XMPPException
+
+
Revokes users' membership. Only administrators are able to revoke membership. A user + that becomes a room member will be able to enter a room of type Members-Only (i.e. a room + that a user cannot enter without being on the member list). If the user is in the room and + the room is of type members-only then the user will be removed from the room. +

+

+
Parameters:
jids - the bare XMPP user IDs of the users to revoke membership. +
Throws: +
XMPPException - if an error occurs revoking membership to a user.
+
+
+
+ +

+revokeMembership

+
+public void revokeMembership(String jid)
+                      throws XMPPException
+
+
Revokes a user's membership. Only administrators are able to revoke membership. A user + that becomes a room member will be able to enter a room of type Members-Only (i.e. a room + that a user cannot enter without being on the member list). If the user is in the room and + the room is of type members-only then the user will be removed from the room. +

+

+
Parameters:
jid - the bare XMPP user ID of the user to revoke membership (e.g. "user@host.org"). +
Throws: +
XMPPException - if an error occurs revoking membership to a user.
+
+
+
+ +

+grantModerator

+
+public void grantModerator(Collection nicknames)
+                    throws XMPPException
+
+
Grants moderator privileges to participants or visitors. Room administrators may grant + moderator privileges. A moderator is allowed to kick users, grant and revoke voice, invite + other users, modify room's subject plus all the partcipants privileges. +

+

+
Parameters:
nicknames - the nicknames of the occupants to grant moderator privileges. +
Throws: +
XMPPException - if an error occurs granting moderator privileges to a user.
+
+
+
+ +

+grantModerator

+
+public void grantModerator(String nickname)
+                    throws XMPPException
+
+
Grants moderator privileges to a participant or visitor. Room administrators may grant + moderator privileges. A moderator is allowed to kick users, grant and revoke voice, invite + other users, modify room's subject plus all the partcipants privileges. +

+

+
Parameters:
nickname - the nickname of the occupant to grant moderator privileges. +
Throws: +
XMPPException - if an error occurs granting moderator privileges to a user.
+
+
+
+ +

+revokeModerator

+
+public void revokeModerator(Collection nicknames)
+                     throws XMPPException
+
+
Revokes moderator privileges from other users. The occupant that loses moderator + privileges will become a participant. Room administrators may revoke moderator privileges + only to occupants whose affiliation is member or none. This means that an administrator is + not allowed to revoke moderator privileges from other room administrators or owners. +

+

+
Parameters:
nicknames - the nicknames of the occupants to revoke moderator privileges. +
Throws: +
XMPPException - if an error occurs revoking moderator privileges from a user.
+
+
+
+ +

+revokeModerator

+
+public void revokeModerator(String nickname)
+                     throws XMPPException
+
+
Revokes moderator privileges from another user. The occupant that loses moderator + privileges will become a participant. Room administrators may revoke moderator privileges + only to occupants whose affiliation is member or none. This means that an administrator is + not allowed to revoke moderator privileges from other room administrators or owners. +

+

+
Parameters:
nickname - the nickname of the occupant to revoke moderator privileges. +
Throws: +
XMPPException - if an error occurs revoking moderator privileges from a user.
+
+
+
+ +

+grantOwnership

+
+public void grantOwnership(Collection jids)
+                    throws XMPPException
+
+
Grants ownership privileges to other users. Room owners may grant ownership privileges. + Some room implementations will not allow to grant ownership privileges to other users. + An owner is allowed to change defining room features as well as perform all administrative + functions. +

+

+
Parameters:
jids - the collection of bare XMPP user IDs of the users to grant ownership. +
Throws: +
XMPPException - if an error occurs granting ownership privileges to a user.
+
+
+
+ +

+grantOwnership

+
+public void grantOwnership(String jid)
+                    throws XMPPException
+
+
Grants ownership privileges to another user. Room owners may grant ownership privileges. + Some room implementations will not allow to grant ownership privileges to other users. + An owner is allowed to change defining room features as well as perform all administrative + functions. +

+

+
Parameters:
jid - the bare XMPP user ID of the user to grant ownership (e.g. "user@host.org"). +
Throws: +
XMPPException - if an error occurs granting ownership privileges to a user.
+
+
+
+ +

+revokeOwnership

+
+public void revokeOwnership(Collection jids)
+                     throws XMPPException
+
+
Revokes ownership privileges from other users. The occupant that loses ownership + privileges will become an administrator. Room owners may revoke ownership privileges. + Some room implementations will not allow to grant ownership privileges to other users. +

+

+
Parameters:
jids - the bare XMPP user IDs of the users to revoke ownership. +
Throws: +
XMPPException - if an error occurs revoking ownership privileges from a user.
+
+
+
+ +

+revokeOwnership

+
+public void revokeOwnership(String jid)
+                     throws XMPPException
+
+
Revokes ownership privileges from another user. The occupant that loses ownership + privileges will become an administrator. Room owners may revoke ownership privileges. + Some room implementations will not allow to grant ownership privileges to other users. +

+

+
Parameters:
jid - the bare XMPP user ID of the user to revoke ownership (e.g. "user@host.org"). +
Throws: +
XMPPException - if an error occurs revoking ownership privileges from a user.
+
+
+
+ +

+grantAdmin

+
+public void grantAdmin(Collection jids)
+                throws XMPPException
+
+
Grants administrator privileges to other users. Room owners may grant administrator + privileges to a member or unaffiliated user. An administrator is allowed to perform + administrative functions such as banning users and edit moderator list. +

+

+
Parameters:
jids - the bare XMPP user IDs of the users to grant administrator privileges. +
Throws: +
XMPPException - if an error occurs granting administrator privileges to a user.
+
+
+
+ +

+grantAdmin

+
+public void grantAdmin(String jid)
+                throws XMPPException
+
+
Grants administrator privileges to another user. Room owners may grant administrator + privileges to a member or unaffiliated user. An administrator is allowed to perform + administrative functions such as banning users and edit moderator list. +

+

+
Parameters:
jid - the bare XMPP user ID of the user to grant administrator privileges + (e.g. "user@host.org"). +
Throws: +
XMPPException - if an error occurs granting administrator privileges to a user.
+
+
+
+ +

+revokeAdmin

+
+public void revokeAdmin(Collection jids)
+                 throws XMPPException
+
+
Revokes administrator privileges from users. The occupant that loses administrator + privileges will become a member. Room owners may revoke administrator privileges from + a member or unaffiliated user. +

+

+
Parameters:
jids - the bare XMPP user IDs of the user to revoke administrator privileges. +
Throws: +
XMPPException - if an error occurs revoking administrator privileges from a user.
+
+
+
+ +

+revokeAdmin

+
+public void revokeAdmin(String jid)
+                 throws XMPPException
+
+
Revokes administrator privileges from a user. The occupant that loses administrator + privileges will become a member. Room owners may revoke administrator privileges from + a member or unaffiliated user. +

+

+
Parameters:
jid - the bare XMPP user ID of the user to revoke administrator privileges + (e.g. "user@host.org"). +
Throws: +
XMPPException - if an error occurs revoking administrator privileges from a user.
+
+
+
+ +

+getOccupantsCount

+
+public int getOccupantsCount()
+
+
Returns the number of occupants in the group chat.

+ + Note: this value will only be accurate after joining the group chat, and + may fluctuate over time. If you query this value directly after joining the + group chat it may not be accurate, as it takes a certain amount of time for + the server to send all presence packets to this client. +

+

+ +
Returns:
the number of occupants in the group chat.
+
+
+
+ +

+getOccupants

+
+public Iterator getOccupants()
+
+
Returns an Iterator (of Strings) for the list of fully qualified occupants + in the group chat. For example, "conference@chat.jivesoftware.com/SomeUser". + Typically, a client would only display the nickname of the occupant. To + get the nickname from the fully qualified name, use the + StringUtils.parseResource(String) method. + Note: this value will only be accurate after joining the group chat, and may + fluctuate over time. +

+

+ +
Returns:
an Iterator for the occupants in the group chat.
+
+
+
+ +

+getOccupantPresence

+
+public Presence getOccupantPresence(String user)
+
+
Returns the presence info for a particular user, or null if the user + is not in the room.

+

+

+
Parameters:
user - the room occupant to search for his presence. The format of user must + be: roomName@service/nickname (e.g. darkcave@macbeth.shakespeare.lit/thirdwitch). +
Returns:
the occupant's current presence, or null if the user is unavailable + or if no presence information is available.
+
+
+
+ +

+getOccupant

+
+public Occupant getOccupant(String user)
+
+
Returns the Occupant information for a particular occupant, or null if the + user is not in the room. The Occupant object may include information such as full + JID of the user as well as the role and affiliation of the user in the room.

+

+

+
Parameters:
user - the room occupant to search for his presence. The format of user must + be: roomName@service/nickname (e.g. darkcave@macbeth.shakespeare.lit/thirdwitch). +
Returns:
the Occupant or null if the user is unavailable (i.e. not in the room).
+
+
+
+ +

+addParticipantListener

+
+public void addParticipantListener(PacketListener listener)
+
+
Adds a packet listener that will be notified of any new Presence packets + sent to the group chat. Using a listener is a suitable way to know when the list + of occupants should be re-loaded due to any changes. +

+

+
Parameters:
listener - a packet listener that will be notified of any presence packets + sent to the group chat.
+
+
+
+ +

+removeParticipantListener

+
+public void removeParticipantListener(PacketListener listener)
+
+
Remoces a packet listener that was being notified of any new Presence packets + sent to the group chat. +

+

+
Parameters:
listener - a packet listener that was being notified of any presence packets + sent to the group chat.
+
+
+
+ +

+getOwners

+
+public Collection getOwners()
+                     throws XMPPException
+
+
Returns a collection of Affiliate with the room owners. +

+

+ +
Returns:
a collection of Affiliate with the room owners. +
Throws: +
XMPPException - if an error occured while performing the request to the server or you + don't have enough privileges to get this information.
+
+
+
+ +

+getAdmins

+
+public Collection getAdmins()
+                     throws XMPPException
+
+
Returns a collection of Affiliate with the room administrators. +

+

+ +
Returns:
a collection of Affiliate with the room administrators. +
Throws: +
XMPPException - if an error occured while performing the request to the server or you + don't have enough privileges to get this information.
+
+
+
+ +

+getMembers

+
+public Collection getMembers()
+                      throws XMPPException
+
+
Returns a collection of Affiliate with the room members. +

+

+ +
Returns:
a collection of Affiliate with the room members. +
Throws: +
XMPPException - if an error occured while performing the request to the server or you + don't have enough privileges to get this information.
+
+
+
+ +

+getOutcasts

+
+public Collection getOutcasts()
+                       throws XMPPException
+
+
Returns a collection of Affiliate with the room outcasts. +

+

+ +
Returns:
a collection of Affiliate with the room outcasts. +
Throws: +
XMPPException - if an error occured while performing the request to the server or you + don't have enough privileges to get this information.
+
+
+
+ +

+getModerators

+
+public Collection getModerators()
+                         throws XMPPException
+
+
Returns a collection of Occupant with the room moderators. +

+

+ +
Returns:
a collection of Occupant with the room moderators. +
Throws: +
XMPPException - if an error occured while performing the request to the server or you + don't have enough privileges to get this information.
+
+
+
+ +

+getParticipants

+
+public Collection getParticipants()
+                           throws XMPPException
+
+
Returns a collection of Occupant with the room participants. +

+

+ +
Returns:
a collection of Occupant with the room participants. +
Throws: +
XMPPException - if an error occured while performing the request to the server or you + don't have enough privileges to get this information.
+
+
+
+ +

+sendMessage

+
+public void sendMessage(String text)
+                 throws XMPPException
+
+
Sends a message to the chat room. +

+

+
Parameters:
text - the text of the message to send. +
Throws: +
XMPPException - if sending the message fails.
+
+
+
+ +

+createPrivateChat

+
+public Chat createPrivateChat(String occupant)
+
+
Returns a new Chat for sending private messages to a given room occupant. + The Chat's occupant address is the room's JID (i.e. roomName@service/nick). The server + service will change the 'from' address to the sender's room JID and delivering the message + to the intended recipient's full JID. +

+

+
Parameters:
occupant - occupant unique room JID (e.g. 'darkcave@macbeth.shakespeare.lit/Paul'). +
Returns:
new Chat for sending private messages to a given room occupant.
+
+
+
+ +

+createMessage

+
+public Message createMessage()
+
+
Creates a new Message to send to the chat room. +

+

+ +
Returns:
a new Message addressed to the chat room.
+
+
+
+ +

+sendMessage

+
+public void sendMessage(Message message)
+                 throws XMPPException
+
+
Sends a Message to the chat room. +

+

+
Parameters:
message - the message. +
Throws: +
XMPPException - if sending the message fails.
+
+
+
+ +

+pollMessage

+
+public Message pollMessage()
+
+
Polls for and returns the next message, or null if there isn't + a message immediately available. This method provides significantly different + functionalty than the nextMessage() method since it's non-blocking. + In other words, the method call will always return immediately, whereas the + nextMessage method will return only when a message is available (or after + a specific timeout). +

+

+ +
Returns:
the next message if one is immediately available and + null otherwise.
+
+
+
+ +

+nextMessage

+
+public Message nextMessage()
+
+
Returns the next available message in the chat. The method call will block + (not return) until a message is available. +

+

+ +
Returns:
the next message.
+
+
+
+ +

+nextMessage

+
+public Message nextMessage(long timeout)
+
+
Returns the next available message in the chat. The method call will block + (not return) until a packet is available or the timeout has elapased. + If the timeout elapses without a result, null will be returned. +

+

+
Parameters:
timeout - the maximum amount of time to wait for the next message. +
Returns:
the next message, or null if the timeout elapses without a + message becoming available.
+
+
+
+ +

+addMessageListener

+
+public void addMessageListener(PacketListener listener)
+
+
Adds a packet listener that will be notified of any new messages in the + group chat. Only "group chat" messages addressed to this group chat will + be delivered to the listener. If you wish to listen for other packets + that may be associated with this group chat, you should register a + PacketListener directly with the XMPPConnection with the appropriate + PacketListener. +

+

+
Parameters:
listener - a packet listener.
+
+
+
+ +

+removeMessageListener

+
+public void removeMessageListener(PacketListener listener)
+
+
Removes a packet listener that was being notified of any new messages in the + multi user chat. Only "group chat" messages addressed to this multi user chat were + being delivered to the listener. +

+

+
Parameters:
listener - a packet listener.
+
+
+
+ +

+changeSubject

+
+public void changeSubject(String subject)
+                   throws XMPPException
+
+
Changes the subject within the room. As a default, only users with a role of "moderator" + are allowed to change the subject in a room. Although some rooms may be configured to + allow a mere participant or even a visitor to change the subject. +

+

+
Parameters:
subject - the new room's subject to set. +
Throws: +
XMPPException - if someone without appropriate privileges attempts to change the + room subject will throw an error with code 403 (i.e. Forbidden)
+
+
+
+ +

+addUserStatusListener

+
+public void addUserStatusListener(UserStatusListener listener)
+
+
Adds a listener that will be notified of changes in your status in the room + such as the user being kicked, banned, or granted admin permissions. +

+

+
Parameters:
listener - a user status listener.
+
+
+
+ +

+removeUserStatusListener

+
+public void removeUserStatusListener(UserStatusListener listener)
+
+
Removes a listener that was being notified of changes in your status in the room + such as the user being kicked, banned, or granted admin permissions. +

+

+
Parameters:
listener - a user status listener.
+
+
+
+ +

+addParticipantStatusListener

+
+public void addParticipantStatusListener(ParticipantStatusListener listener)
+
+
Adds a listener that will be notified of changes in occupants status in the room + such as the user being kicked, banned, or granted admin permissions. +

+

+
Parameters:
listener - a participant status listener.
+
+
+
+ +

+removeParticipantStatusListener

+
+public void removeParticipantStatusListener(ParticipantStatusListener listener)
+
+
Removes a listener that was being notified of changes in occupants status in the room + such as the user being kicked, banned, or granted admin permissions. +

+

+
Parameters:
listener - a participant status listener.
+
+
+
+ +

+finalize

+
+public void finalize()
+              throws Throwable
+
+
+
Overrides:
finalize in class Object
+
+
+ +
Throws: +
Throwable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/Occupant.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/Occupant.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/Occupant.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,299 @@ + + + + + + +Occupant (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Class Occupant

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.muc.Occupant
+
+
+
+
public class Occupant
extends Object
+ + +

+Represents the information about an occupant in a given room. The information will always have + the affiliation and role of the occupant in the room. The full JID and nickname are optional. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetAffiliation() + +
+          Returns the affiliation of the occupant.
+ StringgetJid() + +
+          Returns the full JID of the occupant.
+ StringgetNick() + +
+          Returns the current nickname of the occupant in the room.
+ StringgetRole() + +
+          Returns the current role of the occupant in the room.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getJid

+
+public String getJid()
+
+
Returns the full JID of the occupant. If this information was extracted from a presence and + the room is semi or full-anonymous then the answer will be null. On the other hand, if this + information was obtained while maintaining the voice list or the moderator list then we will + always have a full JID. +

+

+ +
Returns:
the full JID of the occupant.
+
+
+
+ +

+getAffiliation

+
+public String getAffiliation()
+
+
Returns the affiliation of the occupant. Possible affiliations are: "owner", "admin", + "member", "outcast". This information will always be available. +

+

+ +
Returns:
the affiliation of the occupant.
+
+
+
+ +

+getRole

+
+public String getRole()
+
+
Returns the current role of the occupant in the room. This information will always be + available. +

+

+ +
Returns:
the current role of the occupant in the room.
+
+
+
+ +

+getNick

+
+public String getNick()
+
+
Returns the current nickname of the occupant in the room. If this information was extracted + from a presence then the answer will be null. +

+

+ +
Returns:
the current nickname of the occupant in the room or null if this information was + obtained from a presence.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/ParticipantStatusListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/ParticipantStatusListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/ParticipantStatusListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,557 @@ + + + + + + +ParticipantStatusListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Interface ParticipantStatusListener

+
+
All Known Implementing Classes:
DefaultParticipantStatusListener
+
+
+
+
public interface ParticipantStatusListener
+ + +

+A listener that is fired anytime a participant's status in a room is changed, such as the + user being kicked, banned, or granted admin permissions. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadminGranted(String participant) + +
+          Called when an owner grants administrator privileges to a user.
+ voidadminRevoked(String participant) + +
+          Called when an owner revokes administrator privileges from a user.
+ voidbanned(String participant, + String actor, + String reason) + +
+          Called when an administrator or owner banned a participant from the room.
+ voidjoined(String participant) + +
+          Called when a new room occupant has joined the room.
+ voidkicked(String participant, + String actor, + String reason) + +
+          Called when a room participant has been kicked from the room.
+ voidleft(String participant) + +
+          Called when a room occupant has left the room on its own.
+ voidmembershipGranted(String participant) + +
+          Called when an administrator grants a user membership to the room.
+ voidmembershipRevoked(String participant) + +
+          Called when an administrator revokes a user membership to the room.
+ voidmoderatorGranted(String participant) + +
+          Called when an administrator grants moderator privileges to a user.
+ voidmoderatorRevoked(String participant) + +
+          Called when an administrator revokes moderator privileges from a user.
+ voidnicknameChanged(String participant, + String newNickname) + +
+          Called when a participant changed his/her nickname in the room.
+ voidownershipGranted(String participant) + +
+          Called when an owner grants a user ownership on the room.
+ voidownershipRevoked(String participant) + +
+          Called when an owner revokes a user ownership on the room.
+ voidvoiceGranted(String participant) + +
+          Called when a moderator grants voice to a visitor.
+ voidvoiceRevoked(String participant) + +
+          Called when a moderator revokes voice from a participant.
+  +

+ + + + + + + + +
+Method Detail
+ +

+joined

+
+void joined(String participant)
+
+
Called when a new room occupant has joined the room. Note: Take in consideration that when + you join a room you will receive the list of current occupants in the room. This message will + be sent for each occupant. +

+

+
Parameters:
participant - the participant that has just joined the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+left

+
+void left(String participant)
+
+
Called when a room occupant has left the room on its own. This means that the occupant was + neither kicked nor banned from the room. +

+

+
Parameters:
participant - the participant that has left the room on its own. + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+kicked

+
+void kicked(String participant,
+            String actor,
+            String reason)
+
+
Called when a room participant has been kicked from the room. This means that the kicked + participant is no longer participating in the room. +

+

+
Parameters:
participant - the participant that was kicked from the room + (e.g. room@conference.jabber.org/nick).
actor - the moderator that kicked the occupant from the room (e.g. user@host.org).
reason - the reason provided by the actor to kick the occupant from the room.
+
+
+
+ +

+voiceGranted

+
+void voiceGranted(String participant)
+
+
Called when a moderator grants voice to a visitor. This means that the visitor + can now participate in the moderated room sending messages to all occupants. +

+

+
Parameters:
participant - the participant that was granted voice in the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+voiceRevoked

+
+void voiceRevoked(String participant)
+
+
Called when a moderator revokes voice from a participant. This means that the participant + in the room was able to speak and now is a visitor that can't send messages to the room + occupants. +

+

+
Parameters:
participant - the participant that was revoked voice from the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+banned

+
+void banned(String participant,
+            String actor,
+            String reason)
+
+
Called when an administrator or owner banned a participant from the room. This means that + banned participant will no longer be able to join the room unless the ban has been removed. +

+

+
Parameters:
participant - the participant that was banned from the room + (e.g. room@conference.jabber.org/nick).
actor - the administrator that banned the occupant (e.g. user@host.org).
reason - the reason provided by the administrator to ban the occupant.
+
+
+
+ +

+membershipGranted

+
+void membershipGranted(String participant)
+
+
Called when an administrator grants a user membership to the room. This means that the user + will be able to join the members-only room. +

+

+
Parameters:
participant - the participant that was granted membership in the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+membershipRevoked

+
+void membershipRevoked(String participant)
+
+
Called when an administrator revokes a user membership to the room. This means that the + user will not be able to join the members-only room. +

+

+
Parameters:
participant - the participant that was revoked membership from the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+moderatorGranted

+
+void moderatorGranted(String participant)
+
+
Called when an administrator grants moderator privileges to a user. This means that the user + will be able to kick users, grant and revoke voice, invite other users, modify room's + subject plus all the partcipants privileges. +

+

+
Parameters:
participant - the participant that was granted moderator privileges in the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+moderatorRevoked

+
+void moderatorRevoked(String participant)
+
+
Called when an administrator revokes moderator privileges from a user. This means that the + user will no longer be able to kick users, grant and revoke voice, invite other users, + modify room's subject plus all the partcipants privileges. +

+

+
Parameters:
participant - the participant that was revoked moderator privileges in the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+ownershipGranted

+
+void ownershipGranted(String participant)
+
+
Called when an owner grants a user ownership on the room. This means that the user + will be able to change defining room features as well as perform all administrative + functions. +

+

+
Parameters:
participant - the participant that was granted ownership on the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+ownershipRevoked

+
+void ownershipRevoked(String participant)
+
+
Called when an owner revokes a user ownership on the room. This means that the user + will no longer be able to change defining room features as well as perform all + administrative functions. +

+

+
Parameters:
participant - the participant that was revoked ownership on the room + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+adminGranted

+
+void adminGranted(String participant)
+
+
Called when an owner grants administrator privileges to a user. This means that the user + will be able to perform administrative functions such as banning users and edit moderator + list. +

+

+
Parameters:
participant - the participant that was granted administrator privileges + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+adminRevoked

+
+void adminRevoked(String participant)
+
+
Called when an owner revokes administrator privileges from a user. This means that the user + will no longer be able to perform administrative functions such as banning users and edit + moderator list. +

+

+
Parameters:
participant - the participant that was revoked administrator privileges + (e.g. room@conference.jabber.org/nick).
+
+
+
+ +

+nicknameChanged

+
+void nicknameChanged(String participant,
+                     String newNickname)
+
+
Called when a participant changed his/her nickname in the room. The new participant's + nickname will be informed with the next available presence. +

+

+
Parameters:
participant - the participant that was revoked administrator privileges + (e.g. room@conference.jabber.org/nick).
newNickname - the new nickname that the participant decided to use.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/RoomInfo.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/RoomInfo.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/RoomInfo.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,408 @@ + + + + + + +RoomInfo (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Class RoomInfo

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.muc.RoomInfo
+
+
+
+
public class RoomInfo
extends Object
+ + +

+Represents the room information that was discovered using Service Discovery. It's possible to + obtain information about a room before joining the room but only for rooms that are public (i.e. + rooms that may be discovered). +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetDescription() + +
+          Returns the discovered description of the room.
+ intgetOccupantsCount() + +
+          Returns the discovered number of occupants that are currently in the room.
+ StringgetRoom() + +
+          Returns the JID of the room whose information was discovered.
+ StringgetSubject() + +
+          Returns the discovered subject of the room.
+ booleanisMembersOnly() + +
+          Returns true if the room has restricted the access so that only members may enter the room.
+ booleanisModerated() + +
+          Returns true if the room enabled only participants to speak.
+ booleanisNonanonymous() + +
+          Returns true if presence packets will include the JID of every occupant.
+ booleanisPasswordProtected() + +
+          Returns true if users musy provide a valid password in order to join the room.
+ booleanisPersistent() + +
+          Returns true if the room will persist after the last occupant have left the room.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getRoom

+
+public String getRoom()
+
+
Returns the JID of the room whose information was discovered. +

+

+ +
Returns:
the JID of the room whose information was discovered.
+
+
+
+ +

+getDescription

+
+public String getDescription()
+
+
Returns the discovered description of the room. +

+

+ +
Returns:
the discovered description of the room.
+
+
+
+ +

+getSubject

+
+public String getSubject()
+
+
Returns the discovered subject of the room. The subject may be empty if the room does not + have a subject. +

+

+ +
Returns:
the discovered subject of the room.
+
+
+
+ +

+getOccupantsCount

+
+public int getOccupantsCount()
+
+
Returns the discovered number of occupants that are currently in the room. If this + information was not discovered (i.e. the server didn't send it) then a value of -1 will be + returned. +

+

+ +
Returns:
the number of occupants that are currently in the room or -1 if that information was + not provided by the server.
+
+
+
+ +

+isMembersOnly

+
+public boolean isMembersOnly()
+
+
Returns true if the room has restricted the access so that only members may enter the room. +

+

+ +
Returns:
true if the room has restricted the access so that only members may enter the room.
+
+
+
+ +

+isModerated

+
+public boolean isModerated()
+
+
Returns true if the room enabled only participants to speak. Occupants with a role of + visitor won't be able to speak in the room. +

+

+ +
Returns:
true if the room enabled only participants to speak.
+
+
+
+ +

+isNonanonymous

+
+public boolean isNonanonymous()
+
+
Returns true if presence packets will include the JID of every occupant. +

+

+ +
Returns:
true if presence packets will include the JID of every occupant.
+
+
+
+ +

+isPasswordProtected

+
+public boolean isPasswordProtected()
+
+
Returns true if users musy provide a valid password in order to join the room. +

+

+ +
Returns:
true if users musy provide a valid password in order to join the room.
+
+
+
+ +

+isPersistent

+
+public boolean isPersistent()
+
+
Returns true if the room will persist after the last occupant have left the room. +

+

+ +
Returns:
true if the room will persist after the last occupant have left the room.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/SubjectUpdatedListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/SubjectUpdatedListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/SubjectUpdatedListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,213 @@ + + + + + + +SubjectUpdatedListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Interface SubjectUpdatedListener

+
+
+
public interface SubjectUpdatedListener
+ + +

+A listener that is fired anytime a MUC room changes its subject. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidsubjectUpdated(String subject, + String from) + +
+          Called when a MUC room has changed its subject.
+  +

+ + + + + + + + +
+Method Detail
+ +

+subjectUpdated

+
+void subjectUpdated(String subject,
+                    String from)
+
+
Called when a MUC room has changed its subject. +

+

+
Parameters:
subject - the new room's subject.
from - the user that changed the room's subject (e.g. room@conference.jabber.org/nick).
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/UserStatusListener.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/UserStatusListener.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/UserStatusListener.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,470 @@ + + + + + + +UserStatusListener (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.muc +
+Interface UserStatusListener

+
+
All Known Implementing Classes:
DefaultUserStatusListener
+
+
+
+
public interface UserStatusListener
+ + +

+A listener that is fired anytime your participant's status in a room is changed, such as the + user being kicked, banned, or granted admin permissions. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadminGranted() + +
+          Called when an owner grants administrator privileges to your user.
+ voidadminRevoked() + +
+          Called when an owner revokes administrator privileges from your user.
+ voidbanned(String actor, + String reason) + +
+          Called when an administrator or owner banned your user from the room.
+ voidkicked(String actor, + String reason) + +
+          Called when a moderator kicked your user from the room.
+ voidmembershipGranted() + +
+          Called when an administrator grants your user membership to the room.
+ voidmembershipRevoked() + +
+          Called when an administrator revokes your user membership to the room.
+ voidmoderatorGranted() + +
+          Called when an administrator grants moderator privileges to your user.
+ voidmoderatorRevoked() + +
+          Called when an administrator revokes moderator privileges from your user.
+ voidownershipGranted() + +
+          Called when an owner grants to your user ownership on the room.
+ voidownershipRevoked() + +
+          Called when an owner revokes from your user ownership on the room.
+ voidvoiceGranted() + +
+          Called when a moderator grants voice to your user.
+ voidvoiceRevoked() + +
+          Called when a moderator revokes voice from your user.
+  +

+ + + + + + + + +
+Method Detail
+ +

+kicked

+
+void kicked(String actor,
+            String reason)
+
+
Called when a moderator kicked your user from the room. This means that you are no longer + participanting in the room. +

+

+
Parameters:
actor - the moderator that kicked your user from the room (e.g. user@host.org).
reason - the reason provided by the actor to kick you from the room.
+
+
+
+ +

+voiceGranted

+
+void voiceGranted()
+
+
Called when a moderator grants voice to your user. This means that you were a visitor in + the moderated room before and now you can participate in the room by sending messages to + all occupants. +

+

+
+
+
+
+ +

+voiceRevoked

+
+void voiceRevoked()
+
+
Called when a moderator revokes voice from your user. This means that you were a + participant in the room able to speak and now you are a visitor that can't send + messages to the room occupants. +

+

+
+
+
+
+ +

+banned

+
+void banned(String actor,
+            String reason)
+
+
Called when an administrator or owner banned your user from the room. This means that you + will no longer be able to join the room unless the ban has been removed. +

+

+
Parameters:
actor - the administrator that banned your user (e.g. user@host.org).
reason - the reason provided by the administrator to banned you.
+
+
+
+ +

+membershipGranted

+
+void membershipGranted()
+
+
Called when an administrator grants your user membership to the room. This means that you + will be able to join the members-only room. +

+

+
+
+
+
+ +

+membershipRevoked

+
+void membershipRevoked()
+
+
Called when an administrator revokes your user membership to the room. This means that you + will not be able to join the members-only room. +

+

+
+
+
+
+ +

+moderatorGranted

+
+void moderatorGranted()
+
+
Called when an administrator grants moderator privileges to your user. This means that you + will be able to kick users, grant and revoke voice, invite other users, modify room's + subject plus all the partcipants privileges. +

+

+
+
+
+
+ +

+moderatorRevoked

+
+void moderatorRevoked()
+
+
Called when an administrator revokes moderator privileges from your user. This means that + you will no longer be able to kick users, grant and revoke voice, invite other users, + modify room's subject plus all the partcipants privileges. +

+

+
+
+
+
+ +

+ownershipGranted

+
+void ownershipGranted()
+
+
Called when an owner grants to your user ownership on the room. This means that you + will be able to change defining room features as well as perform all administrative + functions. +

+

+
+
+
+
+ +

+ownershipRevoked

+
+void ownershipRevoked()
+
+
Called when an owner revokes from your user ownership on the room. This means that you + will no longer be able to change defining room features as well as perform all + administrative functions. +

+

+
+
+
+
+ +

+adminGranted

+
+void adminGranted()
+
+
Called when an owner grants administrator privileges to your user. This means that you + will be able to perform administrative functions such as banning users and edit moderator + list. +

+

+
+
+
+
+ +

+adminRevoked

+
+void adminRevoked()
+
+
Called when an owner revokes administrator privileges from your user. This means that you + will no longer be able to perform administrative functions such as banning users and edit + moderator list. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,67 @@ + + + + + + +org.jivesoftware.smackx.muc (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smackx.muc + + + + +
+Interfaces  + +
+InvitationListener +
+InvitationRejectionListener +
+ParticipantStatusListener +
+SubjectUpdatedListener +
+UserStatusListener
+ + + + + + +
+Classes  + +
+Affiliate +
+DeafOccupantInterceptor +
+DefaultParticipantStatusListener +
+DefaultUserStatusListener +
+DiscussionHistory +
+HostedRoom +
+MultiUserChat +
+Occupant +
+RoomInfo
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,235 @@ + + + + + + +org.jivesoftware.smackx.muc (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smackx.muc +

+Classes and Interfaces that implement Multi-User Chat (MUC). +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
InvitationListenerA listener that is fired anytime an invitation to join a MUC room is received.
InvitationRejectionListenerA listener that is fired anytime an invitee declines or rejects an invitation.
ParticipantStatusListenerA listener that is fired anytime a participant's status in a room is changed, such as the + user being kicked, banned, or granted admin permissions.
SubjectUpdatedListenerA listener that is fired anytime a MUC room changes its subject.
UserStatusListenerA listener that is fired anytime your participant's status in a room is changed, such as the + user being kicked, banned, or granted admin permissions.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AffiliateRepresents an affiliation of a user to a given room.
DeafOccupantInterceptorPacket interceptor that will intercept presence packets sent to the MUC service to indicate + that the user wants to be a deaf occupant.
DefaultParticipantStatusListenerDefault implementation of the ParticipantStatusListener interface.
DefaultUserStatusListenerDefault implementation of the UserStatusListener interface.
DiscussionHistoryThe DiscussionHistory class controls the number of characters or messages to receive + when entering a room.
HostedRoomHosted rooms by a chat service may be discovered if they are configured to appear in the room + directory .
MultiUserChatA MultiUserChat is a conversation that takes place among many users in a virtual + room.
OccupantRepresents the information about an occupant in a given room.
RoomInfoRepresents the room information that was discovered using Service Discovery.
+  + +

+

+Package org.jivesoftware.smackx.muc Description +

+ +

+Classes and Interfaces that implement Multi-User Chat (MUC). +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/muc/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,155 @@ + + + + + + +org.jivesoftware.smackx.muc Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smackx.muc +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,93 @@ + + + + + + +org.jivesoftware.smackx (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smackx + + + + +
+Interfaces  + +
+MessageEventNotificationListener +
+MessageEventRequestListener +
+NodeInformationProvider +
+RosterExchangeListener
+ + + + + + +
+Classes  + +
+DefaultMessageEventRequestListener +
+Form +
+FormField +
+FormField.Option +
+GroupChatInvitation +
+GroupChatInvitation.Provider +
+MessageEventManager +
+MultipleRecipientInfo +
+MultipleRecipientManager +
+OfflineMessageHeader +
+OfflineMessageManager +
+PrivateDataManager +
+PrivateDataManager.PrivateDataIQProvider +
+RemoteRosterEntry +
+ReportedData +
+ReportedData.Column +
+ReportedData.Field +
+ReportedData.Row +
+RosterExchangeManager +
+ServiceDiscoveryManager +
+SharedGroupManager +
+XHTMLManager +
+XHTMLText
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,287 @@ + + + + + + +org.jivesoftware.smackx (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smackx +

+Smack extensions API. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
MessageEventNotificationListenerA listener that is fired anytime a message event notification is received.
MessageEventRequestListenerA listener that is fired anytime a message event request is received.
NodeInformationProviderThe NodeInformationProvider is responsible for providing information (i.e.
RosterExchangeListenerA listener that is fired anytime a roster exchange is received.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
DefaultMessageEventRequestListenerDefault implementation of the MessageEventRequestListener interface.
FormRepresents a Form for gathering data.
FormFieldRepresents a field of a form.
FormField.OptionRepresents the available option of a given FormField.
GroupChatInvitationA group chat invitation packet extension, which is used to invite other + users to a group chat room.
GroupChatInvitation.Provider 
MessageEventManagerManages message events requests and notifications.
MultipleRecipientInfoMultipleRecipientInfo keeps information about the multiple recipients extension included + in a received packet.
MultipleRecipientManagerA MultipleRecipientManager allows to send packets to multiple recipients by making use of + JEP-33: Extended Stanza Addressing.
OfflineMessageHeaderThe OfflineMessageHeader holds header information of an offline message.
OfflineMessageManagerThe OfflineMessageManager helps manage offline messages even before the user has sent an + available presence.
PrivateDataManagerManages private data, which is a mechanism to allow users to store arbitrary XML + data on an XMPP server.
PrivateDataManager.PrivateDataIQProviderAn IQ provider to parse IQ results containing private data.
RemoteRosterEntryRepresents a roster item, which consists of a JID and , their name and + the groups the roster item belongs to.
ReportedDataRepresents a set of data results returned as part of a search.
ReportedData.ColumnRepresents the columns definition of the reported data.
ReportedData.Field 
ReportedData.Row 
RosterExchangeManagerManages Roster exchanges.
ServiceDiscoveryManagerManages discovery of services in XMPP entities.
SharedGroupManagerA SharedGroupManager provides services for discovering the shared groups where a user belongs.
XHTMLManagerManages XHTML formatted texts within messages.
XHTMLTextAn XHTMLText represents formatted text.
+  + +

+

+Package org.jivesoftware.smackx Description +

+ +

+Smack extensions API. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,156 @@ + + + + + + +org.jivesoftware.smackx Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smackx +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.Activate.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.Activate.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.Activate.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,404 @@ + + + + + + +Bytestream.Activate (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class Bytestream.Activate

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.Bytestream.Activate
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
Enclosing class:
Bytestream
+
+
+
+
public static class Bytestream.Activate
extends Object
implements PacketExtension
+ + +

+The packet sent by the stream initiator to the stream proxy to activate + the connection. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static StringELEMENTNAME + +
+           
+ StringNAMESPACE + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Bytestream.Activate(String target) + +
+          Default constructor specifying the target of the stream.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ StringgetTarget() + +
+          Returns the target of the activation.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NAMESPACE

+
+public String NAMESPACE
+
+
+
+
+
+ +

+ELEMENTNAME

+
+public static String ELEMENTNAME
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Bytestream.Activate

+
+public Bytestream.Activate(String target)
+
+
Default constructor specifying the target of the stream. +

+

+
Parameters:
target - The target of the stream.
+
+ + + + + + + + +
+Method Detail
+ +

+getTarget

+
+public String getTarget()
+
+
Returns the target of the activation. +

+

+
+
+
+ +
Returns:
Returns the target of the activation.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.Mode.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.Mode.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.Mode.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,308 @@ + + + + + + +Bytestream.Mode (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class Bytestream.Mode

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.Bytestream.Mode
+
+
+
Enclosing class:
Bytestream
+
+
+
+
public static class Bytestream.Mode
extends Object
+ + +

+The stream can be either a TCP stream or a UDP stream. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static Bytestream.ModeTCP + +
+          A TCP based stream.
+static Bytestream.ModeUDP + +
+          A UDP based stream.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object obj) + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+TCP

+
+public static Bytestream.Mode TCP
+
+
A TCP based stream. +

+

+
+
+
+ +

+UDP

+
+public static Bytestream.Mode UDP
+
+
A UDP based stream. +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.StreamHost.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.StreamHost.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.StreamHost.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,485 @@ + + + + + + +Bytestream.StreamHost (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class Bytestream.StreamHost

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.Bytestream.StreamHost
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
Enclosing class:
Bytestream
+
+
+
+
public static class Bytestream.StreamHost
extends Object
implements PacketExtension
+ + +

+Packet extension that represents a potential Socks5 proxy for the file + transfer. Stream hosts are forwared to the target of the file transfer + who then chooses and connects to one. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static StringELEMENTNAME + +
+           
+static StringNAMESPACE + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Bytestream.StreamHost(String JID, + String address) + +
+          Default constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetAddress() + +
+          Returns the internet address of the stream host.
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetJID() + +
+          Returns the jabber ID of the stream host.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ intgetPort() + +
+          Returns the port on which the potential stream host would accept the + connection.
+ voidsetPort(int port) + +
+          Sets the port of the stream host.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NAMESPACE

+
+public static String NAMESPACE
+
+
+
+
+
+ +

+ELEMENTNAME

+
+public static String ELEMENTNAME
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Bytestream.StreamHost

+
+public Bytestream.StreamHost(String JID,
+                             String address)
+
+
Default constructor. +

+

+
Parameters:
JID - The jabber ID of the stream host.
address - The internet address of the stream host.
+
+ + + + + + + + +
+Method Detail
+ +

+getJID

+
+public String getJID()
+
+
Returns the jabber ID of the stream host. +

+

+
+
+
+ +
Returns:
Returns the jabber ID of the stream host.
+
+
+
+ +

+getAddress

+
+public String getAddress()
+
+
Returns the internet address of the stream host. +

+

+
+
+
+ +
Returns:
Returns the internet address of the stream host.
+
+
+
+ +

+setPort

+
+public void setPort(int port)
+
+
Sets the port of the stream host. +

+

+
+
+
+
Parameters:
port - The port on which the potential stream host would accept + the connection.
+
+
+
+ +

+getPort

+
+public int getPort()
+
+
Returns the port on which the potential stream host would accept the + connection. +

+

+
+
+
+ +
Returns:
Returns the port on which the potential stream host would + accept the connection.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.StreamHostUsed.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.StreamHostUsed.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.StreamHostUsed.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,405 @@ + + + + + + +Bytestream.StreamHostUsed (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class Bytestream.StreamHostUsed

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.Bytestream.StreamHostUsed
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
Enclosing class:
Bytestream
+
+
+
+
public static class Bytestream.StreamHostUsed
extends Object
implements PacketExtension
+ + +

+After selected a Socks5 stream host and successfully connecting, the + target of the file transfer returns a byte stream packet with the stream + host used extension. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static StringELEMENTNAME + +
+           
+ StringNAMESPACE + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Bytestream.StreamHostUsed(String JID) + +
+          Default constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetJID() + +
+          Returns the jabber ID of the selected stream host.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NAMESPACE

+
+public String NAMESPACE
+
+
+
+
+
+ +

+ELEMENTNAME

+
+public static String ELEMENTNAME
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Bytestream.StreamHostUsed

+
+public Bytestream.StreamHostUsed(String JID)
+
+
Default constructor. +

+

+
Parameters:
JID - The jabber ID of the selected stream host.
+
+ + + + + + + + +
+Method Detail
+ +

+getJID

+
+public String getJID()
+
+
Returns the jabber ID of the selected stream host. +

+

+
+
+
+ +
Returns:
Returns the jabber ID of the selected stream host.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Bytestream.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,711 @@ + + + + + + +Bytestream (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class Bytestream

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.Bytestream
+
+
+
+
public class Bytestream
extends IQ
+ + +

+A packet representing part of a Socks5 Bytestream negotiation. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Nested Class Summary
+static classBytestream.Activate + +
+          The packet sent by the stream initiator to the stream proxy to activate + the connection.
+static classBytestream.Mode + +
+          The stream can be either a TCP stream or a UDP stream.
+static classBytestream.StreamHost + +
+          Packet extension that represents a potential Socks5 proxy for the file + transfer.
+static classBytestream.StreamHostUsed + +
+          After selected a Socks5 stream host and successfully connecting, the + target of the file transfer returns a byte stream packet with the stream + host used extension.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + + + + +
+Constructor Summary
Bytestream() + +
+          The default constructor
Bytestream(String SID) + +
+          A constructor where the session ID can be specified.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddStreamHost(Bytestream.StreamHost host) + +
+          Adds a potential stream host that the remote user can transfer the file + through.
+ Bytestream.StreamHostaddStreamHost(String JID, + String address) + +
+          Adds a potential stream host that the remote user can connect to to + receive the file.
+ Bytestream.StreamHostaddStreamHost(String JID, + String address, + int port) + +
+          Adds a potential stream host that the remote user can connect to to + receive the file.
+ intcountStreamHosts() + +
+          Returns the count of stream hosts contained in this packet.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ Bytestream.ModegetMode() + +
+          Returns the transport mode.
+ StringgetSessionID() + +
+          Returns the session ID related to the Byte Stream negotiation.
+ Bytestream.StreamHostgetStreamHost(String JID) + +
+          Returns the stream host related to the given jabber ID, or null if there + is none.
+ CollectiongetStreamHosts() + +
+          Returns the list of stream hosts contained in the packet.
+ Bytestream.ActivategetToActivate() + +
+          Returns the activate element of the packet sent to the proxy host to + verify the identity of the initiator and match them to the appropriate + stream.
+ Bytestream.StreamHostUsedgetUsedHost() + +
+          Returns the Socks5 host connected to by the remote user.
+ voidsetMode(Bytestream.Mode mode) + +
+          Set the transport mode.
+ voidsetSessionID(String sessionID) + +
+          Set the session ID related to the Byte Stream.
+ voidsetToActivate(String targetID) + +
+          Upon the response from the target of the used host the activate packet is + sent to the Socks5 proxy.
+ voidsetUsedHost(String JID) + +
+          Upon connecting to the stream host the target of the stream replys to the + initiator with the jabber id of the Socks5 host that they used.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Bytestream

+
+public Bytestream()
+
+
The default constructor +

+

+
+ +

+Bytestream

+
+public Bytestream(String SID)
+
+
A constructor where the session ID can be specified. +

+

+
Parameters:
SID - The session ID related to the negotiation.
See Also:
setSessionID(String)
+
+ + + + + + + + +
+Method Detail
+ +

+setSessionID

+
+public void setSessionID(String sessionID)
+
+
Set the session ID related to the Byte Stream. The session ID is a unique + identifier used to differentiate between stream negotations. +

+

+
Parameters:
sessionID -
+
+
+
+ +

+getSessionID

+
+public String getSessionID()
+
+
Returns the session ID related to the Byte Stream negotiation. +

+

+ +
Returns:
Returns the session ID related to the Byte Stream negotiation.
See Also:
setSessionID(String)
+
+
+
+ +

+setMode

+
+public void setMode(Bytestream.Mode mode)
+
+
Set the transport mode. This should be put in the initiation of the + interaction. +

+

+
Parameters:
mode -
See Also:
Bytestream.Mode
+
+
+
+ +

+getMode

+
+public Bytestream.Mode getMode()
+
+
Returns the transport mode. +

+

+ +
Returns:
Returns the transport mode.
See Also:
setMode(Mode)
+
+
+
+ +

+addStreamHost

+
+public Bytestream.StreamHost addStreamHost(String JID,
+                                           String address)
+
+
Adds a potential stream host that the remote user can connect to to + receive the file. +

+

+
Parameters:
JID - The jabber ID of the stream host.
address - The internet address of the stream host. +
Returns:
The added stream host.
+
+
+
+ +

+addStreamHost

+
+public Bytestream.StreamHost addStreamHost(String JID,
+                                           String address,
+                                           int port)
+
+
Adds a potential stream host that the remote user can connect to to + receive the file. +

+

+
Parameters:
JID - The jabber ID of the stream host.
address - The internet address of the stream host.
port - The port on which the remote host is seeking connections. +
Returns:
The added stream host.
+
+
+
+ +

+addStreamHost

+
+public void addStreamHost(Bytestream.StreamHost host)
+
+
Adds a potential stream host that the remote user can transfer the file + through. +

+

+
Parameters:
host - The potential stream host.
+
+
+
+ +

+getStreamHosts

+
+public Collection getStreamHosts()
+
+
Returns the list of stream hosts contained in the packet. +

+

+ +
Returns:
Returns the list of stream hosts contained in the packet.
+
+
+
+ +

+getStreamHost

+
+public Bytestream.StreamHost getStreamHost(String JID)
+
+
Returns the stream host related to the given jabber ID, or null if there + is none. +

+

+
Parameters:
JID - The jabber ID of the desired stream host. +
Returns:
Returns the stream host related to the given jabber ID, or null + if there is none.
+
+
+
+ +

+countStreamHosts

+
+public int countStreamHosts()
+
+
Returns the count of stream hosts contained in this packet. +

+

+ +
Returns:
Returns the count of stream hosts contained in this packet.
+
+
+
+ +

+setUsedHost

+
+public void setUsedHost(String JID)
+
+
Upon connecting to the stream host the target of the stream replys to the + initiator with the jabber id of the Socks5 host that they used. +

+

+
Parameters:
JID - The jabber ID of the used host.
+
+
+
+ +

+getUsedHost

+
+public Bytestream.StreamHostUsed getUsedHost()
+
+
Returns the Socks5 host connected to by the remote user. +

+

+ +
Returns:
Returns the Socks5 host connected to by the remote user.
+
+
+
+ +

+getToActivate

+
+public Bytestream.Activate getToActivate()
+
+
Returns the activate element of the packet sent to the proxy host to + verify the identity of the initiator and match them to the appropriate + stream. +

+

+ +
Returns:
Returns the activate element of the packet sent to the proxy host + to verify the identity of the initiator and match them to the + appropriate stream.
+
+
+
+ +

+setToActivate

+
+public void setToActivate(String targetID)
+
+
Upon the response from the target of the used host the activate packet is + sent to the Socks5 proxy. The proxy will activate the stream or return an + error after verifying the identity of the initiator, using the activate + packet. +

+

+
Parameters:
targetID - The jabber ID of the target of the file transfer.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DataForm.Item.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DataForm.Item.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DataForm.Item.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,280 @@ + + + + + + +DataForm.Item (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DataForm.Item

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.DataForm.Item
+
+
+
Enclosing class:
DataForm
+
+
+
+
public static class DataForm.Item
extends Object
+ + +

+Represents items of reported data. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DataForm.Item(List fields) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ IteratorgetFields() + +
+          Returns the fields that define the data that goes with the item.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DataForm.Item

+
+public DataForm.Item(List fields)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getFields

+
+public Iterator getFields()
+
+
Returns the fields that define the data that goes with the item. +

+

+ +
Returns:
the fields that define the data that goes with the item.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DataForm.ReportedData.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DataForm.ReportedData.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DataForm.ReportedData.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,281 @@ + + + + + + +DataForm.ReportedData (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DataForm.ReportedData

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.DataForm.ReportedData
+
+
+
Enclosing class:
DataForm
+
+
+
+
public static class DataForm.ReportedData
extends Object
+ + +

+Represents the fields that will be returned from a search. This information is useful when + you try to use the jabber:iq:search namespace to return dynamic form information. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DataForm.ReportedData(List fields) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ IteratorgetFields() + +
+          Returns the fields returned from a search.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DataForm.ReportedData

+
+public DataForm.ReportedData(List fields)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getFields

+
+public Iterator getFields()
+
+
Returns the fields returned from a search. +

+

+ +
Returns:
the fields returned from a search.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DataForm.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DataForm.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DataForm.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,660 @@ + + + + + + +DataForm (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DataForm

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.DataForm
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class DataForm
extends Object
implements PacketExtension
+ + +

+Represents a form that could be use for gathering data as well as for reporting data + returned from a search. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classDataForm.Item + +
+          Represents items of reported data.
+static classDataForm.ReportedData + +
+          Represents the fields that will be returned from a search.
+  + + + + + + + + + + +
+Constructor Summary
DataForm(String type) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddField(FormField field) + +
+          Adds a new field as part of the form.
+ voidaddInstruction(String instruction) + +
+          Adds a new instruction to the list of instructions that explain how to fill out the form + and what the form is about.
+ voidaddItem(DataForm.Item item) + +
+          Adds a new item returned from a search.
+ StringgetElementName() + +
+          Returns the root element name.
+ IteratorgetFields() + +
+          Returns an Iterator for the fields that are part of the form.
+ IteratorgetInstructions() + +
+          Returns an Iterator for the list of instructions that explain how to fill out the form and + what the form is about.
+ IteratorgetItems() + +
+          Returns an Iterator for the items returned from a search.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ DataForm.ReportedDatagetReportedData() + +
+          Returns the fields that will be returned from a search.
+ StringgetTitle() + +
+          Returns the description of the data.
+ StringgetType() + +
+          Returns the meaning of the data within the context.
+ voidsetInstructions(List instructions) + +
+          Sets the list of instructions that explain how to fill out the form and what the form is + about.
+ voidsetReportedData(DataForm.ReportedData reportedData) + +
+          Sets the fields that will be returned from a search.
+ voidsetTitle(String title) + +
+          Sets the description of the data.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DataForm

+
+public DataForm(String type)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public String getType()
+
+
Returns the meaning of the data within the context. The data could be part of a form + to fill out, a form submission or data results.

+ + Possible form types are: +

    +
  • form -> This packet contains a form to fill out. Display it to the user (if your + program can).
  • +
  • submit -> The form is filled out, and this is the data that is being returned from + the form.
  • +
  • cancel -> The form was cancelled. Tell the asker that piece of information.
  • +
  • result -> Data results being returned from a search, or some other query.
  • +
+

+

+
+
+
+ +
Returns:
the form's type.
+
+
+
+ +

+getTitle

+
+public String getTitle()
+
+
Returns the description of the data. It is similar to the title on a web page or an X + window. You can put a on either a form to fill out, or a set of data results. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>description of the data.</DL> +</DD> +</DL> +<HR> + +<A NAME="getInstructions()"><!-- --></A><H3> +getInstructions</H3> +<PRE> +public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>getInstructions</B>()</PRE> +<DL> +<DD>Returns an Iterator for the list of instructions that explain how to fill out the form and + what the form is about. The dataform could include multiple instructions since each + instruction could not contain newlines characters. Join the instructions together in order + to show them to the user. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>an Iterator for the list of instructions that explain how to fill out the form.</DL> +</DD> +</DL> +<HR> + +<A NAME="getReportedData()"><!-- --></A><H3> +getReportedData</H3> +<PRE> +public <A HREF="../../../../org/jivesoftware/smackx/packet/DataForm.ReportedData.html" title="class in org.jivesoftware.smackx.packet">DataForm.ReportedData</A> <B>getReportedData</B>()</PRE> +<DL> +<DD>Returns the fields that will be returned from a search. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>fields that will be returned from a search.</DL> +</DD> +</DL> +<HR> + +<A NAME="getItems()"><!-- --></A><H3> +getItems</H3> +<PRE> +public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>getItems</B>()</PRE> +<DL> +<DD>Returns an Iterator for the items returned from a search. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>an Iterator for the items returned from a search.</DL> +</DD> +</DL> +<HR> + +<A NAME="getFields()"><!-- --></A><H3> +getFields</H3> +<PRE> +public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>getFields</B>()</PRE> +<DL> +<DD>Returns an Iterator for the fields that are part of the form. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>an Iterator for the fields that are part of the form.</DL> +</DD> +</DL> +<HR> + +<A NAME="getElementName()"><!-- --></A><H3> +getElementName</H3> +<PRE> +public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getElementName</B>()</PRE> +<DL> +<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/smack/packet/PacketExtension.html#getElementName()">PacketExtension</A></CODE></B></DD> +<DD>Returns the root element name. +<P> +<DD><DL> +<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/smack/packet/PacketExtension.html#getElementName()">getElementName</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/smack/packet/PacketExtension.html" title="interface in org.jivesoftware.smack.packet">PacketExtension</A></CODE></DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>the element name.</DL> +</DD> +</DL> +<HR> + +<A NAME="getNamespace()"><!-- --></A><H3> +getNamespace</H3> +<PRE> +public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getNamespace</B>()</PRE> +<DL> +<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/smack/packet/PacketExtension.html#getNamespace()">PacketExtension</A></CODE></B></DD> +<DD>Returns the root element XML namespace. +<P> +<DD><DL> +<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/smack/packet/PacketExtension.html#getNamespace()">getNamespace</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/smack/packet/PacketExtension.html" title="interface in org.jivesoftware.smack.packet">PacketExtension</A></CODE></DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>the namespace.</DL> +</DD> +</DL> +<HR> + +<A NAME="setTitle(java.lang.String)"><!-- --></A><H3> +setTitle</H3> +<PRE> +public void <B>setTitle</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> title)</PRE> +<DL> +<DD>Sets the description of the data. It is similar to the title on a web page or an X window. + You can put a <title/> on either a form to fill out, or a set of data results. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>title</CODE> - description of the data.</DL> +</DD> +</DL> +<HR> + +<A NAME="setInstructions(java.util.List)"><!-- --></A><H3> +setInstructions</H3> +<PRE> +public void <B>setInstructions</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/List.html" title="class or interface in java.util">List</A> instructions)</PRE> +<DL> +<DD>Sets the list of instructions that explain how to fill out the form and what the form is + about. The dataform could include multiple instructions since each instruction could not + contain newlines characters. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>instructions</CODE> - list of instructions that explain how to fill out the form.</DL> +</DD> +</DL> +<HR> + +<A NAME="setReportedData(org.jivesoftware.smackx.packet.DataForm.ReportedData)"><!-- --></A><H3> +setReportedData</H3> +<PRE> +public void <B>setReportedData</B>(<A HREF="../../../../org/jivesoftware/smackx/packet/DataForm.ReportedData.html" title="class in org.jivesoftware.smackx.packet">DataForm.ReportedData</A> reportedData)</PRE> +<DL> +<DD>Sets the fields that will be returned from a search. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>reportedData</CODE> - the fields that will be returned from a search.</DL> +</DD> +</DL> +<HR> + +<A NAME="addField(org.jivesoftware.smackx.FormField)"><!-- --></A><H3> +addField</H3> +<PRE> +public void <B>addField</B>(<A HREF="../../../../org/jivesoftware/smackx/FormField.html" title="class in org.jivesoftware.smackx">FormField</A> field)</PRE> +<DL> +<DD>Adds a new field as part of the form. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>field</CODE> - the field to add to the form.</DL> +</DD> +</DL> +<HR> + +<A NAME="addInstruction(java.lang.String)"><!-- --></A><H3> +addInstruction</H3> +<PRE> +public void <B>addInstruction</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> instruction)</PRE> +<DL> +<DD>Adds a new instruction to the list of instructions that explain how to fill out the form + and what the form is about. The dataform could include multiple instructions since each + instruction could not contain newlines characters. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>instruction</CODE> - the new instruction that explain how to fill out the form.</DL> +</DD> +</DL> +<HR> + +<A NAME="addItem(org.jivesoftware.smackx.packet.DataForm.Item)"><!-- --></A><H3> +addItem</H3> +<PRE> +public void <B>addItem</B>(<A HREF="../../../../org/jivesoftware/smackx/packet/DataForm.Item.html" title="class in org.jivesoftware.smackx.packet">DataForm.Item</A> item)</PRE> +<DL> +<DD>Adds a new item returned from a search. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>item</CODE> - the item returned from a search.</DL> +</DD> +</DL> +<HR> + +<A NAME="toXML()"><!-- --></A><H3> +toXML</H3> +<PRE> +public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toXML</B>()</PRE> +<DL> +<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/smack/packet/PacketExtension.html#toXML()">PacketExtension</A></CODE></B></DD> +<DD>Returns the XML reppresentation of the PacketExtension. +<P> +<DD><DL> +<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/smack/packet/PacketExtension.html#toXML()">toXML</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/smack/packet/PacketExtension.html" title="interface in org.jivesoftware.smack.packet">PacketExtension</A></CODE></DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>the packet extension as XML.</DL> +</DD> +</DL> +<!-- ========= END OF CLASS DATA ========= --> +<HR> + + +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<A NAME="navbar_bottom"><!-- --></A> +<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> +<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> +<TR> +<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> +<A NAME="navbar_bottom_firstrow"><!-- --></A> +<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> + <TR ALIGN="center" VALIGN="top"> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> + </TR> +</TABLE> +</TD> +<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> +<b>Smack</b></EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../org/jivesoftware/smackx/packet/Bytestream.StreamHostUsed.html" title="class in org.jivesoftware.smackx.packet"><B>PREV CLASS</B></A>  + <A HREF="../../../../org/jivesoftware/smackx/packet/DataForm.Item.html" title="class in org.jivesoftware.smackx.packet"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../index.html?org/jivesoftware/smackx/packet/DataForm.html" target="_top"><B>FRAMES</B></A>   + <A HREF="DataForm.html" target="_top"><B>NO FRAMES</B></A>   + <SCRIPT type="text/javascript"> + <!-- + if(window==top) { + document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); + } + //--> +</SCRIPT> +<NOSCRIPT> + <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> +</NOSCRIPT> + + +</FONT></TD> +</TR> +<TR> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> + SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> +DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> +</TR> +</TABLE> +<A NAME="skip-navbar_bottom"></A> +<!-- ======== END OF BOTTOM NAVBAR ======= --> + +<HR> +<i>Copyright © 2003 Jive Software. </i> +</BODY> +</HTML> Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DefaultPrivateData.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DefaultPrivateData.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DefaultPrivateData.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,416 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc (build 1.5.0_06) on Thu Mar 09 12:10:18 ART 2006 --> +<TITLE> +DefaultPrivateData (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DefaultPrivateData

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.DefaultPrivateData
+
+
+
All Implemented Interfaces:
PrivateData
+
+
+
+
public class DefaultPrivateData
extends Object
implements PrivateData
+ + +

+Default implementation of the PrivateData interface. Unless a PrivateDataProvider + is registered with the PrivateDataManager class, instances of this class will be + returned when getting private data.

+ + This class provides a very simple representation of an XML sub-document. Each element + is a key in a Map with its CDATA being the value. For example, given the following + XML sub-document: + +

+ <foo xmlns="http://bar.com">
+     <color>blue</color>
+     <food>pizza</food>
+ </foo>
+ + In this case, getValue("color") would return "blue", and getValue("food") would + return "pizza". This parsing mechanism mechanism is very simplistic and will not work + as desired in all cases (for example, if some of the elements have attributes. In those + cases, a custom PrivateDataProvider should be used. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DefaultPrivateData(String elementName, + String namespace) + +
+          Creates a new generic private data object.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the XML element name of the private data sub-packet root element.
+ IteratorgetNames() + +
+          Returns an Iterator for the names that can be used to get + values of the private data.
+ StringgetNamespace() + +
+          Returns the XML namespace of the private data sub-packet root element.
+ StringgetValue(String name) + +
+          Returns a value given a name.
+ voidsetValue(String name, + String value) + +
+          Sets a value given the name.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PrivateData.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DefaultPrivateData

+
+public DefaultPrivateData(String elementName,
+                          String namespace)
+
+
Creates a new generic private data object. +

+

+
Parameters:
elementName - the name of the element of the XML sub-document.
namespace - the namespace of the element.
+
+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+public String getElementName()
+
+
Returns the XML element name of the private data sub-packet root element. +

+

+
Specified by:
getElementName in interface PrivateData
+
+
+ +
Returns:
the XML element name of the packet extension.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Returns the XML namespace of the private data sub-packet root element. +

+

+
Specified by:
getNamespace in interface PrivateData
+
+
+ +
Returns:
the XML namespace of the packet extension.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PrivateData
+
Returns the XML reppresentation of the PrivateData. +

+

+
Specified by:
toXML in interface PrivateData
+
+
+ +
Returns:
the private data as XML.
+
+
+
+ +

+getNames

+
+public Iterator getNames()
+
+
Returns an Iterator for the names that can be used to get + values of the private data. +

+

+
+
+
+ +
Returns:
an Iterator for the names.
+
+
+
+ +

+getValue

+
+public String getValue(String name)
+
+
Returns a value given a name. +

+

+
+
+
+
Parameters:
name - the name. +
Returns:
the value.
+
+
+
+ +

+setValue

+
+public void setValue(String name,
+                     String value)
+
+
Sets a value given the name. +

+

+
+
+
+
Parameters:
name - the name.
value - the value.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DelayInformation.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DelayInformation.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DelayInformation.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,515 @@ + + + + + + +DelayInformation (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DelayInformation

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.DelayInformation
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class DelayInformation
extends Object
implements PacketExtension
+ + +

+Represents timestamp information about data stored for later delivery. A DelayInformation will + always includes the timestamp when the packet was originally sent and may include more + information such as the JID of the entity that originally sent the packet as well as the reason + for the dealy.

+ + For more information see JEP-91. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static SimpleDateFormatNEW_UTC_FORMAT + +
+          New date format based on JEP-82 that some clients may use when sending delayed dates.
+static SimpleDateFormatUTC_FORMAT + +
+           
+  + + + + + + + + + + +
+Constructor Summary
DelayInformation(Date stamp) + +
+          Creates a new instance with the specified timestamp.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetFrom() + +
+          Returns the JID of the entity that originally sent the packet or that delayed the + delivery of the packet or null if this information is not available.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ StringgetReason() + +
+          Returns a natural-language description of the reason for the delay or null if + this information is not available.
+ DategetStamp() + +
+          Returns the timstamp when the packet was originally sent.
+ voidsetFrom(String from) + +
+          Sets the JID of the entity that originally sent the packet or that delayed the + delivery of the packet or null if this information is not available.
+ voidsetReason(String reason) + +
+          Sets a natural-language description of the reason for the delay or null if + this information is not available.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+UTC_FORMAT

+
+public static SimpleDateFormat UTC_FORMAT
+
+
+
+
+
+ +

+NEW_UTC_FORMAT

+
+public static SimpleDateFormat NEW_UTC_FORMAT
+
+
New date format based on JEP-82 that some clients may use when sending delayed dates. + JEP-91 is using a SHOULD other servers or clients may be using this format instead of the + old UTC format. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+DelayInformation

+
+public DelayInformation(Date stamp)
+
+
Creates a new instance with the specified timestamp. +

+

+ + + + + + + + +
+Method Detail
+ +

+getFrom

+
+public String getFrom()
+
+
Returns the JID of the entity that originally sent the packet or that delayed the + delivery of the packet or null if this information is not available. +

+

+
+
+
+ +
Returns:
the JID of the entity that originally sent the packet or that delayed the + delivery of the packet.
+
+
+
+ +

+setFrom

+
+public void setFrom(String from)
+
+
Sets the JID of the entity that originally sent the packet or that delayed the + delivery of the packet or null if this information is not available. +

+

+
+
+
+
Parameters:
from - the JID of the entity that originally sent the packet.
+
+
+
+ +

+getStamp

+
+public Date getStamp()
+
+
Returns the timstamp when the packet was originally sent. The returned Date is + be understood as UTC. +

+

+
+
+
+ +
Returns:
the timstamp when the packet was originally sent.
+
+
+
+ +

+getReason

+
+public String getReason()
+
+
Returns a natural-language description of the reason for the delay or null if + this information is not available. +

+

+
+
+
+ +
Returns:
a natural-language description of the reason for the delay or null.
+
+
+
+ +

+setReason

+
+public void setReason(String reason)
+
+
Sets a natural-language description of the reason for the delay or null if + this information is not available. +

+

+
+
+
+
Parameters:
reason - a natural-language description of the reason for the delay or null.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverInfo.Feature.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverInfo.Feature.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverInfo.Feature.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,283 @@ + + + + + + +DiscoverInfo.Feature (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DiscoverInfo.Feature

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.DiscoverInfo.Feature
+
+
+
Enclosing class:
DiscoverInfo
+
+
+
+
public static class DiscoverInfo.Feature
extends Object
+ + +

+Represents the features offered by the item. This information helps requestors determine + what actions are possible with regard to this item (registration, search, join, etc.) + as well as specific feature types of interest, if any (e.g., for the purpose of feature + negotiation). +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
DiscoverInfo.Feature(String variable) + +
+          Creates a new feature offered by an XMPP entity or item.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetVar() + +
+          Returns the feature's variable.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DiscoverInfo.Feature

+
+public DiscoverInfo.Feature(String variable)
+
+
Creates a new feature offered by an XMPP entity or item. +

+

+
Parameters:
variable - the feature's variable.
+
+ + + + + + + + +
+Method Detail
+ +

+getVar

+
+public String getVar()
+
+
Returns the feature's variable. +

+

+ +
Returns:
the feature's variable.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverInfo.Identity.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverInfo.Identity.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverInfo.Identity.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,355 @@ + + + + + + +DiscoverInfo.Identity (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DiscoverInfo.Identity

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.DiscoverInfo.Identity
+
+
+
Enclosing class:
DiscoverInfo
+
+
+
+
public static class DiscoverInfo.Identity
extends Object
+ + +

+Represents the identity of a given XMPP entity. An entity may have many identities but all + the identities SHOULD have the same name.

+ + Refer to Jabber::Registrar + in order to get the official registry of values for the category and type + attributes. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
DiscoverInfo.Identity(String category, + String name) + +
+          Creates a new identity for an XMPP entity.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetCategory() + +
+          Returns the entity's category.
+ StringgetName() + +
+          Returns the identity's name.
+ StringgetType() + +
+          Returns the entity's type.
+ voidsetType(String type) + +
+          Sets the entity's type.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DiscoverInfo.Identity

+
+public DiscoverInfo.Identity(String category,
+                             String name)
+
+
Creates a new identity for an XMPP entity. +

+

+
Parameters:
category - the entity's category.
name - the entity's name.
+
+ + + + + + + + +
+Method Detail
+ +

+getCategory

+
+public String getCategory()
+
+
Returns the entity's category. To get the official registry of values for the + 'category' attribute refer to Jabber::Registrar +

+

+ +
Returns:
the entity's category.
+
+
+
+ +

+getName

+
+public String getName()
+
+
Returns the identity's name. +

+

+ +
Returns:
the identity's name.
+
+
+
+ +

+getType

+
+public String getType()
+
+
Returns the entity's type. To get the official registry of values for the + 'type' attribute refer to Jabber::Registrar +

+

+ +
Returns:
the entity's type.
+
+
+
+ +

+setType

+
+public void setType(String type)
+
+
Sets the entity's type. To get the official registry of values for the + 'type' attribute refer to Jabber::Registrar +

+

+
Parameters:
type - the identity's type.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverInfo.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverInfo.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverInfo.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,480 @@ + + + + + + +DiscoverInfo (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DiscoverInfo

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.DiscoverInfo
+
+
+
+
public class DiscoverInfo
extends IQ
+ + +

+A DiscoverInfo IQ packet, which is used by XMPP clients to request and receive information + to/from other XMPP entities.

+ + The received information may contain one or more identities of the requested XMPP entity, and + a list of supported features by the requested XMPP entity. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classDiscoverInfo.Feature + +
+          Represents the features offered by the item.
+static classDiscoverInfo.Identity + +
+          Represents the identity of a given XMPP entity.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
DiscoverInfo() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFeature(String feature) + +
+          Adds a new feature to the discovered information.
+ voidaddIdentity(DiscoverInfo.Identity identity) + +
+          Adds a new identity of the requested entity to the discovered information.
+ booleancontainsFeature(String feature) + +
+          Returns true if the specified feature is part of the discovered information.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ IteratorgetIdentities() + +
+          Returns the discovered identities of an XMPP entity.
+ StringgetNode() + +
+          Returns the node attribute that supplements the 'jid' attribute.
+ voidsetNode(String node) + +
+          Sets the node attribute that supplements the 'jid' attribute.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DiscoverInfo

+
+public DiscoverInfo()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addFeature

+
+public void addFeature(String feature)
+
+
Adds a new feature to the discovered information. +

+

+
Parameters:
feature - the discovered feature
+
+
+
+ +

+addIdentity

+
+public void addIdentity(DiscoverInfo.Identity identity)
+
+
Adds a new identity of the requested entity to the discovered information. +

+

+
Parameters:
identity - the discovered entity's identity
+
+
+
+ +

+getIdentities

+
+public Iterator getIdentities()
+
+
Returns the discovered identities of an XMPP entity. +

+

+ +
Returns:
an Iterator on the discoveted identities
+
+
+
+ +

+getNode

+
+public String getNode()
+
+
Returns the node attribute that supplements the 'jid' attribute. A node is merely + something that is associated with a JID and for which the JID can provide information.

+ + Node attributes SHOULD be used only when trying to provide or query information which + is not directly addressable. +

+

+ +
Returns:
the node attribute that supplements the 'jid' attribute
+
+
+
+ +

+setNode

+
+public void setNode(String node)
+
+
Sets the node attribute that supplements the 'jid' attribute. A node is merely + something that is associated with a JID and for which the JID can provide information.

+ + Node attributes SHOULD be used only when trying to provide or query information which + is not directly addressable. +

+

+
Parameters:
node - the node attribute that supplements the 'jid' attribute
+
+
+
+ +

+containsFeature

+
+public boolean containsFeature(String feature)
+
+
Returns true if the specified feature is part of the discovered information. +

+

+
Parameters:
feature - the feature to check +
Returns:
true if the requestes feature has been discovered
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverItems.Item.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverItems.Item.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverItems.Item.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,486 @@ + + + + + + +DiscoverItems.Item (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DiscoverItems.Item

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.DiscoverItems.Item
+
+
+
Enclosing class:
DiscoverItems
+
+
+
+
public static class DiscoverItems.Item
extends Object
+ + +

+An item is associated with an XMPP Entity, usually thought of a children of the parent + entity and normally are addressable as a JID.

+ + An item associated with an entity may not be addressable as a JID. In order to handle + such items, Service Discovery uses an optional 'node' attribute that supplements the + 'jid' attribute. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static StringREMOVE_ACTION + +
+          Request to remove the item.
+static StringUPDATE_ACTION + +
+          Request to create or update the item.
+  + + + + + + + + + + +
+Constructor Summary
DiscoverItems.Item(String entityID) + +
+          Create a new Item associated with a given entity.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetAction() + +
+          Returns the action that specifies the action being taken for this item.
+ StringgetEntityID() + +
+          Returns the entity's ID.
+ StringgetName() + +
+          Returns the entity's name.
+ StringgetNode() + +
+          Returns the node attribute that supplements the 'jid' attribute.
+ voidsetAction(String action) + +
+          Sets the action that specifies the action being taken for this item.
+ voidsetName(String name) + +
+          Sets the entity's name.
+ voidsetNode(String node) + +
+          Sets the node attribute that supplements the 'jid' attribute.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+UPDATE_ACTION

+
+public static final String UPDATE_ACTION
+
+
Request to create or update the item. +

+

+
See Also:
Constant Field Values
+
+
+ +

+REMOVE_ACTION

+
+public static final String REMOVE_ACTION
+
+
Request to remove the item. +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+DiscoverItems.Item

+
+public DiscoverItems.Item(String entityID)
+
+
Create a new Item associated with a given entity. +

+

+
Parameters:
entityID - the id of the entity that contains the item
+
+ + + + + + + + +
+Method Detail
+ +

+getEntityID

+
+public String getEntityID()
+
+
Returns the entity's ID. +

+

+ +
Returns:
the entity's ID.
+
+
+
+ +

+getName

+
+public String getName()
+
+
Returns the entity's name. +

+

+ +
Returns:
the entity's name.
+
+
+
+ +

+setName

+
+public void setName(String name)
+
+
Sets the entity's name. +

+

+
Parameters:
name - the entity's name.
+
+
+
+ +

+getNode

+
+public String getNode()
+
+
Returns the node attribute that supplements the 'jid' attribute. A node is merely + something that is associated with a JID and for which the JID can provide information.

+ + Node attributes SHOULD be used only when trying to provide or query information which + is not directly addressable. +

+

+ +
Returns:
the node attribute that supplements the 'jid' attribute
+
+
+
+ +

+setNode

+
+public void setNode(String node)
+
+
Sets the node attribute that supplements the 'jid' attribute. A node is merely + something that is associated with a JID and for which the JID can provide information.

+ + Node attributes SHOULD be used only when trying to provide or query information which + is not directly addressable. +

+

+
Parameters:
node - the node attribute that supplements the 'jid' attribute
+
+
+
+ +

+getAction

+
+public String getAction()
+
+
Returns the action that specifies the action being taken for this item. Possible action + values are: "update" and "remove". Update should either create a new entry if the node + and jid combination does not already exist, or simply update an existing entry. If + "remove" is used as the action, the item should be removed from persistent storage. +

+

+ +
Returns:
the action being taken for this item
+
+
+
+ +

+setAction

+
+public void setAction(String action)
+
+
Sets the action that specifies the action being taken for this item. Possible action + values are: "update" and "remove". Update should either create a new entry if the node + and jid combination does not already exist, or simply update an existing entry. If + "remove" is used as the action, the item should be removed from persistent storage. +

+

+
Parameters:
action - the action being taken for this item
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverItems.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverItems.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/DiscoverItems.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,430 @@ + + + + + + +DiscoverItems (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class DiscoverItems

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.DiscoverItems
+
+
+
+
public class DiscoverItems
extends IQ
+ + +

+A DiscoverItems IQ packet, which is used by XMPP clients to request and receive items + associated with XMPP entities.

+ + The items could also be queried in order to discover if they contain items inside. Some items + may be addressable by its JID and others may require to be addressed by a JID and a node name. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classDiscoverItems.Item + +
+          An item is associated with an XMPP Entity, usually thought of a children of the parent + entity and normally are addressable as a JID.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
DiscoverItems() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddItem(DiscoverItems.Item item) + +
+          Adds a new item to the discovered information.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ IteratorgetItems() + +
+          Returns the discovered items of the queried XMPP entity.
+ StringgetNode() + +
+          Returns the node attribute that supplements the 'jid' attribute.
+ voidsetNode(String node) + +
+          Sets the node attribute that supplements the 'jid' attribute.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DiscoverItems

+
+public DiscoverItems()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addItem

+
+public void addItem(DiscoverItems.Item item)
+
+
Adds a new item to the discovered information. +

+

+
Parameters:
item - the discovered entity's item
+
+
+
+ +

+getItems

+
+public Iterator getItems()
+
+
Returns the discovered items of the queried XMPP entity. +

+

+ +
Returns:
an Iterator on the discovered entity's items
+
+
+
+ +

+getNode

+
+public String getNode()
+
+
Returns the node attribute that supplements the 'jid' attribute. A node is merely + something that is associated with a JID and for which the JID can provide information.

+ + Node attributes SHOULD be used only when trying to provide or query information which + is not directly addressable. +

+

+ +
Returns:
the node attribute that supplements the 'jid' attribute
+
+
+
+ +

+setNode

+
+public void setNode(String node)
+
+
Sets the node attribute that supplements the 'jid' attribute. A node is merely + something that is associated with a JID and for which the JID can provide information.

+ + Node attributes SHOULD be used only when trying to provide or query information which + is not directly addressable. +

+

+
Parameters:
node - the node attribute that supplements the 'jid' attribute
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.Close.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.Close.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.Close.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,376 @@ + + + + + + +IBBExtensions.Close (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class IBBExtensions.Close

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.IBBExtensions.Close
+
+
+
Enclosing class:
IBBExtensions
+
+
+
+
public static class IBBExtensions.Close
extends IQ
+ + +

+Represents the closing of the file transfer. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + + + + + +
+Field Summary
+static StringELEMENT_NAME + +
+           
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
IBBExtensions.Close(String sid) + +
+          The constructor.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ StringgetElementName() + +
+           
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ELEMENT_NAME

+
+public static final String ELEMENT_NAME
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+IBBExtensions.Close

+
+public IBBExtensions.Close(String sid)
+
+
The constructor. +

+

+
Parameters:
sid - The unique stream ID identifying this file transfer.
+
+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+public String getElementName()
+
+
+
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.Data.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.Data.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.Data.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,505 @@ + + + + + + +IBBExtensions.Data (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class IBBExtensions.Data

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.IBBExtensions.Data
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
Enclosing class:
IBBExtensions
+
+
+
+
public static class IBBExtensions.Data
extends Object
implements PacketExtension
+ + +

+A data packet containing a portion of the file being sent encoded in + base64. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static StringELEMENT_NAME + +
+           
+  + + + + + + + + + + + + + +
+Constructor Summary
IBBExtensions.Data(String sid) + +
+          A constructor.
IBBExtensions.Data(String sid, + long seq, + String data) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetData() + +
+          Returns the data contained in this packet.
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ longgetSeq() + +
+          Returns the sequence of this packet in regard to the other data + packets.
+ StringgetSessionID() + +
+          Returns the unique stream ID identifying this file transfer.
+ voidsetData(String data) + +
+          Sets the data contained in this packet.
+ voidsetSeq(long seq) + +
+          Sets the sequence of this packet.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ELEMENT_NAME

+
+public static final String ELEMENT_NAME
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+IBBExtensions.Data

+
+public IBBExtensions.Data(String sid)
+
+
A constructor. +

+

+
Parameters:
sid - The stream ID.
+
+
+ +

+IBBExtensions.Data

+
+public IBBExtensions.Data(String sid,
+                          long seq,
+                          String data)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getSessionID

+
+public String getSessionID()
+
+
Returns the unique stream ID identifying this file transfer. +

+

+
+
+
+ +
Returns:
Returns the unique stream ID identifying this file transfer.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+getData

+
+public String getData()
+
+
Returns the data contained in this packet. +

+

+
+
+
+ +
Returns:
Returns the data contained in this packet.
+
+
+
+ +

+setData

+
+public void setData(String data)
+
+
Sets the data contained in this packet. +

+

+
+
+
+
Parameters:
data - The data encoded in base65
+
+
+
+ +

+getSeq

+
+public long getSeq()
+
+
Returns the sequence of this packet in regard to the other data + packets. +

+

+
+
+
+ +
Returns:
Returns the sequence of this packet in regard to the other + data packets.
+
+
+
+ +

+setSeq

+
+public void setSeq(long seq)
+
+
Sets the sequence of this packet. +

+

+
+
+
+
Parameters:
seq - A number between 0 and 65535
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.Open.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.Open.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.Open.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,400 @@ + + + + + + +IBBExtensions.Open (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class IBBExtensions.Open

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.IBBExtensions.Open
+
+
+
Enclosing class:
IBBExtensions
+
+
+
+
public static class IBBExtensions.Open
extends IQ
+ + +

+Represents a request to open the file transfer. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + + + + + +
+Field Summary
+static StringELEMENT_NAME + +
+           
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
IBBExtensions.Open(String sid, + int blockSize) + +
+          Constructs an open packet.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetBlockSize() + +
+          The size blocks in which the data will be sent.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ StringgetElementName() + +
+           
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ELEMENT_NAME

+
+public static final String ELEMENT_NAME
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+IBBExtensions.Open

+
+public IBBExtensions.Open(String sid,
+                          int blockSize)
+
+
Constructs an open packet. +

+

+
Parameters:
sid - The streamID of the file transfer.
blockSize - The block size of the file transfer.
+
+ + + + + + + + +
+Method Detail
+ +

+getBlockSize

+
+public int getBlockSize()
+
+
The size blocks in which the data will be sent. +

+

+ +
Returns:
The size blocks in which the data will be sent.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
+
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/IBBExtensions.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,298 @@ + + + + + + +IBBExtensions (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class IBBExtensions

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.IBBExtensions
+
+
+
+
public class IBBExtensions
extends Object
+ + +

+The different extensions used throughtout the negotiation and transfer + process. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Nested Class Summary
+static classIBBExtensions.Close + +
+          Represents the closing of the file transfer.
+static classIBBExtensions.Data + +
+          A data packet containing a portion of the file being sent encoded in + base64.
+static classIBBExtensions.Open + +
+          Represents a request to open the file transfer.
+ + + + + + + + + + +
+Field Summary
+static StringNAMESPACE + +
+           
+  + + + + + + + + + + +
+Constructor Summary
IBBExtensions() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NAMESPACE

+
+public static final String NAMESPACE
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+IBBExtensions

+
+public IBBExtensions()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/LastActivity.Provider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/LastActivity.Provider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/LastActivity.Provider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,275 @@ + + + + + + +LastActivity.Provider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class LastActivity.Provider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.LastActivity.Provider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
Enclosing class:
LastActivity
+
+
+
+
public static class LastActivity.Provider
extends Object
implements IQProvider
+ + +

+The IQ Provider for LastActivity. +

+ +

+

+
Author:
+
Derek DeMoro
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
LastActivity.Provider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LastActivity.Provider

+
+public LastActivity.Provider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/LastActivity.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/LastActivity.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/LastActivity.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,458 @@ + + + + + + +LastActivity (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class LastActivity

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.LastActivity
+
+
+
+
public class LastActivity
extends IQ
+ + +

+A last activity IQ for retrieving information about the last activity associated with a Jabber ID. + LastActivity (JEP-012) allows for retrieval of how long a particular user has been idle and the + message the specified when doing so. + To get the last activity of a user, simple send the LastActivity packet to them, as in the + following code example: +

+

+ XMPPConnection con = new XMPPConnection("jabber.org");
+ con.login("john", "doe");
+ LastActivity activity = LastActivity.getLastActivity(con, "xray@jabber.org");
+ 
+

+ +

+

+
Author:
+
Derek DeMoro
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classLastActivity.Provider + +
+          The IQ Provider for LastActivity.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + + + + + + + + + +
+Field Summary
+ longlastActivity + +
+           
+ Stringmessage + +
+           
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
LastActivity() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ longgetIdleTime() + +
+          Returns number of seconds that have passed since the user last logged out.
+static LastActivitygetLastActivity(XMPPConnection con, + String jid) + +
+          Retrieve the last activity of a particular jid.
+ StringgetStatusMessage() + +
+          Returns the status message of the last unavailable presence received from the user.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+lastActivity

+
+public long lastActivity
+
+
+
+
+
+ +

+message

+
+public String message
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+LastActivity

+
+public LastActivity()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+
+ +

+getIdleTime

+
+public long getIdleTime()
+
+
Returns number of seconds that have passed since the user last logged out. + If the user is offline, 0 will be returned. +

+

+ +
Returns:
the number of seconds that have passed since the user last logged out.
+
+
+
+ +

+getStatusMessage

+
+public String getStatusMessage()
+
+
Returns the status message of the last unavailable presence received from the user. +

+

+ +
Returns:
the status message of the last unavailable presence received from the user
+
+
+
+ +

+getLastActivity

+
+public static LastActivity getLastActivity(XMPPConnection con,
+                                           String jid)
+                                    throws XMPPException
+
+
Retrieve the last activity of a particular jid. +

+

+
Parameters:
con - the current XMPPConnection.
jid - the JID of the user. +
Returns:
the LastActivity packet of the jid. +
Throws: +
XMPPException - thrown if a server error has occured.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCAdmin.Item.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCAdmin.Item.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCAdmin.Item.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,494 @@ + + + + + + +MUCAdmin.Item (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCAdmin.Item

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCAdmin.Item
+
+
+
Enclosing class:
MUCAdmin
+
+
+
+
public static class MUCAdmin.Item
extends Object
+ + +

+Item child that holds information about roles, affiliation, jids and nicks. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCAdmin.Item(String affiliation, + String role) + +
+          Creates a new item child.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetActor() + +
+          Returns the actor (JID of an occupant in the room) that was kicked or banned.
+ StringgetAffiliation() + +
+          Returns the occupant's affiliation to the room.
+ StringgetJid() + +
+          Returns the by which an occupant is identified within the context + of a room.
+ StringgetNick() + +
+          Returns the new nickname of an occupant that is changing his/her nickname.
+ StringgetReason() + +
+          Returns the reason for the item child.
+ StringgetRole() + +
+          Returns the temporary position or privilege level of an occupant within a room.
+ voidsetActor(String actor) + +
+          Sets the actor (JID of an occupant in the room) that was kicked or banned.
+ voidsetJid(String jid) + +
+          Sets the by which an occupant is identified within the context + of a room.
+ voidsetNick(String nick) + +
+          Sets the new nickname of an occupant that is changing his/her nickname.
+ voidsetReason(String reason) + +
+          Sets the reason for the item child.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCAdmin.Item

+
+public MUCAdmin.Item(String affiliation,
+                     String role)
+
+
Creates a new item child. +

+

+
Parameters:
affiliation - the actor's affiliation to the room
role - the privilege level of an occupant within a room.
+
+ + + + + + + + +
+Method Detail
+ +

+getActor

+
+public String getActor()
+
+
Returns the actor (JID of an occupant in the room) that was kicked or banned. +

+

+ +
Returns:
the JID of an occupant in the room that was kicked or banned.
+
+
+
+ +

+getReason

+
+public String getReason()
+
+
Returns the reason for the item child. The reason is optional and could be used to + explain the reason why a user (occupant) was kicked or banned. +

+

+ +
Returns:
the reason for the item child.
+
+
+
+ +

+getAffiliation

+
+public String getAffiliation()
+
+
Returns the occupant's affiliation to the room. The affiliation is a semi-permanent + association or connection with a room. The possible affiliations are "owner", "admin", + "member", and "outcast" (naturally it is also possible to have no affiliation). An + affiliation lasts across a user's visits to a room. +

+

+ +
Returns:
the actor's affiliation to the room
+
+
+
+ +

+getJid

+
+public String getJid()
+
+
Returns the by which an occupant is identified within the context + of a room. If the room is non-anonymous, the JID will be included in the item. +

+

+ +
Returns:
the room JID by which an occupant is identified within the room.
+
+
+
+ +

+getNick

+
+public String getNick()
+
+
Returns the new nickname of an occupant that is changing his/her nickname. The new + nickname is sent as part of the unavailable presence. +

+

+ +
Returns:
the new nickname of an occupant that is changing his/her nickname.
+
+
+
+ +

+getRole

+
+public String getRole()
+
+
Returns the temporary position or privilege level of an occupant within a room. The + possible roles are "moderator", "participant", and "visitor" (it is also possible to + have no defined role). A role lasts only for the duration of an occupant's visit to + a room. +

+

+ +
Returns:
the privilege level of an occupant within a room.
+
+
+
+ +

+setActor

+
+public void setActor(String actor)
+
+
Sets the actor (JID of an occupant in the room) that was kicked or banned. +

+

+
Parameters:
actor - the actor (JID of an occupant in the room) that was kicked or banned.
+
+
+
+ +

+setReason

+
+public void setReason(String reason)
+
+
Sets the reason for the item child. The reason is optional and could be used to + explain the reason why a user (occupant) was kicked or banned. +

+

+
Parameters:
reason - the reason why a user (occupant) was kicked or banned.
+
+
+
+ +

+setJid

+
+public void setJid(String jid)
+
+
Sets the by which an occupant is identified within the context + of a room. If the room is non-anonymous, the JID will be included in the item. +

+

+
Parameters:
jid - the JID by which an occupant is identified within a room.
+
+
+
+ +

+setNick

+
+public void setNick(String nick)
+
+
Sets the new nickname of an occupant that is changing his/her nickname. The new + nickname is sent as part of the unavailable presence. +

+

+
Parameters:
nick - the new nickname of an occupant that is changing his/her nickname.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCAdmin.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCAdmin.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCAdmin.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,380 @@ + + + + + + +MUCAdmin (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCAdmin

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.MUCAdmin
+
+
+
+
public class MUCAdmin
extends IQ
+ + +

+IQ packet that serves for kicking users, granting and revoking voice, banning users, + modifying the ban list, granting and revoking membership and granting and revoking + moderator privileges. All these operations are scoped by the + 'http://jabber.org/protocol/muc#admin' namespace. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classMUCAdmin.Item + +
+          Item child that holds information about roles, affiliation, jids and nicks.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
MUCAdmin() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddItem(MUCAdmin.Item item) + +
+          Adds an item child that holds information about roles, affiliation, jids and nicks.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ IteratorgetItems() + +
+          Returns an Iterator for item childs that holds information about roles, affiliation, + jids and nicks.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCAdmin

+
+public MUCAdmin()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getItems

+
+public Iterator getItems()
+
+
Returns an Iterator for item childs that holds information about roles, affiliation, + jids and nicks. +

+

+ +
Returns:
an Iterator for item childs that holds information about roles, affiliation, + jids and nicks.
+
+
+
+ +

+addItem

+
+public void addItem(MUCAdmin.Item item)
+
+
Adds an item child that holds information about roles, affiliation, jids and nicks. +

+

+
Parameters:
item - the item child that holds information about roles, affiliation, jids and nicks.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCInitialPresence.History.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCInitialPresence.History.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCInitialPresence.History.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,440 @@ + + + + + + +MUCInitialPresence.History (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCInitialPresence.History

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCInitialPresence.History
+
+
+
Enclosing class:
MUCInitialPresence
+
+
+
+
public static class MUCInitialPresence.History
extends Object
+ + +

+The History class controls the number of characters or messages to receive + when entering a room. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCInitialPresence.History() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetMaxChars() + +
+          Returns the total number of characters to receive in the history.
+ intgetMaxStanzas() + +
+          Returns the total number of messages to receive in the history.
+ intgetSeconds() + +
+          Returns the number of seconds to use to filter the messages received during that time.
+ DategetSince() + +
+          Returns the since date to use to filter the messages received during that time.
+ voidsetMaxChars(int maxChars) + +
+          Sets the total number of characters to receive in the history.
+ voidsetMaxStanzas(int maxStanzas) + +
+          Sets the total number of messages to receive in the history.
+ voidsetSeconds(int seconds) + +
+          Sets the number of seconds to use to filter the messages received during that time.
+ voidsetSince(Date since) + +
+          Sets the since date to use to filter the messages received during that time.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCInitialPresence.History

+
+public MUCInitialPresence.History()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getMaxChars

+
+public int getMaxChars()
+
+
Returns the total number of characters to receive in the history. +

+

+ +
Returns:
total number of characters to receive in the history.
+
+
+
+ +

+getMaxStanzas

+
+public int getMaxStanzas()
+
+
Returns the total number of messages to receive in the history. +

+

+ +
Returns:
the total number of messages to receive in the history.
+
+
+
+ +

+getSeconds

+
+public int getSeconds()
+
+
Returns the number of seconds to use to filter the messages received during that time. + In other words, only the messages received in the last "X" seconds will be included in + the history. +

+

+ +
Returns:
the number of seconds to use to filter the messages received during that time.
+
+
+
+ +

+getSince

+
+public Date getSince()
+
+
Returns the since date to use to filter the messages received during that time. + In other words, only the messages received since the datetime specified will be + included in the history. +

+

+ +
Returns:
the since date to use to filter the messages received during that time.
+
+
+
+ +

+setMaxChars

+
+public void setMaxChars(int maxChars)
+
+
Sets the total number of characters to receive in the history. +

+

+
Parameters:
maxChars - the total number of characters to receive in the history.
+
+
+
+ +

+setMaxStanzas

+
+public void setMaxStanzas(int maxStanzas)
+
+
Sets the total number of messages to receive in the history. +

+

+
Parameters:
maxStanzas - the total number of messages to receive in the history.
+
+
+
+ +

+setSeconds

+
+public void setSeconds(int seconds)
+
+
Sets the number of seconds to use to filter the messages received during that time. + In other words, only the messages received in the last "X" seconds will be included in + the history. +

+

+
Parameters:
seconds - the number of seconds to use to filter the messages received during + that time.
+
+
+
+ +

+setSince

+
+public void setSince(Date since)
+
+
Sets the since date to use to filter the messages received during that time. + In other words, only the messages received since the datetime specified will be + included in the history. +

+

+
Parameters:
since - the since date to use to filter the messages received during that time.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCInitialPresence.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCInitialPresence.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCInitialPresence.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,445 @@ + + + + + + +MUCInitialPresence (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCInitialPresence

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCInitialPresence
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class MUCInitialPresence
extends Object
implements PacketExtension
+ + +

+Represents extended presence information whose sole purpose is to signal the ability of + the occupant to speak the MUC protocol when joining a room. If the room requires a password + then the MUCInitialPresence should include one.

+ + The amount of discussion history provided on entering a room (perhaps because the + user is on a low-bandwidth connection or is using a small-footprint client) could be managed by + setting a configured History instance to the MUCInitialPresence instance. +

+ +

+

+
Author:
+
Gaston Dombiak
+
See Also:
setHistory(MUCInitialPresence.History).
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classMUCInitialPresence.History + +
+          The History class controls the number of characters or messages to receive + when entering a room.
+  + + + + + + + + + + +
+Constructor Summary
MUCInitialPresence() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the root element name.
+ MUCInitialPresence.HistorygetHistory() + +
+          Returns the history that manages the amount of discussion history provided on + entering a room.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ StringgetPassword() + +
+          Returns the password to use when the room requires a password.
+ voidsetHistory(MUCInitialPresence.History history) + +
+          Sets the History that manages the amount of discussion history provided on + entering a room.
+ voidsetPassword(String password) + +
+          Sets the password to use when the room requires a password.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCInitialPresence

+
+public MUCInitialPresence()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+
+ +

+getHistory

+
+public MUCInitialPresence.History getHistory()
+
+
Returns the history that manages the amount of discussion history provided on + entering a room. +

+

+
+
+
+ +
Returns:
the history that manages the amount of discussion history provided on + entering a room.
+
+
+
+ +

+getPassword

+
+public String getPassword()
+
+
Returns the password to use when the room requires a password. +

+

+
+
+
+ +
Returns:
the password to use when the room requires a password.
+
+
+
+ +

+setHistory

+
+public void setHistory(MUCInitialPresence.History history)
+
+
Sets the History that manages the amount of discussion history provided on + entering a room. +

+

+
+
+
+
Parameters:
history - that manages the amount of discussion history provided on + entering a room.
+
+
+
+ +

+setPassword

+
+public void setPassword(String password)
+
+
Sets the password to use when the room requires a password. +

+

+
+
+
+
Parameters:
password - the password to use when the room requires a password.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCOwner.Destroy.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCOwner.Destroy.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCOwner.Destroy.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,346 @@ + + + + + + +MUCOwner.Destroy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCOwner.Destroy

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCOwner.Destroy
+
+
+
Enclosing class:
MUCOwner
+
+
+
+
public static class MUCOwner.Destroy
extends Object
+ + +

+Represents a request to the server to destroy a room. The sender of the request + should be the room's owner. If the sender of the destroy request is not the room's owner + then the server will answer a "Forbidden" error. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCOwner.Destroy() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetJid() + +
+          Returns the JID of an alternate location since the current room is being destroyed.
+ StringgetReason() + +
+          Returns the reason for the room destruction.
+ voidsetJid(String jid) + +
+          Sets the JID of an alternate location since the current room is being destroyed.
+ voidsetReason(String reason) + +
+          Sets the reason for the room destruction.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCOwner.Destroy

+
+public MUCOwner.Destroy()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getJid

+
+public String getJid()
+
+
Returns the JID of an alternate location since the current room is being destroyed. +

+

+ +
Returns:
the JID of an alternate location.
+
+
+
+ +

+getReason

+
+public String getReason()
+
+
Returns the reason for the room destruction. +

+

+ +
Returns:
the reason for the room destruction.
+
+
+
+ +

+setJid

+
+public void setJid(String jid)
+
+
Sets the JID of an alternate location since the current room is being destroyed. +

+

+
Parameters:
jid - the JID of an alternate location.
+
+
+
+ +

+setReason

+
+public void setReason(String reason)
+
+
Sets the reason for the room destruction. +

+

+
Parameters:
reason - the reason for the room destruction.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCOwner.Item.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCOwner.Item.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCOwner.Item.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,516 @@ + + + + + + +MUCOwner.Item (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCOwner.Item

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCOwner.Item
+
+
+
Enclosing class:
MUCOwner
+
+
+
+
public static class MUCOwner.Item
extends Object
+ + +

+Item child that holds information about affiliation, jids and nicks. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCOwner.Item(String affiliation) + +
+          Creates a new item child.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetActor() + +
+          Returns the actor (JID of an occupant in the room) that was kicked or banned.
+ StringgetAffiliation() + +
+          Returns the occupant's affiliation to the room.
+ StringgetJid() + +
+          Returns the by which an occupant is identified within the context + of a room.
+ StringgetNick() + +
+          Returns the new nickname of an occupant that is changing his/her nickname.
+ StringgetReason() + +
+          Returns the reason for the item child.
+ StringgetRole() + +
+          Returns the temporary position or privilege level of an occupant within a room.
+ voidsetActor(String actor) + +
+          Sets the actor (JID of an occupant in the room) that was kicked or banned.
+ voidsetJid(String jid) + +
+          Sets the by which an occupant is identified within the context + of a room.
+ voidsetNick(String nick) + +
+          Sets the new nickname of an occupant that is changing his/her nickname.
+ voidsetReason(String reason) + +
+          Sets the reason for the item child.
+ voidsetRole(String role) + +
+          Sets the temporary position or privilege level of an occupant within a room.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCOwner.Item

+
+public MUCOwner.Item(String affiliation)
+
+
Creates a new item child. +

+

+
Parameters:
affiliation - the actor's affiliation to the room
+
+ + + + + + + + +
+Method Detail
+ +

+getActor

+
+public String getActor()
+
+
Returns the actor (JID of an occupant in the room) that was kicked or banned. +

+

+ +
Returns:
the JID of an occupant in the room that was kicked or banned.
+
+
+
+ +

+getReason

+
+public String getReason()
+
+
Returns the reason for the item child. The reason is optional and could be used to + explain the reason why a user (occupant) was kicked or banned. +

+

+ +
Returns:
the reason for the item child.
+
+
+
+ +

+getAffiliation

+
+public String getAffiliation()
+
+
Returns the occupant's affiliation to the room. The affiliation is a semi-permanent + association or connection with a room. The possible affiliations are "owner", "admin", + "member", and "outcast" (naturally it is also possible to have no affiliation). An + affiliation lasts across a user's visits to a room. +

+

+ +
Returns:
the actor's affiliation to the room
+
+
+
+ +

+getJid

+
+public String getJid()
+
+
Returns the by which an occupant is identified within the context + of a room. If the room is non-anonymous, the JID will be included in the item. +

+

+ +
Returns:
the room JID by which an occupant is identified within the room.
+
+
+
+ +

+getNick

+
+public String getNick()
+
+
Returns the new nickname of an occupant that is changing his/her nickname. The new + nickname is sent as part of the unavailable presence. +

+

+ +
Returns:
the new nickname of an occupant that is changing his/her nickname.
+
+
+
+ +

+getRole

+
+public String getRole()
+
+
Returns the temporary position or privilege level of an occupant within a room. The + possible roles are "moderator", "participant", and "visitor" (it is also possible to + have no defined role). A role lasts only for the duration of an occupant's visit to + a room. +

+

+ +
Returns:
the privilege level of an occupant within a room.
+
+
+
+ +

+setActor

+
+public void setActor(String actor)
+
+
Sets the actor (JID of an occupant in the room) that was kicked or banned. +

+

+
Parameters:
actor - the actor (JID of an occupant in the room) that was kicked or banned.
+
+
+
+ +

+setReason

+
+public void setReason(String reason)
+
+
Sets the reason for the item child. The reason is optional and could be used to + explain the reason why a user (occupant) was kicked or banned. +

+

+
Parameters:
reason - the reason why a user (occupant) was kicked or banned.
+
+
+
+ +

+setJid

+
+public void setJid(String jid)
+
+
Sets the by which an occupant is identified within the context + of a room. If the room is non-anonymous, the JID will be included in the item. +

+

+
Parameters:
jid - the JID by which an occupant is identified within a room.
+
+
+
+ +

+setNick

+
+public void setNick(String nick)
+
+
Sets the new nickname of an occupant that is changing his/her nickname. The new + nickname is sent as part of the unavailable presence. +

+

+
Parameters:
nick - the new nickname of an occupant that is changing his/her nickname.
+
+
+
+ +

+setRole

+
+public void setRole(String role)
+
+
Sets the temporary position or privilege level of an occupant within a room. The + possible roles are "moderator", "participant", and "visitor" (it is also possible to + have no defined role). A role lasts only for the duration of an occupant's visit to + a room. +

+

+
Parameters:
role - the new privilege level of an occupant within a room.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCOwner.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCOwner.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCOwner.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,434 @@ + + + + + + +MUCOwner (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCOwner

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.MUCOwner
+
+
+
+
public class MUCOwner
extends IQ
+ + +

+IQ packet that serves for granting and revoking ownership privileges, granting + and revoking administrative privileges and destroying a room. All these operations + are scoped by the 'http://jabber.org/protocol/muc#owner' namespace. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classMUCOwner.Destroy + +
+          Represents a request to the server to destroy a room.
+static classMUCOwner.Item + +
+          Item child that holds information about affiliation, jids and nicks.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
MUCOwner() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddItem(MUCOwner.Item item) + +
+          Adds an item child that holds information about affiliation, jids and nicks.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ MUCOwner.DestroygetDestroy() + +
+          Returns a request to the server to destroy a room.
+ IteratorgetItems() + +
+          Returns an Iterator for item childs that holds information about affiliation, + jids and nicks.
+ voidsetDestroy(MUCOwner.Destroy destroy) + +
+          Sets a request to the server to destroy a room.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCOwner

+
+public MUCOwner()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getItems

+
+public Iterator getItems()
+
+
Returns an Iterator for item childs that holds information about affiliation, + jids and nicks. +

+

+ +
Returns:
an Iterator for item childs that holds information about affiliation, + jids and nicks.
+
+
+
+ +

+getDestroy

+
+public MUCOwner.Destroy getDestroy()
+
+
Returns a request to the server to destroy a room. The sender of the request + should be the room's owner. If the sender of the destroy request is not the room's owner + then the server will answer a "Forbidden" error. +

+

+ +
Returns:
a request to the server to destroy a room.
+
+
+
+ +

+setDestroy

+
+public void setDestroy(MUCOwner.Destroy destroy)
+
+
Sets a request to the server to destroy a room. The sender of the request + should be the room's owner. If the sender of the destroy request is not the room's owner + then the server will answer a "Forbidden" error. +

+

+
Parameters:
destroy - the request to the server to destroy a room.
+
+
+
+ +

+addItem

+
+public void addItem(MUCOwner.Item item)
+
+
Adds an item child that holds information about affiliation, jids and nicks. +

+

+
Parameters:
item - the item child that holds information about affiliation, jids and nicks.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Decline.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Decline.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Decline.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,390 @@ + + + + + + +MUCUser.Decline (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCUser.Decline

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCUser.Decline
+
+
+
Enclosing class:
MUCUser
+
+
+
+
public static class MUCUser.Decline
extends Object
+ + +

+Represents a rejection to an invitation from another user to a room. The rejection will be + sent to the room which in turn will forward the refusal to the inviter. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCUser.Decline() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetFrom() + +
+          Returns the bare JID of the invitee that rejected the invitation.
+ StringgetReason() + +
+          Returns the message explaining why the invitation was rejected.
+ StringgetTo() + +
+          Returns the bare JID of the inviter.
+ voidsetFrom(String from) + +
+          Sets the bare JID of the invitee that rejected the invitation.
+ voidsetReason(String reason) + +
+          Sets the message explaining why the invitation was rejected.
+ voidsetTo(String to) + +
+          Sets the bare JID of the inviter.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCUser.Decline

+
+public MUCUser.Decline()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getFrom

+
+public String getFrom()
+
+
Returns the bare JID of the invitee that rejected the invitation. (e.g. + 'crone1@shakespeare.lit/desktop'). +

+

+ +
Returns:
the bare JID of the invitee that rejected the invitation.
+
+
+
+ +

+getReason

+
+public String getReason()
+
+
Returns the message explaining why the invitation was rejected. +

+

+ +
Returns:
the message explaining the reason for the rejection.
+
+
+
+ +

+getTo

+
+public String getTo()
+
+
Returns the bare JID of the inviter. (e.g. 'hecate@shakespeare.lit') +

+

+ +
Returns:
the bare JID of the inviter.
+
+
+
+ +

+setFrom

+
+public void setFrom(String from)
+
+
Sets the bare JID of the invitee that rejected the invitation. (e.g. + 'crone1@shakespeare.lit/desktop'). +

+

+
Parameters:
from - the bare JID of the invitee that rejected the invitation.
+
+
+
+ +

+setReason

+
+public void setReason(String reason)
+
+
Sets the message explaining why the invitation was rejected. +

+

+
Parameters:
reason - the message explaining the reason for the rejection.
+
+
+
+ +

+setTo

+
+public void setTo(String to)
+
+
Sets the bare JID of the inviter. (e.g. 'hecate@shakespeare.lit') +

+

+
Parameters:
to - the bare JID of the inviter.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Destroy.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Destroy.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Destroy.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,346 @@ + + + + + + +MUCUser.Destroy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCUser.Destroy

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCUser.Destroy
+
+
+
Enclosing class:
MUCUser
+
+
+
+
public static class MUCUser.Destroy
extends Object
+ + +

+Represents a notification that the room has been destroyed. After a room has been destroyed, + the room occupants will receive a Presence packet of type 'unavailable' with the reason for + the room destruction if provided by the room owner. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCUser.Destroy() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetJid() + +
+          Returns the JID of an alternate location since the current room is being destroyed.
+ StringgetReason() + +
+          Returns the reason for the room destruction.
+ voidsetJid(String jid) + +
+          Sets the JID of an alternate location since the current room is being destroyed.
+ voidsetReason(String reason) + +
+          Sets the reason for the room destruction.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCUser.Destroy

+
+public MUCUser.Destroy()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getJid

+
+public String getJid()
+
+
Returns the JID of an alternate location since the current room is being destroyed. +

+

+ +
Returns:
the JID of an alternate location.
+
+
+
+ +

+getReason

+
+public String getReason()
+
+
Returns the reason for the room destruction. +

+

+ +
Returns:
the reason for the room destruction.
+
+
+
+ +

+setJid

+
+public void setJid(String jid)
+
+
Sets the JID of an alternate location since the current room is being destroyed. +

+

+
Parameters:
jid - the JID of an alternate location.
+
+
+
+ +

+setReason

+
+public void setReason(String reason)
+
+
Sets the reason for the room destruction. +

+

+
Parameters:
reason - the reason for the room destruction.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Invite.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Invite.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Invite.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,391 @@ + + + + + + +MUCUser.Invite (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCUser.Invite

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCUser.Invite
+
+
+
Enclosing class:
MUCUser
+
+
+
+
public static class MUCUser.Invite
extends Object
+ + +

+Represents an invitation for another user to a room. The sender of the invitation + must be an occupant of the room. The invitation will be sent to the room which in turn + will forward the invitation to the invitee. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCUser.Invite() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetFrom() + +
+          Returns the bare JID of the inviter or, optionally, the room JID.
+ StringgetReason() + +
+          Returns the message explaining the invitation.
+ StringgetTo() + +
+          Returns the bare JID of the invitee.
+ voidsetFrom(String from) + +
+          Sets the bare JID of the inviter or, optionally, the room JID.
+ voidsetReason(String reason) + +
+          Sets the message explaining the invitation.
+ voidsetTo(String to) + +
+          Sets the bare JID of the invitee.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCUser.Invite

+
+public MUCUser.Invite()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getFrom

+
+public String getFrom()
+
+
Returns the bare JID of the inviter or, optionally, the room JID. (e.g. + 'crone1@shakespeare.lit/desktop'). +

+

+ +
Returns:
the room's occupant that sent the invitation.
+
+
+
+ +

+getReason

+
+public String getReason()
+
+
Returns the message explaining the invitation. +

+

+ +
Returns:
the message explaining the invitation.
+
+
+
+ +

+getTo

+
+public String getTo()
+
+
Returns the bare JID of the invitee. (e.g. 'hecate@shakespeare.lit') +

+

+ +
Returns:
the bare JID of the invitee.
+
+
+
+ +

+setFrom

+
+public void setFrom(String from)
+
+
Sets the bare JID of the inviter or, optionally, the room JID. (e.g. + 'crone1@shakespeare.lit/desktop') +

+

+
Parameters:
from - the bare JID of the inviter or, optionally, the room JID.
+
+
+
+ +

+setReason

+
+public void setReason(String reason)
+
+
Sets the message explaining the invitation. +

+

+
Parameters:
reason - the message explaining the invitation.
+
+
+
+ +

+setTo

+
+public void setTo(String to)
+
+
Sets the bare JID of the invitee. (e.g. 'hecate@shakespeare.lit') +

+

+
Parameters:
to - the bare JID of the invitee.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Item.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Item.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Item.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,494 @@ + + + + + + +MUCUser.Item (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCUser.Item

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCUser.Item
+
+
+
Enclosing class:
MUCUser
+
+
+
+
public static class MUCUser.Item
extends Object
+ + +

+Item child that holds information about roles, affiliation, jids and nicks. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCUser.Item(String affiliation, + String role) + +
+          Creates a new item child.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetActor() + +
+          Returns the actor (JID of an occupant in the room) that was kicked or banned.
+ StringgetAffiliation() + +
+          Returns the occupant's affiliation to the room.
+ StringgetJid() + +
+          Returns the by which an occupant is identified within the context + of a room.
+ StringgetNick() + +
+          Returns the new nickname of an occupant that is changing his/her nickname.
+ StringgetReason() + +
+          Returns the reason for the item child.
+ StringgetRole() + +
+          Returns the temporary position or privilege level of an occupant within a room.
+ voidsetActor(String actor) + +
+          Sets the actor (JID of an occupant in the room) that was kicked or banned.
+ voidsetJid(String jid) + +
+          Sets the by which an occupant is identified within the context + of a room.
+ voidsetNick(String nick) + +
+          Sets the new nickname of an occupant that is changing his/her nickname.
+ voidsetReason(String reason) + +
+          Sets the reason for the item child.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCUser.Item

+
+public MUCUser.Item(String affiliation,
+                    String role)
+
+
Creates a new item child. +

+

+
Parameters:
affiliation - the actor's affiliation to the room
role - the privilege level of an occupant within a room.
+
+ + + + + + + + +
+Method Detail
+ +

+getActor

+
+public String getActor()
+
+
Returns the actor (JID of an occupant in the room) that was kicked or banned. +

+

+ +
Returns:
the JID of an occupant in the room that was kicked or banned.
+
+
+
+ +

+getReason

+
+public String getReason()
+
+
Returns the reason for the item child. The reason is optional and could be used to + explain the reason why a user (occupant) was kicked or banned. +

+

+ +
Returns:
the reason for the item child.
+
+
+
+ +

+getAffiliation

+
+public String getAffiliation()
+
+
Returns the occupant's affiliation to the room. The affiliation is a semi-permanent + association or connection with a room. The possible affiliations are "owner", "admin", + "member", and "outcast" (naturally it is also possible to have no affiliation). An + affiliation lasts across a user's visits to a room. +

+

+ +
Returns:
the actor's affiliation to the room
+
+
+
+ +

+getJid

+
+public String getJid()
+
+
Returns the by which an occupant is identified within the context + of a room. If the room is non-anonymous, the JID will be included in the item. +

+

+ +
Returns:
the room JID by which an occupant is identified within the room.
+
+
+
+ +

+getNick

+
+public String getNick()
+
+
Returns the new nickname of an occupant that is changing his/her nickname. The new + nickname is sent as part of the unavailable presence. +

+

+ +
Returns:
the new nickname of an occupant that is changing his/her nickname.
+
+
+
+ +

+getRole

+
+public String getRole()
+
+
Returns the temporary position or privilege level of an occupant within a room. The + possible roles are "moderator", "participant", and "visitor" (it is also possible to + have no defined role). A role lasts only for the duration of an occupant's visit to + a room. +

+

+ +
Returns:
the privilege level of an occupant within a room.
+
+
+
+ +

+setActor

+
+public void setActor(String actor)
+
+
Sets the actor (JID of an occupant in the room) that was kicked or banned. +

+

+
Parameters:
actor - the actor (JID of an occupant in the room) that was kicked or banned.
+
+
+
+ +

+setReason

+
+public void setReason(String reason)
+
+
Sets the reason for the item child. The reason is optional and could be used to + explain the reason why a user (occupant) was kicked or banned. +

+

+
Parameters:
reason - the reason why a user (occupant) was kicked or banned.
+
+
+
+ +

+setJid

+
+public void setJid(String jid)
+
+
Sets the by which an occupant is identified within the context + of a room. If the room is non-anonymous, the JID will be included in the item. +

+

+
Parameters:
jid - the JID by which an occupant is identified within a room.
+
+
+
+ +

+setNick

+
+public void setNick(String nick)
+
+
Sets the new nickname of an occupant that is changing his/her nickname. The new + nickname is sent as part of the unavailable presence. +

+

+
Parameters:
nick - the new nickname of an occupant that is changing his/her nickname.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Status.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Status.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.Status.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,286 @@ + + + + + + +MUCUser.Status (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCUser.Status

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCUser.Status
+
+
+
Enclosing class:
MUCUser
+
+
+
+
public static class MUCUser.Status
extends Object
+ + +

+Status code assists in presenting notification messages. The following link provides the + list of existing error codes (@link http://www.jabber.org/jeps/jep-0045.html#errorstatus). +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCUser.Status(String code) + +
+          Creates a new instance of Status with the specified code.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetCode() + +
+          Returns the code that uniquely identifies the reason of the error.
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCUser.Status

+
+public MUCUser.Status(String code)
+
+
Creates a new instance of Status with the specified code. +

+

+
Parameters:
code - the code that uniquely identifies the reason of the error.
+
+ + + + + + + + +
+Method Detail
+ +

+getCode

+
+public String getCode()
+
+
Returns the code that uniquely identifies the reason of the error. The code + assists in presenting notification messages. +

+

+ +
Returns:
the code that uniquely identifies the reason of the error.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MUCUser.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,674 @@ + + + + + + +MUCUser (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MUCUser

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MUCUser
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class MUCUser
extends Object
implements PacketExtension
+ + +

+Represents extended presence information about roles, affiliations, full JIDs, + or status codes scoped by the 'http://jabber.org/protocol/muc#user' namespace. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Nested Class Summary
+static classMUCUser.Decline + +
+          Represents a rejection to an invitation from another user to a room.
+static classMUCUser.Destroy + +
+          Represents a notification that the room has been destroyed.
+static classMUCUser.Invite + +
+          Represents an invitation for another user to a room.
+static classMUCUser.Item + +
+          Item child that holds information about roles, affiliation, jids and nicks.
+static classMUCUser.Status + +
+          Status code assists in presenting notification messages.
+  + + + + + + + + + + +
+Constructor Summary
MUCUser() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MUCUser.DeclinegetDecline() + +
+          Returns the rejection to an invitation from another user to a room.
+ MUCUser.DestroygetDestroy() + +
+          Returns the notification that the room has been destroyed.
+ StringgetElementName() + +
+          Returns the root element name.
+ MUCUser.InvitegetInvite() + +
+          Returns the invitation for another user to a room.
+ MUCUser.ItemgetItem() + +
+          Returns the item child that holds information about roles, affiliation, jids and nicks.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ StringgetPassword() + +
+          Returns the password to use to enter Password-Protected Room.
+ MUCUser.StatusgetStatus() + +
+          Returns the status which holds a code that assists in presenting notification messages.
+ voidsetDecline(MUCUser.Decline decline) + +
+          Sets the rejection to an invitation from another user to a room.
+ voidsetDestroy(MUCUser.Destroy destroy) + +
+          Sets the notification that the room has been destroyed.
+ voidsetInvite(MUCUser.Invite invite) + +
+          Sets the invitation for another user to a room.
+ voidsetItem(MUCUser.Item item) + +
+          Sets the item child that holds information about roles, affiliation, jids and nicks.
+ voidsetPassword(String string) + +
+          Sets the password to use to enter Password-Protected Room.
+ voidsetStatus(MUCUser.Status status) + +
+          Sets the status which holds a code that assists in presenting notification messages.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCUser

+
+public MUCUser()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+
+ +

+getInvite

+
+public MUCUser.Invite getInvite()
+
+
Returns the invitation for another user to a room. The sender of the invitation + must be an occupant of the room. The invitation will be sent to the room which in turn + will forward the invitation to the invitee. +

+

+
+
+
+ +
Returns:
an invitation for another user to a room.
+
+
+
+ +

+getDecline

+
+public MUCUser.Decline getDecline()
+
+
Returns the rejection to an invitation from another user to a room. The rejection will be + sent to the room which in turn will forward the refusal to the inviter. +

+

+
+
+
+ +
Returns:
a rejection to an invitation from another user to a room.
+
+
+
+ +

+getItem

+
+public MUCUser.Item getItem()
+
+
Returns the item child that holds information about roles, affiliation, jids and nicks. +

+

+
+
+
+ +
Returns:
an item child that holds information about roles, affiliation, jids and nicks.
+
+
+
+ +

+getPassword

+
+public String getPassword()
+
+
Returns the password to use to enter Password-Protected Room. A Password-Protected Room is + a room that a user cannot enter without first providing the correct password. +

+

+
+
+
+ +
Returns:
the password to use to enter Password-Protected Room.
+
+
+
+ +

+getStatus

+
+public MUCUser.Status getStatus()
+
+
Returns the status which holds a code that assists in presenting notification messages. +

+

+
+
+
+ +
Returns:
the status which holds a code that assists in presenting notification messages.
+
+
+
+ +

+getDestroy

+
+public MUCUser.Destroy getDestroy()
+
+
Returns the notification that the room has been destroyed. After a room has been destroyed, + the room occupants will receive a Presence packet of type 'unavailable' with the reason for + the room destruction if provided by the room owner. +

+

+
+
+
+ +
Returns:
a notification that the room has been destroyed.
+
+
+
+ +

+setInvite

+
+public void setInvite(MUCUser.Invite invite)
+
+
Sets the invitation for another user to a room. The sender of the invitation + must be an occupant of the room. The invitation will be sent to the room which in turn + will forward the invitation to the invitee. +

+

+
+
+
+
Parameters:
invite - the invitation for another user to a room.
+
+
+
+ +

+setDecline

+
+public void setDecline(MUCUser.Decline decline)
+
+
Sets the rejection to an invitation from another user to a room. The rejection will be + sent to the room which in turn will forward the refusal to the inviter. +

+

+
+
+
+
Parameters:
decline - the rejection to an invitation from another user to a room.
+
+
+
+ +

+setItem

+
+public void setItem(MUCUser.Item item)
+
+
Sets the item child that holds information about roles, affiliation, jids and nicks. +

+

+
+
+
+
Parameters:
item - the item child that holds information about roles, affiliation, jids and nicks.
+
+
+
+ +

+setPassword

+
+public void setPassword(String string)
+
+
Sets the password to use to enter Password-Protected Room. A Password-Protected Room is + a room that a user cannot enter without first providing the correct password. +

+

+
+
+
+
Parameters:
string - the password to use to enter Password-Protected Room.
+
+
+
+ +

+setStatus

+
+public void setStatus(MUCUser.Status status)
+
+
Sets the status which holds a code that assists in presenting notification messages. +

+

+
+
+
+
Parameters:
status - the status which holds a code that assists in presenting notification + messages.
+
+
+
+ +

+setDestroy

+
+public void setDestroy(MUCUser.Destroy destroy)
+
+
Sets the notification that the room has been destroyed. After a room has been destroyed, + the room occupants will receive a Presence packet of type 'unavailable' with the reason for + the room destruction if provided by the room owner. +

+

+
+
+
+
Parameters:
destroy - the notification that the room has been destroyed.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MessageEvent.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MessageEvent.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MessageEvent.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,865 @@ + + + + + + +MessageEvent (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MessageEvent

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MessageEvent
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class MessageEvent
extends Object
implements PacketExtension
+ + +

+Represents message events relating to the delivery, display, composition and cancellation of + messages.

+ + There are four message events currently defined in this namespace: +

    +
  1. Offline
    + Indicates that the message has been stored offline by the intended recipient's server. This + event is triggered only if the intended recipient's server supports offline storage, has that + support enabled, and the recipient is offline when the server receives the message for delivery.
  2. + +
  3. Delivered
    + Indicates that the message has been delivered to the recipient. This signifies that the message + has reached the recipient's XMPP client, but does not necessarily mean that the message has + been displayed. This event is to be raised by the XMPP client.
  4. + +
  5. Displayed
    + Once the message has been received by the recipient's XMPP client, it may be displayed to the + user. This event indicates that the message has been displayed, and is to be raised by the + XMPP client. Even if a message is displayed multiple times, this event should be raised only + once.
  6. + +
  7. Composing
    + In threaded chat conversations, this indicates that the recipient is composing a reply to a + message. The event is to be raised by the recipient's XMPP client. A XMPP client is allowed + to raise this event multiple times in response to the same request, providing the original + event is cancelled first.
  8. +
+

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static StringCANCELLED + +
+           
+static StringCOMPOSING + +
+           
+static StringDELIVERED + +
+           
+static StringDISPLAYED + +
+           
+static StringOFFLINE + +
+           
+  + + + + + + + + + + +
+Constructor Summary
MessageEvent() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the XML element name of the extension sub-packet root element.
+ IteratorgetEventTypes() + +
+          Returns the types of events.
+ StringgetNamespace() + +
+          Returns the XML namespace of the extension sub-packet root element.
+ StringgetPacketID() + +
+          Returns the unique ID of the message that requested to be notified of the event.
+ booleanisCancelled() + +
+          When the message is a notification returns if the receiver of the message cancelled + composing a reply.
+ booleanisComposing() + +
+          When the message is a request returns if the sender of the message requests to be notified + when the receiver is composing a reply.
+ booleanisDelivered() + +
+          When the message is a request returns if the sender of the message requests to be notified + when the message is delivered.
+ booleanisDisplayed() + +
+          When the message is a request returns if the sender of the message requests to be notified + when the message is displayed.
+ booleanisMessageEventRequest() + +
+          Returns true if this MessageEvent is a request for notifications.
+ booleanisOffline() + +
+          When the message is a request returns if the sender of the message requests to be notified + when the receiver of the message is offline.
+ voidsetCancelled(boolean cancelled) + +
+          When the message is a notification sets if the receiver of the message cancelled + composing a reply.
+ voidsetComposing(boolean composing) + +
+          When the message is a request sets if the sender of the message requests to be notified + when the receiver is composing a reply.
+ voidsetDelivered(boolean delivered) + +
+          When the message is a request sets if the sender of the message requests to be notified + when the message is delivered.
+ voidsetDisplayed(boolean displayed) + +
+          When the message is a request sets if the sender of the message requests to be notified + when the message is displayed.
+ voidsetOffline(boolean offline) + +
+          When the message is a request sets if the sender of the message requests to be notified + when the receiver of the message is offline.
+ voidsetPacketID(String packetID) + +
+          Sets the unique ID of the message that requested to be notified of the event.
+ StringtoXML() + +
+          Returns the XML representation of a Message Event according the specification.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+OFFLINE

+
+public static final String OFFLINE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+COMPOSING

+
+public static final String COMPOSING
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DISPLAYED

+
+public static final String DISPLAYED
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DELIVERED

+
+public static final String DELIVERED
+
+
+
See Also:
Constant Field Values
+
+
+ +

+CANCELLED

+
+public static final String CANCELLED
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+MessageEvent

+
+public MessageEvent()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+public String getElementName()
+
+
Returns the XML element name of the extension sub-packet root element. + Always returns "x" +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the XML element name of the packet extension.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Returns the XML namespace of the extension sub-packet root element. + According the specification the namespace is always "jabber:x:event" +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the XML namespace of the packet extension.
+
+
+
+ +

+isComposing

+
+public boolean isComposing()
+
+
When the message is a request returns if the sender of the message requests to be notified + when the receiver is composing a reply. + When the message is a notification returns if the receiver of the message is composing a + reply. +

+

+
+
+
+ +
Returns:
true if the sender is requesting to be notified when composing or when notifying + that the receiver of the message is composing a reply
+
+
+
+ +

+isDelivered

+
+public boolean isDelivered()
+
+
When the message is a request returns if the sender of the message requests to be notified + when the message is delivered. + When the message is a notification returns if the message was delivered or not. +

+

+
+
+
+ +
Returns:
true if the sender is requesting to be notified when delivered or when notifying + that the message was delivered
+
+
+
+ +

+isDisplayed

+
+public boolean isDisplayed()
+
+
When the message is a request returns if the sender of the message requests to be notified + when the message is displayed. + When the message is a notification returns if the message was displayed or not. +

+

+
+
+
+ +
Returns:
true if the sender is requesting to be notified when displayed or when notifying + that the message was displayed
+
+
+
+ +

+isOffline

+
+public boolean isOffline()
+
+
When the message is a request returns if the sender of the message requests to be notified + when the receiver of the message is offline. + When the message is a notification returns if the receiver of the message was offline. +

+

+
+
+
+ +
Returns:
true if the sender is requesting to be notified when offline or when notifying + that the receiver of the message is offline
+
+
+
+ +

+isCancelled

+
+public boolean isCancelled()
+
+
When the message is a notification returns if the receiver of the message cancelled + composing a reply. +

+

+
+
+
+ +
Returns:
true if the receiver of the message cancelled composing a reply
+
+
+
+ +

+getPacketID

+
+public String getPacketID()
+
+
Returns the unique ID of the message that requested to be notified of the event. + The packet id is not used when the message is a request for notifications +

+

+
+
+
+ +
Returns:
the message id that requested to be notified of the event.
+
+
+
+ +

+getEventTypes

+
+public Iterator getEventTypes()
+
+
Returns the types of events. The type of event could be: + "offline", "composing","delivered","displayed", "offline" +

+

+
+
+
+ +
Returns:
an iterator over all the types of events of the MessageEvent.
+
+
+
+ +

+setComposing

+
+public void setComposing(boolean composing)
+
+
When the message is a request sets if the sender of the message requests to be notified + when the receiver is composing a reply. + When the message is a notification sets if the receiver of the message is composing a + reply. +

+

+
+
+
+
Parameters:
composing - sets if the sender is requesting to be notified when composing or when + notifying that the receiver of the message is composing a reply
+
+
+
+ +

+setDelivered

+
+public void setDelivered(boolean delivered)
+
+
When the message is a request sets if the sender of the message requests to be notified + when the message is delivered. + When the message is a notification sets if the message was delivered or not. +

+

+
+
+
+
Parameters:
delivered - sets if the sender is requesting to be notified when delivered or when + notifying that the message was delivered
+
+
+
+ +

+setDisplayed

+
+public void setDisplayed(boolean displayed)
+
+
When the message is a request sets if the sender of the message requests to be notified + when the message is displayed. + When the message is a notification sets if the message was displayed or not. +

+

+
+
+
+
Parameters:
displayed - sets if the sender is requesting to be notified when displayed or when + notifying that the message was displayed
+
+
+
+ +

+setOffline

+
+public void setOffline(boolean offline)
+
+
When the message is a request sets if the sender of the message requests to be notified + when the receiver of the message is offline. + When the message is a notification sets if the receiver of the message was offline. +

+

+
+
+
+
Parameters:
offline - sets if the sender is requesting to be notified when offline or when + notifying that the receiver of the message is offline
+
+
+
+ +

+setCancelled

+
+public void setCancelled(boolean cancelled)
+
+
When the message is a notification sets if the receiver of the message cancelled + composing a reply. + The Cancelled event is never requested explicitly. It is requested implicitly when + requesting to be notified of the Composing event. +

+

+
+
+
+
Parameters:
cancelled - sets if the receiver of the message cancelled composing a reply
+
+
+
+ +

+setPacketID

+
+public void setPacketID(String packetID)
+
+
Sets the unique ID of the message that requested to be notified of the event. + The packet id is not used when the message is a request for notifications +

+

+
+
+
+
Parameters:
packetID - the message id that requested to be notified of the event.
+
+
+
+ +

+isMessageEventRequest

+
+public boolean isMessageEventRequest()
+
+
Returns true if this MessageEvent is a request for notifications. + Returns false if this MessageEvent is a notification of an event. +

+

+
+
+
+ +
Returns:
true if this message is a request for notifications.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Returns the XML representation of a Message Event according the specification. + + Usually the XML representation will be inside of a Message XML representation like + in the following examples:

+ + Request to be notified when displayed: +

+ <message
+    to='romeo@montague.net/orchard'
+    from='juliet@capulet.com/balcony'
+    id='message22'>
+ <x xmlns='jabber:x:event'>
+   <displayed/>
+ </x>
+ </message>
+ 
+ + Notification of displayed: +
+ <message
+    from='romeo@montague.net/orchard'
+    to='juliet@capulet.com/balcony'>
+ <x xmlns='jabber:x:event'>
+   <displayed/>
+   <id>message22</id>
+ </x>
+ </message>
+ 
+

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MultipleAddresses.Address.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MultipleAddresses.Address.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MultipleAddresses.Address.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,312 @@ + + + + + + +MultipleAddresses.Address (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MultipleAddresses.Address

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MultipleAddresses.Address
+
+
+
Enclosing class:
MultipleAddresses
+
+
+
+
public static class MultipleAddresses.Address
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetDescription() + +
+           
+ StringgetJid() + +
+           
+ StringgetNode() + +
+           
+ StringgetType() + +
+           
+ StringgetUri() + +
+           
+ booleanisDelivered() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public String getType()
+
+
+
+
+
+
+ +

+getJid

+
+public String getJid()
+
+
+
+
+
+
+ +

+getNode

+
+public String getNode()
+
+
+
+
+
+
+ +

+getDescription

+
+public String getDescription()
+
+
+
+
+
+
+ +

+isDelivered

+
+public boolean isDelivered()
+
+
+
+
+
+
+ +

+getUri

+
+public String getUri()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MultipleAddresses.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MultipleAddresses.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/MultipleAddresses.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,545 @@ + + + + + + +MultipleAddresses (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class MultipleAddresses

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.MultipleAddresses
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class MultipleAddresses
extends Object
implements PacketExtension
+ + +

+Packet extension that contains the list of addresses that a packet should be sent or was sent. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classMultipleAddresses.Address + +
+           
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static StringBCC + +
+           
+static StringCC + +
+           
+static StringNO_REPLY + +
+           
+static StringREPLY_ROOM + +
+           
+static StringREPLY_TO + +
+           
+static StringTO + +
+           
+  + + + + + + + + + + +
+Constructor Summary
MultipleAddresses() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddAddress(String type, + String jid, + String node, + String desc, + boolean delivered, + String uri) + +
+          Adds a new address to which the packet is going to be sent or was sent.
+ ListgetAddressesOfType(String type) + +
+          Returns the list of addresses that matches the specified type.
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ voidsetNoReply() + +
+          Indicate that the packet being sent should not be replied.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+BCC

+
+public static final String BCC
+
+
+
See Also:
Constant Field Values
+
+
+ +

+CC

+
+public static final String CC
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NO_REPLY

+
+public static final String NO_REPLY
+
+
+
See Also:
Constant Field Values
+
+
+ +

+REPLY_ROOM

+
+public static final String REPLY_ROOM
+
+
+
See Also:
Constant Field Values
+
+
+ +

+REPLY_TO

+
+public static final String REPLY_TO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TO

+
+public static final String TO
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+MultipleAddresses

+
+public MultipleAddresses()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addAddress

+
+public void addAddress(String type,
+                       String jid,
+                       String node,
+                       String desc,
+                       boolean delivered,
+                       String uri)
+
+
Adds a new address to which the packet is going to be sent or was sent. +

+

+
+
+
+
Parameters:
type - on of the static type (BCC, CC, NO_REPLY, REPLY_ROOM, etc.)
jid - the JID address of the recipient.
node - used to specify a sub-addressable unit at a particular JID, corresponding to + a Service Discovery node.
desc - used to specify human-readable information for this address.
delivered - true when the packet was already delivered to this address.
uri - used to specify an external system address, such as a sip:, sips:, or im: URI.
+
+
+
+ +

+setNoReply

+
+public void setNoReply()
+
+
Indicate that the packet being sent should not be replied. +

+

+
+
+
+
+
+
+
+ +

+getAddressesOfType

+
+public List getAddressesOfType(String type)
+
+
Returns the list of addresses that matches the specified type. Examples of address + type are: TO, CC, BCC, etc.. +

+

+
+
+
+
Parameters:
type - Examples of address type are: TO, CC, BCC, etc. +
Returns:
the list of addresses that matches the specified type.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageInfo.Provider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageInfo.Provider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageInfo.Provider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,266 @@ + + + + + + +OfflineMessageInfo.Provider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class OfflineMessageInfo.Provider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.OfflineMessageInfo.Provider
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
Enclosing class:
OfflineMessageInfo
+
+
+
+
public static class OfflineMessageInfo.Provider
extends Object
implements PacketExtensionProvider
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
OfflineMessageInfo.Provider() + +
+          Creates a new Provider.
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parses a OfflineMessageInfo packet (extension sub-packet).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OfflineMessageInfo.Provider

+
+public OfflineMessageInfo.Provider()
+
+
Creates a new Provider. + ProviderManager requires that every PacketExtensionProvider has a public, + no-argument constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Parses a OfflineMessageInfo packet (extension sub-packet). +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - the XML parser, positioned at the starting element of the extension. +
Returns:
a PacketExtension. +
Throws: +
Exception - if a parsing error occurs.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageInfo.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageInfo.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageInfo.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,390 @@ + + + + + + +OfflineMessageInfo (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class OfflineMessageInfo

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.OfflineMessageInfo
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class OfflineMessageInfo
extends Object
implements PacketExtension
+ + +

+OfflineMessageInfo is an extension included in the retrieved offline messages requested by + the OfflineMessageManager. This extension includes a stamp + that uniquely identifies the offline message. This stamp may be used for deleting the offline + message. The stamp may be of the form UTC timestamps but it is not required to have that format. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classOfflineMessageInfo.Provider + +
+           
+  + + + + + + + + + + +
+Constructor Summary
OfflineMessageInfo() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the XML element name of the extension sub-packet root element.
+ StringgetNamespace() + +
+          Returns the XML namespace of the extension sub-packet root element.
+ StringgetNode() + +
+          Returns the stamp that uniquely identifies the offline message.
+ voidsetNode(String node) + +
+          Sets the stamp that uniquely identifies the offline message.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OfflineMessageInfo

+
+public OfflineMessageInfo()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+public String getElementName()
+
+
Returns the XML element name of the extension sub-packet root element. + Always returns "offline" +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the XML element name of the packet extension.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Returns the XML namespace of the extension sub-packet root element. + According the specification the namespace is always "http://jabber.org/protocol/offline" +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the XML namespace of the packet extension.
+
+
+
+ +

+getNode

+
+public String getNode()
+
+
Returns the stamp that uniquely identifies the offline message. This stamp may + be used for deleting the offline message. The stamp may be of the form UTC timestamps + but it is not required to have that format. +

+

+
+
+
+ +
Returns:
the stamp that uniquely identifies the offline message.
+
+
+
+ +

+setNode

+
+public void setNode(String node)
+
+
Sets the stamp that uniquely identifies the offline message. This stamp may + be used for deleting the offline message. The stamp may be of the form UTC timestamps + but it is not required to have that format. +

+

+
+
+
+
Parameters:
node - the stamp that uniquely identifies the offline message.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageRequest.Item.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageRequest.Item.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageRequest.Item.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,366 @@ + + + + + + +OfflineMessageRequest.Item (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class OfflineMessageRequest.Item

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.OfflineMessageRequest.Item
+
+
+
Enclosing class:
OfflineMessageRequest
+
+
+
+
public static class OfflineMessageRequest.Item
extends Object
+ + +

+Item child that holds information about offline messages to view or delete. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OfflineMessageRequest.Item(String node) + +
+          Creates a new item child.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetAction() + +
+          Returns "view" or "remove" that indicate if the server should return the specified + offline message or delete it.
+ StringgetJid() + +
+           
+ StringgetNode() + +
+           
+ voidsetAction(String action) + +
+          Sets if the server should return the specified offline message or delete it.
+ voidsetJid(String jid) + +
+           
+ StringtoXML() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OfflineMessageRequest.Item

+
+public OfflineMessageRequest.Item(String node)
+
+
Creates a new item child. +

+

+
Parameters:
node - the actor's affiliation to the room
+
+ + + + + + + + +
+Method Detail
+ +

+getNode

+
+public String getNode()
+
+
+
+
+
+
+ +

+getAction

+
+public String getAction()
+
+
Returns "view" or "remove" that indicate if the server should return the specified + offline message or delete it. +

+

+ +
Returns:
"view" or "remove" that indicate if the server should return the specified + offline message or delete it.
+
+
+
+ +

+setAction

+
+public void setAction(String action)
+
+
Sets if the server should return the specified offline message or delete it. Possible + values are "view" or "remove". +

+

+
Parameters:
action - if the server should return the specified offline message or delete it.
+
+
+
+ +

+getJid

+
+public String getJid()
+
+
+
+
+
+
+ +

+setJid

+
+public void setJid(String jid)
+
+
+
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageRequest.Provider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageRequest.Provider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageRequest.Provider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,267 @@ + + + + + + +OfflineMessageRequest.Provider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class OfflineMessageRequest.Provider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.OfflineMessageRequest.Provider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
Enclosing class:
OfflineMessageRequest
+
+
+
+
public static class OfflineMessageRequest.Provider
extends Object
implements IQProvider
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
OfflineMessageRequest.Provider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OfflineMessageRequest.Provider

+
+public OfflineMessageRequest.Provider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageRequest.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageRequest.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/OfflineMessageRequest.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,472 @@ + + + + + + +OfflineMessageRequest (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class OfflineMessageRequest

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.OfflineMessageRequest
+
+
+
+
public class OfflineMessageRequest
extends IQ
+ + +

+Represents a request to get some or all the offline messages of a user. This class can also + be used for deleting some or all the offline messages of a user. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classOfflineMessageRequest.Item + +
+          Item child that holds information about offline messages to view or delete.
+static classOfflineMessageRequest.Provider + +
+           
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
OfflineMessageRequest() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddItem(OfflineMessageRequest.Item item) + +
+          Adds an item child that holds information about offline messages to view or delete.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ IteratorgetItems() + +
+          Returns an Iterator for item childs that holds information about offline messages to + view or delete.
+ booleanisFetch() + +
+          Returns true if all the offline messages of the user should be retrieved.
+ booleanisPurge() + +
+          Returns true if all the offline messages of the user should be deleted.
+ voidsetFetch(boolean fetch) + +
+          Sets if all the offline messages of the user should be retrieved.
+ voidsetPurge(boolean purge) + +
+          Sets if all the offline messages of the user should be deleted.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OfflineMessageRequest

+
+public OfflineMessageRequest()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getItems

+
+public Iterator getItems()
+
+
Returns an Iterator for item childs that holds information about offline messages to + view or delete. +

+

+ +
Returns:
an Iterator for item childs that holds information about offline messages to + view or delete.
+
+
+
+ +

+addItem

+
+public void addItem(OfflineMessageRequest.Item item)
+
+
Adds an item child that holds information about offline messages to view or delete. +

+

+
Parameters:
item - the item child that holds information about offline messages to view or delete.
+
+
+
+ +

+isPurge

+
+public boolean isPurge()
+
+
Returns true if all the offline messages of the user should be deleted. +

+

+ +
Returns:
true if all the offline messages of the user should be deleted.
+
+
+
+ +

+setPurge

+
+public void setPurge(boolean purge)
+
+
Sets if all the offline messages of the user should be deleted. +

+

+
Parameters:
purge - true if all the offline messages of the user should be deleted.
+
+
+
+ +

+isFetch

+
+public boolean isFetch()
+
+
Returns true if all the offline messages of the user should be retrieved. +

+

+ +
Returns:
true if all the offline messages of the user should be retrieved.
+
+
+
+ +

+setFetch

+
+public void setFetch(boolean fetch)
+
+
Sets if all the offline messages of the user should be retrieved. +

+

+
Parameters:
fetch - true if all the offline messages of the user should be retrieved.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/PrivateData.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/PrivateData.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/PrivateData.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,260 @@ + + + + + + +PrivateData (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Interface PrivateData

+
+
All Known Implementing Classes:
DefaultPrivateData
+
+
+
+
public interface PrivateData
+ + +

+Interface to represent private data. Each private data chunk is an XML sub-document + with a root element name and namespace. +

+ +

+

+
Author:
+
Matt Tucker
+
See Also:
PrivateDataManager
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PrivateData.
+  +

+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+String getElementName()
+
+
Returns the root element name. +

+

+ +
Returns:
the element name.
+
+
+
+ +

+getNamespace

+
+String getNamespace()
+
+
Returns the root element XML namespace. +

+

+ +
Returns:
the namespace.
+
+
+
+ +

+toXML

+
+String toXML()
+
+
Returns the XML reppresentation of the PrivateData. +

+

+ +
Returns:
the private data as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/RosterExchange.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/RosterExchange.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/RosterExchange.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,462 @@ + + + + + + +RosterExchange (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class RosterExchange

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.RosterExchange
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class RosterExchange
extends Object
implements PacketExtension
+ + +

+Represents XMPP Roster Item Exchange packets.

+ + The 'jabber:x:roster' namespace (which is not to be confused with the 'jabber:iq:roster' + namespace) is used to send roster items from one client to another. A roster item is sent by + adding to the <message/> element an <x/> child scoped by the 'jabber:x:roster' namespace. This + <x/> element may contain one or more <item/> children (one for each roster item to be sent).

+ + Each <item/> element may possess the following attributes:

+ + <jid/> -- The id of the contact being sent. This attribute is required.
+ <name/> -- A natural-language nickname for the contact. This attribute is optional.

+ + Each <item/> element may also contain one or more <group/> children specifying the + natural-language name of a user-specified group, for the purpose of categorizing this contact + into one or more roster groups. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
RosterExchange() + +
+          Creates a new empty roster exchange package.
RosterExchange(Roster roster) + +
+          Creates a new roster exchange package with the entries specified in roster.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddRosterEntry(RemoteRosterEntry remoteRosterEntry) + +
+          Adds a remote roster entry to the packet.
+ voidaddRosterEntry(RosterEntry rosterEntry) + +
+          Adds a roster entry to the packet.
+ StringgetElementName() + +
+          Returns the XML element name of the extension sub-packet root element.
+ intgetEntryCount() + +
+          Returns a count of the entries in the roster exchange.
+ StringgetNamespace() + +
+          Returns the XML namespace of the extension sub-packet root element.
+ IteratorgetRosterEntries() + +
+          Returns an Iterator for the roster entries in the packet.
+ StringtoXML() + +
+          Returns the XML representation of a Roster Item Exchange according the specification.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RosterExchange

+
+public RosterExchange()
+
+
Creates a new empty roster exchange package. +

+

+
+ +

+RosterExchange

+
+public RosterExchange(Roster roster)
+
+
Creates a new roster exchange package with the entries specified in roster. +

+

+
Parameters:
roster - the roster to send to other XMPP entity.
+
+ + + + + + + + +
+Method Detail
+ +

+addRosterEntry

+
+public void addRosterEntry(RosterEntry rosterEntry)
+
+
Adds a roster entry to the packet. +

+

+
+
+
+
Parameters:
rosterEntry - a roster entry to add.
+
+
+
+ +

+addRosterEntry

+
+public void addRosterEntry(RemoteRosterEntry remoteRosterEntry)
+
+
Adds a remote roster entry to the packet. +

+

+
+
+
+
Parameters:
remoteRosterEntry - a remote roster entry to add.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Returns the XML element name of the extension sub-packet root element. + Always returns "x" +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the XML element name of the packet extension.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Returns the XML namespace of the extension sub-packet root element. + According the specification the namespace is always "jabber:x:roster" + (which is not to be confused with the 'jabber:iq:roster' namespace +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the XML namespace of the packet extension.
+
+
+
+ +

+getRosterEntries

+
+public Iterator getRosterEntries()
+
+
Returns an Iterator for the roster entries in the packet. +

+

+
+
+
+ +
Returns:
an Iterator for the roster entries in the packet.
+
+
+
+ +

+getEntryCount

+
+public int getEntryCount()
+
+
Returns a count of the entries in the roster exchange. +

+

+
+
+
+ +
Returns:
the number of entries in the roster exchange.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Returns the XML representation of a Roster Item Exchange according the specification. + + Usually the XML representation will be inside of a Message XML representation like + in the following example: +
+ <message id="MlIpV-4" to="gato1@gato.home" from="gato3@gato.home/Smack">
+     <subject>Any subject you want</subject>
+     <body>This message contains roster items.</body>
+     <x xmlns="jabber:x:roster">
+         <item jid="gato1@gato.home"/>
+         <item jid="gato2@gato.home"/>
+     </x>
+ </message>
+ 
+

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/SharedGroupsInfo.Provider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/SharedGroupsInfo.Provider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/SharedGroupsInfo.Provider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,273 @@ + + + + + + +SharedGroupsInfo.Provider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class SharedGroupsInfo.Provider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.SharedGroupsInfo.Provider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
Enclosing class:
SharedGroupsInfo
+
+
+
+
public static class SharedGroupsInfo.Provider
extends Object
implements IQProvider
+ + +

+Internal Search service Provider. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
SharedGroupsInfo.Provider() + +
+          Provider Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SharedGroupsInfo.Provider

+
+public SharedGroupsInfo.Provider()
+
+
Provider Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/SharedGroupsInfo.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/SharedGroupsInfo.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/SharedGroupsInfo.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,357 @@ + + + + + + +SharedGroupsInfo (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class SharedGroupsInfo

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.SharedGroupsInfo
+
+
+
+
public class SharedGroupsInfo
extends IQ
+ + +

+IQ packet used for discovering the user's shared groups and for getting the answer back + from the server.

+ + Important note: This functionality is not part of the XMPP spec and it will only work + with Wildfire. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classSharedGroupsInfo.Provider + +
+          Internal Search service Provider.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
SharedGroupsInfo() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ ListgetGroups() + +
+          Returns a collection with the shared group names returned from the server.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SharedGroupsInfo

+
+public SharedGroupsInfo()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getGroups

+
+public List getGroups()
+
+
Returns a collection with the shared group names returned from the server. +

+

+ +
Returns:
collection with the shared group names returned from the server.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/StreamInitiation.Feature.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/StreamInitiation.Feature.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/StreamInitiation.Feature.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,349 @@ + + + + + + +StreamInitiation.Feature (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class StreamInitiation.Feature

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.StreamInitiation.Feature
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
Enclosing class:
StreamInitiation
+
+
+
+
public class StreamInitiation.Feature
extends Object
implements PacketExtension
+ + +

+The feature negotiation portion of the StreamInitiation packet. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StreamInitiation.Feature(DataForm data) + +
+          The dataform can be provided as part of the constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ DataFormgetData() + +
+          Returns the dataform associated with the feature negotiation.
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StreamInitiation.Feature

+
+public StreamInitiation.Feature(DataForm data)
+
+
The dataform can be provided as part of the constructor. +

+

+
Parameters:
data - The dataform.
+
+ + + + + + + + +
+Method Detail
+ +

+getData

+
+public DataForm getData()
+
+
Returns the dataform associated with the feature negotiation. +

+

+
+
+
+ +
Returns:
Returns the dataform associated with the feature negotiation.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/StreamInitiation.File.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/StreamInitiation.File.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/StreamInitiation.File.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,608 @@ + + + + + + +StreamInitiation.File (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class StreamInitiation.File

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.StreamInitiation.File
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
Enclosing class:
StreamInitiation
+
+
+
+
public static class StreamInitiation.File
extends Object
implements PacketExtension
+ + +

+

    +
  • size: The size, in bytes, of the data to be sent.
  • +
  • name: The name of the file that the Sender wishes to send.
  • +
  • date: The last modification time of the file. This is specified + using the DateTime profile as described in Jabber Date and Time Profiles.
  • +
  • hash: The MD5 sum of the file contents.
  • +
+

+

+ <desc> is used to provide a sender-generated description of the + file so the receiver can better understand what is being sent. It MUST + NOT be sent in the result. +

+

+ When <range> is sent in the offer, it should have no attributes. + This signifies that the sender can do ranged transfers. When a Stream + Initiation result is sent with the element, it uses these + attributes: +

+

    +
  • offset: Specifies the position, in bytes, to start transferring the + file data from. This defaults to zero (0) if not specified.
  • +
  • length - Specifies the number of bytes to retrieve starting at + offset. This defaults to the length of the file from offset to the end.
  • +
+

+

+ Both attributes are OPTIONAL on the <range> element. Sending no + attributes is synonymous with not sending the <range> element. When + no <range> element is sent in the Stream Initiation result, the + Sender MUST send the complete file starting at offset 0. More generally, + data is sent over the stream byte for byte starting at the offset + position for the length specified. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StreamInitiation.File(String name, + long size) + +
+          Constructor providing the name of the file and its size.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ DategetDate() + +
+          Returns the date that the file was last modified.
+ StringgetDesc() + +
+          Returns the description of the file.
+ StringgetElementName() + +
+          Returns the root element name.
+ StringgetHash() + +
+          Returns the MD5 sum of the file's contents
+ StringgetName() + +
+          Returns the file's name.
+ StringgetNamespace() + +
+          Returns the root element XML namespace.
+ longgetSize() + +
+          Returns the file's size.
+ booleanisRanged() + +
+          Returns whether or not the initiator can support a range for the file + tranfer.
+ voidsetDate(Date date) + +
+          Sets the date that the file was last modified.
+ voidsetDesc(String desc) + +
+          Sets the description of the file.
+ voidsetHash(String hash) + +
+          Sets the MD5 sum of the file's contents
+ voidsetRanged(boolean isRanged) + +
+          True if a range can be provided and false if it cannot.
+ StringtoXML() + +
+          Returns the XML reppresentation of the PacketExtension.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StreamInitiation.File

+
+public StreamInitiation.File(String name,
+                             long size)
+
+
Constructor providing the name of the file and its size. +

+

+
Parameters:
name - The name of the file.
size - The size of the file in bytes.
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
Returns the file's name. +

+

+
+
+
+ +
Returns:
Returns the file's name.
+
+
+
+ +

+getSize

+
+public long getSize()
+
+
Returns the file's size. +

+

+
+
+
+ +
Returns:
Returns the file's size.
+
+
+
+ +

+setHash

+
+public void setHash(String hash)
+
+
Sets the MD5 sum of the file's contents +

+

+
+
+
+
Parameters:
hash - The MD5 sum of the file's contents.
+
+
+
+ +

+getHash

+
+public String getHash()
+
+
Returns the MD5 sum of the file's contents +

+

+
+
+
+ +
Returns:
Returns the MD5 sum of the file's contents
+
+
+
+ +

+setDate

+
+public void setDate(Date date)
+
+
Sets the date that the file was last modified. +

+

+
+
+
+
Parameters:
date - The date that the file was last modified.
+
+
+
+ +

+getDate

+
+public Date getDate()
+
+
Returns the date that the file was last modified. +

+

+
+
+
+ +
Returns:
Returns the date that the file was last modified.
+
+
+
+ +

+setDesc

+
+public void setDesc(String desc)
+
+
Sets the description of the file. +

+

+
+
+
+
Parameters:
desc - The description of the file so that the file reciever can + know what file it is.
+
+
+
+ +

+getDesc

+
+public String getDesc()
+
+
Returns the description of the file. +

+

+
+
+
+ +
Returns:
Returns the description of the file.
+
+
+
+ +

+setRanged

+
+public void setRanged(boolean isRanged)
+
+
True if a range can be provided and false if it cannot. +

+

+
+
+
+
Parameters:
isRanged - True if a range can be provided and false if it cannot.
+
+
+
+ +

+isRanged

+
+public boolean isRanged()
+
+
Returns whether or not the initiator can support a range for the file + tranfer. +

+

+
+
+
+ +
Returns:
Returns whether or not the initiator can support a range for + the file tranfer.
+
+
+
+ +

+getElementName

+
+public String getElementName()
+
+
Description copied from interface: PacketExtension
+
Returns the root element name. +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the element name.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Description copied from interface: PacketExtension
+
Returns the root element XML namespace. +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the namespace.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Description copied from interface: PacketExtension
+
Returns the XML reppresentation of the PacketExtension. +

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/StreamInitiation.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/StreamInitiation.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/StreamInitiation.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,532 @@ + + + + + + +StreamInitiation (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class StreamInitiation

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.StreamInitiation
+
+
+
+
public class StreamInitiation
extends IQ
+ + +

+The process by which two entities initiate a stream. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+ classStreamInitiation.Feature + +
+          The feature negotiation portion of the StreamInitiation packet.
+static classStreamInitiation.File + +
+           + size: The size, in bytes, of the data to be sent. + name: The name of the file that the Sender wishes to send. + date: The last modification time of the file.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
StreamInitiation() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ DataFormgetFeatureNegotiationForm() + +
+          Returns the data form which contains the valid methods of stream + neotiation and transfer.
+ StreamInitiation.FilegetFile() + +
+          Returns the file containing the information about the request.
+ StringgetMimeType() + +
+          Identifies the type of file that is desired to be transfered.
+ StringgetSessionID() + +
+          Uniquely identifies a stream initiation to the recipient.
+ voidsetFeatureNegotiationForm(DataForm form) + +
+          Sets the data form which contains the valid methods of stream neotiation + and transfer.
+ voidsetFile(StreamInitiation.File file) + +
+          Sets the file which contains the information pertaining to the file to be + transfered.
+ voidsetMimeType(String mimeType) + +
+          The "mime-type" attribute identifies the MIME-type for the data across + the stream.
+ voidsetSesssionID(String id) + +
+          The "id" attribute is an opaque identifier.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StreamInitiation

+
+public StreamInitiation()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setSesssionID

+
+public void setSesssionID(String id)
+
+
The "id" attribute is an opaque identifier. This attribute MUST be + present on type='set', and MUST be a valid string. This SHOULD NOT be + sent back on type='result', since the "id" attribute provides the + only context needed. This value is generated by the Sender, and the same + value MUST be used throughout a session when talking to the Receiver. +

+

+
Parameters:
id - The "id" attribute.
+
+
+
+ +

+getSessionID

+
+public String getSessionID()
+
+
Uniquely identifies a stream initiation to the recipient. +

+

+ +
Returns:
The "id" attribute.
See Also:
setSesssionID(String)
+
+
+
+ +

+setMimeType

+
+public void setMimeType(String mimeType)
+
+
The "mime-type" attribute identifies the MIME-type for the data across + the stream. This attribute MUST be a valid MIME-type as registered with + the Internet Assigned Numbers Authority (IANA) [3] (specifically, as + listed at ). During + negotiation, this attribute SHOULD be present, and is otherwise not + required. If not included during negotiation, its value is assumed to be + "binary/octect-stream". +

+

+
Parameters:
mimeType - The valid mime-type.
+
+
+
+ +

+getMimeType

+
+public String getMimeType()
+
+
Identifies the type of file that is desired to be transfered. +

+

+ +
Returns:
The mime-type.
See Also:
setMimeType(String)
+
+
+
+ +

+setFile

+
+public void setFile(StreamInitiation.File file)
+
+
Sets the file which contains the information pertaining to the file to be + transfered. +

+

+
Parameters:
file - The file identified by the stream initiator to be sent.
+
+
+
+ +

+getFile

+
+public StreamInitiation.File getFile()
+
+
Returns the file containing the information about the request. +

+

+ +
Returns:
Returns the file containing the information about the request.
+
+
+
+ +

+setFeatureNegotiationForm

+
+public void setFeatureNegotiationForm(DataForm form)
+
+
Sets the data form which contains the valid methods of stream neotiation + and transfer. +

+

+
Parameters:
form - The dataform containing the methods.
+
+
+
+ +

+getFeatureNegotiationForm

+
+public DataForm getFeatureNegotiationForm()
+
+
Returns the data form which contains the valid methods of stream + neotiation and transfer. +

+

+ +
Returns:
Returns the data form which contains the valid methods of stream + neotiation and transfer.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Time.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Time.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Time.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,544 @@ + + + + + + +Time (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class Time

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.Time
+
+
+
+
public class Time
extends IQ
+ + +

+A Time IQ packet, which is used by XMPP clients to exchange their respective local + times. Clients that wish to fully support the entitity time protocol should register + a PacketListener for incoming time requests that then respond with the local time. + This class can be used to request the time from other clients, such as in the + following code snippet: + +

+ // Request the time from a remote user.
+ Time timeRequest = new Time();
+ timeRequest.setType(IQ.Type.GET);
+ timeRequest.setTo(someUser@example.com);
+
+ // Create a packet collector to listen for a response.
+ PacketCollector collector = con.createPacketCollector(
+                new PacketIDFilter(timeRequest.getPacketID()));
+
+ con.sendPacket(timeRequest);
+
+ // Wait up to 5 seconds for a result.
+ IQ result = (IQ)collector.nextResult(5000);
+ if (result != null && result.getType() == IQ.Type.RESULT) {
+     Time timeResult = (Time)result;
+     // Do something with result...
+ }

+ + Warning: this is an non-standard protocol documented by + JEP-90. Because this is a + non-standard protocol, it is subject to change. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + + + + +
+Constructor Summary
Time() + +
+          Creates a new Time instance with empty values for all fields.
Time(Calendar cal) + +
+          Creates a new Time instance using the specified calendar instance as + the time value to send.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ StringgetDisplay() + +
+          Returns the local (non-utc) time in human-friendly format.
+ DategetTime() + +
+          Returns the local time or null if the time hasn't been set.
+ StringgetTz() + +
+          Returns the time zone.
+ StringgetUtc() + +
+          Returns the time as a UTC formatted String using the format CCYYMMDDThh:mm:ss.
+ voidsetDisplay(String display) + +
+          Sets the local time in human-friendly format.
+ voidsetTime(Date time) + +
+          Sets the time using the local time.
+ voidsetTz(String tz) + +
+          Sets the time zone.
+ voidsetUtc(String utc) + +
+          Sets the time using UTC formatted String in the format CCYYMMDDThh:mm:ss.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Time

+
+public Time()
+
+
Creates a new Time instance with empty values for all fields. +

+

+
+ +

+Time

+
+public Time(Calendar cal)
+
+
Creates a new Time instance using the specified calendar instance as + the time value to send. +

+

+
Parameters:
cal - the time value.
+
+ + + + + + + + +
+Method Detail
+ +

+getTime

+
+public Date getTime()
+
+
Returns the local time or null if the time hasn't been set. +

+

+ +
Returns:
the lcocal time.
+
+
+
+ +

+setTime

+
+public void setTime(Date time)
+
+
Sets the time using the local time. +

+

+
Parameters:
time - the current local time.
+
+
+
+ +

+getUtc

+
+public String getUtc()
+
+
Returns the time as a UTC formatted String using the format CCYYMMDDThh:mm:ss. +

+

+ +
Returns:
the time as a UTC formatted String.
+
+
+
+ +

+setUtc

+
+public void setUtc(String utc)
+
+
Sets the time using UTC formatted String in the format CCYYMMDDThh:mm:ss. +

+

+
Parameters:
utc - the time using a formatted String.
+
+
+
+ +

+getTz

+
+public String getTz()
+
+
Returns the time zone. +

+

+ +
Returns:
the time zone.
+
+
+
+ +

+setTz

+
+public void setTz(String tz)
+
+
Sets the time zone. +

+

+
Parameters:
tz - the time zone.
+
+
+
+ +

+getDisplay

+
+public String getDisplay()
+
+
Returns the local (non-utc) time in human-friendly format. +

+

+ +
Returns:
the local time in human-friendly format.
+
+
+
+ +

+setDisplay

+
+public void setDisplay(String display)
+
+
Sets the local time in human-friendly format. +

+

+
Parameters:
display - the local time in human-friendly format.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/VCard.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/VCard.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/VCard.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,1219 @@ + + + + + + +VCard (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class VCard

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.VCard
+
+
+
+
public class VCard
extends IQ
+ + +

+A VCard class for use with the + SMACK jabber library.

+

+ You should refer to the + JEP-54 documentation.

+

+ Please note that this class is incomplete but it does provide the most commonly found + information in vCards. Also remember that VCard transfer is not a standard, and the protocol + may change or be replaced.

+

+ Usage: +

+ 

+ // To save VCard: +

+ VCard vCard = new VCard(); + vCard.setFirstName("kir"); + vCard.setLastName("max"); + vCard.setEmailHome("foo@fee.bar"); + vCard.setJabberId("jabber@id.org"); + vCard.setOrganization("Jetbrains, s.r.o"); + vCard.setNickName("KIR"); +

+ vCard.setField("TITLE", "Mr"); + vCard.setAddressFieldHome("STREET", "Some street"); + vCard.setAddressFieldWork("CTRY", "US"); + vCard.setPhoneWork("FAX", "3443233"); +

+ vCard.save(connection); +

+ // To load VCard: +

+ VCard vCard = new VCard(); + vCard.load(conn); // load own VCard + vCard.load(conn, "joe@foo.bar"); // load someone's VCard +

+

+ +

+

+
Author:
+
Kirill Maximov (kir@maxkir.com)
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
VCard() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ StringgetAddressFieldHome(String addrField) + +
+          Get home address field
+ StringgetAddressFieldWork(String addrField) + +
+          Get work address field
+ byte[]getAvatar() + +
+          Return the byte representation of the avatar(if one exists), otherwise returns null if + no avatar could be found.
+ StringgetAvatarHash() + +
+          Returns the SHA-1 Hash of the Avatar image.
+static byte[]getBytes(URL url) + +
+          Common code for getting the bytes of a url.
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ StringgetEmailHome() + +
+           
+ StringgetEmailWork() + +
+           
+ StringgetField(String field) + +
+          Set generic VCard field.
+ StringgetFirstName() + +
+           
+ StringgetJabberId() + +
+           
+ StringgetLastName() + +
+           
+ StringgetMiddleName() + +
+           
+ StringgetNickName() + +
+           
+ StringgetOrganization() + +
+           
+ StringgetOrganizationUnit() + +
+           
+ StringgetPhoneHome(String phoneType) + +
+          Get home phone number
+ StringgetPhoneWork(String phoneType) + +
+          Get work phone number
+ inthashCode() + +
+           
+ voidload(XMPPConnection connection) + +
+          Load VCard information for a connected user.
+ voidload(XMPPConnection connection, + String user) + +
+          Load VCard information for a given user.
+ voidsave(XMPPConnection connection) + +
+          Save this vCard for the user connected by 'connection'.
+ voidsetAddressFieldHome(String addrField, + String value) + +
+          Set home address field
+ voidsetAddressFieldWork(String addrField, + String value) + +
+          Set work address field
+ voidsetAvatar(byte[] bytes) + +
+          Specify the bytes for the avatar to use.
+ voidsetAvatar(URL avatarURL) + +
+          Set the avatar for the VCard by specifying the url to the image.
+ voidsetEmailHome(String email) + +
+           
+ voidsetEmailWork(String emailWork) + +
+           
+ voidsetEncodedImage(String encodedAvatar) + +
+          Set the encoded avatar string.
+ voidsetField(String field, + String value) + +
+          Set generic VCard field.
+ voidsetFirstName(String firstName) + +
+           
+ voidsetJabberId(String jabberId) + +
+           
+ voidsetLastName(String lastName) + +
+           
+ voidsetMiddleName(String middleName) + +
+           
+ voidsetNickName(String nickName) + +
+           
+ voidsetOrganization(String organization) + +
+           
+ voidsetOrganizationUnit(String organizationUnit) + +
+           
+ voidsetPhoneHome(String phoneType, + String phoneNum) + +
+          Set home phone number
+ voidsetPhoneWork(String phoneType, + String phoneNum) + +
+          Set work phone number
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+VCard

+
+public VCard()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getField

+
+public String getField(String field)
+
+
Set generic VCard field. +

+

+
Parameters:
field - value of field. Possible values: NICKNAME, PHOTO, BDAY, JABBERID, MAILER, TZ, + GEO, TITLE, ROLE, LOGO, NOTE, PRODID, REV, SORT-STRING, SOUND, UID, URL, DESC.
+
+
+
+ +

+setField

+
+public void setField(String field,
+                     String value)
+
+
Set generic VCard field. +

+

+
Parameters:
value - value of field
field - field to set. See getField(String)
See Also:
getField(String)
+
+
+
+ +

+getFirstName

+
+public String getFirstName()
+
+
+
+
+
+
+ +

+setFirstName

+
+public void setFirstName(String firstName)
+
+
+
+
+
+
+ +

+getLastName

+
+public String getLastName()
+
+
+
+
+
+
+ +

+setLastName

+
+public void setLastName(String lastName)
+
+
+
+
+
+
+ +

+getMiddleName

+
+public String getMiddleName()
+
+
+
+
+
+
+ +

+setMiddleName

+
+public void setMiddleName(String middleName)
+
+
+
+
+
+
+ +

+getNickName

+
+public String getNickName()
+
+
+
+
+
+
+ +

+setNickName

+
+public void setNickName(String nickName)
+
+
+
+
+
+
+ +

+getEmailHome

+
+public String getEmailHome()
+
+
+
+
+
+
+ +

+setEmailHome

+
+public void setEmailHome(String email)
+
+
+
+
+
+
+ +

+getEmailWork

+
+public String getEmailWork()
+
+
+
+
+
+
+ +

+setEmailWork

+
+public void setEmailWork(String emailWork)
+
+
+
+
+
+
+ +

+getJabberId

+
+public String getJabberId()
+
+
+
+
+
+
+ +

+setJabberId

+
+public void setJabberId(String jabberId)
+
+
+
+
+
+
+ +

+getOrganization

+
+public String getOrganization()
+
+
+
+
+
+
+ +

+setOrganization

+
+public void setOrganization(String organization)
+
+
+
+
+
+
+ +

+getOrganizationUnit

+
+public String getOrganizationUnit()
+
+
+
+
+
+
+ +

+setOrganizationUnit

+
+public void setOrganizationUnit(String organizationUnit)
+
+
+
+
+
+
+ +

+getAddressFieldHome

+
+public String getAddressFieldHome(String addrField)
+
+
Get home address field +

+

+
Parameters:
addrField - one of POSTAL, PARCEL, (DOM | INTL), PREF, POBOX, EXTADR, STREET, + LOCALITY, REGION, PCODE, CTRY
+
+
+
+ +

+setAddressFieldHome

+
+public void setAddressFieldHome(String addrField,
+                                String value)
+
+
Set home address field +

+

+
Parameters:
addrField - one of POSTAL, PARCEL, (DOM | INTL), PREF, POBOX, EXTADR, STREET, + LOCALITY, REGION, PCODE, CTRY
+
+
+
+ +

+getAddressFieldWork

+
+public String getAddressFieldWork(String addrField)
+
+
Get work address field +

+

+
Parameters:
addrField - one of POSTAL, PARCEL, (DOM | INTL), PREF, POBOX, EXTADR, STREET, + LOCALITY, REGION, PCODE, CTRY
+
+
+
+ +

+setAddressFieldWork

+
+public void setAddressFieldWork(String addrField,
+                                String value)
+
+
Set work address field +

+

+
Parameters:
addrField - one of POSTAL, PARCEL, (DOM | INTL), PREF, POBOX, EXTADR, STREET, + LOCALITY, REGION, PCODE, CTRY
+
+
+
+ +

+setPhoneHome

+
+public void setPhoneHome(String phoneType,
+                         String phoneNum)
+
+
Set home phone number +

+

+
Parameters:
phoneType - one of VOICE, FAX, PAGER, MSG, CELL, VIDEO, BBS, MODEM, ISDN, PCS, PREF
phoneNum - phone number
+
+
+
+ +

+getPhoneHome

+
+public String getPhoneHome(String phoneType)
+
+
Get home phone number +

+

+
Parameters:
phoneType - one of VOICE, FAX, PAGER, MSG, CELL, VIDEO, BBS, MODEM, ISDN, PCS, PREF
+
+
+
+ +

+setPhoneWork

+
+public void setPhoneWork(String phoneType,
+                         String phoneNum)
+
+
Set work phone number +

+

+
Parameters:
phoneType - one of VOICE, FAX, PAGER, MSG, CELL, VIDEO, BBS, MODEM, ISDN, PCS, PREF
phoneNum - phone number
+
+
+
+ +

+getPhoneWork

+
+public String getPhoneWork(String phoneType)
+
+
Get work phone number +

+

+
Parameters:
phoneType - one of VOICE, FAX, PAGER, MSG, CELL, VIDEO, BBS, MODEM, ISDN, PCS, PREF
+
+
+
+ +

+setAvatar

+
+public void setAvatar(URL avatarURL)
+
+
Set the avatar for the VCard by specifying the url to the image. +

+

+
Parameters:
avatarURL - the url to the image(png,jpeg,gif,bmp)
+
+
+
+ +

+setAvatar

+
+public void setAvatar(byte[] bytes)
+
+
Specify the bytes for the avatar to use. +

+

+
Parameters:
bytes - the bytes of the avatar.
+
+
+
+ +

+setEncodedImage

+
+public void setEncodedImage(String encodedAvatar)
+
+
Set the encoded avatar string. This is used by the provider. +

+

+
Parameters:
encodedAvatar - the encoded avatar string.
+
+
+
+ +

+getAvatar

+
+public byte[] getAvatar()
+
+
Return the byte representation of the avatar(if one exists), otherwise returns null if + no avatar could be found. + Example 1 +
+ // Load Avatar from VCard
+ byte[] avatarBytes = vCard.getAvatar();
+ 

+ // To create an ImageIcon for Swing applications + ImageIcon icon = new ImageIcon(avatar); +

+ // To create just an image object from the bytes + ByteArrayInputStream bais = new ByteArrayInputStream(avatar); + try { + Image image = ImageIO.read(bais); + } + catch (IOException e) { + e.printStackTrace(); + } +

+

+

+ +
Returns:
byte representation of avatar.
+
+
+
+ +

+getBytes

+
+public static byte[] getBytes(URL url)
+                       throws IOException
+
+
Common code for getting the bytes of a url. +

+

+
Parameters:
url - the url to read. +
Throws: +
IOException
+
+
+
+ +

+getAvatarHash

+
+public String getAvatarHash()
+
+
Returns the SHA-1 Hash of the Avatar image. +

+

+ +
Returns:
the SHA-1 Hash of the Avatar image.
+
+
+
+ +

+save

+
+public void save(XMPPConnection connection)
+          throws XMPPException
+
+
Save this vCard for the user connected by 'connection'. Connection should be authenticated + and not anonymous.

+

+ NOTE: the method is asynchronous and does not wait for the returned value. +

+

+
Parameters:
connection - the XMPPConnection to use. +
Throws: +
XMPPException - thrown if there was an issue setting the VCard in the server.
+
+
+
+ +

+load

+
+public void load(XMPPConnection connection)
+          throws XMPPException
+
+
Load VCard information for a connected user. Connection should be authenticated + and not anonymous. +

+

+ +
Throws: +
XMPPException
+
+
+
+ +

+load

+
+public void load(XMPPConnection connection,
+                 String user)
+          throws XMPPException
+
+
Load VCard information for a given user. Connection should be authenticated and not anonymous. +

+

+ +
Throws: +
XMPPException
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Version.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Version.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/Version.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,479 @@ + + + + + + +Version (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class Version

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.packet.Version
+
+
+
+
public class Version
extends IQ
+ + +

+A Version IQ packet, which is used by XMPP clients to discover version information + about the software running at another entity's JID.

+ + An example to discover the version of the server: +

+ // Request the version from the server.
+ Version versionRequest = new Version();
+ timeRequest.setType(IQ.Type.GET);
+ timeRequest.setTo("example.com");
+
+ // Create a packet collector to listen for a response.
+ PacketCollector collector = con.createPacketCollector(
+                new PacketIDFilter(versionRequest.getPacketID()));
+
+ con.sendPacket(versionRequest);
+
+ // Wait up to 5 seconds for a result.
+ IQ result = (IQ)collector.nextResult(5000);
+ if (result != null && result.getType() == IQ.Type.RESULT) {
+     Version versionResult = (Version)result;
+     // Do something with result...
+ }

+

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
Version() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ StringgetName() + +
+          Returns the natural-language name of the software.
+ StringgetOs() + +
+          Returns the operating system of the queried entity.
+ StringgetVersion() + +
+          Returns the specific version of the software.
+ voidsetName(String name) + +
+          Sets the natural-language name of the software.
+ voidsetOs(String os) + +
+          Sets the operating system of the queried entity.
+ voidsetVersion(String version) + +
+          Sets the specific version of the software.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Version

+
+public Version()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
Returns the natural-language name of the software. This property will always be + present in a result. +

+

+ +
Returns:
the natural-language name of the software.
+
+
+
+ +

+setName

+
+public void setName(String name)
+
+
Sets the natural-language name of the software. This message should only be + invoked when parsing the XML and setting the property to a Version instance. +

+

+
Parameters:
name - the natural-language name of the software.
+
+
+
+ +

+getVersion

+
+public String getVersion()
+
+
Returns the specific version of the software. This property will always be + present in a result. +

+

+ +
Returns:
the specific version of the software.
+
+
+
+ +

+setVersion

+
+public void setVersion(String version)
+
+
Sets the specific version of the software. This message should only be + invoked when parsing the XML and setting the property to a Version instance. +

+

+
Parameters:
version - the specific version of the software.
+
+
+
+ +

+getOs

+
+public String getOs()
+
+
Returns the operating system of the queried entity. This property will always be + present in a result. +

+

+ +
Returns:
the operating system of the queried entity.
+
+
+
+ +

+setOs

+
+public void setOs(String os)
+
+
Sets the operating system of the queried entity. This message should only be + invoked when parsing the XML and setting the property to a Version instance. +

+

+
Parameters:
os - operating system of the queried entity.
+
+
+
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/XHTMLExtension.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/XHTMLExtension.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/XHTMLExtension.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,410 @@ + + + + + + +XHTMLExtension (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.packet +
+Class XHTMLExtension

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.packet.XHTMLExtension
+
+
+
All Implemented Interfaces:
PacketExtension
+
+
+
+
public class XHTMLExtension
extends Object
implements PacketExtension
+ + +

+An XHTML sub-packet, which is used by XMPP clients to exchange formatted text. The XHTML + extension is only a subset of XHTML 1.0.

+ + The following link summarizes the requirements of XHTML IM: + Valid tags.

+ + Warning: this is an non-standard protocol documented by + JEP-71. Because this is a + non-standard protocol, it is subject to change. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
XHTMLExtension() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddBody(String body) + +
+          Adds a body to the packet.
+ IteratorgetBodies() + +
+          Returns an Iterator for the bodies in the packet.
+ intgetBodiesCount() + +
+          Returns a count of the bodies in the XHTML packet.
+ StringgetElementName() + +
+          Returns the XML element name of the extension sub-packet root element.
+ StringgetNamespace() + +
+          Returns the XML namespace of the extension sub-packet root element.
+ StringtoXML() + +
+          Returns the XML representation of a XHTML extension according the specification.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XHTMLExtension

+
+public XHTMLExtension()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getElementName

+
+public String getElementName()
+
+
Returns the XML element name of the extension sub-packet root element. + Always returns "html" +

+

+
Specified by:
getElementName in interface PacketExtension
+
+
+ +
Returns:
the XML element name of the packet extension.
+
+
+
+ +

+getNamespace

+
+public String getNamespace()
+
+
Returns the XML namespace of the extension sub-packet root element. + According the specification the namespace is always "http://jabber.org/protocol/xhtml-im" +

+

+
Specified by:
getNamespace in interface PacketExtension
+
+
+ +
Returns:
the XML namespace of the packet extension.
+
+
+
+ +

+toXML

+
+public String toXML()
+
+
Returns the XML representation of a XHTML extension according the specification. + + Usually the XML representation will be inside of a Message XML representation like + in the following example: +
+ <message id="MlIpV-4" to="gato1@gato.home" from="gato3@gato.home/Smack">
+     <subject>Any subject you want</subject>
+     <body>This message contains something interesting.</body>
+     <html xmlns="http://jabber.org/protocol/xhtml-im">
+         <body><p style='font-size:large'>This message contains something <em>interesting</em>.</p></body>
+     </html>
+ </message>
+ 
+

+

+
Specified by:
toXML in interface PacketExtension
+
+
+ +
Returns:
the packet extension as XML.
+
+
+
+ +

+getBodies

+
+public Iterator getBodies()
+
+
Returns an Iterator for the bodies in the packet. +

+

+
+
+
+ +
Returns:
an Iterator for the bodies in the packet.
+
+
+
+ +

+addBody

+
+public void addBody(String body)
+
+
Adds a body to the packet. +

+

+
+
+
+
Parameters:
body - the body to add.
+
+
+
+ +

+getBodiesCount

+
+public int getBodiesCount()
+
+
Returns a count of the bodies in the XHTML packet. +

+

+
+
+
+ +
Returns:
the number of bodies in the XHTML packet.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,143 @@ + + + + + + +org.jivesoftware.smackx.packet (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smackx.packet + + + + +
+Interfaces  + +
+PrivateData
+ + + + + + +
+Classes  + +
+Bytestream +
+Bytestream.Activate +
+Bytestream.Mode +
+Bytestream.StreamHost +
+Bytestream.StreamHostUsed +
+DataForm +
+DataForm.Item +
+DataForm.ReportedData +
+DefaultPrivateData +
+DelayInformation +
+DiscoverInfo +
+DiscoverInfo.Feature +
+DiscoverInfo.Identity +
+DiscoverItems +
+DiscoverItems.Item +
+IBBExtensions +
+IBBExtensions.Close +
+IBBExtensions.Data +
+IBBExtensions.Open +
+LastActivity +
+LastActivity.Provider +
+MessageEvent +
+MUCAdmin +
+MUCAdmin.Item +
+MUCInitialPresence +
+MUCInitialPresence.History +
+MUCOwner +
+MUCOwner.Destroy +
+MUCOwner.Item +
+MUCUser +
+MUCUser.Decline +
+MUCUser.Destroy +
+MUCUser.Invite +
+MUCUser.Item +
+MUCUser.Status +
+MultipleAddresses +
+MultipleAddresses.Address +
+OfflineMessageInfo +
+OfflineMessageInfo.Provider +
+OfflineMessageRequest +
+OfflineMessageRequest.Item +
+OfflineMessageRequest.Provider +
+RosterExchange +
+SharedGroupsInfo +
+SharedGroupsInfo.Provider +
+StreamInitiation +
+StreamInitiation.File +
+Time +
+VCard +
+Version +
+XHTMLExtension
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,406 @@ + + + + + + +org.jivesoftware.smackx.packet (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smackx.packet +

+XML packets that are part of the XMPP extension protocols. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
PrivateDataInterface to represent private data.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
BytestreamA packet representing part of a Socks5 Bytestream negotiation.
Bytestream.ActivateThe packet sent by the stream initiator to the stream proxy to activate + the connection.
Bytestream.ModeThe stream can be either a TCP stream or a UDP stream.
Bytestream.StreamHostPacket extension that represents a potential Socks5 proxy for the file + transfer.
Bytestream.StreamHostUsedAfter selected a Socks5 stream host and successfully connecting, the + target of the file transfer returns a byte stream packet with the stream + host used extension.
DataFormRepresents a form that could be use for gathering data as well as for reporting data + returned from a search.
DataForm.ItemRepresents items of reported data.
DataForm.ReportedDataRepresents the fields that will be returned from a search.
DefaultPrivateDataDefault implementation of the PrivateData interface.
DelayInformationRepresents timestamp information about data stored for later delivery.
DiscoverInfoA DiscoverInfo IQ packet, which is used by XMPP clients to request and receive information + to/from other XMPP entities.
DiscoverInfo.FeatureRepresents the features offered by the item.
DiscoverInfo.IdentityRepresents the identity of a given XMPP entity.
DiscoverItemsA DiscoverItems IQ packet, which is used by XMPP clients to request and receive items + associated with XMPP entities.
DiscoverItems.ItemAn item is associated with an XMPP Entity, usually thought of a children of the parent + entity and normally are addressable as a JID.
IBBExtensionsThe different extensions used throughtout the negotiation and transfer + process.
IBBExtensions.CloseRepresents the closing of the file transfer.
IBBExtensions.DataA data packet containing a portion of the file being sent encoded in + base64.
IBBExtensions.OpenRepresents a request to open the file transfer.
LastActivityA last activity IQ for retrieving information about the last activity associated with a Jabber ID.
LastActivity.ProviderThe IQ Provider for LastActivity.
MessageEventRepresents message events relating to the delivery, display, composition and cancellation of + messages.
MUCAdminIQ packet that serves for kicking users, granting and revoking voice, banning users, + modifying the ban list, granting and revoking membership and granting and revoking + moderator privileges.
MUCAdmin.ItemItem child that holds information about roles, affiliation, jids and nicks.
MUCInitialPresenceRepresents extended presence information whose sole purpose is to signal the ability of + the occupant to speak the MUC protocol when joining a room.
MUCInitialPresence.HistoryThe History class controls the number of characters or messages to receive + when entering a room.
MUCOwnerIQ packet that serves for granting and revoking ownership privileges, granting + and revoking administrative privileges and destroying a room.
MUCOwner.DestroyRepresents a request to the server to destroy a room.
MUCOwner.ItemItem child that holds information about affiliation, jids and nicks.
MUCUserRepresents extended presence information about roles, affiliations, full JIDs, + or status codes scoped by the 'http://jabber.org/protocol/muc#user' namespace.
MUCUser.DeclineRepresents a rejection to an invitation from another user to a room.
MUCUser.DestroyRepresents a notification that the room has been destroyed.
MUCUser.InviteRepresents an invitation for another user to a room.
MUCUser.ItemItem child that holds information about roles, affiliation, jids and nicks.
MUCUser.StatusStatus code assists in presenting notification messages.
MultipleAddressesPacket extension that contains the list of addresses that a packet should be sent or was sent.
MultipleAddresses.Address 
OfflineMessageInfoOfflineMessageInfo is an extension included in the retrieved offline messages requested by + the OfflineMessageManager.
OfflineMessageInfo.Provider 
OfflineMessageRequestRepresents a request to get some or all the offline messages of a user.
OfflineMessageRequest.ItemItem child that holds information about offline messages to view or delete.
OfflineMessageRequest.Provider 
RosterExchangeRepresents XMPP Roster Item Exchange packets.
SharedGroupsInfoIQ packet used for discovering the user's shared groups and for getting the answer back + from the server.
SharedGroupsInfo.ProviderInternal Search service Provider.
StreamInitiationThe process by which two entities initiate a stream.
StreamInitiation.File + size: The size, in bytes, of the data to be sent. + name: The name of the file that the Sender wishes to send. + date: The last modification time of the file.
TimeA Time IQ packet, which is used by XMPP clients to exchange their respective local + times.
VCardA VCard class for use with the + SMACK jabber library.
VersionA Version IQ packet, which is used by XMPP clients to discover version information + about the software running at another entity's JID.
XHTMLExtensionAn XHTML sub-packet, which is used by XMPP clients to exchange formatted text.
+  + +

+

+Package org.jivesoftware.smackx.packet Description +

+ +

+XML packets that are part of the XMPP extension protocols. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/packet/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,176 @@ + + + + + + +org.jivesoftware.smackx.packet Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smackx.packet +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/BytestreamsProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/BytestreamsProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/BytestreamsProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,272 @@ + + + + + + +BytestreamsProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class BytestreamsProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.BytestreamsProvider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
+
public class BytestreamsProvider
extends Object
implements IQProvider
+ + +

+Parses a bytestream packet. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
BytestreamsProvider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BytestreamsProvider

+
+public BytestreamsProvider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DataFormProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DataFormProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DataFormProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,274 @@ + + + + + + +DataFormProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class DataFormProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.DataFormProvider
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
+
public class DataFormProvider
extends Object
implements PacketExtensionProvider
+ + +

+The DataFormProvider parses DataForm packets. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DataFormProvider() + +
+          Creates a new DataFormProvider.
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse an extension sub-packet and create a PacketExtension instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DataFormProvider

+
+public DataFormProvider()
+
+
Creates a new DataFormProvider. + ProviderManager requires that every PacketExtensionProvider has a public, no-argument constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Description copied from interface: PacketExtensionProvider
+
Parse an extension sub-packet and create a PacketExtension instance. At + the beginning of the method call, the xml parser will be positioned on the + opening element of the packet extension. At the end of the method call, the + parser must be positioned on the closing element of the packet extension. +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DelayInformationProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DelayInformationProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DelayInformationProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,275 @@ + + + + + + +DelayInformationProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class DelayInformationProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.DelayInformationProvider
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
+
public class DelayInformationProvider
extends Object
implements PacketExtensionProvider
+ + +

+The DelayInformationProvider parses DelayInformation packets. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DelayInformationProvider() + +
+          Creates a new DeliveryInformationProvider.
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse an extension sub-packet and create a PacketExtension instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DelayInformationProvider

+
+public DelayInformationProvider()
+
+
Creates a new DeliveryInformationProvider. + ProviderManager requires that every PacketExtensionProvider has a public, no-argument + constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Description copied from interface: PacketExtensionProvider
+
Parse an extension sub-packet and create a PacketExtension instance. At + the beginning of the method call, the xml parser will be positioned on the + opening element of the packet extension. At the end of the method call, the + parser must be positioned on the closing element of the packet extension. +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DiscoverInfoProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DiscoverInfoProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DiscoverInfoProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,272 @@ + + + + + + +DiscoverInfoProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class DiscoverInfoProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.DiscoverInfoProvider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
+
public class DiscoverInfoProvider
extends Object
implements IQProvider
+ + +

+The DiscoverInfoProvider parses Service Discovery information packets. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DiscoverInfoProvider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DiscoverInfoProvider

+
+public DiscoverInfoProvider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DiscoverItemsProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DiscoverItemsProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/DiscoverItemsProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,272 @@ + + + + + + +DiscoverItemsProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class DiscoverItemsProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.DiscoverItemsProvider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
+
public class DiscoverItemsProvider
extends Object
implements IQProvider
+ + +

+The DiscoverInfoProvider parses Service Discovery items packets. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DiscoverItemsProvider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DiscoverItemsProvider

+
+public DiscoverItemsProvider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.Close.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.Close.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.Close.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,275 @@ + + + + + + +IBBProviders.Close (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class IBBProviders.Close

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.IBBProviders.Close
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
Enclosing class:
IBBProviders
+
+
+
+
public static class IBBProviders.Close
extends Object
implements IQProvider
+ + +

+Parses a close IBB packet. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
IBBProviders.Close() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IBBProviders.Close

+
+public IBBProviders.Close()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.Data.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.Data.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.Data.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,274 @@ + + + + + + +IBBProviders.Data (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class IBBProviders.Data

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.IBBProviders.Data
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
Enclosing class:
IBBProviders
+
+
+
+
public static class IBBProviders.Data
extends Object
implements PacketExtensionProvider
+ + +

+Parses a data IBB packet. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
IBBProviders.Data() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse an extension sub-packet and create a PacketExtension instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IBBProviders.Data

+
+public IBBProviders.Data()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Description copied from interface: PacketExtensionProvider
+
Parse an extension sub-packet and create a PacketExtension instance. At + the beginning of the method call, the xml parser will be positioned on the + opening element of the packet extension. At the end of the method call, the + parser must be positioned on the closing element of the packet extension. +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.Open.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.Open.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.Open.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,275 @@ + + + + + + +IBBProviders.Open (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class IBBProviders.Open

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.IBBProviders.Open
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
Enclosing class:
IBBProviders
+
+
+
+
public static class IBBProviders.Open
extends Object
implements IQProvider
+ + +

+Parses an open IBB packet. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
IBBProviders.Open() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IBBProviders.Open

+
+public IBBProviders.Open()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/IBBProviders.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,260 @@ + + + + + + +IBBProviders (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class IBBProviders

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.IBBProviders
+
+
+
+
public class IBBProviders
extends Object
+ + +

+Parses an IBB packet. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Nested Class Summary
+static classIBBProviders.Close + +
+          Parses a close IBB packet.
+static classIBBProviders.Data + +
+          Parses a data IBB packet.
+static classIBBProviders.Open + +
+          Parses an open IBB packet.
+  + + + + + + + + + + +
+Constructor Summary
IBBProviders() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IBBProviders

+
+public IBBProviders()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MUCAdminProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MUCAdminProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MUCAdminProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,272 @@ + + + + + + +MUCAdminProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class MUCAdminProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.MUCAdminProvider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
+
public class MUCAdminProvider
extends Object
implements IQProvider
+ + +

+The MUCAdminProvider parses MUCAdmin packets. (@see MUCAdmin) +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCAdminProvider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCAdminProvider

+
+public MUCAdminProvider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MUCOwnerProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MUCOwnerProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MUCOwnerProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,272 @@ + + + + + + +MUCOwnerProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class MUCOwnerProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.MUCOwnerProvider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
+
public class MUCOwnerProvider
extends Object
implements IQProvider
+ + +

+The MUCOwnerProvider parses MUCOwner packets. (@see MUCOwner) +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCOwnerProvider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCOwnerProvider

+
+public MUCOwnerProvider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MUCUserProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MUCUserProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MUCUserProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,272 @@ + + + + + + +MUCUserProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class MUCUserProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.MUCUserProvider
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
+
public class MUCUserProvider
extends Object
implements PacketExtensionProvider
+ + +

+The MUCUserProvider parses packets with extended presence information about + roles and affiliations. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MUCUserProvider() + +
+          Creates a new MUCUserProvider.
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parses a MUCUser packet (extension sub-packet).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MUCUserProvider

+
+public MUCUserProvider()
+
+
Creates a new MUCUserProvider. + ProviderManager requires that every PacketExtensionProvider has a public, no-argument + constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Parses a MUCUser packet (extension sub-packet). +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - the XML parser, positioned at the starting element of the extension. +
Returns:
a PacketExtension. +
Throws: +
Exception - if a parsing error occurs.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MessageEventProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MessageEventProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MessageEventProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,270 @@ + + + + + + +MessageEventProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class MessageEventProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.MessageEventProvider
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
+
public class MessageEventProvider
extends Object
implements PacketExtensionProvider
+ + +

+The MessageEventProvider parses Message Event packets. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MessageEventProvider() + +
+          Creates a new MessageEventProvider.
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parses a MessageEvent packet (extension sub-packet).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MessageEventProvider

+
+public MessageEventProvider()
+
+
Creates a new MessageEventProvider. + ProviderManager requires that every PacketExtensionProvider has a public, no-argument constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Parses a MessageEvent packet (extension sub-packet). +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - the XML parser, positioned at the starting element of the extension. +
Returns:
a PacketExtension. +
Throws: +
Exception - if a parsing error occurs.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MultipleAddressesProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MultipleAddressesProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/MultipleAddressesProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,275 @@ + + + + + + +MultipleAddressesProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class MultipleAddressesProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.MultipleAddressesProvider
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
+
public class MultipleAddressesProvider
extends Object
implements PacketExtensionProvider
+ + +

+The MultipleAddressesProvider parses MultipleAddresses packets. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MultipleAddressesProvider() + +
+          Creates a new MultipleAddressesProvider.
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse an extension sub-packet and create a PacketExtension instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MultipleAddressesProvider

+
+public MultipleAddressesProvider()
+
+
Creates a new MultipleAddressesProvider. + ProviderManager requires that every PacketExtensionProvider has a public, no-argument + constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Description copied from interface: PacketExtensionProvider
+
Parse an extension sub-packet and create a PacketExtension instance. At + the beginning of the method call, the xml parser will be positioned on the + opening element of the packet extension. At the end of the method call, the + parser must be positioned on the closing element of the packet extension. +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/PrivateDataProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/PrivateDataProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/PrivateDataProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,220 @@ + + + + + + +PrivateDataProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Interface PrivateDataProvider

+
+
+
public interface PrivateDataProvider
+ + +

+An interface for parsing custom private data. Each PrivateDataProvider must + be registered with the PrivateDataManager class for it to be used. Every implementation + of this interface must have a public, no-argument constructor. +

+ +

+

+
Author:
+
Matt Tucker
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ PrivateDataparsePrivateData(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the private data sub-document and create a PrivateData instance.
+  +

+ + + + + + + + +
+Method Detail
+ +

+parsePrivateData

+
+PrivateData parsePrivateData(org.xmlpull.v1.XmlPullParser parser)
+                             throws Exception
+
+
Parse the private data sub-document and create a PrivateData instance. At the + beginning of the method call, the xml parser will be positioned at the opening + tag of the private data child element. At the end of the method call, the parser + must be positioned on the closing tag of the child element. +

+

+
Parameters:
parser - an XML parser. +
Returns:
a new PrivateData instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/RosterExchangeProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/RosterExchangeProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/RosterExchangeProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,270 @@ + + + + + + +RosterExchangeProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class RosterExchangeProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.RosterExchangeProvider
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
+
public class RosterExchangeProvider
extends Object
implements PacketExtensionProvider
+ + +

+The RosterExchangeProvider parses RosterExchange packets. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
RosterExchangeProvider() + +
+          Creates a new RosterExchangeProvider.
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parses a RosterExchange packet (extension sub-packet).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RosterExchangeProvider

+
+public RosterExchangeProvider()
+
+
Creates a new RosterExchangeProvider. + ProviderManager requires that every PacketExtensionProvider has a public, no-argument constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Parses a RosterExchange packet (extension sub-packet). +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - the XML parser, positioned at the starting element of the extension. +
Returns:
a PacketExtension. +
Throws: +
Exception - if a parsing error occurs.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/StreamInitiationProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/StreamInitiationProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/StreamInitiationProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,272 @@ + + + + + + +StreamInitiationProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class StreamInitiationProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.StreamInitiationProvider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
+
public class StreamInitiationProvider
extends Object
implements IQProvider
+ + +

+The StreamInitiationProvider parses StreamInitiation packets. +

+ +

+

+
Author:
+
Alexander Wenckus
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StreamInitiationProvider() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StreamInitiationProvider

+
+public StreamInitiationProvider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/VCardProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/VCardProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/VCardProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,294 @@ + + + + + + +VCardProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class VCardProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.VCardProvider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
+
public class VCardProvider
extends Object
implements IQProvider
+ + +

+vCard provider. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
VCardProvider() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static VCard_createVCardFromXml(String xmlText) + +
+           
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+VCardProvider

+
+public VCardProvider()
+
+
+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+
+ +

+_createVCardFromXml

+
+public static VCard _createVCardFromXml(String xmlText)
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,270 @@ + + + + + + +XHTMLExtensionProvider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.provider +
+Class XHTMLExtensionProvider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.provider.XHTMLExtensionProvider
+
+
+
All Implemented Interfaces:
PacketExtensionProvider
+
+
+
+
public class XHTMLExtensionProvider
extends Object
implements PacketExtensionProvider
+ + +

+The XHTMLExtensionProvider parses XHTML packets. +

+ +

+

+
Author:
+
Gaston Dombiak
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
XHTMLExtensionProvider() + +
+          Creates a new XHTMLExtensionProvider.
+  + + + + + + + + + + + +
+Method Summary
+ PacketExtensionparseExtension(org.xmlpull.v1.XmlPullParser parser) + +
+          Parses a XHTMLExtension packet (extension sub-packet).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XHTMLExtensionProvider

+
+public XHTMLExtensionProvider()
+
+
Creates a new XHTMLExtensionProvider. + ProviderManager requires that every PacketExtensionProvider has a public, no-argument constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+parseExtension

+
+public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
+                               throws Exception
+
+
Parses a XHTMLExtension packet (extension sub-packet). +

+

+
Specified by:
parseExtension in interface PacketExtensionProvider
+
+
+
Parameters:
parser - the XML parser, positioned at the starting element of the extension. +
Returns:
a PacketExtension. +
Throws: +
Exception - if a parsing error occurs.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,77 @@ + + + + + + +org.jivesoftware.smackx.provider (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smackx.provider + + + + +
+Interfaces  + +
+PrivateDataProvider
+ + + + + + +
+Classes  + +
+BytestreamsProvider +
+DataFormProvider +
+DelayInformationProvider +
+DiscoverInfoProvider +
+DiscoverItemsProvider +
+IBBProviders +
+IBBProviders.Close +
+IBBProviders.Data +
+IBBProviders.Open +
+MessageEventProvider +
+MUCAdminProvider +
+MUCOwnerProvider +
+MUCUserProvider +
+MultipleAddressesProvider +
+RosterExchangeProvider +
+StreamInitiationProvider +
+VCardProvider +
+XHTMLExtensionProvider
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,250 @@ + + + + + + +org.jivesoftware.smackx.provider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smackx.provider +

+Provides pluggable parsing logic for Smack extensions. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
PrivateDataProviderAn interface for parsing custom private data.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
BytestreamsProviderParses a bytestream packet.
DataFormProviderThe DataFormProvider parses DataForm packets.
DelayInformationProviderThe DelayInformationProvider parses DelayInformation packets.
DiscoverInfoProviderThe DiscoverInfoProvider parses Service Discovery information packets.
DiscoverItemsProviderThe DiscoverInfoProvider parses Service Discovery items packets.
IBBProvidersParses an IBB packet.
IBBProviders.CloseParses a close IBB packet.
IBBProviders.DataParses a data IBB packet.
IBBProviders.OpenParses an open IBB packet.
MessageEventProviderThe MessageEventProvider parses Message Event packets.
MUCAdminProviderThe MUCAdminProvider parses MUCAdmin packets.
MUCOwnerProviderThe MUCOwnerProvider parses MUCOwner packets.
MUCUserProviderThe MUCUserProvider parses packets with extended presence information about + roles and affiliations.
MultipleAddressesProviderThe MultipleAddressesProvider parses MultipleAddresses packets.
RosterExchangeProviderThe RosterExchangeProvider parses RosterExchange packets.
StreamInitiationProviderThe StreamInitiationProvider parses StreamInitiation packets.
VCardProvidervCard provider.
XHTMLExtensionProviderThe XHTMLExtensionProvider parses XHTML packets.
+  + +

+

+Package org.jivesoftware.smackx.provider Description +

+ +

+Provides pluggable parsing logic for Smack extensions. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/provider/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,169 @@ + + + + + + +org.jivesoftware.smackx.provider Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smackx.provider +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/UserSearch.Provider.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/UserSearch.Provider.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/UserSearch.Provider.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,273 @@ + + + + + + +UserSearch.Provider (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.search +
+Class UserSearch.Provider

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.search.UserSearch.Provider
+
+
+
All Implemented Interfaces:
IQProvider
+
+
+
Enclosing class:
UserSearch
+
+
+
+
public static class UserSearch.Provider
extends Object
implements IQProvider
+ + +

+Internal Search service Provider. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
UserSearch.Provider() + +
+          Provider Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ IQparseIQ(org.xmlpull.v1.XmlPullParser parser) + +
+          Parse the IQ sub-document and create an IQ instance.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UserSearch.Provider

+
+public UserSearch.Provider()
+
+
Provider Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+parseIQ

+
+public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
+           throws Exception
+
+
Description copied from interface: IQProvider
+
Parse the IQ sub-document and create an IQ instance. Each IQ must have a + single child element. At the beginning of the method call, the xml parser + will be positioned at the opening tag of the IQ child element. At the end + of the method call, the parser must be positioned on the closing tag + of the child element. +

+

+
Specified by:
parseIQ in interface IQProvider
+
+
+
Parameters:
parser - an XML parser. +
Returns:
a new IQ instance. +
Throws: +
Exception - if an error occurs parsing the XML.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/UserSearch.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/UserSearch.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/UserSearch.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,423 @@ + + + + + + +UserSearch (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.search +
+Class UserSearch

+
+java.lang.Object
+  extended by org.jivesoftware.smack.packet.Packet
+      extended by org.jivesoftware.smack.packet.IQ
+          extended by org.jivesoftware.smackx.search.UserSearch
+
+
+
+
public class UserSearch
extends IQ
+ + +

+Implements the protocol currently used to search information repositories on the Jabber network. To date, the jabber:iq:search protocol + has been used mainly to search for people who have registered with user directories (e.g., the "Jabber User Directory" hosted at users.jabber.org). + However, the jabber:iq:search protocol is not limited to user directories, and could be used to search other Jabber information repositories + (such as chatroom directories) or even to provide a Jabber interface to conventional search engines. +

+ The basic functionality is to query an information repository regarding the possible search fields, to send a search query, and to receive search results. +

+ +

+

+
Author:
+
Derek DeMoro
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classUserSearch.Provider + +
+          Internal Search service Provider.
+ + + + + + + +
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
+  + + + + + + + + + + +
+Constructor Summary
UserSearch() + +
+          Creates a new instance of UserSearch.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetChildElementXML() + +
+          Returns the sub-element XML section of the IQ packet, or null if there + isn't one.
+ FormgetSearchForm(XMPPConnection con, + String searchService) + +
+          Returns the form for all search fields supported by the search service.
+ ReportedDatasendSearchForm(XMPPConnection con, + Form searchForm, + String searchService) + +
+          Sends the filled out answer form to be sent and queried by the search service.
+ ReportedDatasendSimpleSearchForm(XMPPConnection con, + Form searchForm, + String searchService) + +
+          Sends the filled out answer form to be sent and queried by the search service.
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
+ + + + + + + +
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UserSearch

+
+public UserSearch()
+
+
Creates a new instance of UserSearch. +

+

+ + + + + + + + +
+Method Detail
+ +

+getChildElementXML

+
+public String getChildElementXML()
+
+
Description copied from class: IQ
+
Returns the sub-element XML section of the IQ packet, or null if there + isn't one. Packet extensions must be included, if any are defined.

+ + Extensions of this class must override this method. +

+

+
Specified by:
getChildElementXML in class IQ
+
+
+ +
Returns:
the child element section of the IQ XML.
+
+
+
+ +

+getSearchForm

+
+public Form getSearchForm(XMPPConnection con,
+                          String searchService)
+                   throws XMPPException
+
+
Returns the form for all search fields supported by the search service. +

+

+
Parameters:
con - the current XMPPConnection.
searchService - the search service to use. (ex. search.jivesoftware.com) +
Returns:
the search form received by the server. +
Throws: +
XMPPException - thrown if a server error has occurred.
+
+
+
+ +

+sendSearchForm

+
+public ReportedData sendSearchForm(XMPPConnection con,
+                                   Form searchForm,
+                                   String searchService)
+                            throws XMPPException
+
+
Sends the filled out answer form to be sent and queried by the search service. +

+

+
Parameters:
con - the current XMPPConnection.
searchForm - the Form to send for querying.
searchService - the search service to use. (ex. search.jivesoftware.com) +
Returns:
ReportedData the data found from the query. +
Throws: +
XMPPException - thrown if a server error has occurred.
+
+
+
+ +

+sendSimpleSearchForm

+
+public ReportedData sendSimpleSearchForm(XMPPConnection con,
+                                         Form searchForm,
+                                         String searchService)
+                                  throws XMPPException
+
+
Sends the filled out answer form to be sent and queried by the search service. +

+

+
Parameters:
con - the current XMPPConnection.
searchForm - the Form to send for querying.
searchService - the search service to use. (ex. search.jivesoftware.com) +
Returns:
ReportedData the data found from the query. +
Throws: +
XMPPException - thrown if a server error has occurred.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/UserSearchManager.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/UserSearchManager.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/UserSearchManager.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,332 @@ + + + + + + +UserSearchManager (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+ +

+ +org.jivesoftware.smackx.search +
+Class UserSearchManager

+
+java.lang.Object
+  extended by org.jivesoftware.smackx.search.UserSearchManager
+
+
+
+
public class UserSearchManager
extends Object
+ + +

+The UserSearchManager is a facade built upon Jabber Search Services (JEP-055) to allow for searching + repositories on a Jabber Server. This implementation allows for transparency of implementation of + searching (DataForms or No DataForms), but allows the user to simply use the DataForm model for both + types of support. +

+ XMPPConnection con = new XMPPConnection("jabber.org");
+ con.login("john", "doe");
+ UserSearchManager search = new UserSearchManager(con, "users.jabber.org");
+ Form searchForm = search.getSearchForm();
+ Form answerForm = searchForm.createAnswerForm();
+ answerForm.setAnswer("last", "DeMoro");
+ ReportedData data = search.getSearchResults(answerForm);
+ // Use Returned Data
+ 
+

+ +

+

+
Author:
+
Derek DeMoro
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
UserSearchManager(XMPPConnection con) + +
+          Creates a new UserSearchManager.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ FormgetSearchForm(String searchService) + +
+          Returns the form to fill out to perform a search.
+ ReportedDatagetSearchResults(Form searchForm, + String searchService) + +
+          Submits a search form to the server and returns the resulting information + in the form of ReportedData
+ CollectiongetSearchServices() + +
+          Returns a collection of search services found on the server.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UserSearchManager

+
+public UserSearchManager(XMPPConnection con)
+
+
Creates a new UserSearchManager. +

+

+
Parameters:
con - the XMPPConnection to use.
+
+ + + + + + + + +
+Method Detail
+ +

+getSearchForm

+
+public Form getSearchForm(String searchService)
+                   throws XMPPException
+
+
Returns the form to fill out to perform a search. +

+

+
Parameters:
searchService - the search service to query. +
Returns:
the form to fill out to perform a search. +
Throws: +
XMPPException - thrown if a server error has occurred.
+
+
+
+ +

+getSearchResults

+
+public ReportedData getSearchResults(Form searchForm,
+                                     String searchService)
+                              throws XMPPException
+
+
Submits a search form to the server and returns the resulting information + in the form of ReportedData +

+

+
Parameters:
searchForm - the Form to submit for searching.
searchService - the name of the search service to use. +
Returns:
the ReportedData returned by the server. +
Throws: +
XMPPException - thrown if a server error has occurred.
+
+
+
+ +

+getSearchServices

+
+public Collection getSearchServices()
+                             throws XMPPException
+
+
Returns a collection of search services found on the server. +

+

+ +
Returns:
a Collection of search services found on the server. +
Throws: +
XMPPException - thrown if a server error has occurred.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/package-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/package-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/package-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,36 @@ + + + + + + +org.jivesoftware.smackx.search (Smack 2.2.0 Documentation) + + + + + + + + + + + +org.jivesoftware.smackx.search + + + + +
+Classes  + +
+UserSearch +
+UserSearch.Provider +
+UserSearchManager
+ + + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/package-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/package-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/package-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,161 @@ + + + + + + +org.jivesoftware.smackx.search (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+

+Package org.jivesoftware.smackx.search +

+ + + + + + + + + + + + + + + + + +
+Class Summary
UserSearchImplements the protocol currently used to search information repositories on the Jabber network.
UserSearch.ProviderInternal Search service Provider.
UserSearchManagerThe UserSearchManager is a facade built upon Jabber Search Services (JEP-055) to allow for searching + repositories on a Jabber Server.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/package-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/package-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/org/jivesoftware/smackx/search/package-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,152 @@ + + + + + + +org.jivesoftware.smackx.search Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For Package org.jivesoftware.smackx.search +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/overview-frame.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/overview-frame.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/overview-frame.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,68 @@ + + + + + + +Overview (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + +
+Smack
+ + + + + +
All Classes +

+ +Packages +
+org.jivesoftware.smack +
+org.jivesoftware.smack.debugger +
+org.jivesoftware.smack.filter +
+org.jivesoftware.smack.packet +
+org.jivesoftware.smack.provider +
+org.jivesoftware.smack.sasl +
+org.jivesoftware.smack.util +
+org.jivesoftware.smackx +
+org.jivesoftware.smackx.debugger +
+org.jivesoftware.smackx.filetransfer +
+org.jivesoftware.smackx.muc +
+org.jivesoftware.smackx.packet +
+org.jivesoftware.smackx.provider +
+org.jivesoftware.smackx.search +
+

+ +

+  + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/overview-summary.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/overview-summary.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/overview-summary.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,217 @@ + + + + + + +Overview (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +


+
+

+Smack 2.2.0 +

+
+API specification for Smack, an Open Source XMPP client library. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages
org.jivesoftware.smackCore classes of the Smack API.
org.jivesoftware.smack.debuggerCore debugger functionality.
org.jivesoftware.smack.filterAllows PacketCollector and PacketListener instances to filter for packets with particular attributes.
org.jivesoftware.smack.packetXML packets that are part of the XMPP protocol.
org.jivesoftware.smack.providerProvides pluggable parsing of incoming IQ's and packet extensions.
org.jivesoftware.smack.saslSASL Mechanisms.
org.jivesoftware.smack.utilUtility classes.
org.jivesoftware.smackxSmack extensions API.
org.jivesoftware.smackx.debuggerSmack optional Debuggers.
org.jivesoftware.smackx.filetransfer 
org.jivesoftware.smackx.mucClasses and Interfaces that implement Multi-User Chat (MUC).
org.jivesoftware.smackx.packetXML packets that are part of the XMPP extension protocols.
org.jivesoftware.smackx.providerProvides pluggable parsing logic for Smack extensions.
org.jivesoftware.smackx.search 
+ +

+

+API specification for Smack, an Open Source XMPP client library. +

+The XMPPConnection class is the main entry point for the API. +

+ +

+


+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/overview-tree.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/overview-tree.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/overview-tree.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,237 @@ + + + + + + +Class Hierarchy (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
org.jivesoftware.smack, org.jivesoftware.smack.debugger, org.jivesoftware.smack.filter, org.jivesoftware.smack.packet, org.jivesoftware.smack.provider, org.jivesoftware.smack.sasl, org.jivesoftware.smack.util, org.jivesoftware.smackx, org.jivesoftware.smackx.debugger, org.jivesoftware.smackx.filetransfer, org.jivesoftware.smackx.muc, org.jivesoftware.smackx.packet, org.jivesoftware.smackx.provider, org.jivesoftware.smackx.search
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/resources/inherit.gif =================================================================== diff -u Binary files differ Index: lams_tool_chat/lib/smack-2.2.0/javadoc/serialized-form.html =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/serialized-form.html (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/serialized-form.html (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,191 @@ + + + + + + +Serialized Form (Smack 2.2.0 Documentation) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Smack +
+ + + +
+
+

+Serialized Form

+
+
+ + + + + +
+Package org.jivesoftware.smack
+ +

+ + + + + +
+Class org.jivesoftware.smack.XMPPException extends Exception implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+streamError

+
+StreamError streamError
+
+
+
+
+
+

+error

+
+XMPPError error
+
+
+
+
+
+

+wrappedThrowable

+
+Throwable wrappedThrowable
+
+
+
+
+ +

+


+ + + + + + + + + + + + + + + +
+Smack +
+ + + +
+Copyright © 2003 Jive Software. + + Index: lams_tool_chat/lib/smack-2.2.0/javadoc/stylesheet.css =================================================================== diff -u --- lams_tool_chat/lib/smack-2.2.0/javadoc/stylesheet.css (revision 0) +++ lams_tool_chat/lib/smack-2.2.0/javadoc/stylesheet.css (revision 9b94e56785537e7f5c45b91d506ff36caf3b08d0) @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ +.TableRowColor { background: #FFFFFF } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF;} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} + Index: lams_tool_chat/lib/smack-2.2.0/smack.jar =================================================================== diff -u Binary files differ Index: lams_tool_chat/lib/smack-2.2.0/smackx-debug.jar =================================================================== diff -u Binary files differ Index: lams_tool_chat/lib/smack-2.2.0/smackx.jar =================================================================== diff -u Binary files differ