jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/ParameterList.java
changeset 16791 fe5141eabb0e
parent 12009 4abb694f273a
child 22679 d785acd84a14
equal deleted inserted replaced
16650:1872c1252909 16791:fe5141eabb0e
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2012, 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
   224         return sb.toString();
   224         return sb.toString();
   225     }
   225     }
   226 
   226 
   227     // Quote a parameter value token if required.
   227     // Quote a parameter value token if required.
   228     private String quote(String value) {
   228     private String quote(String value) {
       
   229         if ("".equals(value))
       
   230                 return "\"\"";
   229         return MimeUtility.quote(value, HeaderTokenizer.MIME);
   231         return MimeUtility.quote(value, HeaderTokenizer.MIME);
   230     }
   232     }
   231 
   233 
   232     public ParameterList copy() {
   234     public ParameterList copy() {
   233         return new ParameterList((HashMap)list.clone());
   235         return new ParameterList((HashMap)list.clone());