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