1.0.0

org.eclipse.soda.dk.device.bundle.servlet
Class DeviceBundleServlet

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.bundle.servlet.DeviceBundleServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, DeviceServletService

public class DeviceBundleServlet
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
DeviceBundleServlet()
          Constructs an instance of this class.
 
Method Summary
 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.
 org.osgi.service.metatype.AttributeDefinition findAttribute(java.lang.Object key, org.osgi.service.metatype.AttributeDefinition[] attributeDefinitions)
          Find attribute with the specified key and attribute definitions parameters and return the AttributeDefinition result.
 void processBundleHeaders(DeviceBundleServletContext context)
          Process bundle headers with the specified writer parameter.
 void processBundles(DeviceBundleServletContext context)
          Process bundles with the specified writer parameter.
 void processFileRequest(DeviceServletContext context)
          Process file request with the specified context parameter.
 void processRequest(DeviceServletContext context)
          Process request with the specified context parameter.
 
Methods inherited from class org.eclipse.soda.dk.device.servlet.DeviceServlet
buildMenu, doGet, escape, escape, getBundleContext, getBundles, getResouceAliasDefault, getResoucePathDefault, getResourceAlias, getResourcePath, getServer, getServiceReferences, getServletAlias, getServletAliasDefault, 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

DeviceBundleServlet

public DeviceBundleServlet()
Constructs an instance of this class.

Method Detail

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

findAttribute

public org.osgi.service.metatype.AttributeDefinition findAttribute(java.lang.Object key,
                                                                   org.osgi.service.metatype.AttributeDefinition[] attributeDefinitions)
Find attribute with the specified key and attribute definitions parameters and return the AttributeDefinition result. The key (Object) parameter. The attribute definitions (AttributeDefinition[]) parameter.

Overrides:
findAttribute in class DeviceServlet
Parameters:
key - The key (Object) parameter.
attributeDefinitions - The attribute definitions (AttributeDefinition[]) parameter.
Returns:
Results of the find attribute (AttributeDefinition) value.

processBundleHeaders

public void processBundleHeaders(DeviceBundleServletContext context)
Process bundle headers with the specified writer parameter. The writer (PrintWriter) parameter. The context (DeviceServletContext) parameter.

Parameters:
context - The context (DeviceBundleServletContext) parameter.

processBundles

public void processBundles(DeviceBundleServletContext context)
Process bundles with the specified writer parameter. The writer (PrintWriter) parameter. The context (DeviceServletContext) parameter.

Parameters:
context - The context (DeviceBundleServletContext) parameter.

processFileRequest

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

Overrides:
processFileRequest in class DeviceServlet
Parameters:
context - The context (DeviceServletContext) 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:
processFileRequest(DeviceServletContext)

1.0.0

Copyright (c) 1999, 2007 IBM