Class SimpleScriptedAdapter

    • Constructor Detail

      • SimpleScriptedAdapter

        public SimpleScriptedAdapter()
    • Method Detail

      • getScriptId

        public java.lang.String getScriptId()
        Get server script document ID
      • setScriptId

        public void setScriptId​(java.lang.String id)
        Set server script document ID
      • getScript

        public java.lang.String getScript()
        Get server script document content
      • setScript

        public void setScript​(java.lang.String s)
        Set server script document content
      • init

        public void init​(java.lang.String name,
                         Grant grant,
                         java.io.InputStream inStream,
                         java.io.OutputStream outStream,
                         java.io.OutputStream errStream,
                         java.io.OutputStream logStream,
                         java.util.Map<java.lang.String,​java.lang.Object> params,
                         java.lang.String trackId,
                         java.lang.String origin)
        Description copied from class: SimpleAdapter
        Adapter initialization
        Specified by:
        init in interface AdapterInterface
        Overrides:
        init in class SimpleAdapter
        Parameters:
        name - Adapter name
        grant - User rights
        inStream - Input stream of data
        outStream - Output stream of XML
        errStream - Optional error stream for rejected incoming data
        logStream - Optional stream to log info, errors...
        params - Adapter parameters
        trackId - Tracking ID
        origin - Origin of data
      • preProcess

        public java.lang.String preProcess()
        Description copied from class: SimpleAdapter
        Called before processing lines, by default it sends the XML header to output
        Specified by:
        preProcess in interface AdapterInterface
        Overrides:
        preProcess in class SimpleAdapter
        Returns:
        Error code to stop, or null to continue
      • process

        public void process()
                     throws java.lang.InterruptedException
        Description copied from interface: AdapterInterface
        Input/output/error/logging streams processing
        Throws:
        java.lang.InterruptedException