geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r555491 - /geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOWebServiceContext.java
Date Thu, 12 Jul 2007 04:59:56 GMT
Author: gawor
Date: Wed Jul 11 21:59:56 2007
New Revision: 555491

URL: http://svn.apache.org/viewvc?view=rev&rev=555491
Log:
use the right property to get SERVLET_REQUEST

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOWebServiceContext.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOWebServiceContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOWebServiceContext.java?view=diff&rev=555491&r1=555490&r2=555491
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOWebServiceContext.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOWebServiceContext.java
Wed Jul 11 21:59:56 2007
@@ -23,8 +23,6 @@
 import javax.xml.ws.WebServiceContext;
 import javax.xml.ws.handler.MessageContext;
 
-import org.apache.axis2.transport.http.HTTPConstants;
-
 /**
  * Implementation of WebServiceContext for POJO WS to ensure that getUserPrincipal()
  * and isUserInRole() are properly handled.
@@ -44,7 +42,7 @@
 
     private HttpServletRequest getHttpServletRequest() {
         MessageContext ctx = getMessageContext();
-        return (ctx != null) ? (HttpServletRequest)ctx.get(HTTPConstants.MC_HTTP_SERVLETREQUEST)
: null;
+        return (ctx != null) ? (HttpServletRequest)ctx.get(MessageContext.SERVLET_REQUEST)
: null;
     }
 
     public final Principal getUserPrincipal() {



Mime
View raw message