org.jasig.portlet.emailpreview.util
Class MessageUtils

java.lang.Object
  extended by org.jasig.portlet.emailpreview.util.MessageUtils
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

@Component
public final class MessageUtils
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

Author:
Drew Wills, drew@unicon.net

Constructor Summary
MessageUtils()
           
 
Method Summary
static String addClickableUrlsToMessageBody(String msgBody)
           
 void afterPropertiesSet()
           
 String cleanHTML(String message)
           
 void setApplicationContext(org.springframework.context.ApplicationContext ctx)
           
 void setSecurityFile(String path)
          Set the file path to the Anti-samy policy file to be used for cleaning strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageUtils

public MessageUtils()
Method Detail

setSecurityFile

public void setSecurityFile(String path)
Set the file path to the Anti-samy policy file to be used for cleaning strings.

Parameters:
path -

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

cleanHTML

public String cleanHTML(String message)

addClickableUrlsToMessageBody

public static String addClickableUrlsToMessageBody(String msgBody)


Copyright © 2013 Jasig. All Rights Reserved.