Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxws/src/share/jaxws_classes/javax/xml/soap/MimeHeader.java
38890 views
/*1* Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.xml.soap;262728/**29* An object that stores a MIME header name and its value. One or more30* <code>MimeHeader</code> objects may be contained in a <code>MimeHeaders</code>31* object.32*33* @see MimeHeaders34*/35public class MimeHeader {3637private String name;38private String value;3940/**41* Constructs a <code>MimeHeader</code> object initialized with the given42* name and value.43*44* @param name a <code>String</code> giving the name of the header45* @param value a <code>String</code> giving the value of the header46*/47public MimeHeader(String name, String value) {48this.name = name;49this.value = value;50}5152/**53* Returns the name of this <code>MimeHeader</code> object.54*55* @return the name of the header as a <code>String</code>56*/57public String getName() {58return name;59}6061/**62* Returns the value of this <code>MimeHeader</code> object.63*64* @return the value of the header as a <code>String</code>65*/66public String getValue() {67return value;68}69}707172