org.openmobileis.services
Class Service
java.lang.Object
|
+--org.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
Method Summary |
java.lang.String |
getName()
|
java.lang.String |
getNavigationBarLastServiceURI()
place the last service of the navigation bar at the specified service uri if found.
if not needed return null.
|
java.lang.String |
getServiceUri()
|
void |
init(java.lang.String name)
|
boolean |
isNavigationService()
|
abstract void |
run(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
runService(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.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 |
Service
public Service()
runService
public void runService(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
run
public abstract void run(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
getName
public java.lang.String getName()
init
public void init(java.lang.String name)
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.