com.sapportals.htmlb.htmlcontainer

Class DefaultHtmlParser

java.lang.Object
  extended bycom.sapportals.htmlb.htmlcontainer.DefaultHtmlParser

public class DefaultHtmlParser
extends Object

The DefaultHtmlParser is used to adjust a whole html document in that way, that it it fit's non-isolated into an html business for java application. The DefaultHtmlParser will delete the following tags from the html document:

All attributes of the <body>-tag are replaced by a <table>-tag with the same atttributes

If the document contains <frameset>, <frame>, or <form>, the content of the document is replaced by an error message.

Relative URL's are replaced by absolute URL's, if they are used in one of the following attributes:

Targets of links are set to "_blank"

Copyright 2004 SAP AG


Constructor Summary
DefaultHtmlParser()
           
 
Method Summary
 String parse(InputStream htmlStream, String srcUrl)
          the parse()-method is called by the NonIsolatedHtmlContainer to adjust the html document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHtmlParser

public DefaultHtmlParser()
Method Detail

parse

public String parse(InputStream htmlStream,
                    String srcUrl)
the parse()-method is called by the NonIsolatedHtmlContainer to adjust the html document.

Parameters:
htmlStream - the html document
srcUrl - the base-Url of the document
Returns:
the parsed document


Copyright 2006 SAP AG Complete Copyright Notice