Coverage Report - org.mule.example.bookstore.web.HtmlTemplate
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlTemplate
0%
0/14
N/A
1
 
 1  
 /*
 2  
  * $Id: HtmlTemplate.java 13541 2008-12-04 13:03:02Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.example.bookstore.web;
 12  
 
 13  
 /**
 14  
  * Poor man's CSS stylesheet
 15  
  */
 16  0
 public class HtmlTemplate
 17  
 {
 18  
     public static String wrapHtmlBody(String body)
 19  
     {
 20  0
         String output = "";
 21  
         
 22  0
         output += "<html>";
 23  0
         output += "<head>";
 24  0
         output += "<meta http-equiv=\"Content-Language\" content=\"en-us\"/>";
 25  0
         output += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\"/>";
 26  0
         output += "<title>Bookstore Administration Console</title>";
 27  0
         output += "</head>";
 28  
 
 29  0
         output += "<body link=\"#FFFFFF\" vlink=\"#FFFFFF\" alink=\"#FFFFFF\" bgcolor=\"#990000\" text=\"#FFFFFF\">";            
 30  0
         output += body;            
 31  0
         output += "</body>";
 32  
 
 33  0
         output += "<br/><a href=\"/bookstore-admin/\">Return to Home Page</a>";
 34  0
         output += "</html>";
 35  
         
 36  0
         return output;
 37  
     }
 38  
 }
 39  
 
 40