|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_XmlBlasterAccessRaw
Interface for XmlBlaster, the supported methods on applet client side.
All returned parameters are hold in Hashtables, to access the different key/QoS elements use JXPath syntax, see the API references below for more details.
MsgQosData.toJXPath()
,
MsgKeyData.toJXPath()
,
The
interface requirement,
CORBA xmlBlaster.idlField Summary | |
---|---|
static java.lang.String |
CONNECT_NAME
|
static java.lang.String |
CREATE_SESSIONID_NAME
|
static java.lang.String |
DISCONNECT_NAME
|
static java.lang.String |
ERASE_NAME
|
static java.lang.String |
EXCEPTION_NAME
|
static java.lang.String |
GET_NAME
|
static java.lang.String |
PING_NAME
|
static java.lang.String |
PONG_NAME
|
static java.lang.String |
PUBLISH_NAME
|
static java.lang.String |
SUBSCRIBE_NAME
|
static java.lang.String |
UNSUBSCRIBE_NAME
|
static java.lang.String |
UPDATE_NAME
|
Method Summary | |
---|---|
java.lang.String |
connect(java.lang.String qos,
I_CallbackRaw callback)
Connect to xmlBlaster. |
I_Connection |
createConnection(java.lang.String urlString)
Creates a connection to the specified servlet. |
void |
disconnect(java.lang.String qos)
|
java.util.Hashtable[] |
erase(java.lang.String xmlKey,
java.lang.String qos)
|
Msg[] |
get(java.lang.String xmlKey,
java.lang.String qos)
|
java.util.Hashtable |
getHtmlProperties()
Get a list of all PARAM in the HTML file following our convention. |
java.lang.String |
getInstanceId()
Access the unique counter of this object instance for logging. |
boolean |
isConnected()
Check wether we are connected |
void |
log(java.lang.String location,
java.lang.String level,
java.lang.String text)
Log to the logListener or to the java console of the browser if logListener is null. |
java.util.Hashtable |
ping(java.lang.String qos)
Returns "/qos/state/@info"="OK" if communication from servlet to xmlBlaster is OK Returns "/qos/state/@info"="POLLING" if communication from servlet to xmlBlaster is down but polling Returns "/qos/state/@info"="DEAD" if communication from servlet to xmlBlaster is permanently lost |
java.util.Hashtable |
publish(java.lang.String xmlKey,
byte[] content,
java.lang.String qos)
|
java.lang.String |
sendXmlScript(java.lang.String xmlRequest)
Send a xml script request to xmlBlaster. |
void |
setLogListener(I_Log logListener)
Register to receive the logging output |
java.util.Hashtable |
subscribe(java.lang.String xmlKey,
java.lang.String qos)
|
java.util.Hashtable[] |
unSubscribe(java.lang.String xmlKey,
java.lang.String qos)
|
Field Detail |
---|
static final java.lang.String CONNECT_NAME
static final java.lang.String PUBLISH_NAME
static final java.lang.String GET_NAME
static final java.lang.String SUBSCRIBE_NAME
static final java.lang.String UNSUBSCRIBE_NAME
static final java.lang.String ERASE_NAME
static final java.lang.String DISCONNECT_NAME
static final java.lang.String EXCEPTION_NAME
static final java.lang.String CREATE_SESSIONID_NAME
static final java.lang.String PONG_NAME
static final java.lang.String PING_NAME
static final java.lang.String UPDATE_NAME
Method Detail |
---|
java.lang.String getInstanceId()
java.lang.String sendXmlScript(java.lang.String xmlRequest) throws java.lang.Exception
java.lang.Exception
java.lang.String connect(java.lang.String qos, I_CallbackRaw callback) throws java.lang.Exception
qos
- If your qos is null the APPLET PARAMs will be checked
for"xmlBlaster/loginName" and "xmlBlaster/passwd"callback
- Where to send asynchronous callback messages.
java.lang.Exception
boolean isConnected()
java.util.Hashtable ping(java.lang.String qos) throws java.lang.Exception
java.lang.Exception
java.util.Hashtable subscribe(java.lang.String xmlKey, java.lang.String qos) throws java.lang.Exception
java.lang.Exception
Msg[] get(java.lang.String xmlKey, java.lang.String qos) throws java.lang.Exception
java.lang.Exception
java.util.Hashtable[] unSubscribe(java.lang.String xmlKey, java.lang.String qos) throws java.lang.Exception
java.lang.Exception
java.util.Hashtable publish(java.lang.String xmlKey, byte[] content, java.lang.String qos) throws java.lang.Exception
java.lang.Exception
java.util.Hashtable[] erase(java.lang.String xmlKey, java.lang.String qos) throws java.lang.Exception
java.lang.Exception
void disconnect(java.lang.String qos)
void setLogListener(I_Log logListener)
void log(java.lang.String location, java.lang.String level, java.lang.String text)
location
- Your class and/or method nameleve
- One of "ERROR", "WARN", "INFO", "DEBUG"text
- The text to logjava.util.Hashtable getHtmlProperties()
All param names starting with "servlet/" are passed to the servlet. They must start with "servlet/xyz=someValue". The "servlet/" will be stripped away and in the web-servlet will arrive "xyz=someValue". The key/values are send in the URL.
As the applet class has no getAllParameters() method we expect a PARAM deliveredParamKeys which contains a list of all delivered PARAM in the HTML page:
<applet ...> <param name="deliveredParamKeys" value="protocol,anotherKey,Key3"> <param name="protocol" value="SOCKET"> <param name="anotherKey" value="someValue"> <param name="Key3" value="xxx"> </applet>
It may contain additional customized properties from the applet programmer.
I_Connection createConnection(java.lang.String urlString) throws java.lang.Exception
urlString
-
java.lang.Exception
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |