Examples of Notifier


Examples of org.apache.juddi.subscription.notify.Notifier

     
      if (bindingTemplate!=null) {
        if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType()) ||
            AccessPointType.WSDL_DEPLOYMENT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) {
          try {
            Notifier notifier = new NotifierFactory().getNotifier(bindingTemplate);
            log.info("Sending out notification to " + bindingTemplate.getAccessPointUrl());
            notifier.notifySubscriptionListener(body);
            //there maybe more chunks we have to send
            String chunkToken=body.getSubscriptionResultsList().getChunkToken();
            while(chunkToken!=null) {
              UddiEntityPublisher publisher = new UddiEntityPublisher();
              publisher.setAuthorizedName(modelSubscription.getAuthorizedName());
              log.debug("Sending out next chunk: " + chunkToken + " to " + bindingTemplate.getAccessPointUrl());
              getSubscriptionResults.setChunkToken(chunkToken);
              resultList = subscriptionImpl.getSubscriptionResults(getSubscriptionResults, publisher);
              body.setSubscriptionResultsList(resultList);
              notifier.notifySubscriptionListener(body);
              chunkToken=body.getSubscriptionResultsList().getChunkToken();
            }
            //successful notification so remove from the badNotificationList
            if (badNotifications.containsKey(resultList.getSubscription().getSubscriptionKey()))
              badNotifications.remove(resultList.getSubscription().getSubscriptionKey());
View Full Code Here

Examples of org.apache.juddi.subscription.notify.Notifier

     
      if (bindingTemplate!=null) {
        if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType()) ||
            AccessPointType.WSDL_DEPLOYMENT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) {
          try {
            Notifier notifier = new NotifierFactory().getNotifier(bindingTemplate);
            if (notifier!=null) {
              log.info("Sending out notification to " + bindingTemplate.getAccessPointUrl());
              notifier.notifySubscriptionListener(body);
              //there maybe more chunks we have to send
              String chunkToken=body.getSubscriptionResultsList().getChunkToken();
              while(chunkToken!=null) {
                UddiEntityPublisher publisher = new UddiEntityPublisher();
                publisher.setAuthorizedName(modelSubscription.getAuthorizedName());
                log.debug("Sending out next chunk: " + chunkToken + " to " + bindingTemplate.getAccessPointUrl());
                getSubscriptionResults.setChunkToken(chunkToken);
                resultList = subscriptionImpl.getSubscriptionResults(getSubscriptionResults, publisher);
                body.setSubscriptionResultsList(resultList);
                notifier.notifySubscriptionListener(body);
                chunkToken=body.getSubscriptionResultsList().getChunkToken();
              }
              //successful notification so remove from the badNotificationList
              if (badNotifications.containsKey(resultList.getSubscription().getSubscriptionKey()))
                badNotifications.remove(resultList.getSubscription().getSubscriptionKey());
View Full Code Here

Examples of org.apache.maven.continuum.notification.Notifier

        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------

        Notifier notifier = (Notifier) lookup( Notifier.class.getName(), "mail" );

        ( (MailContinuumNotifier) notifier ).setBuildHost( "foo.bar.com" );

        notifier.sendMessage( ContinuumNotificationDispatcher.MESSAGE_ID_BUILD_COMPLETE, context );

        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------
View Full Code Here

Examples of org.apache.maven.continuum.notification.Notifier

        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------

        Notifier notifier = (Notifier) lookup( Notifier.class.getName(), "mail" );

        ( (MailContinuumNotifier) notifier ).setBuildHost( "foo.bar.com" );

        notifier.sendMessage( ContinuumNotificationDispatcher.MESSAGE_ID_BUILD_COMPLETE, context );

        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------
View Full Code Here

Examples of org.apache.maven.continuum.notification.Notifier

        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------

        Notifier notifier = (Notifier) lookup( Notifier.class.getName(), "mail" );

        ( (MailContinuumNotifier) notifier ).setBuildHost( "foo.bar.com" );

        notifier.sendMessage( ContinuumNotificationDispatcher.MESSAGE_ID_BUILD_COMPLETE, context );

        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------
View Full Code Here

Examples of org.apache.maven.model.Notifier

        // the plugin module ends up depending on itself
        dependencies.remove(asDependency());

        CiManagement ciMgmt = project.getCiManagement();
        if ((ciMgmt != null) && (ciMgmt.getSystem()==null || ciMgmt.getSystem().equals("hudson"))) {
            Notifier mailNotifier = null;
            for (Notifier n : (List<Notifier>)ciMgmt.getNotifiers()) {
                if (n.getType().equals("mail")) {
                    mailNotifier = n;
                    break;
                }
View Full Code Here

Examples of org.apache.maven.model.Notifier

        if ( src == null )
        {
            return null;
        }
       
        Notifier result = new Notifier();
        result.setAddress( src.getAddress() );
        result.setConfiguration( cloneProperties( src.getConfiguration() ) );
        result.setSendOnError( src.isSendOnError() );
        result.setSendOnFailure( result.isSendOnFailure() );
        result.setSendOnSuccess( result.isSendOnSuccess() );
        result.setSendOnWarning( result.isSendOnWarning() );
       
        return result;
    }
View Full Code Here

Examples of org.apache.maven.model.Notifier

            }

            Counter innerCount = new Counter( counter.getDepth() + 1 );
            while ( it.hasNext() )
            {
                Notifier value = (Notifier) it.next();
                Element el;
                if ( ( elIt != null ) && elIt.hasNext() )
                {
                    el = (Element) elIt.next();
                    if ( !elIt.hasNext() )
View Full Code Here

Examples of org.apache.maven.model.Notifier

        {
            String nagEmailAddress = v3Build.getNagEmailAddress();

            if ( StringUtils.isNotEmpty( nagEmailAddress ) )
            {
                Notifier notifier = new Notifier();

                notifier.setType( "mail" );
                notifier.addConfiguration( "address", nagEmailAddress );

                ciMgmt = new CiManagement();
                ciMgmt.addNotifier( notifier );
            }
        }
View Full Code Here

Examples of org.apache.maven.model.Notifier

     * @return Notifier
     */
    private Notifier parseNotifier( String tagName, XmlPullParser parser, boolean strict )
        throws IOException, XmlPullParserException
    {
        Notifier notifier = new Notifier();
        java.util.Set parsed = new java.util.HashSet();
        while ( parser.nextTag() == XmlPullParser.START_TAG )
        {
            if ( checkFieldWithDuplicate( parser, "type", null, parsed ) )
            {
                notifier.setType( getTrimmedValue( parser.nextText() ) );
            }
            else if ( checkFieldWithDuplicate( parser, "sendOnError", null, parsed ) )
            {
                notifier.setSendOnError( getBooleanValue( getTrimmedValue( parser.nextText() ), "sendOnError", parser, "true" ) );
            }
            else if ( checkFieldWithDuplicate( parser, "sendOnFailure", null, parsed ) )
            {
                notifier.setSendOnFailure( getBooleanValue( getTrimmedValue( parser.nextText() ), "sendOnFailure", parser, "true" ) );
            }
            else if ( checkFieldWithDuplicate( parser, "sendOnSuccess", null, parsed ) )
            {
                notifier.setSendOnSuccess( getBooleanValue( getTrimmedValue( parser.nextText() ), "sendOnSuccess", parser, "true" ) );
            }
            else if ( checkFieldWithDuplicate( parser, "sendOnWarning", null, parsed ) )
            {
                notifier.setSendOnWarning( getBooleanValue( getTrimmedValue( parser.nextText() ), "sendOnWarning", parser, "true" ) );
            }
            else if ( checkFieldWithDuplicate( parser, "address", null, parsed ) )
            {
                notifier.setAddress( getTrimmedValue( parser.nextText() ) );
            }
            else if ( checkFieldWithDuplicate( parser, "configuration", null, parsed ) )
            {
                while ( parser.nextTag() == XmlPullParser.START_TAG )
                {
                    String key = parser.getName();
                    String value = parser.nextText().trim();
                    notifier.addConfiguration( key, value );
                }
            }
            else
            {
                if ( strict )
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.