public abstract class Processor
extends com.yahoo.component.chain.ChainedComponent
Processors typically changes the Request and/or the Response. It may also make multiple forward requests, in series or parallel, or manufacture the response content itself or by calling an external service.
Typical usage:
public class MyProcessor extends Processor {
@Override
public Response process(Request request, Execution execution) {
// process the request here
Response response = execution.process(request); // Pass along to get the Response
// process (or fill in) Data/DataList items on the response here
return response;
}
}
Constructor and Description |
---|
Processor() |
Modifier and Type | Method and Description |
---|---|
abstract Response |
process(Request request,
Execution execution)
Performs a processing request and returns the response
|
getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies
Copyright © 2017. All rights reserved.