jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/ContentDisposition.java
changeset 43852 93a527059d8a
parent 33547 e4c76ac38b12
equal deleted inserted replaced
43752:3c68ef249093 43852:93a527059d8a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    98     }
    98     }
    99 
    99 
   100     /**
   100     /**
   101      * Return the specified parameter value. Returns <code>null</code>
   101      * Return the specified parameter value. Returns <code>null</code>
   102      * if this parameter is absent.
   102      * if this parameter is absent.
       
   103      * @param name parameter name.
   103      * @return  parameter value
   104      * @return  parameter value
   104      * @since           JavaMail 1.2
   105      * @since           JavaMail 1.2
   105      */
   106      */
   106     public String getParameter(String name) {
   107     public String getParameter(String name) {
   107         if (list == null)
   108         if (list == null)
   121         return list;
   122         return list;
   122     }
   123     }
   123 
   124 
   124     /**
   125     /**
   125      * Set the primary type. Overrides existing primary type.
   126      * Set the primary type. Overrides existing primary type.
   126      * @param   primaryType     primary type
   127      * @param   disposition disposition value
   127      * @since           JavaMail 1.2
   128      * @since           JavaMail 1.2
   128      */
   129      */
   129     public void setDisposition(String disposition) {
   130     public void setDisposition(String disposition) {
   130         this.disposition = disposition;
   131         this.disposition = disposition;
   131     }
   132     }
   160      * the conversion failed.
   161      * the conversion failed.
   161      *
   162      *
   162      * @return  RFC2045 style string
   163      * @return  RFC2045 style string
   163      * @since           JavaMail 1.2
   164      * @since           JavaMail 1.2
   164      */
   165      */
       
   166     @Override
   165     public String toString() {
   167     public String toString() {
   166         if (disposition == null)
   168         if (disposition == null)
   167             return null;
   169             return null;
   168 
   170 
   169         if (list == null)
   171         if (list == null)