|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aselect.system.communication.client.raw.RawCommunicator
public class RawCommunicator
Client communicator which uses CGI messages.
Description:
The Raw communicator used by the A-Select agent to create, retrieve, and send
URL encoded CGI messages.
| Constructor Summary | |
|---|---|
RawCommunicator(SystemLogger systemLogger)
Creates a new RawCommunicator. |
|
| Method Summary | |
|---|---|
java.util.Hashtable |
convertCGIMessage(java.lang.String sMessage)
Convert a CGI message string into a Hashtable. |
java.util.Hashtable |
sendMessage(java.util.Hashtable parameters,
java.lang.String target)
Sends a raw api call to the A-Select Server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawCommunicator(SystemLogger systemLogger)
RawCommunicator.
systemLogger should be initialized. _systemLogger is set with systemLogger.
systemLogger - the logger to log system information.| Method Detail |
|---|
public java.util.Hashtable sendMessage(java.util.Hashtable parameters,
java.lang.String target)
throws ASelectCommunicationException
sendMessage in interface IClientCommunicatorparameters - The API call request parameters
(Hashtable with name/value pairs)target - A String containing the target URL
Hashtable
ASelectCommunicationException - If sending fails.IClientCommunicator.sendMessage(java.util.Hashtable,
java.lang.String)
public java.util.Hashtable convertCGIMessage(java.lang.String sMessage)
throws java.io.UnsupportedEncodingException
Hashtable.
key=value&key=value etc. ) into a hashtable for much
easier processing. Hashtable will contain:
Hashtableis synchronized. sMessage must contain a valid CGI message. Hashtable contains all the key/value pairs of
the CGI message.
sMessage - The CGI message to be converted.
Hashtable containing the parameters from the CGI
message
java.io.UnsupportedEncodingException - If URL decoding fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||