ch.elca.el4j.services.monitoring.jmx
Class CssHtmlParser

java.lang.Object
  extended by ch.elca.el4j.services.monitoring.jmx.CssHtmlParser
All Implemented Interfaces:
CssHtmlParserMBean, com.sun.jdmk.comm.HtmlParser

public class CssHtmlParser
extends Object
implements CssHtmlParserMBean

This MBean adds css information to a given html page.

Author:
Martin Zeltner (MZE)
File-location:
CssHtmlParser
Last check-in date:
2009-12-01 10:59:54 +0100 (Di, 01. Dez 2009) by jonasha for revision 4010

Constructor Summary
CssHtmlParser(String stylesheetPath)
          Constructor.
 
Method Summary
 String parsePage(String s)
           Adds css content directly before the head end tag in html page.
 String parseRequest(String s)
           Asks which action should be done for the given request uri string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssHtmlParser

public CssHtmlParser(String stylesheetPath)
              throws IOException
Constructor.

Parameters:
stylesheetPath - Is the path to the needed stylesheet.
Throws:
IOException - If reading stylesheet makes trouble.
Method Detail

parseRequest

public String parseRequest(String s)
Asks which action should be done for the given request uri string. If null is returned the underlying parser takes action.

Specified by:
parseRequest in interface com.sun.jdmk.comm.HtmlParser

parsePage

public String parsePage(String s)
Adds css content directly before the head end tag in html page. If no head end tag exists, no css will be added. The lookup of the head end tag is case insensitive.

Specified by:
parsePage in interface com.sun.jdmk.comm.HtmlParser


Copyright © 2005-2011 ELCA. All Rights Reserved.