public class HtmlDomDocNewsletter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSTANT_PROTOCOL_DELIMITER |
static String |
CONSTANT_STATIC_URL |
static fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl |
ELEMENT_A
To define a anchor, a element must have:
"a" tag name
The url is contained in the attributed named "href"
|
static fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl |
ELEMENT_CSS
To define a CSS, html element must have:
"link" tag name
"rel" attribute equal to "stylesheet"
The url is contained in the attributed named "href"
|
static fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl |
ELEMENT_FORM
To define a form, form element must have:
"form" tag name
The url is contained in the attributed named "action"
|
static fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl |
ELEMENT_IMG
To define an image, html element must have:
"img" tag name
The url is contained in the attributed named "src"
|
static fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl |
ELEMENT_JAVASCRIPT
To define a javascript, html element must have:
"script" tag name
"type" attribute equal to "text/javascript"
The url is contained in the attributed named "src"
|
| Constructor and Description |
|---|
HtmlDomDocNewsletter(String strHtml,
String strBaseUrl)
Instantiates an HtmlDocument after having built the DOM tree.
|
| Modifier and Type | Method and Description |
|---|---|
void |
convertAllRelativesUrls(fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl elementType)
Get the relatives urls of all html elements specified by elementType and convert its to absolutes urls
|
String |
getContent()
Get the document content
|
public static final String CONSTANT_STATIC_URL
public static final String CONSTANT_PROTOCOL_DELIMITER
public static final fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl ELEMENT_CSS
public static final fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl ELEMENT_JAVASCRIPT
public static final fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl ELEMENT_IMG
public static final fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl ELEMENT_A
public static final fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl ELEMENT_FORM
public void convertAllRelativesUrls(fr.paris.lutece.plugins.newsletter.util.HtmlDomDocNewsletter.ElementUrl elementType)
elementType - the type of element to getpublic String getContent()
Copyright © 2023 City of Paris. All rights reserved.