Package org.apache.cocoon.components.notification

Examples of org.apache.cocoon.components.notification.NotifyingBuilder


              // Try to reset the response to avoid mixing already produced output
              // and error page.
              env.tryResetResponse();
 
              // Create a Notifying
              NotifyingBuilder notifyingBuilder= (NotifyingBuilder)this.manager.lookup(NotifyingBuilder.ROLE);
              Notifying currentNotifying = null;
              try {
                  currentNotifying = notifyingBuilder.build(this, ex);
              } finally {
                  this.manager.release(notifyingBuilder);
              }
 
              // Add it to the object model
View Full Code Here


            errorContext = new InvokeContext();
            errorContext.setLogger(getLogger());
            errorContext.compose(this.manager);

            // Create a Notifying
            NotifyingBuilder notifyingBuilder= (NotifyingBuilder)this.manager.lookup(NotifyingBuilder.ROLE);
            Notifying currentNotifying = notifyingBuilder.build(this, ex);
            this.manager.release(notifyingBuilder);

            // Add it to the object model
            env.getObjectModel().put(Constants.NOTIFYING_OBJECT, currentNotifying );
View Full Code Here

            if (!context.isBuildingPipelineOnly()) {
                env.tryResetResponse();
            }

            // Create a Notifying
            NotifyingBuilder notifyingBuilder = (NotifyingBuilder) this.manager.lookup(NotifyingBuilder.ROLE);
            Notifying currentNotifying = null;
            try {
                currentNotifying = notifyingBuilder.build(this, ex);
            } finally {
                this.manager.release(notifyingBuilder);
            }

            // Add it to the object model
View Full Code Here

            // TODO - if an error occured for this coplet, remember this
            //         and use directly the error-uri from now on

            if ( uri.startsWith("cocoon:") && error != null) {
                // Create a Notifying
                NotifyingBuilder notifyingBuilder = null;
                Notifying currentNotifying = null;
                try {
                    notifyingBuilder= (NotifyingBuilder)this.manager.lookup(NotifyingBuilder.ROLE);
                    currentNotifying = notifyingBuilder.build(this, error);
                } catch (Exception ignore) {
                    // ignore
                } finally {
                    this.manager.release(notifyingBuilder);
                }
View Full Code Here

              // Try to reset the response to avoid mixing already produced output
              // and error page.
              env.tryResetResponse();
 
              // Create a Notifying
              NotifyingBuilder notifyingBuilder= (NotifyingBuilder)this.manager.lookup(NotifyingBuilder.ROLE);
              Notifying currentNotifying = null;
              try {
                  currentNotifying = notifyingBuilder.build(this, ex);
              } finally {
                  this.manager.release(notifyingBuilder);
              }
 
              // Add it to the object model
View Full Code Here

            // TODO - if an error occured for this coplet, remember this
            //         and use directly the error-uri from now on

            if ( uri.startsWith("cocoon:") && error != null) {
                // Create a Notifying
                NotifyingBuilder notifyingBuilder = null;
                Notifying currentNotifying = null;
                try {
                    notifyingBuilder= (NotifyingBuilder)this.manager.lookup(NotifyingBuilder.ROLE);
                    currentNotifying = notifyingBuilder.build(this, error);
                } catch (Exception ignore) {
                } finally {
                    this.manager.release(notifyingBuilder);
                }
View Full Code Here

              // Try to reset the response to avoid mixing already produced output
              // and error page.
              env.tryResetResponse();
 
              // Create a Notifying
              NotifyingBuilder notifyingBuilder= (NotifyingBuilder)this.manager.lookup(NotifyingBuilder.ROLE);
              Notifying currentNotifying = null;
              try {
                  currentNotifying = notifyingBuilder.build(this, ex);
              } finally {
                  this.manager.release(notifyingBuilder);
              }
 
              // Add it to the object model
View Full Code Here

            errorContext = new InvokeContext();
            errorContext.setLogger(getLogger());
            errorContext.compose(this.manager);

            // Create a Notifying
            NotifyingBuilder notifyingBuilder= (NotifyingBuilder)this.manager.lookup(NotifyingBuilder.ROLE);
            Notifying currentNotifying = notifyingBuilder.build(this, ex);
            this.manager.release(notifyingBuilder);

            // Add it to the object model
            env.getObjectModel().put(Constants.NOTIFYING_OBJECT, currentNotifying );
View Full Code Here

            if (!context.isBuildingPipelineOnly()) {
                env.tryResetResponse();
            }

            // Create a Notifying (deprecated)
            NotifyingBuilder notifyingBuilder = (NotifyingBuilder) this.manager.lookup(NotifyingBuilder.ROLE);
            Notifying currentNotifying = null;
            try {
                currentNotifying = notifyingBuilder.build(this, ex);
            } finally {
                this.manager.release(notifyingBuilder);
            }
            objectModel.put(Constants.NOTIFYING_OBJECT, currentNotifying);
View Full Code Here

            // Build a new context
            errorContext = new InvokeContext();
            errorContext.compose(this.manager);
           
            // Create a Notifying
            NotifyingBuilder notifyingBuilder= (NotifyingBuilder)this.manager.lookup(NotifyingBuilder.ROLE);
            Notifying currentNotifying = notifyingBuilder.build(this, ex);
            this.manager.release(notifyingBuilder);
           
            // Add it to the object model
            env.getObjectModel().put(Constants.NOTIFYING_OBJECT, currentNotifying );
View Full Code Here

TOP

Related Classes of org.apache.cocoon.components.notification.NotifyingBuilder

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.