@Component public final class MessageUtils extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
MessageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
addClickableUrlsToMessageBody(String msgBody) |
static String |
addMissingTargetToAnchors(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.
|
public void setSecurityFile(String path)
path - public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionCopyright © 2015 Jasig. All Rights Reserved.