org.xmlBlaster.client.protocol.http.j2me
Class XmlBlasterAccessJ2ME
java.lang.Object
org.xmlBlaster.client.protocol.http.common.XmlBlasterAccessRawBase
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
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 |
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 |
XmlBlasterAccessJ2ME
public XmlBlasterAccessJ2ME(MIDlet midlet)
- Provides access to xmlBlaster server.
- Parameters:
applet
- My environment- See Also:
#parseAppletParameter
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
Copyright © 1999-2014 The xmlBlaster.org contributers.