Class NCBOProxyResponsePostProcessorRegistry
java.lang.Object
io.github.agroportal.ncboproxy.postprocessors.NCBOProxyResponsePostProcessorRegistry
- All Implemented Interfaces:
ResponsePostProcessor,ResponsePostProcessorRegistry,BiFunction<NCBOOutputModel,Map<String, String>, Void>
public class NCBOProxyResponsePostProcessorRegistry
extends Object
implements ResponsePostProcessorRegistry
-
Method Summary
Modifier and TypeMethodDescriptionapply(NCBOOutputModel outputModel, Map<String, String> parameters) Perform the post-annotationvoidclear()Remove all registered post-processorsvoidpolymorphicOverride(ResponsePostProcessorRegistry responsePostProcessorRegistry) voidregisterPostProcessor(ResponsePostProcessor responsePostProcessor) Register aResponsePostProcessorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
registerPostProcessor
Description copied from interface:ResponsePostProcessorRegistryRegister aResponsePostProcessor- Specified by:
registerPostProcessorin interfaceResponsePostProcessorRegistry- Parameters:
responsePostProcessor- The post processor instance
-
polymorphicOverride
- Specified by:
polymorphicOverridein interfaceResponsePostProcessorRegistry
-
clear
public void clear()Description copied from interface:ResponsePostProcessorRegistryRemove all registered post-processors- Specified by:
clearin interfaceResponsePostProcessorRegistry
-
apply
Description copied from interface:ResponsePostProcessorPerform the post-annotation- Specified by:
applyin interfaceBiFunction<NCBOOutputModel,Map<String, String>, Void> - Specified by:
applyin interfaceResponsePostProcessor- Parameters:
outputModel- The output from the original REST APIparameters- Parameters for the post processing
-