SimpleHTML.java
/*
* Copyright (c) 2007-2017 MetaSolutions AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.entrystore.rest.util;
import org.restlet.data.Language;
import org.restlet.data.MediaType;
import org.restlet.representation.Representation;
import org.restlet.representation.StringRepresentation;
/**
* Helper class to construct HTML parts for simple pages (login/logout, etc).
* This should be replaced with a proper templating engine when more resources
* start returning HTML. Perhaps never.
*
* @author Hannes Ebner
*/
public class SimpleHTML {
private String title;
public SimpleHTML(String title) {
this.title = title;
}
public String wrapInHtml(String simpleContent) {
StringBuilder sb = new StringBuilder();
sb.append(header());
sb.append("<div>");
sb.append(simpleContent);
sb.append("</div>");
sb.append(footer());
return sb.toString();
}
public String header() {
StringBuilder sb = new StringBuilder();
sb.append("<html>\n");
sb.append("<head>\n<title>");
sb.append(title);
sb.append("</title>\n</head>\n");
sb.append("<body style=\"width:500px;margin-left:auto;margin-right:auto;font-family:verdana;font-size:10pt;\">\n");
sb.append("<div>\n<br/>\n");
sb.append("<p><a href=\"https://entrystore.org\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAABQCAYAAADvLIfGAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEPCikh9+MjrAAAHwNJREFUeNrtnXuUVNWV8H/7VvUDbASxlVYxomlGNBox6gSNxkaNQqKfJoqPLxpxfIxO9BPXkBUzmtX0is8V/NSoK5rgiFE+H+CnJD5wjXxiRONEHHF8BEcMraJp5NVIY7+q7v7+uKeH6lvVUF1d93ZV9/6t1YvF7a57T+1z7tln77P3PqKqGIZhGIZR3ngmAsMwDMMw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AyjmAq92yeNsi1OfZ7o4sshGuVuGIZhGIOj0Ct3ISVCnNXbtkqCrdZdhmEYhlFEhZ7cTKfns0aEeCxmYc1+1XRYdxmGYRhGERX6ZZeR6lJaICYrXXlrxox49+wNwzAMY8grdLeXvVWVt9DIrfRN3kjesf1zwzAMwyi6Qof9R/GlCG8g0ZV5FEUF/njNDDZbVxmGYRhGBAp9xgxN+8KnAq8IEaSUKSrCmirhFbPODcMwDCMihQ6w7a+0ewleV3i92AFy4rEJZfGPf8Qm6ybDMAzDiFChNzaqv08Vn1fCUnzeLqJS3yQ+vz98An8x69wwDMMwIlboELjeqzr5GI9nFf4EdBd8syDA7hMVntgCrzc02OlqhmEYhpEPBR2fmouFCyXR0sVeqTRH+Mo3BPbRfBcMwX55m8B/ovx5ly5WXXaZdlv3GIZhGEbMCh1AEPnVAkZ1ppmAMkmEenz2EY9qVbIOVhEhpT7rET7C472E8OGWD1nX2KiWc24YhmEYg6XQe2hqEq9qIqMruhhHglrxGYcwWnyqVRAN3PJbUTaox7oEbPxiDesaG83FbhiGYRglo9DDyn1sPTUd3YxMKBWJJNLZTapiFB1fQFvjDO2ybjAMwzCMElfohmEYhmFEj2ciMAzDMIzy5/8D1skE+QYHsYAAAAAASUVORK5CYII=\" alt=\"ENTRYSTORE\" title=\"ENTRYSTORE\" width=\"300px\"></a></p>\n");
sb.append("<br/>\n<h3>");
sb.append(title);
sb.append("</h3>\n<br/>\n");
return sb.toString();
}
public String footer() {
StringBuilder sb = new StringBuilder();
sb.append("\n</div>\n</body>\n</html>\n");
return sb.toString();
}
public Representation representation(String simpleContent) {
return new StringRepresentation(wrapInHtml(simpleContent), MediaType.TEXT_HTML, Language.ENGLISH);
}
}