org.edg.security.authorization.admin
Class HTMLWriter

java.lang.Object
  |
  +--org.edg.security.authorization.admin.HTMLWriter

public class HTMLWriter
extends java.lang.Object

Class collecting convenience methods for the AuthorizationManager Administration Interface, used to generate header and trailer of HTML pages and to show failure messages.

Author:
Gian Luca Volpato, SRC

Constructor Summary
HTMLWriter()
           
 
Method Summary
static void insertHeader(java.io.PrintWriter out, java.lang.String message)
          Convenience method that writes the header of an HTML response.
static void insertTrailer(java.io.PrintWriter out)
          Convenience method that writes the trailer of an HTML response
static void showFailure(java.io.PrintWriter out, java.lang.String title, java.lang.String mesg)
          Convenience method that shows info about a failure in using the AuthorizationManager Administration Interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLWriter

public HTMLWriter()
Method Detail

insertHeader

public static void insertHeader(java.io.PrintWriter out,
                                java.lang.String message)
Convenience method that writes the header of an HTML response.

Parameters:
out - The output stream where to write the response
message - The main heading of this HTML page

insertTrailer

public static void insertTrailer(java.io.PrintWriter out)
Convenience method that writes the trailer of an HTML response

Parameters:
out - The output stream where to write the response

showFailure

public static void showFailure(java.io.PrintWriter out,
                               java.lang.String title,
                               java.lang.String mesg)
Convenience method that shows info about a failure in using the AuthorizationManager Administration Interface.

Parameters:
out - The output stream where to write the response
title - The title of the failure
mesg - The message describing the failure