Package nexj.core.integration.io

Examples of nexj.core.integration.io.StreamInput


    */
   private static class ContentStringResponseHandler implements ResponseHandler
   {
      public Object handleResponse(HTTPClient client, InputStream istream) throws IOException
      {
         return new StreamInput(istream).getString();
      }
View Full Code Here


      maker.addDirectory("b/");
      maker.addFile("b/c", "Contents of file c in directory b.");

      // Parse it
      TransferObject root = m_parser.parse(
         new StreamInput(maker.getInputStream()), m_message);
      List filesList = (List)root.getValue("files");

      assertEquals("Zip_AllMapped", root.getClassName());
      assertNotNull(filesList);
      assertEquals(3, filesList.size());
View Full Code Here

      table.addMessage(m_message);
      m_parser.initializeMessageTable(table);

      TransferObject root = m_parser.parse(
         new StreamInput(maker.getInputStream()), table);
      List filesList = (List)root.getValue("files");

      assertEquals("Zip_AllMapped", root.getClassName());
      assertNotNull(filesList);
      assertEquals(3, filesList.size());
View Full Code Here

         maker.addFile("b/c", "Contents of file c in directory b.");


         MessageTable table = new MessageTable();

         m_parser.parse(new StreamInput(maker.getInputStream()), table);
         fail();
      }
      catch (IntegrationException ex)
      {
      }
View Full Code Here

               body = new ReaderInput(ireader);
            }
            else
            {
               body = new StreamInput(bufStream);
            }

            response.setValue(TCPSender.BODY, body);
         }
      }
View Full Code Here

                        body = new ReaderInput(ireader);
                     }
                     else
                     {
                        body = new StreamInput(bufStream);
                     }

                     // Is this channel bound to a service
                     // AND a message queue?
                     if (m_channel.getQueue() != null
View Full Code Here

                 
                  tobj.setValue(Sender.BODY, new ReaderInput(ireader));
               }
               else
               {
                  tobj.setValue(Sender.BODY, new StreamInput(bufStream));
               }
              
               receive(tobj, m_channel, context);
            }
         }
View Full Code Here

                        if (m_channel.getDataType() == Primitive.BINARY ||
                           m_channel.getDataType() == null && MIMEUtil.isBinaryMIMEType(
                              ((header = headerMap.find(HTTP.HEADER_CONTENT_TYPE)) == null) ? null : header.getValue()))
                        {
                           tobj.setValue(BODY, new StreamInput(istream, sEncoding).getBinary());
                        }
                        else
                        {
                           istream = UTF8BOMIgnoreInputStream.wrap(istream, sEncoding);
                           tobj.setValue(BODY, new ReaderInput(new InputStreamReader(istream, sEncoding)).getString());
View Full Code Here

         tobj.setValue(HTTPAdapter.BODY,
            (http.getDataType() == Primitive.BINARY ||
               http.getDataType() == null &&
               MIMEUtil.isBinaryMIMEType(m_request.getHeader(HTTP.HEADER_CONTENT_TYPE))) ?
               new StreamInput(getInputStream(), sEncoding) :
                  (Input)new ReaderInput(getReader()));

         try
         {
            UnitOfWork uow = m_context.initUnitOfWork();
View Full Code Here

TOP

Related Classes of nexj.core.integration.io.StreamInput

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.