public class Adapter
extends java.lang.Object
implements java.io.Serializable
Adapter
Modifier and Type | Field and Description |
---|---|
java.lang.String |
m_scriptDocId
JS script document ID
|
static java.lang.String |
MODE_DIRECT |
static java.lang.String |
MODE_INDIRECT |
Constructor and Description |
---|
Adapter() |
Modifier and Type | Method and Description |
---|---|
char |
applyAdapter(java.lang.String adapter,
Grant grant,
byte[] input,
java.util.Hashtable<java.lang.String,java.lang.Object> params)
Load the input flow thru one adapter:
1) case BSH: "in" is set with the incoming data, "grant" with user rights, "out" is an given OutputStream to write the XML result, "err" is an given OutputStream to write the rejected data, "log" is an given OutputStream to write the mapping logs. |
java.lang.String |
getErrors()
Get the error result
|
java.lang.String |
getId()
Adapter ID
|
java.lang.String |
getLogs()
Get the logs
|
java.lang.String |
getOutput()
Get the output
|
java.lang.String |
getType()
Adapter type
|
boolean |
isAtomic()
Is generated XML atomic
|
public static final java.lang.String MODE_INDIRECT
public static final java.lang.String MODE_DIRECT
public java.lang.String m_scriptDocId
public java.lang.String getId()
Adapter ID
public java.lang.String getType()
Adapter type
public boolean isAtomic()
Is generated XML atomic
public java.lang.String getOutput()
Get the output
public java.lang.String getErrors()
Get the error result
public java.lang.String getLogs()
Get the logs
public char applyAdapter(java.lang.String adapter, Grant grant, byte[] input, java.util.Hashtable<java.lang.String,java.lang.Object> params)
Load the input flow thru one adapter:
1) case BSH: "in" is set with the incoming data,
"grant" with user rights,
"out" is an given OutputStream to write the XML result,
"err" is an given OutputStream to write the rejected data,
"log" is an given OutputStream to write the mapping logs.
2) case AWK: incoming data are read from "stdin",
output data are send to the "stdout",
rejected data are send to the "stderr",
log output is not supported with awk.
3) case JAVA: a specific Java adapter method is call dynamically.
see the Adaptor method: process(inStream, outStream, errStream, logStream)
adapter
- Adapter namegrant
- User rightsinput
- Incoming dataparams
- Adapter parameters (ex: Object name in CSV import)Copyright (c)2006-2014 Simplicite Software. All Rights Reserved.