Package org.apache.cocoon.components.notification

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


                    if (t != null) extraDescriptions.put(Notifying.EXTRA_CAUSE, t.getMessage());
                    e = null;
                }
            }

            Notifying n = new DefaultNotifyingBuilder().build(this,
                                                              e,
                                                              type,
                                                              title,
                                                              "Cocoon Portlet",
                                                              message,
View Full Code Here


            HashMap extraDescriptions = new HashMap(2);
            extraDescriptions.put("request-uri", request.getRequestURI());
            extraDescriptions.put("path-info", uri);

            Notifying n=new DefaultNotifyingBuilder().build(
             this, e, "fatal","Internal server error","Cocoon servlet",null,null,extraDescriptions);

            res.setContentType(contentType = Notifier.notify(n, res.getOutputStream()));
        }
View Full Code Here

                  extraDescriptions.put("path-info", uri);
                  StringWriter writer = new StringWriter();
                  e.printStackTrace(new PrintWriter(writer));
                  extraDescriptions.put("stack-trace",writer.toString());

                  Notifying n=new DefaultNotifyingBuilder().build(
                   this, e, "fatal","Internal server error","Cocoon servlet",null,null,extraDescriptions);

                  res.setContentType("text/html");
                  res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
                  Notifier.notify(n, res.getOutputStream(), "text/html");
View Full Code Here

                Throwable t = DefaultNotifyingBuilder.getRootCause(e);
                if (t != null) extraDescriptions.put(Notifying.EXTRA_CAUSE, t.getMessage());
                e = null;
            }

            Notifying n = new DefaultNotifyingBuilder().build(this,
                                                              e,
                                                              type,
                                                              title,
                                                              "Cocoon Portlet",
                                                              message,
View Full Code Here

                    if (t != null) extraDescriptions.put(Notifying.EXTRA_CAUSE, t.getMessage());
                    e = null;
                }
            }

            Notifying n = new DefaultNotifyingBuilder().build(this,
                                                              e,
                                                              type,
                                                              title,
                                                              "Cocoon Servlet",
                                                              message,
View Full Code Here

                    if (t != null) extraDescriptions.put(Notifying.EXTRA_CAUSE, t.getMessage());
                    e = null;
                }
            }

            Notifying n = new DefaultNotifyingBuilder().build(this,
                                                              e,
                                                              type,
                                                              title,
                                                              "Cocoon Servlet",
                                                              message,
View Full Code Here

                    if (t != null) extraDescriptions.put(Notifying.EXTRA_CAUSE, t.getMessage());
                    e = null;
                }
            }

            Notifying n = new DefaultNotifyingBuilder().build(this,
                                                              e,
                                                              type,
                                                              title,
                                                              "Cocoon Servlet",
                                                              message,
View Full Code Here

                    if (t != null) extraDescriptions.put(Notifying.EXTRA_CAUSE, t.getMessage());
                    e = null;
                }
            }

            Notifying n = new DefaultNotifyingBuilder().build(this,
                                                              e,
                                                              type,
                                                              title,
                                                              "Cocoon Servlet",
                                                              message,
View Full Code Here

                    e = null;
                }
            }

            Notifying n = new DefaultNotifyingBuilder().build(sender,
                                                              e,
                                                              type,
                                                              title,
                                                              "Cocoon Servlet",
                                                              message,
View Full Code Here

                    if (t != null) extraDescriptions.put(Notifying.EXTRA_CAUSE, t.getMessage());
                    e = null;
                }
            }

            Notifying n = new DefaultNotifyingBuilder().build(this,
                                                              e,
                                                              type,
                                                              title,
                                                              "Cocoon Servlet",
                                                              message,
View Full Code Here

TOP

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

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.