net.rim.pushsdk.acknowledgement.web
Class NotificationServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.rim.pushsdk.pap.web.BasicNotificationServlet
              extended by net.rim.pushsdk.acknowledgement.web.NotificationServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class NotificationServlet
extends BasicNotificationServlet

Servlet responsible for handling result notifications. It extends the BasicNotificationServlet class.

Author:
dstrelbytsky
See Also:
Serialized Form

Field Summary
protected  PapService papService
          The implementation of the PapService interface for processing a result notification when it comes in.
 
Constructor Summary
NotificationServlet()
           
 
Method Summary
protected  PapService getPapService()
          Gets the implementation of the PapService interface which is used to process an incoming result notification.
 void init()
          Initializes the servlet by calling the setPapService method and setting the papService instance variable to an instance of the AcknowledgementPapServiceImpl class.
protected  void setPapService(PapService papService)
          Sets the implementation of the PapService interface which is used to process an incoming result notification.
 
Methods inherited from class net.rim.pushsdk.pap.web.BasicNotificationServlet
doGet, doPost
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

papService

protected PapService papService
The implementation of the PapService interface for processing a result notification when it comes in.

Constructor Detail

NotificationServlet

public NotificationServlet()
Method Detail

setPapService

protected void setPapService(PapService papService)
Sets the implementation of the PapService interface which is used to process an incoming result notification.

Parameters:
papService - an implementation of the PapService interface

init

public void init()
          throws javax.servlet.ServletException
Initializes the servlet by calling the setPapService method and setting the papService instance variable to an instance of the AcknowledgementPapServiceImpl class.

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

getPapService

protected PapService getPapService()
Gets the implementation of the PapService interface which is used to process an incoming result notification.

Specified by:
getPapService in class BasicNotificationServlet
Returns:
an implementation of the PapService interface


Copyright © 2011 Research In Motion. All Rights Reserved.