com.caucho.quercus.lib.bam
Class BamModule

java.lang.Object
  extended by com.caucho.quercus.module.AbstractQuercusModule
      extended by com.caucho.quercus.lib.bam.BamModule
All Implemented Interfaces:
QuercusModule

public class BamModule
extends AbstractQuercusModule

BAM functions


Field Summary
 
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
 
Constructor Summary
BamModule()
           
 
Method Summary
static Value bam_actor_exists(Env env, java.lang.String address)
           
static java.lang.String bam_address_resource(Env env, java.lang.String uri)
           
static java.lang.String bam_bare_address(Env env, java.lang.String uri)
           
static Value bam_dispatch(Env env)
          Dispatches messages, queries, and presences to handler functions based on their prefixes.
static Value bam_login(Env env, java.lang.String url, java.lang.String username, java.lang.String password)
           
static java.lang.String bam_my_address(Env env)
           
static Value bam_register_actor(Env env, java.lang.String address, java.lang.String script)
          Registers a "child" actor that is represented by the given script.
static Value bam_register_service(Env env, java.lang.String address, java.lang.String script)
          Registers a "child" service that is represented by the given script.
static void bam_send_message_error(Env env, java.lang.String to, java.io.Serializable value, BamError error)
           
static void bam_send_message(Env env, java.lang.String to, java.io.Serializable value)
           
static void bam_send_query_error(Env env, long id, java.lang.String to, java.io.Serializable value, BamError error)
           
static void bam_send_query_result(Env env, long id, java.lang.String to, java.io.Serializable value)
           
static Value bam_send_query(Env env, long id, java.lang.String to, java.io.Serializable value)
           
static Value bam_service_exists(Env env, java.lang.String address)
           
static Value bam_unregister_service(Env env, java.lang.String address)
          Registers a "child" service that is represented by the given script.
static RosterItem im_create_roster_item(Env env, java.lang.String address, java.lang.String name, java.lang.String subscription, java.util.ArrayList<java.lang.String> groupList)
           
static Value im_send_message(Env env, java.lang.String to, java.lang.String from, Value body, java.lang.String type, Value subject, java.lang.String thread, java.io.Serializable[] extras)
           
static void im_send_presence_probe(Env env, java.lang.String to, java.lang.String from, java.lang.String show, java.lang.String status, int priority, java.util.ArrayList<java.io.Serializable> extras)
           
static void im_send_presence_subscribe(Env env, java.lang.String to, java.lang.String from, java.lang.String show, java.lang.String status, int priority, java.util.ArrayList<java.io.Serializable> extras)
          Makes a subscription request.
static void im_send_presence_subscribed(Env env, java.lang.String to, java.lang.String from, java.lang.String show, java.lang.String status, int priority, java.util.ArrayList<java.io.Serializable> extras)
          Approves a subscription request.
static void im_send_presence_unavailable(Env env, java.lang.String to, java.lang.String from, java.lang.String show, java.lang.String status, int priority, java.util.ArrayList<java.io.Serializable> extras)
           
static void im_send_presence_unsubscribe(Env env, java.lang.String to, java.lang.String from, java.lang.String show, java.lang.String status, int priority, java.util.ArrayList<java.io.Serializable> extras)
          Makes an unsubscription request.
static void im_send_presence_unsubscribed(Env env, java.lang.String to, java.lang.String from, java.lang.String show, java.lang.String status, int priority, java.util.ArrayList<java.io.Serializable> extras)
          Rejects a subscription request.
static void im_send_presence(Env env, java.lang.String to, java.lang.String from, java.lang.String show, java.lang.String status, int priority, java.util.ArrayList<java.io.Serializable> extras)
           
static void im_send_roster(Env env, long id, java.lang.String to, java.util.ArrayList<RosterItem> roster)
           
 
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BamModule

public BamModule()
Method Detail

bam_login

public static Value bam_login(Env env,
                              java.lang.String url,
                              java.lang.String username,
                              java.lang.String password)

bam_service_exists

public static Value bam_service_exists(Env env,
                                       java.lang.String address)

bam_register_service

public static Value bam_register_service(Env env,
                                         java.lang.String address,
                                         java.lang.String script)
Registers a "child" service that is represented by the given script.


bam_unregister_service

