xmlBlaster 1.6.2 client API

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

java.lang.Object
  extended byorg.xmlBlaster.client.protocol.http.common.XmlBlasterAccessRawBase
      extended byorg.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)
          decodes binary data to Base64.
 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, 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.

See Also:
#parseAppletParameter
Method Detail

encodeBase64

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

Specified by:
encodeBase64 in class XmlBlasterAccessRawBase
Returns:

decodeBase64

public byte[] decodeBase64(byte[] data)
Description copied from class: XmlBlasterAccessRawBase
decodes binary data to Base64. The returned bytes are all text characters.

Specified by:
decodeBase64 in class XmlBlasterAccessRawBase
Parameters:
data -
Returns:

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
Throws:
java.lang.Exception

xmlBlaster 1.6.2 client API

Copyright © 1999-2007 The xmlBlaster.org contributers.