public class RequestNode<IN,OUT> extends Node<IN,OUT> implements RequestCallback<OUT>
RequestNode
implements a Node
that can be used to execute REST
requests using RequestDelegate
interface.graph, inputNodes
Constructor and Description |
---|
RequestNode(RequestDelegate<OUT> requestDelegate) |
Modifier and Type | Method and Description |
---|---|
void |
emitOutput()
Invoked to emit available output value(s) from this
OutputNode . |
void |
onError(RequestError requestError) |
void |
onResponse(OUT response) |
protected OUT |
processInput(OutputNode<IN> source,
IN input)
Invoked by
InputNode.onInput(OutputNode, Object) when the given input Object
has been received from the OutputNode that emitted it. |
action, action, addInputNode, attach, begin, begin, beginTimer, beginTimer, buffer, completed, concat, concatStrings, count, createErrorMessage, detach, dispatchError, dispatchReset, distinct, doOnCompleted, doOnError, doOnInput, doOnReset, emitOutput, filter, first, first, getGraph, hasInputNodes, isErrorReceived, last, last, map, merge, nth, observer, observer, onAttached, onCompleted, onDetached, onError, onInput, onReset, removeInputNode, repeat, reverse, setErrorReceived, setGraph, skip, skipWhile, start, string, sum, take, timer, timer, toBoolean, toByte, toChar, toDouble, toFloat, toInt, toLong, toMain, toShort, toWorker, whenClicked, whenTextChanged
public RequestNode(RequestDelegate<OUT> requestDelegate)
public void emitOutput()
OutputNode
OutputNode
.emitOutput
in interface OutputNode<OUT>
emitOutput
in class Node<IN,OUT>
protected OUT processInput(OutputNode<IN> source, IN input)
Node
InputNode.onInput(OutputNode, Object)
when the given input Object
has been received from the OutputNode
that emitted it.processInput
in class Node<IN,OUT>
source
- An OutputNode
that emitted the input.input
- The input Object
.public void onResponse(OUT response)
onResponse
in interface RequestCallback<OUT>
public void onError(RequestError requestError)
onError
in interface RequestCallback<OUT>