org.apache.struts2.util

## Interface ContentTypeMatcher<E>

- All Known Implementing Classes:
    DefaultContentTypeMatcher

      public interface ContentTypeMatcher<E>

  Matches content type of uploaded files, similar to `PatternMatcher`
  Since:
    2.3.22

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `E` | `compilePattern(String data)`
    `boolean` | `match(Map<String,String> map, String data, E expr)`

- - ### Method Detail

    - #### compilePattern

          E compilePattern(String data)

    - #### match

          boolean match(Map<String,String> map,
                        String data,
                        E expr)

Copyright © 2000–2023 Apache Software Foundation. All rights reserved.