View Javadoc
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  public class HtmlTemplate
13  {
14      public static String wrapHtmlBody(String body)
15      {
16          String output = "";
17          
18          output += "<html>";
19          output += "<head>";
20          output += "<meta http-equiv=\"Content-Language\" content=\"en-us\"/>";
21          output += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\"/>";
22          output += "<title>Bookstore Administration Console</title>";
23          output += "</head>";
24  
25          output += "<body link=\"#FFFFFF\" vlink=\"#FFFFFF\" alink=\"#FFFFFF\" bgcolor=\"#990000\" text=\"#FFFFFF\">";            
26          output += body;            
27          output += "</body>";
28  
29          output += "<br/><a href=\"/bookstore-admin/\">Return to Home Page</a>";
30          output += "</html>";
31          
32          return output;
33      }
34  }
35  
36