Class OperatorOnlyGuard

java.lang.Object
org.apache.tika.serialization.OperatorOnlyGuard

public final class OperatorOnlyGuard extends Object
Refuses per-request JSON that names an OperatorOnly property. Runs on the JSON tree before deserialization, so no setter sees the value. Properties are matched the way Jackson will bind them (declared name and aliases); a key Jackson does not know is left for Jackson to refuse. Object values are checked against the nested property's type.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    check(com.fasterxml.jackson.databind.ObjectMapper mapper, String configKey, com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JavaType type)
     
    static void
    check(com.fasterxml.jackson.databind.ObjectMapper mapper, String configKey, String json, Class<?> configClass)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • check

      public static void check(com.fasterxml.jackson.databind.ObjectMapper mapper, String configKey, String json, Class<?> configClass) throws IOException
      Throws:
      IOException - if json names an operator-only property of configClass
    • check

      public static void check(com.fasterxml.jackson.databind.ObjectMapper mapper, String configKey, com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JavaType type) throws IOException
      Throws:
      IOException - if node names an operator-only property of type