com.primix.vlib
Class VirtualLibraryEngine.ExternalService

java.lang.Object
  |
  +--com.primix.tapestry.engine.AbstractService
        |
        +--com.primix.vlib.VirtualLibraryEngine.ExternalService
All Implemented Interfaces:
IEngineService
Enclosing class:
VirtualLibraryEngine

public class VirtualLibraryEngine.ExternalService
extends AbstractService

The external service is used to make the ViewBook and PersonPage pages bookmarkable. The URL will include the page (which must implement the IExternalPage interface), and the primary key of the IBook or IPerson EJB.


Fields inherited from class com.primix.tapestry.engine.AbstractService
buffer
 
Fields inherited from interface com.primix.tapestry.IEngineService
ACTION_SERVICE, ASSET_SERVICE, CONTEXT_QUERY_PARMETER_NAME, DIRECT_SERVICE, HOME_SERVICE, PAGE_SERVICE, PARAMETERS_QUERY_PARAMETER_NAME, RESET_SERVICE, RESTART_SERVICE, SERVICE_QUERY_PARAMETER_NAME
 
Constructor Summary
VirtualLibraryEngine.ExternalService()
           
 
Method Summary
 Gesture buildGesture(IRequestCycle cycle, IComponent component, java.lang.String[] parameters)
          Builds a URL for a service.
 java.lang.String getName()
          Returns the name of the service.
 boolean service(IRequestCycle cycle, ResponseOutputStream output)
          Perform the service, interpreting the URL (from the HttpServletRequest) responding appropriately, and rendering a result page.
 
Methods inherited from class com.primix.tapestry.engine.AbstractService
assembleGesture, getBuffer, getParameters, getServiceContext, getSplitter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualLibraryEngine.ExternalService

public VirtualLibraryEngine.ExternalService()
Method Detail

buildGesture

public Gesture buildGesture(IRequestCycle cycle,
                            IComponent component,
                            java.lang.String[] parameters)
Description copied from interface: IEngineService
Builds a URL for a service. This is performed during the rendering phase of one request cycle and bulds URLs that will invoke activity in a subsequent request cycle.
Following copied from interface: com.primix.tapestry.IEngineService
Parameters:
cycle - Defines the request cycle being processed.
component - The component requesting the URL.
parameters - Additional parameters specific to the component requesting the Gesture.

service

public boolean service(IRequestCycle cycle,
                       ResponseOutputStream output)
                throws RequestCycleException,
                       ServletException,
                       java.io.IOException
Description copied from interface: IEngineService
Perform the service, interpreting the URL (from the HttpServletRequest) responding appropriately, and rendering a result page.

The return value indicates whether processing of the request could, in any way, change the state of the engine. Generally, this is true.

Following copied from interface: com.primix.tapestry.IEngineService
See Also:
IEngine.service(RequestContext)

getName

public java.lang.String getName()
Description copied from interface: IEngineService
Returns the name of the service.