resteasy enable strict parsing with mime4j

61 Views Asked by At

is there a way to set mime4j strict parsing to true for resteasy without hacking into and extending MultipartFormDataInputImpl? according to mime4j 0.8 javadoc, the default value is false. we want to have it throw an exception rather than having a warn as what default gives

public void setStrictParsing(boolean strictParsing)

Defines whether minor violations of the MIME specification should be tolerated or should result in a MimeException. If this parameter is set to true, a strict interpretation of the MIME specification will be enforced, If this parameter is set to false minor violations will result in a warning in the log.

0

There are 0 best solutions below