owenb       2003/09/02 02:34:45

  Modified:    java/src/org/apache/wsif/base WSIFDefaultPort.java
  Log:
  Rename portContext back to context
  
  Revision  Changes    Path
  1.10      +7 -7      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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- WSIFDefaultPort.java      1 Sep 2003 13:01:11 -0000       1.9
  +++ WSIFDefaultPort.java      2 Sep 2003 09:34:45 -0000       1.10
  @@ -79,7 +79,7 @@
   public abstract class WSIFDefaultPort implements WSIFPort {
        private static final long serialVersionUID = 1L;
        
  -     protected WSIFMessage portContext;
  +     protected WSIFMessage context;
   
       public void close() throws WSIFException {
           Trc.entry(this);
  @@ -187,14 +187,14 @@
       public WSIFMessage getContext() throws WSIFException {
           Trc.entry(this);
        WSIFMessage contextCopy;
  -     if (this.portContext == null) {
  +     if (this.context == 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.portContext.clone();
  +                         contextCopy = (WSIFMessage) this.context.clone();
                    } catch (CloneNotSupportedException e) {
                            throw new WSIFException(
                                "CloneNotSupportedException cloning context", e);
  @@ -208,12 +208,12 @@
        * Sets the context information for this WSIFPort.
        * @param WSIFMessage the new context information
        */
  -    public void setContext(WSIFMessage context) {
  -        Trc.entry(this, context);
  -        if (context == null) {
  +    public void setContext(WSIFMessage newContext) {
  +        Trc.entry(this, newContext);
  +        if (newContext == null) {
                throw new IllegalArgumentException("context must not be null");
           }
  -        this.portContext = context;
  +        this.context = newContext;
           Trc.exit(null);
       }
   
  
  
  

Reply via email to