C - the context typepublic class StreamFunctionExecutor<C> extends AbstractExecutor<C>
A base function executor for handling input and output as streams
.applicationContext| Constructor and Description |
|---|
StreamFunctionExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.io.InputStream input,
java.io.OutputStream output)
Execute the function for the given input and output.
|
protected void |
execute(java.io.InputStream input,
java.io.OutputStream output,
C context)
Execute the function with given context object.
|
buildApplicationContext, close, getApplicationContext, newApplicationContextBuilder, resolveFunction, resolveFunctionName, startEnvironmentpublic void execute(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
input - The inputoutput - The outputjava.io.IOException - If an I/O exception occursprotected void execute(java.io.InputStream input,
java.io.OutputStream output,
C context)
throws java.io.IOException
input - The InputStreamoutput - THe OutputStreamcontext - The context objectjava.io.IOException - If an error occurs