W3cubDocs

/OpenJDK 8 Web

Class MimeHeader

public class MimeHeader
extends Object

An object that stores a MIME header name and its value. One or more MimeHeader objects may be contained in a MimeHeaders object.

See Also:
MimeHeaders

Constructors

MimeHeader

public MimeHeader(String name,
                  String value)

Constructs a MimeHeader object initialized with the given name and value.

Parameters:
name - a String giving the name of the header
value - a String giving the value of the header

Methods

getName

public String getName()

Returns the name of this MimeHeader object.

Returns:
the name of the header as a String

getValue

public String getValue()

Returns the value of this MimeHeader object.

Returns:
the value of the header as a String

© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.