|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsnserver.XmlRpcLoadFile
public class XmlRpcLoadFile
A function wich is used as a XmlRpc function. It sends a .hex file to the BTnode. The hex. file has to be in the folder /hex.
Field Summary | |
---|---|
(package private) Communication |
myComm
|
(package private) static boolean |
ready
|
(package private) org.apache.xmlrpc.WebServer |
server
|
(package private) static java.lang.String |
transmission_err
|
(package private) static boolean |
transmission_failed
|
(package private) static boolean |
transmission_ok
|
Constructor Summary | |
---|---|
XmlRpcLoadFile(Communication comm,
org.apache.xmlrpc.WebServer server)
|
Method Summary | |
---|---|
boolean |
checkPassword(java.lang.String user,
java.lang.String password)
|
protected java.lang.Object |
execute(java.lang.String method,
java.util.Vector v)
|
java.lang.Object |
execute(java.lang.String method,
java.util.Vector v,
java.lang.String user,
java.lang.String password)
|
java.util.Vector |
loadFile(java.lang.String filename,
java.lang.String type)
It is the function which is called by the XmlRpcServer. |
private java.util.Vector |
loadFileLocal(java.lang.String filename,
java.lang.String type)
It starts the upload of a .hex file which is in the folder /hex. |
static void |
setReady()
For setting the variable ready. |
static void |
setTransmission_failed(java.lang.String line)
For setting the variable transmission_failed and transmission_err. |
static void |
setTransmission_ok(java.lang.String line)
For setting the variable transmission_ok and transmission_err. |
private void |
waitmillis(long millis)
For waiting millis milliseconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
org.apache.xmlrpc.WebServer server
Communication myComm
static boolean ready
static boolean transmission_ok
static boolean transmission_failed
static java.lang.String transmission_err
Constructor Detail |
---|
public XmlRpcLoadFile(Communication comm, org.apache.xmlrpc.WebServer server)
Method Detail |
---|
private void waitmillis(long millis)
public static void setReady()
public static void setTransmission_ok(java.lang.String line)
public static void setTransmission_failed(java.lang.String line)
public java.util.Vector loadFile(java.lang.String filename, java.lang.String type)
String
- filename the name of the file
you will upload. private java.util.Vector loadFileLocal(java.lang.String filename, java.lang.String type)
String
- filename the name of the file
you will upload to the GUI node. public java.lang.Object execute(java.lang.String method, java.util.Vector v, java.lang.String user, java.lang.String password)
execute
in interface org.apache.xmlrpc.AuthenticatedXmlRpcHandler
protected java.lang.Object execute(java.lang.String method, java.util.Vector v)
public boolean checkPassword(java.lang.String user, java.lang.String password)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |