public final class NewsletterUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addHeaderResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String strFileName,
String strFileExtension)
Addition of information as header of the http response
|
static void |
addParameters(fr.paris.lutece.util.url.UrlItem urlItem,
String strParameterName,
String[] values)
Adds all parameter values to the urlItem
|
static String |
convertForJavascript(String strIn)
Cleans a string in order to make it usable in a javascript script
|
static String |
encodeForURL(String strEntry)
Encode a string for passage in parameter in URL
|
static String |
getHtmlTemplatePath(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retrieve the html template for the given template id
|
static String |
getStringFromStringArray(String[] strArrayValues)
Get the first String of a String array.
|
static String |
rewriteUrls(String strContent,
String strBaseUrl)
Rewrite relatives url to absolutes urls
|
public static String getHtmlTemplatePath(int nTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTemplateId - the id of the template to retrieveplugin - the pluginpublic static String convertForJavascript(String strIn)
strIn - the string to cleanpublic static String encodeForURL(String strEntry)
strEntry - the string entrypublic static void addHeaderResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String strFileName,
String strFileExtension)
request - The Http Requestresponse - The Http ResponsestrFileName - THe filename of the filestrFileExtension - The file extensionpublic static void addParameters(fr.paris.lutece.util.url.UrlItem urlItem,
String strParameterName,
String[] values)
urlItem - the urlItemstrParameterName - the name of the parameter which has multiple
valuesvalues - parameter valuespublic static String getStringFromStringArray(String[] strArrayValues)
strArrayValues - The string array to get the first element of.Copyright © 2015 City of Paris. All rights reserved.