public abstract class ExportInterceptor extends Object
Modifier and Type | Field and Description |
---|---|
static ExportInterceptor |
DEFAULT |
static Logger |
LOGGER |
static Object |
SKIP
Constant to tell if return of
getValue(Property, Object, ExportConfig) should be skipped. |
Constructor and Description |
---|
ExportInterceptor() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
getValue(Property property,
Object model,
ExportConfig config)
Subclasses must call
Property.getValue(Object) to retrieve the property. |
public static final Logger LOGGER
public static final Object SKIP
getValue(Property, Object, ExportConfig)
should be skipped.
Constant to skip serializaing a property in case of errorpublic static final ExportInterceptor DEFAULT
public abstract Object getValue(Property property, Object model, ExportConfig config) throws IOException
Property.getValue(Object)
to retrieve the property.
If the subclass decides the value can be included in the request return the value
otherwise, return SKIP
to skip the property.property
- to get the value from model objectmodel
- object with this propertySKIP
is returned, this property will be skippedIOException
- if there was a problem with serialization that should prevent
the serialization from proceedingExported.skipNull()
Copyright © 2004–2022. All rights reserved.