1.0.0

org.eclipse.soda.dk.device.property.servlet
Class DevicePropertyServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.eclipse.soda.dk.device.servlet.DeviceServlet
              extended by org.eclipse.soda.dk.device.property.servlet.DevicePropertyServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, DeviceServletService

public class DevicePropertyServlet
extends DeviceServlet
implements DeviceServletService, javax.servlet.Servlet

Version:
1.0.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.eclipse.soda.dk.device.servlet.service.DeviceServletService
SERVICE_NAME
 
Constructor Summary
DevicePropertyServlet()
          Constructs an instance of this class.
 
Method Summary
 void changeProperty(DeviceServletContext context, java.util.Properties table)
          Change property with the specified context and table parameters.
 java.lang.Object convert(java.lang.Object value)
          Convert with the specified value parameter and return the Object result.
 DeviceServletContext createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Create context with the specified request and response parameters and return the DeviceServletContext result.
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Do post with the specified request and response parameters.
 int getColorValue()
          Gets the color value (int) value.
 java.lang.String getTextDataFix(java.lang.String string)
          Get text data fix with the specified string parameter and return the String result.
 void processMap(DevicePropertyServletContext context, java.util.Map map, java.lang.String name)
          Process map with the specified context, map and name parameters.
 void processProperties(DevicePropertyServletContext context)
          Process properties with the specified context parameter.
 void processRequest(DeviceServletContext context)
          Process request with the specified context parameter.
 void resetColorValue()
          Reset color value.
 void setColorValue(int colorValue)
          Sets the color value value.
 void updateColorValue()
          Update color value.
 
Methods inherited from class org.eclipse.soda.dk.device.servlet.DeviceServlet
buildMenu, doGet, escape, escape, findAttribute, getBundleContext, getBundles, getResouceAliasDefault, getResoucePathDefault, getResourceAlias, getResourcePath, getServer, getServiceReferences, getServletAlias, getServletAliasDefault, processFileRequest, processOverview, setBundleContext, setResourceAlias, setResourcePath, setServer, setServletAlias, setup
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.soda.dk.device.servlet.service.DeviceServletService
getServletAlias
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 

Constructor Detail

DevicePropertyServlet

public DevicePropertyServlet()
Constructs an instance of this class.

Method Detail

changeProperty

public void changeProperty(DeviceServletContext context,
                           java.util.Properties table)
Change property with the specified context and table parameters. The context (DeviceServletContext) parameter. The table (Properties) parameter.

Parameters:
context - The context (DeviceServletContext) parameter.
table - The table (Properties) parameter.

convert

public java.lang.Object convert(java.lang.Object value)
Convert with the specified value parameter and return the Object result. The value (Object) parameter.

Parameters:
value - The value (Object) parameter.
Returns:
Results of the convert (Object) value.

createContext

public DeviceServletContext createContext(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
Create context with the specified request and response parameters and return the DeviceServletContext result. The request (HttpServletRequest) parameter. The response (HttpServletResponse) parameter.

Overrides:
createContext in class DeviceServlet
Parameters:
request - The request (HttpServletRequest) parameter.
response - The response (HttpServletResponse) parameter.
Returns:
Results of the create context (DeviceServletContext) value.
See Also:
DeviceServlet.getBundleContext(), DeviceServlet.setBundleContext(BundleContext)

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Do post with the specified request and response parameters. The request (HttpServletRequest) parameter. The response (HttpServletResponse) parameter. Servlet Exception.

Overrides:
doPost in class DeviceServlet
Parameters:
request - The request (HttpServletRequest) parameter.
response - The response (HttpServletResponse) parameter.
Throws:
javax.servlet.ServletException - Servlet Exception.
java.io.IOException

getColorValue

public int getColorValue()
Gets the color value (int) value.

Returns:
The color value (int) value.
See Also:
resetColorValue(), setColorValue(int), updateColorValue()

getTextDataFix

public java.lang.String getTextDataFix(java.lang.String string)
Get text data fix with the specified string parameter and return the String result. The string (String) parameter.

Parameters:
string - The string (String) parameter.
Returns:
Results of the get text data fix (String) value.

processMap

public void processMap(DevicePropertyServletContext context,
                       java.util.Map map,
                       java.lang.String name)
Process map with the specified context, map and name parameters. The context (DevicePropertyServletContext) parameter. The map (Map) parameter. The name (String) parameter.

Parameters:
context - The context (DevicePropertyServletContext) parameter.
map - The map (Map) parameter.
name - The name (String) parameter.

processProperties

public void processProperties(DevicePropertyServletContext context)
Process properties with the specified context parameter. The context (DevicePropertyServletContext) parameter.

Parameters:
context - The context (DevicePropertyServletContext) parameter.

processRequest

public void processRequest(DeviceServletContext context)
Process request with the specified context parameter. The context (DeviceServletContext) parameter.

Overrides:
processRequest in class DeviceServlet
Parameters:
context - The context (DeviceServletContext) parameter.
See Also:
DeviceServlet.processFileRequest(DeviceServletContext)

resetColorValue

public void resetColorValue()
Reset color value.

See Also:
getColorValue(), setColorValue(int), updateColorValue()

setColorValue

public void setColorValue(int colorValue)
Sets the color value value. The color value (int) parameter.

Parameters:
colorValue - The color value (int) parameter.
See Also:
getColorValue(), resetColorValue(), updateColorValue()

updateColorValue

public void updateColorValue()
Update color value.

See Also:
getColorValue(), resetColorValue(), setColorValue(int)

1.0.0

Copyright (c) 1999, 2007 IBM