[wsas-java-dev] svn commit r805 - in trunk/wsas/java: . modules/standalone-edition/src/org/wso2/wsas/transport/jetty

svn at wso2.org svn at wso2.org
Wed Feb 7 20:40:16 PST 2007


Author: saminda
Date: Wed Feb  7 20:39:17 2007
New Revision: 805

Modified:
   trunk/wsas/java/modules/standalone-edition/src/org/wso2/wsas/transport/jetty/Axis2Handler.java
   trunk/wsas/java/pom.xml
Log:
updates 


Modified: trunk/wsas/java/modules/standalone-edition/src/org/wso2/wsas/transport/jetty/Axis2Handler.java
==============================================================================
--- trunk/wsas/java/modules/standalone-edition/src/org/wso2/wsas/transport/jetty/Axis2Handler.java	(original)
+++ trunk/wsas/java/modules/standalone-edition/src/org/wso2/wsas/transport/jetty/Axis2Handler.java	Wed Feb  7 20:39:17 2007
@@ -23,7 +23,6 @@
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.context.SessionContext;
 import org.apache.axis2.description.TransportOutDescription;
 import org.apache.axis2.engine.AxisEngine;
 import org.apache.axis2.i18n.Messages;
@@ -40,7 +39,6 @@
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
 import javax.xml.namespace.QName;
 import java.io.IOException;
 import java.io.OutputStream;
@@ -138,9 +136,6 @@
 
         msgContext.setFrom(new EndpointReference(request.getRemoteAddr()));
 
-        /*Session Management for Admin Services*/
-        manageSessionContext(request, response, msgContext);
-
         String method = request.getMethod();
         try {
             if (org.wso2.wsas.ServerConstants.HTTPConstants.HTTP_METHOD_GET.equals(method))
@@ -227,48 +222,6 @@
         }
     }
 
-    /**
-     * This method will determine, which requests should be injected with SessionContext.
-     * @param request
-     * @param response
-     * @param msgContext
-     * @throws ServletException
-     */
-    protected void manageSessionContext(HttpServletRequest request, HttpServletResponse response,
-                                        MessageContext msgContext) throws ServletException {
-
-        HttpSession httpSession = request.getSession(true);
-
-        if (httpSession != null) {
-            SessionContext sessionContext =
-                    (SessionContext) httpSession.getAttribute(Constants.SESSION_CONTEXT_PROPERTY);
-            if (sessionContext == null && httpSession.isNew()) {
-                if (!explicitlyIngnorePaths(request)) {
-                    String cookieValueString = httpSession.getId();
-                    sessionContext = new SessionContext(null);
-                    sessionContext.setCookieID(cookieValueString);
-                    httpSession.setAttribute(Constants.SESSION_CONTEXT_PROPERTY, sessionContext);
-                    msgContext.setSessionContext(sessionContext);
-                }
-            }
-        }
-
-    }
-    
-    /**
-     * TODO This is a temp method; that will used to temporary supress creation of SessionContexts
-     *
-     * @param request
-     * @return bolean
-     * @depricate
-     */
-    private boolean explicitlyIngnorePaths(HttpServletRequest request) {
-        String matchingString = "statistics";
-        return request.getRequestURI().indexOf(matchingString) > -1;
-
-    }
-
-
     protected abstract boolean processPostRequest(MessageContext msgContext,
                                                   HttpServletRequest request,
                                                   HttpServletResponse response)

Modified: trunk/wsas/java/pom.xml
==============================================================================
--- trunk/wsas/java/pom.xml	(original)
+++ trunk/wsas/java/pom.xml	Wed Feb  7 20:39:17 2007
@@ -845,6 +845,15 @@
                                     </includes>
                                     <followSymlinks>false</followSymlinks>
                                 </fileset>
+                                <fileset>
+                                    <directory>modules/standalone-edition</directory>
+                                    <includes>
+                                        <include>logs</include>
+                                        <include>conf/derby.log</include>
+                                        <include>conf/wso2wsas.jks</include>
+                                    </includes>
+                                    <followSymlinks>false</followSymlinks>
+                                </fileset>
                             </filesets>
                         </configuration>
                     </plugin>




More information about the Wsas-java-dev mailing list