Package nexj.core.rpc

Examples of nexj.core.rpc.Response


    * Sets a response with the specified results.
    * @param results The response results.
    */
   public void setResults(Object[] results)
   {
      m_response = new Response();

      for (int i = 0; i < results.length; ++i)
      {
         m_response.addResult(results[i]);
      }
View Full Code Here


      Request request = new Request();

      request.addInvocation(tobj);

      Response response = ((Server)m_server.getInstance(context)).invoke(request);

      return response.getResult(0);
   }
View Full Code Here

            preprocessor.preprocess(request);
         }

         validateRequest(request);

         Response response = m_server.invoke(request);

         new SOAPMarshaller(m_context).serialize(new SOAPResponse(response), writer);
      }
      catch (Throwable t)
      {
View Full Code Here

   /**
    * @see nexj.core.rpc.xml.Invoker#invoke(nexj.core.rpc.Server)
    */
   public Object invoke(Server server)
   {
      Response response = server.invoke(m_request);
      List resultList = new ArrayList(response.getResultCount());

      for (int i = 0; i < response.getResultCount(); ++i)
      {
         resultList.add(response.getResult(i));
      }

      return new XMLCollection(m_metaclass, resultList, m_sResponseType);
   }
View Full Code Here

TOP

Related Classes of nexj.core.rpc.Response

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.