Examples of Receiver


Examples of br.jus.tjrn.arq.commons.mail.Receiver

     *
     * @param receiverAddress
     * @param recipientType
     */
    public void addReceiver(String receiverAddress, RecipientType recipientType) {
        this.receivers.add(new Receiver(receiverAddress, recipientType));
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.event.Receiver

     * @param context the dynamic evaluation context
     * @param action defines the processing to be performed at the start and end of a group
     */

    public void processMatchingSubstring(XPathContext context, OnGroup action) throws XPathException {
        Receiver out = context.getReceiver();
        int c = matcher.getParenCount()-1;
        if (c == 0) {
            out.characters(current.toString());
        } else {
            // Create a map from positions in the string to lists of actions.
            // The "actions" in each list are: +N: start group N; -N: end group N.
            IntHashMap<List<Integer>> actions = new IntHashMap<List<Integer>>(c);
            for (int i=1; i<=c; i++) {
                int start = matcher.getParenStart(i) - matcher.getParenStart(0);
                if (start != -1) {
                    int end = matcher.getParenEnd(i) - matcher.getParenStart(0);
                    if (start < end) {
                        // Add the start action after all other actions on the list for the same position
                        List<Integer> s = actions.get(start);
                        if (s == null) {
                            s = new ArrayList<Integer>(4);
                            actions.put(start, s);
                        }
                        s.add(i);
                        // Add the end action before all other actions on the list for the same position
                        List<Integer> e = actions.get(end);
                        if (e == null) {
                            e = new ArrayList<Integer>(4);
                            actions.put(end, e);
                        }
                        e.add(0, -i);
                    } else {
                        // zero-length group (start==end). The problem here is that the information available
                        // from Java isn't sufficient to determine the nesting of groups: match("a", "(a(b?))")
                        // and match("a", "(a)(b?)") will both give the same result for group 2 (start=1, end=1).
                        // So we need to go back to the original regex to determine the group nesting
                        if (nestingTable == null) {
                            computeNestingTable();
                        }
                        int parentGroup = nestingTable.get(i);
                        // insert the start and end events immediately before the end event for the parent group,
                        // if present; otherwise after all existing events for this position
                        List<Integer> s = actions.get(start);
                        if (s == null) {
                            s = new ArrayList<Integer>(4);
                            actions.put(start, s);
                            s.add(i);
                            s.add(-i);
                        } else {
                            int pos = s.size();
                            for (int e=0; e<s.size(); e++) {
                                if (s.get(e) == -parentGroup) {
                                    pos = e;
                                    break;
                                }
                            }
                            s.add(pos, -i);
                            s.add(pos, i);
                        }

                    }
                }

            }
            FastStringBuffer buff = new FastStringBuffer(current.length());
            for (int i=0; i < current.length()+1; i++) {
                List<Integer> events = actions.get(i);
                if (events != null) {
                    if (buff.length() > 0) {
                        out.characters(buff);
                        buff.setLength(0);
                    }
                    for (Integer group : events) {
                        if (group > 0) {
                            action.onGroupStart(context, group);
                        } else {
                            action.onGroupEnd(context, -group);
                        }
                    }
                }
                if (i < current.length()) {
                    buff.appendWideChar(current.charAt(i));
                }
            }
            if (buff.length() > 0) {
                out.characters(buff);
            }
        }

    }
View Full Code Here

Examples of client.net.sf.saxon.ce.event.Receiver

                PipelineConfiguration pipe = controller.makePipelineConfiguration();
                builder.setPipelineConfiguration(pipe);

                c2.changeOutputDestination(builder, false);
                Receiver out = c2.getReceiver();
                out.open();
                out.startDocument();

                content.process(c2);

                out.endDocument();
                out.close();

                root = (DocumentInfo)builder.getCurrentRoot();
            } catch (XPathException e) {
                e.maybeSetLocation(getSourceLocator());
                e.maybeSetContext(context);
View Full Code Here

Examples of client.net.sf.saxon.ce.event.Receiver

          container = targetNode;
        }

        PipelineConfiguration pipe = controller.makePipelineConfiguration();
       
        Receiver out = controller.openResult(pipe, c2, container, action);

        try {
            content.process(c2);
            out.endDocument();
        } catch (XPathException err) {
            err.setXPathContext(context);
            err.maybeSetLocation(getSourceLocator());
            throw err;
        }
View Full Code Here

Examples of com.dianping.cat.home.alert.config.entity.Receiver

  @Override
  public List<String> queryEmailContactors(String id) {
    List<String> mailReceivers = new ArrayList<String>();

    Receiver receiver = m_alertConfigManager.queryReceiverById(getId());

    if (receiver != null && !receiver.isEnable()) {
      return mailReceivers;
    } else {
      mailReceivers.addAll(buildDefaultMailReceivers(receiver));

      String domain = queryDomainByCommand(id);
View Full Code Here

Examples of com.dragome.debugging.messages.Receiver

  }

  private ApplicationExecutor createDebuggingApplicationExecutor()
  {
    final ApplicationExecutor applicationExecutor= RequestExecutorImpl.createRemoteServiceByWebSocket(ApplicationExecutor.class);
    ServiceLocator.getInstance().getClientToServerMessageChannel().setReceiver(new Receiver()
    {
      public void reset()
      {
      }
View Full Code Here

Examples of com.getperka.flatpack.ext.PropertyPath.Receiver

      // Entity-relative
      final HasUuid entity = target.getEntity();
      if (entity != null) {
        final AtomicBoolean found = new AtomicBoolean();
        for (PropertyPath path : group.getPaths()) {
          path.evaluate(entity, new Receiver() {
            @Override
            public boolean receive(Object value) {
              if (!(value instanceof HasUuid)) {
                return true;
              }
View Full Code Here

Examples of com.globant.google.mendoza.malbec.transport.Receiver

   * Registers a receiver that forwards the message to another server.
   *
   * @param receiver The receiver that is notified of the message availability.
   */
  public void registerReceiver(final Receiver receiver) {
    Receiver receiverInterceptor = new Receiver() {

      public String receive(final String uri, final String method, final
          Properties header, final Properties params, final String message) {
        log.trace("Entering receive");
        String response = delegate.send(message);
View Full Code Here

Examples of com.nokia.dempsy.messagetransport.Receiver

   }
  
   @Override
   public Receiver createInbound(DempsyExecutor executor) throws MessageTransportException
   {
      return new Receiver()
      {
         List<Listener> listeners = new CopyOnWriteArrayList<Listener>();
        
         PassthroughDestination destination = new PassthroughDestination(new PassthroughSender(listeners));
        
View Full Code Here

Examples of com.splunk.Receiver

    protected void doWrite(SplunkEvent event) throws IOException {
        Index index = getIndex();
        if (index != null) {
            index.submit(args, event.toString());
        } else {
            Receiver receiver = endpoint.getService().getReceiver();
            receiver.submit(args, event.toString());
        }
    }
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.