fr.paris.lutece.plugins.newsletter.modules.document.util
Class HtmlDomDocNewsletterDocument

java.lang.Object
  extended by fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter
      extended by fr.paris.lutece.plugins.newsletter.modules.document.util.HtmlDomDocNewsletterDocument

public class HtmlDomDocNewsletterDocument
extends fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter

Dom document parser for newsletter document.


Nested Class Summary
 
Nested classes/interfaces inherited from class fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter
fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl
 
Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter
CONSTANT_PROTOCOL_DELIMITER, CONSTANT_STATIC_URL, ELEMENT_A, ELEMENT_CSS, ELEMENT_FORM, ELEMENT_IMG, ELEMENT_JAVASCRIPT
 
Constructor Summary
HtmlDomDocNewsletterDocument(String strHtml, String strBaseUrl)
          Instantiates an HtmlDocument after having built the DOM tree.
 
Method Summary
 void convertUrlsToUnsecuredUrls(fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl elementType, String strUnsecuredBaseUrl, String strUnsecuredFolderPath, String strUnsecuredFolder)
          Get the urls of all html elements specified by elementType and convert its to unsecured urls and copy this elements into an unsecured folder
 
Methods inherited from class fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter
convertAllRelativesUrls, getBaseUrl, getContent, getDomDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlDomDocNewsletterDocument

public HtmlDomDocNewsletterDocument(String strHtml,
                                    String strBaseUrl)
Instantiates an HtmlDocument after having built the DOM tree.

Parameters:
strHtml - The Html code to be parsed.
strBaseUrl - The Base url used to retrieve urls.
Method Detail

convertUrlsToUnsecuredUrls

public void convertUrlsToUnsecuredUrls(fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl elementType,
                                       String strUnsecuredBaseUrl,
                                       String strUnsecuredFolderPath,
                                       String strUnsecuredFolder)
Get the urls of all html elements specified by elementType and convert its to unsecured urls and copy this elements into an unsecured folder

Parameters:
elementType - the type of element to get
strUnsecuredBaseUrl - The unsecured base URL
strUnsecuredFolderPath - The unsecured folder path
strUnsecuredFolder - The unsecured folder


Copyright © 2013 Mairie de Paris. All Rights Reserved.