You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-dev@ws.apache.org by ow...@apache.org on 2003/09/01 15:00:30 UTC
cvs commit: xml-axis-wsif/java/src/org/apache/wsif/base WSIFDefaultPort.java
owenb 2003/09/01 06:00:30
Modified: java/src/org/apache/wsif/base Tag:
WSIF_2_0-uses-wsdl4j-1_4-patches
WSIFDefaultPort.java
Log:
Change visibilty of context message so that sublasses can refer to it directly
Revision Changes Path
No revision
No revision
1.8.4.1 +4 -5 xml-axis-wsif/java/src/org/apache/wsif/base/WSIFDefaultPort.java
Index: WSIFDefaultPort.java
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/base/WSIFDefaultPort.java,v
retrieving revision 1.8
retrieving revision 1.8.4.1
diff -u -r1.8 -r1.8.4.1
--- WSIFDefaultPort.java 13 Jan 2003 20:40:21 -0000 1.8
+++ WSIFDefaultPort.java 1 Sep 2003 13:00:30 -0000 1.8.4.1
@@ -62,7 +62,6 @@
import java.util.List;
import org.apache.wsif.WSIFException;
-import org.apache.wsif.WSIFConstants;
import org.apache.wsif.WSIFMessage;
import org.apache.wsif.WSIFPort;
import org.apache.wsif.logging.Trc;
@@ -80,7 +79,7 @@
public abstract class WSIFDefaultPort implements WSIFPort {
private static final long serialVersionUID = 1L;
- private WSIFMessage context;
+ protected WSIFMessage portContext;
public void close() throws WSIFException {
Trc.entry(this);
@@ -188,14 +187,14 @@
public WSIFMessage getContext() throws WSIFException {
Trc.entry(this);
WSIFMessage contextCopy;
- if (this.context == null) {
+ if (this.portContext == null) {
// really this should call getContext on the WSIFService but
// theres no reference to that so WSIFService must call setContext
// on any WSIFPorts it creates.
contextCopy = new WSIFDefaultMessage();
} else {
try {
- contextCopy = (WSIFMessage) this.context.clone();
+ contextCopy = (WSIFMessage) this.portContext.clone();
} catch (CloneNotSupportedException e) {
throw new WSIFException(
"CloneNotSupportedException cloning context", e);
@@ -214,7 +213,7 @@
if (context == null) {
throw new IllegalArgumentException("context must not be null");
}
- this.context = context;
+ this.portContext = context;
Trc.exit(null);
}