Author: jaz
Date: Fri May 25 07:43:15 2007
New Revision: 541673
URL:
http://svn.apache.org/viewvc?view=rev&rev=541673Log:
added convenience for calling the doRequest method
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?view=diff&rev=541673&r1=541672&r2=541673==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Fri May 25 07:43:15 2007
@@ -23,10 +23,6 @@
import java.io.UnsupportedEncodingException;
import java.util.*;
import java.security.cert.X509Certificate;
-import java.security.KeyStore;
-import java.security.GeneralSecurityException;
-import java.security.KeyStoreException;
-import java.net.URL;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -77,6 +73,13 @@
this.requestManager = new RequestManager(context);
this.viewFactory = new ViewFactory(this);
this.eventFactory = new EventFactory(this);
+ }
+
+ public void doRequest(HttpServletRequest request, HttpServletResponse response, String requestUri) throws RequestHandlerException {
+ HttpSession session = request.getSession();
+ GenericDelegator delegator = (GenericDelegator) request.getAttribute("delegator");
+ GenericValue userLogin = (GenericValue) session.getAttribute("userLogin");
+ doRequest(request, response, requestUri, userLogin, delegator);
}
public void doRequest(HttpServletRequest request, HttpServletResponse response, String chain,