View Javadoc

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