Vjacheslav Borisov created CXF-7920:
---------------------------------------

             Summary: Option to customize BINARY_CONTENT_MEDIA_TYPES in 
DefaultLogEventMapper
                 Key: CXF-7920
                 URL: https://issues.apache.org/jira/browse/CXF-7920
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.2.7
            Reporter: Vjacheslav Borisov


DefaultLogEventMapper contains hard coded binary type
{code:java}
// code placeholder
static {
        BINARY_CONTENT_MEDIA_TYPES = new HashSet<>();
        BINARY_CONTENT_MEDIA_TYPES.add("application/octet-stream");
        BINARY_CONTENT_MEDIA_TYPES.add("application/pdf");
        BINARY_CONTENT_MEDIA_TYPES.add("image/png");
        BINARY_CONTENT_MEDIA_TYPES.add("image/jpeg");
        BINARY_CONTENT_MEDIA_TYPES.add("image/gif");
    }
{code}
   And all other binary types like 
application/vnd.oasis.opendocument.spreadsheet are logged.

There should be option to customize this list

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to