Examples of send()


Examples of net.sf.saxon.dom.DOMSender.send()

            DOMSender driver = new DOMSender();
            driver.setStartNode(startNode);
            driver.setReceiver(receiver);
            driver.setNamePool(config.getNamePool());
            driver.setSystemId(source.getSystemId());
            driver.send();
        }
    }

    private void sendSAXSource(SAXSource source, Receiver receiver, int validation)
    throws XPathException {
View Full Code Here

Examples of net.sf.saxon.event.DocumentSender.send()

                                              outputProperties,
                                              null);
            NamespaceReducer reducer = new NamespaceReducer();
            reducer.setUnderlyingReceiver(receiver);
            reducer.setConfiguration(config);
            sender.send(reducer);
        } else {
            throw new DynamicError("Node to be serialized must be a Document or Element node");
        }
    }
View Full Code Here

Examples of net.sf.saxon.event.Sender.send()

        if (source instanceof DOMSource) {
            Node startNode = ((DOMSource)source).getNode();
            if (startNode instanceof NodeOverNodeInfo) {
                NodeInfo base = ((NodeOverNodeInfo)startNode).getUnderlyingNodeInfo();
                Sender driver = new Sender(pipe);
                driver.send(base, receiver, null);
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of net.tomp2p.dht.PeerDHT.send()

  public static void main(String[] args) throws IOException, InterruptedException {
    if(args.length == 0) {
      final PeerDHT peer = new PeerBuilderDHT(new PeerBuilder(Number160.createHash("master")).ports(1234).start()).start();

          while(true){
              peer.send(Number160.createHash("client")).object("ping").start();
              Thread.sleep(1000);
          }
    } else {
      final Peer peer = new PeerBuilder(Number160.createHash("client")).ports(1235).start();
            List<PeerAddress> bootstrap = new ArrayList<PeerAddress>();
View Full Code Here

Examples of net.windwards.dnsfrontend.client.Client.send()

        update.name = "foo";
        update.moniker = "bar";

        Assert.assertEquals(0, server.received.size());

        client.send(update);

        Assert.assertEquals(0, server.received.size());

        Thread.sleep(200);
View Full Code Here

Examples of netP5.UdpClient.send()

        while (iterator.hasNext()) {
            message.add(((Double) iterator.next()).floatValue());
        }

        UdpClient c = new UdpClient(ipAddress, (int) port);
        c.send(message.getBytes());
    }

    public static List<Double> audioAnalysis(String deviceName, String channel, long averages, NodeContext context) {
        AudioSource source = (AudioSource) context.getData().get(deviceName + ".source");
        if (source == null) return ImmutableList.of();
View Full Code Here

Examples of nexj.core.integration.Sender.send()

               if (s_logger.isDebugEnabled())
               {
                  s_logger.debug("Sending " + list.size() + " message(s) on channel \"" + channel.getName() + "\"");
               }

               sender.send(list);
            }
         }

         if (bEndTx || m_transaction == null)
         {
View Full Code Here

Examples of nginx.clojure.NginxHttpServerChannel.send()

                    return;
                  }
                  boolean end = buffer.hasRemaining() || status == 0;
                  buffer.flip();
                  downstream.setContext("sent");//have sent something
                  downstream.send(buffer, true, end);
                  buffer.clear();
                  if (!end) {
                    upstream.read(buffer, buffer, this);
                  }else {
                    upstream.close();
View Full Code Here

Examples of ninja.postoffice.Postoffice.send()

        firstMail.setBodyText("simple body text");

        // make sure that mocked mailer did not send email previously
        assertEquals(null, ((PostofficeMockImpl) postoffice).getLastSentMail());

        postoffice.send(firstMail);

        // and test that mail has been sent.
        assertEquals("first mail", ((PostofficeMockImpl) postoffice).getLastSentMail().getSubject());
        assertTrue(((PostofficeMockImpl) postoffice).getLastSentMail().getTos()
                .contains("to@localhost"));
View Full Code Here

Examples of no.kommune.bergen.soa.common.remote.RemoteFileTransferClient.send()

  public void send() throws FileNotFoundException {
    String data = "123qweæøåÆØÅ!#";
    String filename = "1000_110000_000000000555.txt", username = "mule", password = "mule1234";
    RemoteFileTransferClient client = new HttpPostClient( "http://localhost:8080/mockservices/httppost", username, password );
    ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream( data.getBytes() );
    client.send( byteArrayInputStream, filename );
  }

  @Test
  public void testFilenameDotZip() {
    String result = HttpPostClient.filenameDotZip( "oh.my.pdf" );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.