public static Value bam_unregister_service(Env env,
                                           java.lang.String address)
Registers a "child" service that is represented by the given script.


bam_actor_exists

public static Value bam_actor_exists(Env env,
                                     java.lang.String address)

bam_register_actor

public static Value bam_register_actor(Env env,
                                       java.lang.String address,
                                       java.lang.String script)
Registers a "child" actor that is represented by the given script.


bam_my_address

public static java.lang.String bam_my_address(Env env)

bam_bare_address

public static java.lang.String bam_bare_address(Env env,
                                                java.lang.String uri)

bam_address_resource

public static java.lang.String bam_address_resource(Env env,
                                                    java.lang.String uri)

bam_send_message

public static void bam_send_message(Env env,
                                    java.lang.String to,
                                    java.io.Serializable value)

bam_send_message_error

public static void bam_send_message_error(Env env,
                                          java.lang.String to,
                                          java.io.Serializable value,
                                          BamError error)

bam_send_query

public static Value bam_send_query(Env env,
                                   long id,
                                   java.lang.String to,
                                   java.io.Serializable value)

bam_send_query_result

public static void bam_send_query_result(Env env,
                                         long id,
                                         java.lang.String to,
                                         java.io.Serializable value)

bam_send_query_error

public static void bam_send_query_error(Env env,
                                        long id,
                                        java.lang.String to,
                                        java.io.Serializable value,
                                        BamError error)

im_send_message

public static Value im_send_message(Env env,
                                    java.lang.String to,
                                    java.lang.String from,
                                    Value body,
                                    java.lang.String type,
                                    Value subject,
                                    java.lang.String thread,
                                    java.io.Serializable[] extras)

im_create_roster_item

public static RosterItem im_create_roster_item(Env env,
                                               java.lang.String address,
                                               java.lang.String name,
                                               java.lang.String subscription,
                                               java.util.ArrayList<java.lang.String> groupList)

im_send_roster

public static void im_send_roster(Env env,
                                  long id,
                                  java.lang.String to,
                                  java.util.ArrayList<RosterItem> roster)

im_send_presence

public static void im_send_presence(Env env,
                                    java.lang.String to,
                                    java.lang.String from,
                                    java.lang.String show,
                                    java.lang.String status,
                                    int priority,
                                    java.util.ArrayList<java.io.Serializable> extras)

im_send_presence_unavailable

public static void im_send_presence_unavailable(Env env,
                                                java.lang.String to,
                                                java.lang.String from,
                                                java.lang.String show,
                                                java.lang.String status,
                                                int priority,
                                                java.util.ArrayList<java.io.Serializable> extras)

im_send_presence_subscribe

public static void im_send_presence_subscribe(Env env,
                                              java.lang.String to,
                                              java.lang.String from,
                                              java.lang.String show,
                                              java.lang.String status,
                                              int priority,
                                              java.util.ArrayList<java.io.Serializable> extras)
Makes a subscription request.


im_send_presence_subscribed

public static void im_send_presence_subscribed(Env env,
                                               java.lang.String to,
                                               java.lang.String from,
                                               java.lang.String show,
                                               java.lang.String status,
                                               int priority,
                                               java.util.ArrayList<java.io.Serializable> extras)
Approves a subscription request.


im_send_presence_unsubscribe

public static void im_send_presence_unsubscribe(Env env,
                                                java.lang.String to,
                                                java.lang.String from,
                                                java.lang.String show,
                                                java.lang.String status,
                                                int priority,
                                                java.util.ArrayList<java.io.Serializable> extras)
Makes an unsubscription request.


im_send_presence_unsubscribed

public static void im_send_presence_unsubscribed(Env env,
                                                 java.lang.String to,
                                                 java.lang.String from,
                                                 java.lang.String show,
                                                 java.lang.String status,
                                                 int priority,
                                                 java.util.ArrayList<java.io.Serializable> extras)
Rejects a subscription request.


im_send_presence_probe

public static void im_send_presence_probe(Env env,
                                          java.lang.String to,
                                          java.lang.String from,
                                          java.lang.String show,
                                          java.lang.String status,
                                          int priority,
                                          java.util.ArrayList<java.io.Serializable> extras)

bam_dispatch

public static Value bam_dispatch(Env env)
Dispatches messages, queries, and presences to handler functions based on their prefixes.