java.lang.Object | +----cern.lhcias.csgui.Drivers.HTTPDriver
This class is an implementation of DataServer using the http protocol. The URL used to
fetch the data is passed to the driver with the method setReadHost.
Ex : setReadHost(« http://www.mydomain.ch :8000/ cgi-bin/getTagsValue»)
The method setWriteHost must be called if data have to be sent back across the network. It
is not needed to call setReadPort and setWritePort, the port number being passed in the
Host String.
To start a pooling mechanism, one has to set the pooling interval and then call the method
enable().
There is one parameter which may bet set with setParameter. It is a TagNamesInURL which is
a boolean.
Ex : setParameter(« TagNamesInURL », « true »)
If this parameter is set to true, then the names of the requested tags will be appended to
the URL in the following way :
Ex : http://www.mydomain.ch :8000/ cgi-bin/getTagsValue ?tags=tag1,tag2
public HTTPDriver()
public void addAlarmListener(AlarmListener listener)
public void removeAlarmListener(AlarmListener listener)
public void setReadHost(String get_URL_string)
public String getReadHost()
public void setReadPort(int com_port)
public int getReadPort()
public void setWriteHost(String write_URL_string)
public String getWriteHost()
public void setWritePort(int com_port)
public int getWritePort()
public void closeConnection()
public void setTagArrays(TagArrays tc)
public void setPoolingInterval(long pooling_interval)
public long getPoolingInterval()
public void setParameter(String parameter, String value)
public String getParameter(String parameter)
public void setType(String Type)
public String getType()
public void setMask(boolean Mask)
public boolean getMask()
public void setUser(String user)
public void setPassword(String password)
public String getUser()
public String getPassword()
public void setTagsSubscription(boolean subMode)
public boolean getTagsSubscription()
public void setProcessName(String processname)
public String getProcessName()
public boolean doYouImplement(String type)
public Vector getPossibleProtocols()
public String getDriverProtocol()
public void setConfig(String config)
public String toString()
public boolean isActive()
public void disable()
public void enable()
public void run()
public void write(String name, String stringValue)
public String read(String name)
public boolean read(Vector names)