Class ExportInterceptor

java.lang.Object
org.kohsuke.stapler.export.ExportInterceptor

public abstract class ExportInterceptor extends Object
Allows caller to intercept exporting of properties. Implementation can choose to ignore properties in case of failure during serialization.
Author:
Vivek Pandey, James Dumay
  • Field Details

  • Constructor Details

    • ExportInterceptor

      public ExportInterceptor()
  • Method Details

    • getValue

      public abstract Object getValue(Property property, Object model, ExportConfig config) throws IOException
      Subclasses must call 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.
      Parameters:
      property - to get the value from model object
      model - object with this property
      Returns:
      the value of the property, if SKIP is returned, this property will be skipped
      Throws:
      IOException - if there was a problem with serialization that should prevent the serialization from proceeding
      See Also: