axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/deployment/wsdd WSDDService.java
Date Mon, 26 Aug 2002 15:00:46 GMT
gdaniels    2002/08/26 08:00:46

  Modified:    java/src/org/apache/axis/attachments AttachmentsImpl.java
               java/src/org/apache/axis/deployment/wsdd WSDDService.java
  Log:
  Preserve attributes for streaming and attachment type when writing
  out WSDDServices.
  
  Revision  Changes    Path
  1.32      +23 -11    xml-axis/java/src/org/apache/axis/attachments/AttachmentsImpl.java
  
  Index: AttachmentsImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/attachments/AttachmentsImpl.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- AttachmentsImpl.java	25 Aug 2002 14:00:02 -0000	1.31
  +++ AttachmentsImpl.java	26 Aug 2002 15:00:45 -0000	1.32
  @@ -107,13 +107,11 @@
       /**
        * Construct one of these on a parent Message.
        * Should only ever be called by Message constructor!
  -     * @param initialContents should be anything but today only a stream is
  -     *        supported.
  -     * @param The mime content type of the stream for transports that provide
  -     *        it.
        *
  -     * @param intialContents
  -     * @param contentType
  +     * @param intialContents should be anything but today only a stream is
  +     *        supported.
  +     * @param contentType The mime content type of the stream for transports
  +     *        that provide it.
        * @param contentLocation
        *
        * @throws org.apache.axis.AxisFault
  @@ -205,9 +203,8 @@
        * This method uses getAttacmentByReference() to look for attachment.
        *     If attachment has been found, it will be removed from the list, and
        *     returned to the user.
  -     * @param  The reference that referers to an attachment.
  +     * @param reference The reference that referers to an attachment.
        *
  -     * @param reference
        * @return The part associated with the removed attachment, or null.
        *
        * @throws org.apache.axis.AxisFault
  @@ -236,7 +233,7 @@
        * Adds an existing attachment to this list.
        * Note: Passed part will be bound to this message.
        * @param newPart new part to add
  -     * @returns Part old attachment with the same Content-ID, or null.
  +     * @return Part old attachment with the same Content-ID, or null.
        *
        * @return
        *
  @@ -330,9 +327,8 @@
        *     Note: if Content-Id or Content-Location headers have changed by outside
        *     code, lookup will not return proper values. In order to change these
        *     values attachment should be removed, then added again.
  -     * @param  The reference in the xml that referers to an attachment.
  +     * @param reference The reference in the xml that referers to an attachment.
        *
  -     * @param reference
        * @return The part associated with the attachment.
        *
        * @throws org.apache.axis.AxisFault
  @@ -654,5 +650,21 @@
           if (value.equalsIgnoreCase("DIME")) return SEND_TYPE_DIME;
           if (value.equalsIgnoreCase("NONE")) return SEND_TYPE_NONE;
           return SEND_TYPE_NOTSET;
  +    }
  +    
  +    /**
  +     * For a given sendType value, return a string representation.
  +     */ 
  +    public static String getSendTypeString(int value) {
  +        if (value == SEND_TYPE_MIME) {
  +            return "MIME";
  +        }
  +        if (value == SEND_TYPE_DIME) {
  +            return "DIME";
  +        }
  +        if (value == SEND_TYPE_NONE) {
  +            return "NONE";
  +        }
  +        return null;
       }
   }
  
  
  
  1.82      +10 -0     xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDService.java
  
  Index: WSDDService.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDService.java,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- WSDDService.java	25 Aug 2002 14:00:02 -0000	1.81
  +++ WSDDService.java	26 Aug 2002 15:00:46 -0000	1.82
  @@ -516,7 +516,17 @@
               attrs.addAttribute("", ATTR_STYLE, ATTR_STYLE,
                                  "CDATA", style.getName());
           }
  +        
  +        if (streaming) {
  +            attrs.addAttribute("", ATTR_STREAMING, ATTR_STREAMING,
  +                               "CDATA", "on");
  +        }
   
  +        if (sendType != Attachments.SEND_TYPE_NOTSET) {
  +            attrs.addAttribute("", ATTR_ATTACHMENT_FORMAT,
  +                               ATTR_ATTACHMENT_FORMAT, "CDATA",
  +                               AttachmentsImpl.getSendTypeString(sendType));
  +        }
           context.startElement(WSDDConstants.QNAME_SERVICE, attrs);
   
           if (desc.getWSDLFile() != null) {
  
  
  

Mime
View raw message