Examples of Destination


Examples of net.rim.device.api.io.messaging.Destination

    /**
     * Pauses destination from receiving incoming push messages
     */
    public void pauseReceiver(final String uriStr) {
        try {
            final Destination dest =
                    DestinationFactory.getReceiverDestination(URI
                            .create(uriStr));
            if (dest != null) {
                dest.pause();
            }
        } catch (final Exception e) {
            alertDialog(e.toString());
        }
    }
View Full Code Here

Examples of net.sf.atjc.Destination

    }

    if (StringUtils.isBlank(matcher.group(4))) {
      throw new IllegalArgumentException("Missing server if");
    }
    return new Destination(matcher.group(3).trim(), matcher.group(4).trim(), destType);
  }
View Full Code Here

Examples of net.sf.jpluck.conversion.Destination

    private void initValues() {
        ClientConfiguration conf = ClientConfiguration.getDefault();
        compressionCombo.setSelectedIndex(conf.getCompression());
        multiImageCheck.setSelected(conf.isUseMultiImage());

        Destination dest = conf.getDestination();
        if (dest != null) {
            hotsyncRadio.setSelected(dest.isHotsync());
            directoryRadio.setSelected(!dest.isHotsync());
            dest = conf.getHotSyncDestination();
            if (dest != null) {
                userCombo.setSelectedItem(dest.getUser());
                memoryCardCheck.setSelected(dest.isMemoryCard());
            }
            dest = conf.getDirectoryDestination();
            if (dest != null) {
                directoryText.setText(dest.getDirectory().getAbsolutePath());
            }
        }

        String backupDirectory = conf.getBackupDirectory();
        if (backupDirectory != null) {
View Full Code Here

Examples of net.sourceforge.temply.base.project.Destination

            Project project = new Project(projectFileDir);
            Template template = (Template) ui.combo("Template", project.getTemplates());
            if (template == null) {
                return;
            }
            Destination destination = (Destination) ui.combo("Destination", template.getDestinations());
            if (destination == null) {
                return;
            }
            String script = (String) ui.combo("Script", project.getScripts());
            if (script == null) {
View Full Code Here

Examples of org.apache.activemq.broker.region.Destination

                if (!msg.isPersistent()) {
                    nonPersistent.addMessageLast(node);
                }
            }
            if (msg.isPersistent()) {
                Destination dest = msg.getRegionDestination();
                TopicStorePrefetch tsp = topics.get(dest);
                if (tsp != null) {
                    tsp.addMessageLast(node);
                }
            }
View Full Code Here

Examples of org.apache.cxf.transport.Destination

     * @param messageContext the current message context
     * @return the id embedded in the current endpoint reference or null if not found
     */
    public static String getEndpointReferenceId(Map messageContext) {
        String id = null;
        Destination destination = (Destination) messageContext.get(Destination.class.getName());
        if (destination instanceof MultiplexDestination) {
            id = ((MultiplexDestination) destination).getId(messageContext);
        }
        return id;
    }
View Full Code Here

Examples of org.apache.fop.fo.extensions.destination.Destination

        finishPrevPageSequence(null);
        // process fox:destination elements
        List destinationList = rootFObj.getDestinationList();
        if (destinationList != null) {
            while (destinationList.size() > 0) {
                Destination destination = (Destination) destinationList.remove(0);
                DestinationData destinationData = new DestinationData(destination);
                addOffDocumentItem(destinationData);
            }
        }
        // process fo:bookmark-tree
View Full Code Here

Examples of org.apache.servicemix.client.Destination

    }

    public void testInOnlyWithAsyncConsumer() throws Exception {
        TransactionManager tm = (TransactionManager) getBean("transactionManager");
        tm.begin();
        Destination dest = client.createDestination("endpoint:http://test/MyProviderService/async");
        InOnly me = dest.createInOnlyExchange();
        me.getInMessage().setContent(new StringSource("<echo xmlns='http://test'><echoin0>world</echoin0></echo>"));
        client.send(me);
        tm.commit();
        me = (InOnly) client.receive();
        assertEquals(ExchangeStatus.DONE, me.getStatus());
View Full Code Here

Examples of org.apache.servicemix.jbi.api.Destination

    protected ServiceMixClient client;
    protected MessageList messageList = new MessageList();

    public void testInOnlyMessage() throws Exception {
        // START SNIPPET: message
        Destination destination = client.createDestination("service:http://servicemix.org/cheese/receiver");
        Message message = destination.createInOnlyMessage();
        message.setProperty("name", "James");
        message.setBody("<hello>world</hello>");
       
        client.send(message);
        // END SNIPPET: message
View Full Code Here

Examples of org.dozer.spring.vo.Destination

    DozerBeanMapper mapper = (DozerBeanMapper) context.getBean("factoryWithMappingBuilder", DozerBeanMapper.class);

    Source source = new Source();
    source.setName("John");
    source.setId(2L);
    Destination destination = mapper.map(source, Destination.class);
    assertEquals("John", destination.getValue());
    assertEquals(2L, destination.getId());
  }
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.