com.liferay.portal.kernel.sanitizer
Interface Sanitizer
- All Known Implementing Classes:
- BaseSanitizer, SanitizerWrapper
public interface Sanitizer
Method Summary |
byte[] |
sanitize(long companyId,
long groupId,
long userId,
String className,
long classPK,
String contentType,
String[] modes,
byte[] bytes,
Map<String,Object> options)
|
void |
sanitize(long companyId,
long groupId,
long userId,
String className,
long classPK,
String contentType,
String[] modes,
InputStream inputStream,
OutputStream outputStream,
Map<String,Object> options)
|
String |
sanitize(long companyId,
long groupId,
long userId,
String className,
long classPK,
String contentType,
String[] modes,
String s,
Map<String,Object> options)
|
MODE_ALL
static final String MODE_ALL
- See Also:
- Constant Field Values
MODE_BAD_WORDS
static final String MODE_BAD_WORDS
- See Also:
- Constant Field Values
MODE_XSS
static final String MODE_XSS
- See Also:
- Constant Field Values
sanitize
byte[] sanitize(long companyId,
long groupId,
long userId,
String className,
long classPK,
String contentType,
String[] modes,
byte[] bytes,
Map<String,Object> options)
throws SanitizerException
- Throws:
SanitizerException
sanitize
void sanitize(long companyId,
long groupId,
long userId,
String className,
long classPK,
String contentType,
String[] modes,
InputStream inputStream,
OutputStream outputStream,
Map<String,Object> options)
throws SanitizerException
- Throws:
SanitizerException
sanitize
String sanitize(long companyId,
long groupId,
long userId,
String className,
long classPK,
String contentType,
String[] modes,
String s,
Map<String,Object> options)
throws SanitizerException
- Throws:
SanitizerException