⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dli2feintfpoa.java

📁 数字图书馆的互操作接口
💻 JAVA
字号:
package dli2fe.CORBA;

/**
 * <ul>
 * <li> <b>IDL Source</b>    "DLI2FECore.idl"
 * <li> <b>IDL Name</b>      ::dli2fe::CORBA::DLI2FEIntf
 * <li> <b>Repository Id</b> IDL:dli2fe/CORBA/DLI2FEIntf:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * interface DLI2FEIntf {
  ...
};
 * </pre>
 */
public abstract class DLI2FEIntfPOA extends org.omg.PortableServer.Servant implements 
  org.omg.CORBA.portable.InvokeHandler, dli2fe.CORBA.DLI2FEIntfOperations {

  public dli2fe.CORBA.DLI2FEIntf _this () {
   return dli2fe.CORBA.DLI2FEIntfHelper.narrow(super._this_object());
  }

  public dli2fe.CORBA.DLI2FEIntf _this (org.omg.CORBA.ORB orb) {
    return dli2fe.CORBA.DLI2FEIntfHelper.narrow(super._this_object(orb));
  }



  public java.lang.String[] _all_interfaces (final org.omg.PortableServer.POA poa, final byte[] objectId) {
    return __ids;
  }


  private static java.lang.String[] __ids = {
    "IDL:dli2fe/CORBA/DLI2FEIntf:1.0"
  };

  private static java.util.Dictionary _methods = new java.util.Hashtable();

  static {
    _methods.put("getSiteMetadata", new com.inprise.vbroker.CORBA.portable.MethodPointer(0, 0));
    _methods.put("getAttributeInfo", new com.inprise.vbroker.CORBA.portable.MethodPointer(0, 1));
    _methods.put("search", new com.inprise.vbroker.CORBA.portable.MethodPointer(0, 2));
    _methods.put("getSessionInfo", new com.inprise.vbroker.CORBA.portable.MethodPointer(0, 3));
    _methods.put("getDocs", new com.inprise.vbroker.CORBA.portable.MethodPointer(0, 4));
    _methods.put("extendStateTimeout", new com.inprise.vbroker.CORBA.portable.MethodPointer(0, 5));
    _methods.put("cancelRequest", new com.inprise.vbroker.CORBA.portable.MethodPointer(0, 6));
  }


  public org.omg.CORBA.portable.OutputStream _invoke (java.lang.String opName,
                                                      org.omg.CORBA.portable.InputStream _input,
                                                      org.omg.CORBA.portable.ResponseHandler handler) {
    com.inprise.vbroker.CORBA.portable.MethodPointer method =
      (com.inprise.vbroker.CORBA.portable.MethodPointer) _methods.get(opName);
    if (method == null) {
      throw new org.omg.CORBA.BAD_OPERATION();
    }
    switch (method.interface_id) {
      case 0: {
        return dli2fe.CORBA.DLI2FEIntfPOA._invoke(this, method.method_id, _input, handler);
      }
    }
    throw new org.omg.CORBA.BAD_OPERATION();
  }


  public static org.omg.CORBA.portable.OutputStream _invoke (dli2fe.CORBA.DLI2FEIntfOperations _self,
                                                             int _method_id,
                                                             org.omg.CORBA.portable.InputStream _input,
                                                             org.omg.CORBA.portable.ResponseHandler _handler) {
    org.omg.CORBA.portable.OutputStream _output = null;
    {
      switch (_method_id) {
      case 0: {
      try {
        org.omg.CORBA.StringHolder theSiteMetadata = new org.omg.CORBA.StringHolder();
        _self.getSiteMetadata(theSiteMetadata);
        _output = _handler.createReply();
        _output.write_wstring((java.lang.String)theSiteMetadata.value);
      }
      catch (dli2fe.CORBA.DLI2FEException _exception) {
        _output = _handler.createExceptionReply();
        dli2fe.CORBA.DLI2FEExceptionHelper.write(_output, _exception);
      }
        return _output;
      }
      case 1: {
      try {
        java.lang.String ctgrName;
        ctgrName = _input.read_string();
        org.omg.CORBA.StringHolder attributeInfo = new org.omg.CORBA.StringHolder();
        _self.getAttributeInfo(ctgrName, attributeInfo);
        _output = _handler.createReply();
        _output.write_wstring((java.lang.String)attributeInfo.value);
      }
      catch (dli2fe.CORBA.DLI2FEException _exception) {
        _output = _handler.createExceptionReply();
        dli2fe.CORBA.DLI2FEExceptionHelper.write(_output, _exception);
      }
        return _output;
      }
      case 2: {
      try {
        int clientSID;
        clientSID = _input.read_long();
        java.lang.String subcols;
        subcols = _input.read_wstring();
        java.lang.String query;
        query = _input.read_wstring();
        int numDocs;
        numDocs = _input.read_long();
        java.lang.String docPropList;
        docPropList = _input.read_wstring();
        java.lang.String queryOptions;
        queryOptions = _input.read_wstring();
        org.omg.CORBA.IntHolder expectedTotal = new org.omg.CORBA.IntHolder();
        org.omg.CORBA.IntHolder serverSID = new org.omg.CORBA.IntHolder();
        org.omg.CORBA.StringHolder result = new org.omg.CORBA.StringHolder();
        _self.search(clientSID, subcols, query, numDocs, docPropList, queryOptions, 
                     expectedTotal, serverSID, result);
        _output = _handler.createReply();
        _output.write_long((int)expectedTotal.value);
        _output.write_long((int)serverSID.value);
        _output.write_wstring((java.lang.String)result.value);
      }
      catch (dli2fe.CORBA.DLI2FEException _exception) {
        _output = _handler.createExceptionReply();
        dli2fe.CORBA.DLI2FEExceptionHelper.write(_output, _exception);
      }
        return _output;
      }
      case 3: {
      try {
        int serverSID;
        serverSID = _input.read_long();
        org.omg.CORBA.IntHolder expectedTotal = new org.omg.CORBA.IntHolder();
        org.omg.CORBA.IntHolder stateTimeout = new org.omg.CORBA.IntHolder();
        _self.getSessionInfo(serverSID, expectedTotal, stateTimeout);
        _output = _handler.createReply();
        _output.write_long((int)expectedTotal.value);
        _output.write_long((int)stateTimeout.value);
      }
      catch (dli2fe.CORBA.DLI2FEException _exception) {
        _output = _handler.createExceptionReply();
        dli2fe.CORBA.DLI2FEExceptionHelper.write(_output, _exception);
      }
        return _output;
      }
      case 4: {
      try {
        int serverSID;
        serverSID = _input.read_long();
        int reqID;
        reqID = _input.read_long();
        java.lang.String docPropList;
        docPropList = _input.read_wstring();
        java.lang.String docsToGet;
        docsToGet = _input.read_string();
        org.omg.CORBA.StringHolder res = new org.omg.CORBA.StringHolder();
        _self.getDocs(serverSID, reqID, docPropList, docsToGet, res);
        _output = _handler.createReply();
        _output.write_wstring((java.lang.String)res.value);
      }
      catch (dli2fe.CORBA.DLI2FEException _exception) {
        _output = _handler.createExceptionReply();
        dli2fe.CORBA.DLI2FEExceptionHelper.write(_output, _exception);
      }
        return _output;
      }
      case 5: {
      try {
        int serverSID;
        serverSID = _input.read_long();
        int secondsToExtend;
        secondsToExtend = _input.read_long();
        _self.extendStateTimeout(serverSID, secondsToExtend);
        _output = _handler.createReply();
      }
      catch (dli2fe.CORBA.DLI2FEException _exception) {
        _output = _handler.createExceptionReply();
        dli2fe.CORBA.DLI2FEExceptionHelper.write(_output, _exception);
      }
        return _output;
      }
      case 6: {
      try {
        int serverSID;
        serverSID = _input.read_long();
        int reqID;
        reqID = _input.read_long();
        _self.cancelRequest(serverSID, reqID);
        _output = _handler.createReply();
      }
      catch (dli2fe.CORBA.DLI2FEException _exception) {
        _output = _handler.createExceptionReply();
        dli2fe.CORBA.DLI2FEExceptionHelper.write(_output, _exception);
      }
        return _output;
      }
      }
      throw new org.omg.CORBA.BAD_OPERATION();
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -