You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sc...@apache.org on 2007/10/25 22:53:29 UTC
svn commit: r588350 - in
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws:
core/MessageContext.java core/util/MessageContextUtils.java
server/JAXWSMessageReceiver.java
Author: scheu
Date: Thu Oct 25 13:53:28 2007
New Revision: 588350
URL: http://svn.apache.org/viewvc?rev=588350&view=rev
Log:
Added isServer() method to jaxws MessageContext.
The isServer() flag indicates that the MessageContext is associated with an Endpoint that
is playing the role of a server.
Modified:
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/MessageContext.java
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/util/MessageContextUtils.java
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/MessageContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/MessageContext.java?rev=588350&r1=588349&r2=588350&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/MessageContext.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/MessageContext.java Thu Oct 25 13:53:28 2007
@@ -59,6 +59,7 @@
private Message message;
private Mode mode;
private boolean isOutbound; // Outbound or inbound message context
+ private boolean isServer = false; // Indicate if server role, default is false
// TODO: flag to set whether we delegate property setting up to the
// axis2 message context object or keep it local
@@ -333,6 +334,21 @@
*/
public void setOutbound(boolean isOutbound) {
this.isOutbound = isOutbound;
+ }
+
+ /**
+ * @return true if server role
+ */
+ public boolean isServer() {
+ return isServer;
+ }
+
+ /**
+ * Indicate if server role
+ * @param isServer
+ */
+ public void setServer(boolean isServer) {
+ this.isServer = isServer;
}
}
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/util/MessageContextUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/util/MessageContextUtils.java?rev=588350&r1=588349&r2=588350&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/util/MessageContextUtils.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/util/MessageContextUtils.java Thu Oct 25 13:53:28 2007
@@ -44,6 +44,7 @@
MessageContext newMC = new MessageContext(newAxisMC);
newMC.setOutbound(true);
+ newMC.setServer(true);
newMC.setMEPContext(mc.getMEPContext());
newMC.setEndpointDescription(mc.getEndpointDescription());
newMC.setOperationDescription(mc.getOperationDescription());
@@ -81,6 +82,7 @@
null);
MessageContext jaxwsFaultMC = new MessageContext(faultMC);
jaxwsFaultMC.setOutbound(true);
+ jaxwsFaultMC.setServer(true);
jaxwsFaultMC.setMEPContext(mc.getMEPContext());
jaxwsFaultMC.setEndpointDescription(mc.getEndpointDescription());
jaxwsFaultMC.setOperationDescription(mc.getOperationDescription());
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java?rev=588350&r1=588349&r2=588350&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java Thu Oct 25 13:53:28 2007
@@ -97,6 +97,7 @@
EndpointController endpointCtlr = new EndpointController();
MessageContext requestMsgCtx = new MessageContext(axisRequestMsgCtx);
+ requestMsgCtx.setServer(true);
requestMsgCtx.setMEPContext(new MEPContext(requestMsgCtx));
// The adapters need to be installed on the new request Message Context
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org