You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by do...@apache.org on 2006/02/25 00:00:24 UTC

svn commit: r380853 - /beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultURLRewriter.java

Author: dolander
Date: Fri Feb 24 15:00:22 2006
New Revision: 380853

URL: http://svn.apache.org/viewcvs?rev=380853&view=rev
Log:
Add the proper stub to the Default URL Rewriter for AJAX. 
THis is simply a stub at the moment.


Modified:
    beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultURLRewriter.java

Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultURLRewriter.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultURLRewriter.java?rev=380853&r1=380852&r2=380853&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultURLRewriter.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultURLRewriter.java Fri Feb 24 15:00:22 2006
@@ -25,7 +25,9 @@
 import org.apache.beehive.netui.core.urls.MutableURI;
 import org.apache.beehive.netui.core.urls.URLRewriter;
 import org.apache.beehive.netui.core.urls.URLType;
+import org.apache.beehive.netui.core.urls.AjaxUrlInfo;
 import org.apache.beehive.netui.pageflow.ServletContainerAdapter;
+import org.apache.beehive.netui.pageflow.requeststate.INameable;
 import org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils;
 import org.apache.beehive.netui.util.logging.Logger;
 
@@ -37,6 +39,17 @@
     public String getNamePrefix( ServletContext servletContext, ServletRequest request, String name )
     {
         return "";
+    }
+
+    /**
+     * This method will get the prefix for all URLs that are used for AJAX processing
+     * @param servletContext the current ServletContext.
+     * @param request the current ServletRequest.
+     * @param nameable the INamable object that will handle the request
+     */
+    public AjaxUrlInfo getAjaxUrl(ServletContext servletContext, ServletRequest request, Object nameable)
+    {
+        return null;
     }
 
     public void rewriteURL( ServletContext servletContext, ServletRequest request,