|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.newsletter.util.NewsletterUtils
public final class NewsletterUtils
This classe provides utility methods for newsletters.
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getHtmlTemplatePath(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTemplateId - the id of the template to retrieveplugin - the plugin
public static String convertForJavascript(String strIn)
strIn - the string to clean
public static String encodeForURL(String strEntry)
strEntry - the string entry
public 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 extension
public 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.
public static String rewriteUrls(String strContent,
String strBaseUrl)
strContent - The content to analyzestrBaseUrl - The base url
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||