xmlBlaster 2.2.0 client API

org.xmlBlaster.client.protocol.http.j2me
Class XmlBlasterAccessJ2ME

java.lang.Object
  extended by org.xmlBlaster.client.protocol.http.common.XmlBlasterAccessRawBase
      extended by org.xmlBlaster.client.protocol.http.j2me.XmlBlasterAccessJ2ME
All Implemented Interfaces:
I_XmlBlasterAccessRaw

public class XmlBlasterAccessJ2ME
extends XmlBlasterAccessRawBase

A java client implementation to access xmlBlaster using a persistent http connection for instant callback messages.

You can control logging with the Applet PARAM tag, logging output is put to the Java console of your browser:

 <PARAM name="xmlBlaster/logLevels" value="ERROR,WARN">
 with more logging:
 <PARAM name="xmlBlaster/logLevels" value="ERROR,WARN,INFO,DEBUG">
 
See the example applet HelloWorld3 on how to use it.

Author:
Marcel Ruff
See Also:
HelloWorld3

Field Summary
 
Fields inherited from class org.xmlBlaster.client.protocol.http.common.XmlBlasterAccessRawBase
instanceCount, logLevels, logListener, ONEWAY, properties, xmlBlasterServletUrl
 
Fields inherited from interface org.xmlBlaster.client.protocol.http.common.I_XmlBlasterAccessRaw
CONNECT_NAME, CREATE_SESSIONID_NAME, DISCONNECT_NAME, ERASE_NAME, EXCEPTION_NAME, GET_NAME, PING_NAME, PONG_NAME, PUBLISH_NAME, SUBSCRIBE_NAME, UNSUBSCRIBE_NAME, UPDATE_NAME
 
Constructor Summary
XmlBlasterAccessJ2ME(MIDlet midlet)
          Provides access to xmlBlaster server.
 
Method Summary
 I_Connection createConnection(java.lang.String url)
          Creates a connection to the specified servlet.
 byte[] decodeBase64(byte[] data)
           
 byte[] encodeBase64(byte[] data)
          This was previously URLEncoder but j2me has no such support
 
Methods inherited from class org.xmlBlaster.client.protocol.http.common.XmlBlasterAccessRawBase
connect, decodeBase64, disconnect, erase, extractCookies, get, getHtmlProperties, getInstanceCount, getInstanceId, getXmlBlasterServletUrl, isConnected, isConnected, log, log, ping, publish, readCookie, sendXmlScript, setLogListener, subscribe, unSubscribe, update, writeCookie
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlBlasterAccessJ2ME

public XmlBlasterAccessJ2ME(MIDlet midlet)
Provides access to xmlBlaster server.

Parameters:
applet - My environment
See Also:
#parseAppletParameter
Method Detail

encodeBase64

public byte[] encodeBase64(byte[] data)
This was previously URLEncoder but j2me has no such support


decodeBase64

public byte[] decodeBase64(byte[] data)

createConnection

public I_Connection createConnection(java.lang.String url)
                              throws java.lang.Exception
Description copied from interface: I_XmlBlasterAccessRaw
Creates a connection to the specified servlet.

Specified by:
createConnection in interface I_XmlBlasterAccessRaw
Specified by:
createConnection in class XmlBlasterAccessRawBase
Returns:
Throws:
java.lang.Exception

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.