net.sf.jportlet.service.velocity
Class VelocityServiceImpl

java.lang.Object
  |
  +--net.sf.jportlet.service.PortletServiceAdapter
        |
        +--net.sf.jportlet.service.velocity.VelocityServiceImpl
All Implemented Interfaces:
PortletService, VelocityService

public class VelocityServiceImpl
extends PortletServiceAdapter
implements VelocityService

Implementation of VelocityService

Author:
Herve Tchepannou

Field Summary
 
Fields inherited from class net.sf.jportlet.service.PortletServiceAdapter
_log, _serviceConfig, _serviceContext
 
Fields inherited from interface net.sf.jportlet.service.velocity.VelocityService
NAME, PORTLET, PROXY, REQUEST, RESPONSE, RUNTIME
 
Constructor Summary
VelocityServiceImpl()
           
 
Method Summary
 java.lang.String getServiceName()
          Returns the name of the service
 void init(net.sf.jportlet.service.PortletServiceConfig serviceConfig)
          Initialize the service
 void merge(java.lang.String path, net.sf.jportlet.portlet.PortletRequest request, net.sf.jportlet.portlet.PortletResponse response)
          Marge a velocity file with the current request/response The velocity context has the following variables defined: request: The portlet request (type=PortletRequest) response: The portlet response (type=PortletResponse) portlet: The portlet to render (type=Portlet) proxy: The portlet proxy (type=PortletProxy) runtime: Instance of (type=Runtime) All the attributes of the request
 void merge(java.lang.String path, net.sf.jportlet.portlet.PortletRequest request, net.sf.jportlet.portlet.PortletResponse response, java.util.Map context)
           
 
Methods inherited from class net.sf.jportlet.service.PortletServiceAdapter
destroy, getInitParameter, getInitParameter, getServiceConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jportlet.service.PortletService
destroy, getServiceConfig
 

Constructor Detail

VelocityServiceImpl

public VelocityServiceImpl()
Method Detail

merge

public void merge(java.lang.String path,
                  net.sf.jportlet.portlet.PortletRequest request,
                  net.sf.jportlet.portlet.PortletResponse response)
           throws PortletServiceException
Description copied from interface: VelocityService
Marge a velocity file with the current request/response The velocity context has the following variables defined:

Specified by:
merge in interface VelocityService
PortletServiceException
See Also:
VelocityService.merge(java.lang.String, net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)

merge

public void merge(java.lang.String path,
                  net.sf.jportlet.portlet.PortletRequest request,
                  net.sf.jportlet.portlet.PortletResponse response,
                  java.util.Map context)
           throws PortletServiceException
Specified by:
merge in interface VelocityService
PortletServiceException
See Also:
VelocityService.merge(java.lang.String, net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse, java.util.Map)

getServiceName

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

Specified by:
getServiceName in interface PortletService
Returns:
String
See Also:
PortletService.getServiceName()

init

public void init(net.sf.jportlet.service.PortletServiceConfig serviceConfig)
          throws PortletServiceException
Description copied from interface: PortletService
Initialize the service

Specified by:
init in interface PortletService
Overrides:
init in class PortletServiceAdapter
Parameters:
serviceConfig - configuration of the service
PortletServiceException
See Also:
PortletService.init(net.sf.jportlet.service.PortletServiceConfig)


Copyright © 2002 Herve Tchepannou. All Rights Reserved.