axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis Message.java
Date Mon, 24 Jun 2002 20:57:41 GMT
dims        2002/06/24 13:57:40

  Modified:    java/src/org/apache/axis Message.java
  Log:
  Flesh get/set ContentDescription.
  
  Revision  Changes    Path
  1.73      +6 -2      xml-axis/java/src/org/apache/axis/Message.java
  
  Index: Message.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Message.java,v
  retrieving revision 1.72
  retrieving revision 1.73
  diff -u -r1.72 -r1.73
  --- Message.java	23 Jun 2002 20:20:19 -0000	1.72
  +++ Message.java	24 Jun 2002 20:57:40 -0000	1.73
  @@ -92,6 +92,8 @@
       public static final String REQUEST = "request";
       public static final String RESPONSE = "response";
   
  +    public static final String CONTENT_DESCRIPTION = "Content-Description";
  +
       // MIME parts defined for messages.
       public static final String MIME_MULTIPART_RELATED = "multipart/related";
   
  @@ -417,7 +419,9 @@
        * @see #setContentDescription(java.lang.String) setContentDescription(java.lang.String)
        */
       public String getContentDescription() {
  -        //TODO: Flesh this out.
  +        String values[] = headers.getHeader(CONTENT_DESCRIPTION);
  +        if(values.length > 0)
  +            return values[0];
           return null;
       }
   
  @@ -429,7 +433,7 @@
        * @see #getContentDescription() getContentDescription()
        */
       public void setContentDescription(String description) {
  -        //TODO: Flesh this out.
  +        headers.setHeader(CONTENT_DESCRIPTION, description);
       }
   
       /**
  
  
  

Mime
View raw message