public class SimpleScriptedAdapter extends SimpleAdapter
Adapter class for scripted adapters
err, log, out
Constructor and Description |
---|
SimpleScriptedAdapter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getScriptId()
Get server script document ID
|
void |
init(java.lang.String name,
Grant grant,
java.io.ByteArrayInputStream inStream,
java.io.ByteArrayOutputStream outStream,
java.io.ByteArrayOutputStream errStream,
java.io.ByteArrayOutputStream logStream,
java.util.Hashtable<java.lang.String,java.lang.Object> params)
Adapter initialization
|
void |
postProcess()
Call after processing lines
by default it sends the XML footer to output
|
java.lang.String |
preProcess()
Called before processing lines,
by default it sends the XML header to output
|
void |
process()
Input/output/error/logging streams processing
|
void |
setScriptId(java.lang.String id) |
append, appendError, appendLog, appendLog, close, directProcess, getErrorStream, getErrorWriter, getGrant, getInput, getInputReader, getInputStream, getLogStream, getLogWriter, getName, getOutput, getOutputStream, getOutputWriter, getParameter, getParameters, getProcessCount, getStatus, setInputStream, setOutputStream, setParameter, setProcessCount, setStatus
public java.lang.String getScriptId()
public void setScriptId(java.lang.String id)
public void init(java.lang.String name, Grant grant, java.io.ByteArrayInputStream inStream, java.io.ByteArrayOutputStream outStream, java.io.ByteArrayOutputStream errStream, java.io.ByteArrayOutputStream logStream, java.util.Hashtable<java.lang.String,java.lang.Object> params)
SimpleAdapter
Adapter initialization
init
in interface AdapterInterface
init
in class SimpleAdapter
name
- Adapter namegrant
- User rightsinStream
- Input streamoutStream
- Output streamerrStream
- Error stream for rejected rows (can be null)logStream
- Stream to log info, errors... (can be null)params
- Adapter parameterspublic java.lang.String preProcess()
SimpleAdapter
Called before processing lines, by default it sends the XML header to output
preProcess
in interface AdapterInterface
preProcess
in class SimpleAdapter
public void process() throws java.lang.InterruptedException
AdapterInterface
Input/output/error/logging streams processing
java.lang.InterruptedException
public void postProcess()
SimpleAdapter
Call after processing lines by default it sends the XML footer to output
postProcess
in interface AdapterInterface
postProcess
in class SimpleAdapter
Copyright (c)2006-2014 Simplicite Software. All Rights Reserved.