org.wcb.plugins.beans
Class SerialPortController

java.lang.Object
  extended byorg.wcb.plugins.beans.SerialPortController

public class SerialPortController
extends java.lang.Object


Constructor Summary
SerialPortController()
           
 
Method Summary
 int getBaudRate()
          Gets the current saved serial port baud rate
 int getDataBitRate()
          Gets the current saved data bit rate of the serial port.
 java.lang.String getHTMLX10Device()
          This returns an html dropdown of options of diffent x10 devices.
 java.lang.String getIsPortConnected()
          If the serial port is active then return a printable string indicating connected.
 java.lang.String getParity()
          Gets the current saved parity of the serial port.
 java.lang.String getSavedSerialPort()
          Returns the string name of the saved serial port
 java.lang.String getSelectedSerialPortHTML()
          This takes returns an html representation of a combo drop down box with the selected serial port
 java.util.Vector getSerialPorts()
          This will return a vector of available serial ports.
 java.lang.String getStatusMessage()
           
 int getStopBitRate()
          Gets the current saved stop bit rate of the serial port.
 void processRequest(javax.servlet.http.HttpServletRequest request)
          Process request information when users do form submits based on this we will save the keys, save the file, read in a new directory's build.properties file or run the ANT build script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialPortController

public SerialPortController()
Method Detail

getStatusMessage

public java.lang.String getStatusMessage()

getSerialPorts

public java.util.Vector getSerialPorts()
This will return a vector of available serial ports.

Returns:
Vector string list of avaliable serial ports

getSavedSerialPort

public java.lang.String getSavedSerialPort()
Returns the string name of the saved serial port

Returns:
String name of saved serial port.

getIsPortConnected

public java.lang.String getIsPortConnected()
If the serial port is active then return a printable string indicating connected. Otherwise, return a printable string disconnected.

Returns:
String from boolean indicating "Connected" or "Disconnected";

getBaudRate

public int getBaudRate()
Gets the current saved serial port baud rate

Returns:
Saved baud rate or defaults to 9600

getDataBitRate

public int getDataBitRate()
Gets the current saved data bit rate of the serial port.

Returns:
Saved data bit rate for serial port or default of 8

getStopBitRate

public int getStopBitRate()
Gets the current saved stop bit rate of the serial port.

Returns:
Saved stop bit rate of serial port or default of 1

getParity

public java.lang.String getParity()
Gets the current saved parity of the serial port. The string return can be Odd, Even, or None.

Returns:
Saved partiy for serial port of defaults to "None"

getSelectedSerialPortHTML

public java.lang.String getSelectedSerialPortHTML()
This takes returns an html representation of a combo drop down box with the selected serial port

Returns:
a string of serial ports with html tags in place for select drop down

getHTMLX10Device

public java.lang.String getHTMLX10Device()
This returns an html dropdown of options of diffent x10 devices.

Returns:
String with select drop down of X10 gateway devices

processRequest

public void processRequest(javax.servlet.http.HttpServletRequest request)
Process request information when users do form submits based on this we will save the keys, save the file, read in a new directory's build.properties file or run the ANT build script.

Parameters:
request - Http servlet request from form post call.


Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.