Clover coverage report - Code Coverage for tapestry-portlet release 4.0-alpha-3
Coverage timestamp: Mon May 16 2005 09:12:17 EDT
file stats: LOC: 57   Methods: 4
NCLOC: 26   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
RenderService.java - 0% 0% 0%
coverage
 1   
 // Copyright 2005 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.tapestry.portlet;
 16   
 
 17   
 import java.io.IOException;
 18   
 
 19   
 import org.apache.tapestry.IRequestCycle;
 20   
 import org.apache.tapestry.engine.IEngineService;
 21   
 import org.apache.tapestry.engine.ILink;
 22   
 import org.apache.tapestry.services.ServiceConstants;
 23   
 
 24   
 /**
 25   
  * Responsible for rendering out a page; a Portlet render URL is built during action processing that
 26   
  * stores the active page; this is the page that will be rendered.
 27   
  * 
 28   
  * @author Howard M. Lewis Ship
 29   
  * @since 4.0
 30   
  * @see org.apache.tapestry.services.impl.ResponseRendererImpl
 31   
  */
 32   
 public class RenderService implements IEngineService
 33   
 {
 34   
     private PortletRenderer _portletRenderer;
 35   
 
 36  0
     public ILink getLink(IRequestCycle cycle, Object parameter)
 37   
     {
 38  0
         throw new UnsupportedOperationException(PortletMessages.unsupportedMethod("getLink"));
 39   
     }
 40   
 
 41  0
     public void service(IRequestCycle cycle) throws IOException
 42   
     {
 43  0
         String pageName = cycle.getParameter(ServiceConstants.PAGE);
 44   
 
 45  0
         _portletRenderer.renderPage(cycle, pageName);
 46   
     }
 47   
 
 48  0
     public String getName()
 49   
     {
 50  0
         return PortletConstants.RENDER_SERVICE;
 51   
     }
 52   
 
 53  0
     public void setPortletRenderer(PortletRenderer portletRenderer)
 54   
     {
 55  0
         _portletRenderer = portletRenderer;
 56   
     }
 57   
 }