Package com.oopsclick.silk.security
Class Sanitize
- java.lang.Object
-
- com.oopsclick.silk.security.Sanitize
-
public class Sanitize extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Sanitize()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlphanumeric(java.lang.String value, java.lang.String ifNull)
java.lang.String
getAlphanumeric(javax.servlet.http.HttpServletRequest request, java.lang.String parameter, java.lang.String ifNull)
java.lang.String
getCleanHTML(java.lang.String unsafe)
java.lang.String
getCleanHTML(javax.servlet.http.HttpServletRequest request, java.lang.String parameter, java.lang.String ifNull)
java.lang.String
getCleanSQL(java.lang.String value)
java.lang.String
getNumber(java.lang.String value, java.lang.String ifNull)
java.lang.String
getNumber(javax.servlet.http.HttpServletRequest request, java.lang.String parameter, java.lang.String ifNull)
java.lang.String
getOnlyText(java.lang.String text)
java.lang.String
getOnlyText(javax.servlet.http.HttpServletRequest request, java.lang.String parameter, java.lang.String ifNull)
-
-
-
Method Detail
-
getNumber
public java.lang.String getNumber(java.lang.String value, java.lang.String ifNull)
-
getNumber
public java.lang.String getNumber(javax.servlet.http.HttpServletRequest request, java.lang.String parameter, java.lang.String ifNull)
-
getAlphanumeric
public java.lang.String getAlphanumeric(java.lang.String value, java.lang.String ifNull)
-
getAlphanumeric
public java.lang.String getAlphanumeric(javax.servlet.http.HttpServletRequest request, java.lang.String parameter, java.lang.String ifNull)
-
getOnlyText
public java.lang.String getOnlyText(java.lang.String text)
-
getOnlyText
public java.lang.String getOnlyText(javax.servlet.http.HttpServletRequest request, java.lang.String parameter, java.lang.String ifNull)
-
getCleanHTML
public java.lang.String getCleanHTML(java.lang.String unsafe)
-
getCleanHTML
public java.lang.String getCleanHTML(javax.servlet.http.HttpServletRequest request, java.lang.String parameter, java.lang.String ifNull)
-
getCleanSQL
public java.lang.String getCleanSQL(java.lang.String value)
-
-