DataManagerPOA.java 6.43 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.service;

import com.adobe.service.*;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
import org.omg.CORBA.SystemException;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.InvokeHandler;
import org.omg.CORBA.portable.OutputStream;
import org.omg.CORBA.portable.ResponseHandler;
import org.omg.PortableServer.POA;
import org.omg.PortableServer.Servant;

import java.util.Hashtable;

public abstract class DataManagerPOA
extends Servant
implements InvokeHandler,
DataManagerOperations {
    private static final Hashtable m_opsHash = new Hashtable();
    private String[] ids = new String[]{"IDL:com/adobe/service/DataManager:1.0"};

    public DataManager _this() {
        return DataManagerHelper.narrow(this._this_object());
    }

    public DataManager _this(ORB orb) {
        return DataManagerHelper.narrow(this._this_object(orb));
    }

    public OutputStream _invoke(String method, InputStream _input, ResponseHandler handler) throws SystemException {
        OutputStream _out = null;
        Integer opsIndex = (Integer)m_opsHash.get(method);
        if (null == opsIndex) {
            throw new BAD_OPERATION(method + " not found");
        }
        switch (opsIndex) {
            case 0: {
                _out = handler.createReply();
                _out.write_long(this.getTransactionMaxInlineSize());
                break;
            }
            case 1: {
                String _arg0 = _input.read_wstring();
                byte[] _arg1 = BufDataHelper.read(_input);
                _out = handler.createReply();
                this.setTransactionPropertyBytes(_arg0, _arg1);
                break;
            }
            case 2: {
                String _arg0 = _input.read_wstring();
                String _arg1 = _input.read_wstring();
                _out = handler.createReply();
                this.setTransactionPropertyString(_arg0, _arg1);
                break;
            }
            case 3: {
                String _arg0 = _input.read_wstring();
                _out = handler.createReply();
                _out.write_long(this.getTransactionPropertyLong(_arg0));
                break;
            }
            case 4: {
                try {
                    String _arg0 = _input.read_wstring();
                    _out = handler.createReply();
                    FileDataBufferHelper.write(_out, this.createFileDataBuffer(_arg0));
                }
                catch (InvalidSourceException _ex0) {
                    _out = handler.createExceptionReply();
                    InvalidSourceExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 5: {
                byte[] _arg0 = BufDataHelper.read(_input);
                _out = handler.createReply();
                this.setInvocationContext(_arg0);
                break;
            }
            case 6: {
                String _arg0 = _input.read_wstring();
                _out = handler.createReply();
                _out.write_wstring(this.getTransactionPropertyString(_arg0));
                break;
            }
            case 7: {
                boolean _arg0 = _input.read_boolean();
                _out = handler.createReply();
                _out.write_wstring(this.getTempFileName(_arg0));
                break;
            }
            case 8: {
                String _arg0 = _input.read_wstring();
                _out = handler.createReply();
                BufDataHelper.write(_out, this.getTransactionPropertyBytes(_arg0));
                break;
            }
            case 9: {
                int _arg0 = _input.read_long();
                _out = handler.createReply();
                this.setTransactionMaxInlineSize(_arg0);
                break;
            }
            case 10: {
                try {
                    String _arg0 = _input.read_wstring();
                    _out = handler.createReply();
                    FileDataBufferHelper.write(_out, this.createFileDataBufferFromUrl(_arg0));
                }
                catch (InvalidSourceException _ex0) {
                    _out = handler.createExceptionReply();
                    InvalidSourceExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 11: {
                String _arg0 = _input.read_wstring();
                int _arg1 = _input.read_long();
                _out = handler.createReply();
                this.setTransactionPropertyLong(_arg0, _arg1);
                break;
            }
            case 12: {
                _out = handler.createReply();
                BufDataHelper.write(_out, this.getInvocationContext());
                break;
            }
            case 13: {
                try {
                    String _arg0 = _input.read_wstring();
                    _out = handler.createReply();
                    this.manageTempFile(_arg0);
                }
                catch (InvalidSourceException _ex0) {
                    _out = handler.createExceptionReply();
                    InvalidSourceExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 14: {
                _out = handler.createReply();
                _out.write_long(this.getDefaultMaxInlineSize());
            }
        }
        return _out;
    }

    public String[] _all_interfaces(POA poa, byte[] obj_id) {
        return this.ids;
    }

    static {
        m_opsHash.put("getTransactionMaxInlineSize", new Integer(0));
        m_opsHash.put("setTransactionPropertyBytes", new Integer(1));
        m_opsHash.put("setTransactionPropertyString", new Integer(2));
        m_opsHash.put("getTransactionPropertyLong", new Integer(3));
        m_opsHash.put("createFileDataBuffer", new Integer(4));
        m_opsHash.put("setInvocationContext", new Integer(5));
        m_opsHash.put("getTransactionPropertyString", new Integer(6));
        m_opsHash.put("getTempFileName", new Integer(7));
        m_opsHash.put("getTransactionPropertyBytes", new Integer(8));
        m_opsHash.put("setTransactionMaxInlineSize", new Integer(9));
        m_opsHash.put("createFileDataBufferFromUrl", new Integer(10));
        m_opsHash.put("setTransactionPropertyLong", new Integer(11));
        m_opsHash.put("getInvocationContext", new Integer(12));
        m_opsHash.put("manageTempFile", new Integer(13));
        m_opsHash.put("getDefaultMaxInlineSize", new Integer(14));
    }
}