org.openmobileis.services
Class Service

java.lang.Object
  extended byorg.openmobileis.services.Service
Direct Known Subclasses:
RedirectToFromCallingService, ReturnLinkManagerService, TemplateService

public abstract class Service
extends java.lang.Object

Title: OpenMobileIS project source
Description: All services have to specialize this class and override run() method. The name is set by the LocalServiceManager at launching (by reading serviceList.properties)

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Constructor Summary
Service()
           
 
Method Summary
abstract  java.lang.String getName()
           
 java.lang.String getNavigationBarLastServiceURI()
          place the last service of the navigation bar at the specified service uri if found.
 java.lang.String getServiceUri()
           
 boolean isNavigationService()
           
abstract  void run(HttpServletRequest req, HttpServletResponse res)
           
 void runService(HttpServletRequest req, HttpServletResponse res)
           
 void setServiceURI(java.lang.String uri)
           
 boolean useWebCache()
          to wen server page cache management extends this method and return true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()
Method Detail

runService

public void runService(HttpServletRequest req,
                       HttpServletResponse res)
                throws ServletException,
                       java.io.IOException
Throws:
ServletException
java.io.IOException

run

public abstract void run(HttpServletRequest req,
                         HttpServletResponse res)
                  throws ServletException,
                         java.io.IOException
Throws:
ServletException
java.io.IOException

getName

public abstract java.lang.String getName()

useWebCache

public boolean useWebCache()
to wen server page cache management extends this method and return true. Register your service with the WebPageCacheManager.


getNavigationBarLastServiceURI

public java.lang.String getNavigationBarLastServiceURI()
place the last service of the navigation bar at the specified service uri if found. if not needed return null. Place here has a helper for all NavigationBarService to avoid this method implementation if not needed.

Returns:

isNavigationService

public boolean isNavigationService()
Returns:

getServiceUri

public java.lang.String getServiceUri()

setServiceURI

public void setServiceURI(java.lang.String uri)


Copyright 2005 e-Care. All Rights Reserved.