You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2007/12/21 12:39:46 UTC

svn commit: r606165 - /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java

Author: vgritsenko
Date: Fri Dec 21 03:39:45 2007
New Revision: 606165

URL: http://svn.apache.org/viewvc?rev=606165&view=rev
Log:
remove unused method

Modified:
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java

Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java?rev=606165&r1=606164&r2=606165&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java (original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java Fri Dec 21 03:39:45 2007
@@ -107,6 +107,7 @@
 
         this.processor = getProcessor();
         this.environmentContext = new HttpContext(this.servletContext);
+
         // get the optional request listener
         if (this.cocoonBeanFactory.containsBean(RequestListener.ROLE)) {
             this.requestListener = (RequestListener) this.cocoonBeanFactory.getBean(RequestListener.ROLE);
@@ -117,10 +118,6 @@
         return (Processor) this.cocoonBeanFactory.getBean(Processor.ROLE);
     }
 
-    public void setProcessor(Processor processor) {
-        this.processor = processor;
-    }
-
     protected boolean rethrowExceptions() {
         return false;
     }
@@ -135,7 +132,7 @@
         StopWatch stopWatch = new StopWatch();
         stopWatch.start();
 
-        // add the cocoon header timestamp
+        // add the cocoon version header stamp
         if (this.servletSettings.isShowVersion()) {
             res.addHeader("X-Cocoon-Version", Constants.VERSION);
         }
@@ -146,7 +143,6 @@
             // a redirect occured, so we are finished
             return;
         }
-        String contentType = null;
 
         Environment env;
         try{
@@ -168,6 +164,7 @@
             return;
         }
 
+        String contentType = null;
         try {
             if (process(env)) {
                 contentType = env.getContentType();