public class IsJsonFilter extends Object implements Filter, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
logger used by this class
|
| Constructor and Description |
|---|
IsJsonFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(InternalMessage obj,
Event.Builder builder) |
boolean |
accept(Object obj) |
boolean |
isValidateParsing() |
protected boolean |
mayBeJSON(String string)
Tests if the String possibly represents a valid JSON String.
|
void |
setMuleContext(MuleContext context) |
void |
setValidateParsing(boolean validateParsing) |
public boolean accept(InternalMessage obj, Event.Builder builder)
public boolean accept(Object obj)
public boolean isValidateParsing()
public void setValidateParsing(boolean validateParsing)
protected boolean mayBeJSON(String string)
string - Valid JSON strings are:
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.