public interface ResponseProcessor<T extends Output<T>>
extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Output
.Modifier and Type | Method and Description |
---|---|
String |
getFieldName()
Gets the field name this ResponseProcessor uses.
|
OutputFactory<T> |
getOutputFactory()
Gets the OutputFactory this ResponseProcessor uses.
|
Optional<T> |
process(String value)
Returns Optional.empty() if it failed to process out a response.
|
void |
setFieldName(String fieldName)
Deprecated.
Response processors should be immutable; downstream objects assume that they are
Set the field name this ResponseProcessor uses.
|
OutputFactory<T> getOutputFactory()
String getFieldName()
@Deprecated void setFieldName(String fieldName)
fieldName
- The field name.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.