2009-01-09 1.2.0

org.eclipse.soda.dk.device.nslog.servlet
Class DeviceNslogServlet

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.nslog.servlet.DeviceNslogServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, DeviceServletService, org.eclipse.soda.dk.notification.service.NotificationListener

public class DeviceNslogServlet
extends DeviceServlet
implements org.eclipse.soda.dk.notification.service.NotificationListener, DeviceServletService, javax.servlet.Servlet

Since:
1.0
Version:
1.2.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.eclipse.soda.dk.device.servlet.service.DeviceServletService
SERVICE_NAME
 
Constructor Summary
DeviceNslogServlet()
          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.eclipse.soda.dk.notification.service.NotificationService getNotificationService()
          Gets the notification service value.
 void notificationReceived(java.lang.String topic, java.util.Dictionary data)
          Notification received with the specified topic and data parameters.
 void processRequest(DeviceServletContext context)
          Process request with the specified context parameter.
 void setNotificationService(org.eclipse.soda.dk.notification.service.NotificationService notificationService)
          Sets the notification service 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

DeviceNslogServlet

public DeviceNslogServlet()
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.

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.

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 - IOException.

getNotificationService

public org.eclipse.soda.dk.notification.service.NotificationService getNotificationService()
Gets the notification service value.

Returns:
The notification service (NotificationService) value.
See Also:
setNotificationService(NotificationService)

notificationReceived

public void notificationReceived(java.lang.String topic,
                                 java.util.Dictionary data)
Notification received with the specified topic and data parameters.

Specified by:
notificationReceived in interface org.eclipse.soda.dk.notification.service.NotificationListener
Parameters:
topic - The topic (String) parameter.
data - The data (Dictionary) parameter.

processRequest

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

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

setNotificationService

public void setNotificationService(org.eclipse.soda.dk.notification.service.NotificationService notificationService)
Sets the notification service value.

Parameters:
notificationService - The notification service (NotificationService) parameter.
See Also:
getNotificationService()

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.