|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.cms.service.AntiSamyStringCleaningService
@Component public class AntiSamyStringCleaningService
AntiSamyStringCleaningService provides an implementation of the IStringCleaningService interface that uses OWASP's AntiSamy tool to perform HTML string cleaning. This implementation's behavior is controlled by a configured policy file.
| Constructor Summary | |
|---|---|
AntiSamyStringCleaningService()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected org.owasp.validator.html.AntiSamy |
getAntiSamyInstance()
Just returns a new AntiSamy instance. |
String |
getSafeContent(String content)
Return a safe HTML string version of the provided content. |
void |
setResource(org.springframework.core.io.Resource resource)
Set the resource to be used as the AntiSamy policy file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntiSamyStringCleaningService()
| Method Detail |
|---|
public void setResource(org.springframework.core.io.Resource resource)
resource -
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic String getSafeContent(String content)
IStringCleaningService
getSafeContent in interface IStringCleaningServiceprotected org.owasp.validator.html.AntiSamy getAntiSamyInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||