- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Filter classes, array lengths, and graph metrics during deserialization.
- Author:
- Brian Stansberry, Richard Opalka
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classFactory for creating unmarshalling filters that are configured by a JEPS 290 stylefilterSpecstring provided to the factory methods.static interfaceFilterInfo provides access to information about the current object being deserialized and the status of theUnmarshallerstatic enumThe status of a check on the class, array length, number of references, depth, and stream size. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UnmarshallingObjectInputFilterUnmarshalling filter that accepts everything.static final UnmarshallingObjectInputFilterUnmarshalling filter that rejects everything. -
Method Summary
Modifier and TypeMethodDescriptioncheckInput(UnmarshallingObjectInputFilter.FilterInfo filterInfo) Check the class, array length, number of object references, depth, stream size, and other available filtering information.
-
Field Details
-
ACCEPTING
Unmarshalling filter that accepts everything. -
REJECTING
Unmarshalling filter that rejects everything.
-
-
Method Details
-
checkInput
UnmarshallingObjectInputFilter.Status checkInput(UnmarshallingObjectInputFilter.FilterInfo filterInfo) Check the class, array length, number of object references, depth, stream size, and other available filtering information. Implementations of this method check the contents of the object graph being created during deserialization. The filter returnsFilterResponse.ACCEPT,FilterResponse.REJECT, orFilterResponse.UNDECIDED.- Parameters:
filterInfo- provides information about the current object being deserialized, if any, and the status of theUnmarshaller- Returns:
Status.ACCEPTif accepted,Status.REJECTif rejected,Status.UNDECIDEDif undecided.
-