|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.soda.dk.device.servlet.DeviceServlet
org.eclipse.soda.dk.metadata.servlet.DeviceMetadataServlet
public class DeviceMetadataServlet
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.soda.dk.device.servlet.service.DeviceServletService |
|---|
SERVICE_NAME |
| Constructor Summary | |
|---|---|
DeviceMetadataServlet()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
boolean |
changeConfiguration(java.util.Hashtable table,
java.util.Hashtable oldTable)
Change configuration with the specified table parameter and return the boolean 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. |
org.osgi.service.cm.ConfigurationAdmin |
getConfigurationAdmin()
Gets the configuration admin value. |
java.util.Hashtable |
getConfigurationAttributes(org.osgi.service.metatype.AttributeDefinition[] attributeDefinitions)
Get configuration attributes with the specified attribute definitions parameter and return the Hashtable result. |
org.osgi.service.metatype.MetaTypeService |
getMetaTypeService()
Gets the meta type service value. |
org.osgi.service.metatype.AttributeDefinition |
processConfigurationAttributes(DeviceServletContext context,
java.util.Dictionary properties,
org.osgi.service.metatype.AttributeDefinition[] attributeDefinitions,
boolean required)
Process configuration attributes with the specified context, properties, attribute definitions and required parameters and return the AttributeDefinition result. |
void |
processFactory(DeviceMetadataServletContext context,
org.osgi.service.metatype.MetaTypeProvider metaTypeProvider,
java.lang.String factoryPid)
Process factory with the specified context, meta type provider and factory pid parameters. |
void |
processMetaData(DeviceMetadataServletContext context)
Process meta data with the specified writer and language parameters. |
org.osgi.service.metatype.AttributeDefinition |
processObjectClass(DeviceMetadataServletContext context,
org.osgi.service.metatype.ObjectClassDefinition objectClassDefinition,
java.util.Dictionary properties)
Process object class with the specified context, object class definition and properties parameters and return the AttributeDefinition result. |
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 |
setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
Sets the configuration admin value. |
void |
setMetaTypeService(org.osgi.service.metatype.MetaTypeService metaTypeService)
Sets the meta type service value. |
void |
updateColorValue()
Update color value. |
java.util.Hashtable |
validateConfiguration(DeviceServletContext context,
java.util.Hashtable table)
Validate configuration with the specified writer and table parameters and return the Hashtable result. |
| 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 |
|---|
public DeviceMetadataServlet()
| Method Detail |
|---|
public boolean changeConfiguration(java.util.Hashtable table,
java.util.Hashtable oldTable)
table - The table (Hashtable) parameter.oldTable - The old table (Hashtable) parameter.
boolean) value.validateConfiguration(DeviceServletContext,Hashtable)
public DeviceServletContext createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
createContext in class DeviceServletrequest - The request (HttpServletRequest) parameter.response - The response (HttpServletResponse) parameter.
DeviceServletContext) value.DeviceServlet.getBundleContext(),
DeviceServlet.setBundleContext(BundleContext)
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class DeviceServletrequest - The request (HttpServletRequest) parameter.response - The response (HttpServletResponse) parameter.
javax.servlet.ServletException - Servlet Exception.
java.io.IOExceptionpublic int getColorValue()
int) value.resetColorValue(),
setColorValue(int),
updateColorValue()public org.osgi.service.cm.ConfigurationAdmin getConfigurationAdmin()
ConfigurationAdmin) value.setConfigurationAdmin(ConfigurationAdmin)public java.util.Hashtable getConfigurationAttributes(org.osgi.service.metatype.AttributeDefinition[] attributeDefinitions)
attributeDefinitions - The attribute definitions (AttributeDefinition[]) parameter.
Hashtable) value.processConfigurationAttributes(DeviceServletContext,Dictionary,AttributeDefinition[],boolean)public org.osgi.service.metatype.MetaTypeService getMetaTypeService()
MetaTypeService) value.setMetaTypeService(MetaTypeService)
public org.osgi.service.metatype.AttributeDefinition processConfigurationAttributes(DeviceServletContext context,
java.util.Dictionary properties,
org.osgi.service.metatype.AttributeDefinition[] attributeDefinitions,
boolean required)
context - The context (DeviceServletContext) parameter.properties - The properties (Dictionary) parameter.attributeDefinitions - The attribute definitions (AttributeDefinition[]) parameter.required - The required (boolean) parameter.
AttributeDefinition) value.getConfigurationAttributes(AttributeDefinition[])
public void processFactory(DeviceMetadataServletContext context,
org.osgi.service.metatype.MetaTypeProvider metaTypeProvider,
java.lang.String factoryPid)
context - The context (DeviceConfigurationServletContext) parameter.metaTypeProvider - The meta type provider (MetaTypeProvider) parameter.factoryPid - The factory pid (String) parameter.public void processMetaData(DeviceMetadataServletContext context)
writer - The writer (PrintWriter) parameter.language - The language (String) parameter.context - The context (DeviceServletContext) parameter.
public org.osgi.service.metatype.AttributeDefinition processObjectClass(DeviceMetadataServletContext context,
org.osgi.service.metatype.ObjectClassDefinition objectClassDefinition,
java.util.Dictionary properties)
context - The context (DeviceConfigurationServletContext) parameter.objectClassDefinition - The object class definition (ObjectClassDefinition) parameter.properties - The properties (Dictionary) parameter.
AttributeDefinition) value.public void processRequest(DeviceServletContext context)
processRequest in class DeviceServletcontext - The context (DeviceServletContext) parameter.DeviceServlet.processFileRequest(DeviceServletContext)public void resetColorValue()
getColorValue(),
setColorValue(int),
updateColorValue()public void setColorValue(int colorValue)
colorValue - The color value (int) parameter.getColorValue(),
resetColorValue(),
updateColorValue()public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
configurationAdmin - The configuration admin (ConfigurationAdmin) parameter.getConfigurationAdmin()public void setMetaTypeService(org.osgi.service.metatype.MetaTypeService metaTypeService)
metaTypeService - The meta type service (MetaTypeService) parameter.getMetaTypeService()public void updateColorValue()
getColorValue(),
resetColorValue(),
setColorValue(int)
public java.util.Hashtable validateConfiguration(DeviceServletContext context,
java.util.Hashtable table)
writer - The writer (PrintWriter) parameter.table - The table (Hashtable) parameter.context - The context (DeviceServletContext) parameter.
Hashtable) value.changeConfiguration(Hashtable,Hashtable)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||