Class UnmarshallingObjectInputFilter.Factory

java.lang.Object
org.jboss.marshalling.UnmarshallingObjectInputFilter.Factory
Enclosing interface:
UnmarshallingObjectInputFilter

public static final class UnmarshallingObjectInputFilter.Factory extends Object
Factory for creating unmarshalling filters that are configured by a JEPS 290 style filterSpec string provided to the factory methods. The created unmarshalling filters will return UnmarshallingObjectInputFilter.Status.REJECTED if the given input is not acceptable.
  • Method Details

    • createFilter

      public static UnmarshallingObjectInputFilter createFilter(String filterSpec)
      Creates unmarshalling filters that are configured by a JEPS 290 style filterSpec string.
      Parameters:
      filterSpec - the JEPS 290 style compatible string
      Returns:
      filterSpec string configured unmarshalling filter
    • createFilter

      public static UnmarshallingObjectInputFilter createFilter(String filterSpec, boolean checkJEPS290ProcessFilter)
      Creates unmarshalling filters that are configured by a JEPS 290 style filterSpec string. If checkJEPS290ProcessFilter is set to true and static JVM-wide deserialization filter (-DserialFilter=...) is available then both configured unmarshalling filter and JVM-wide deserialization filter will be chained.
      Parameters:
      filterSpec - the JEPS 290 style compatible string
      Returns:
      filterSpec string configured unmarshalling filter potentially chained with JVM-wide deserialization filter