vgritsenko 2003/02/02 15:21:24
Modified: src/java/org/apache/cocoon/components/notification
Notifying.java
src/java/org/apache/cocoon/components/pipeline
AbstractProcessingPipeline.java
Log:
Align code. Add EXTRA_X constants for extra descriptions.
Revision Changes Path
1.8 +56 -46
xml-cocoon2/src/java/org/apache/cocoon/components/notification/Notifying.java
Index: Notifying.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/notification/Notifying.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Notifying.java 31 Jan 2003 22:51:30 -0000 1.7
+++ Notifying.java 2 Feb 2003 23:21:24 -0000 1.8
@@ -61,49 +61,59 @@
public interface Notifying {
- /**
- * Proposed types of notifications
- */
- String UNKNOWN_NOTIFICATION = "unknown";
- String DEBUG_NOTIFICATION = "debug";
- String INFO_NOTIFICATION = "info" ;
- String WARN_NOTIFICATION = "warn" ;
- String ERROR_NOTIFICATION = "error";
- String FATAL_NOTIFICATION = "fatal";
-
- /**
- * Gets the Type of the Notifying object
- */
- String getType();
-
- /**
- * Gets the Title of the Notifying object
- */
- String getTitle();
-
- /**
- * Gets the Source of the Notifying object
- */
- String getSource();
-
- /**
- * Gets the Sender of the Notifying object
- */
- String getSender();
-
- /**
- * Gets the Message of the Notifying object
- */
- String getMessage();
-
- /**
- * Gets the Description of the Notifying object
- */
- String getDescription();
-
- /**
- * Gets the ExtraDescriptions of the Notifying object
- */
- Map getExtraDescriptions();
+ /*
+ * Proposed types of notifications
+ */
+ String UNKNOWN_NOTIFICATION = "unknown";
+ String DEBUG_NOTIFICATION = "debug";
+ String INFO_NOTIFICATION = "info" ;
+ String WARN_NOTIFICATION = "warn" ;
+ String ERROR_NOTIFICATION = "error";
+ String FATAL_NOTIFICATION = "fatal";
+
+ /*
+ * Proposed extra descriptions
+ */
+ String EXTRA_LOCATION = "location";
+ String EXTRA_LINE = "line";
+ String EXTRA_COLUMN = "column" ;
+ String EXTRA_REQUESTURI = "request-uri" ;
+ String EXTRA_CAUSE = "cause";
+ String EXTRA_STACKTRACE = "stacktrace";
+ String EXTRA_FULLTRACE = "full exception chain stacktrace";
+
+ /**
+ * Gets the Type of the Notifying object
+ */
+ String getType();
+
+ /**
+ * Gets the Title of the Notifying object
+ */
+ String getTitle();
+
+ /**
+ * Gets the Source of the Notifying object
+ */
+ String getSource();
+
+ /**
+ * Gets the Sender of the Notifying object
+ */
+ String getSender();
+
+ /**
+ * Gets the Message of the Notifying object
+ */
+ String getMessage();
+
+ /**
+ * Gets the Description of the Notifying object
+ */
+ String getDescription();
+
+ /**
+ * Gets the ExtraDescriptions of the Notifying object
+ */
+ Map getExtraDescriptions();
}
-
1.33 +2 -2
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
Index: AbstractProcessingPipeline.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- AbstractProcessingPipeline.java 31 Jan 2003 22:51:30 -0000 1.32
+++ AbstractProcessingPipeline.java 2 Feb 2003 23:21:24 -0000 1.33
@@ -520,7 +520,7 @@
throws ProcessingException {
try {
- if ( this.serializer != this.lastConsumer ) {
+ if (this.serializer != this.lastConsumer) {
// internal processing
this.generator.generate();
} else {
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]