public class ExecutionWithResponse extends Execution
Execution.Environment<COMPONENT extends Processor>, Execution.Trace
Constructor and Description |
---|
ExecutionWithResponse(com.yahoo.component.chain.Chain<? extends Processor> chain,
Response response,
Execution execution)
Creates an execution which will return a given response at the end of the chain.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
defaultResponse(Request request)
Creates the default response to return from this kind of execution when there are no further processors.
|
chain, createRoot, createRoot, environment, next, nextIndex, nextProcessor, onInvoking, onReturning, previousProcessor, process, toString, trace
private Response response
public ExecutionWithResponse(com.yahoo.component.chain.Chain<? extends Processor> chain, Response response, Execution execution)
chain
- the chain to execute in thisresponse
- the response this will return from Execution.process(com.yahoo.processing.Request)
then the end of this chain is reachedexecution
- the the parent of this executionprotected Response defaultResponse(Request request)
Execution
defaultResponse
in class Execution
Copyright © 2018. All rights reserved.