[Yanel-commits] rev 46801 - public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search

michi at wyona.com michi at wyona.com
Wed Dec 23 09:30:11 CET 2009


Author: michi
Date: 2009-12-23 09:30:07 +0100 (Wed, 23 Dec 2009)
New Revision: 46801

Modified:
   public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java
Log:
note about redirect added

Modified: public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java	2009-12-23 08:00:06 UTC (rev 46800)
+++ public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java	2009-12-23 08:30:07 UTC (rev 46801)
@@ -39,10 +39,10 @@
             ExternalSearchProvider esp = getExternalSearchProvider(provider);
             if (esp != null) {
                 View view = new View();
-                view.setResponse(false); // this resource writes the response itself
+                view.setResponse(false); // this resource writes the response itself in order to do a server side redirect
 
                 javax.servlet.http.HttpServletResponse response = getResponse();
-                response.setStatus(307);
+                response.setStatus(307); // Temporary redirect (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)
 
                 String query = getRequest().getParameter(QUERY_NAME);
                 String domain = getRequest().getParameter(DOMAIN_NAME);



More information about the Yanel-commits mailing list