_ControlAgentClientMethodsStub.java 6.32 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.service;

import com.adobe.service.ControlAgentClientMethods;
import com.adobe.service.ControlAgentClientMethodsOperations;
import org.omg.CORBA.Object;
import org.omg.CORBA.UNKNOWN;
import org.omg.CORBA.portable.*;

public class _ControlAgentClientMethodsStub
extends ObjectImpl
implements ControlAgentClientMethods {
    private String[] ids = new String[]{"IDL:com/adobe/service/ControlAgentClientMethods:1.0"};
    public static final Class _opsClass = ControlAgentClientMethodsOperations.class;

    public String[] _ids() {
        return this.ids;
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public void done(boolean success) {
        while (!this._is_local()) {
            java.lang.Object var6_7;
            InputStream _is = null;
            try {
                try {
                    OutputStream _os = this._request("done", true);
                    _os.write_boolean(success);
                    _is = this._invoke(_os);
                    var6_7 = null;
                    this._releaseReply(_is);
                    return;
                }
                catch (RemarshalException _rx) {
                    var6_7 = null;
                    this._releaseReply(_is);
                    continue;
                }
                catch (ApplicationException _ax) {
                    String _id = _ax.getId();
                    throw new RuntimeException("Unexpected exception " + _id);
                }
            }
            catch (Throwable var5_9) {
                var6_7 = null;
                this._releaseReply(_is);
                throw var5_9;
            }
        }
        ServantObject _so = this._servant_preinvoke("done", _opsClass);
        if (_so == null) {
            throw new UNKNOWN("local invocations not supported!");
        }
        ControlAgentClientMethodsOperations _localServant = (ControlAgentClientMethodsOperations)_so.servant;
        try {
            _localServant.done(success);
            java.lang.Object var8_10 = null;
            this._servant_postinvoke(_so);
            return;
        }
        catch (Throwable var7_12) {
            java.lang.Object var8_11 = null;
            this._servant_postinvoke(_so);
            throw var7_12;
        }
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public boolean prepare() {
        while (!this._is_local()) {
            java.lang.Object var6_6;
            InputStream _is = null;
            try {
                boolean bl;
                try {
                    boolean _result;
                    OutputStream _os = this._request("prepare", true);
                    _is = this._invoke(_os);
                    bl = _result = _is.read_boolean();
                    var6_6 = null;
                }
                catch (RemarshalException _rx) {
                    var6_6 = null;
                    this._releaseReply(_is);
                    continue;
                }
                catch (ApplicationException _ax) {
                    String _id = _ax.getId();
                    throw new RuntimeException("Unexpected exception " + _id);
                }
                this._releaseReply(_is);
                return bl;
            }
            catch (Throwable var5_11) {
                var6_6 = null;
                this._releaseReply(_is);
                throw var5_11;
            }
        }
        ServantObject _so = this._servant_preinvoke("prepare", _opsClass);
        if (_so == null) {
            throw new UNKNOWN("local invocations not supported!");
        }
        ControlAgentClientMethodsOperations _localServant = (ControlAgentClientMethodsOperations)_so.servant;
        try {
            boolean _result = _localServant.prepare();
            java.lang.Object var8_12 = null;
            this._servant_postinvoke(_so);
            return _result;
        }
        catch (Throwable var7_14) {
            java.lang.Object var8_13 = null;
            this._servant_postinvoke(_so);
            throw var7_14;
        }
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public Object newRequestHandler() {
        while (!this._is_local()) {
            java.lang.Object var6_6;
            InputStream _is = null;
            try {
                Object object;
                try {
                    Object _result;
                    OutputStream _os = this._request("newRequestHandler", true);
                    _is = this._invoke(_os);
                    object = _result = _is.read_Object();
                    var6_6 = null;
                }
                catch (RemarshalException _rx) {
                    var6_6 = null;
                    this._releaseReply(_is);
                    continue;
                }
                catch (ApplicationException _ax) {
                    String _id = _ax.getId();
                    throw new RuntimeException("Unexpected exception " + _id);
                }
                this._releaseReply(_is);
                return object;
            }
            catch (Throwable var5_11) {
                var6_6 = null;
                this._releaseReply(_is);
                throw var5_11;
            }
        }
        ServantObject _so = this._servant_preinvoke("newRequestHandler", _opsClass);
        if (_so == null) {
            throw new UNKNOWN("local invocations not supported!");
        }
        ControlAgentClientMethodsOperations _localServant = (ControlAgentClientMethodsOperations)_so.servant;
        try {
            Object _result = _localServant.newRequestHandler();
            java.lang.Object var8_12 = null;
            this._servant_postinvoke(_so);
            return _result;
        }
        catch (Throwable var7_14) {
            java.lang.Object var8_13 = null;
            this._servant_postinvoke(_so);
            throw var7_14;
        }
    }
}