rabbit.proxy
Class HtmlPage

java.lang.Object
  extended by rabbit.proxy.HtmlPage

public class HtmlPage
extends java.lang.Object

This class is intended to be used as a template for metapages. It provides methods to get different part of the HTML-page so we can get a consistent interface.

Author:
Robert Olofsson

Method Summary
static java.lang.String getPageHeader()
          Return a simple HTMLheader.
static java.lang.String getPageHeader(Connection con, StatusCode type)
          Return a HTMLheader.
static java.lang.String getPageHeader(Connection con, java.lang.String title)
          Return a HTMLheader.
static java.lang.String getTableHeader(int width, int border)
          Return a table header with given width (int %) and given borderwidth.
static java.lang.String getTableTopicRow()
          Return a table topic row
static SProperties setup()
          Setup this class for usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPageHeader

public static java.lang.String getPageHeader()
Return a simple HTMLheader.

Returns:
a HTMLHeader.

getPageHeader

public static java.lang.String getPageHeader(Connection con,
                                             StatusCode type)
Return a HTMLheader.

Parameters:
con - the Connection handling the request
type - the StatusCode of the request
Returns:
a HTMLHeader.

getPageHeader

public static java.lang.String getPageHeader(Connection con,
                                             java.lang.String title)
Return a HTMLheader.

Parameters:
con - the Connection creating the page
title - the title of this page.
Returns:
a HTMLHeader.

getTableHeader

public static java.lang.String getTableHeader(int width,
                                              int border)
Return a table header with given width (int %) and given borderwidth.

Parameters:
width - the width of the table
border - the width of the border in pixels
Returns:
a html table header

getTableTopicRow

public static java.lang.String getTableTopicRow()
Return a table topic row

Returns:
a html table topic row

setup

public static SProperties setup()
Setup this class for usage

Returns:
some default properties with color codes