cvs commit: xml-axis-wsif/java/src/org/apache/wsif/base WSIFDefaultPort.java

[email protected]
Newsgroups gmane.comp.apache.webservices.wsif.devel
Message-ID <[email protected]>
owenb       2003/09/01 06:01:11

  Modified:    java/src/org/apache/wsif/base WSIFDefaultPort.java
  Log:
  Change visibilty of context message so that sublasses can refer to it directly
  
  Revision  Changes    Path
  1.9       +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.9
  diff -u -r1.8 -r1.9
  --- WSIFDefaultPort.java	13 Jan 2003 20:40:21 -0000	1.8
  +++ WSIFDefaultPort.java	1 Sep 2003 13:01:11 -0000	1.9
  @@ -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);
       }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.