01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package javax.xml.soap;
20:
21: /**
22: * An object that stores a MIME header name and its value. One or more <CODE>MimeHeader</CODE>
23: * objects may be contained in a <CODE>MimeHeaders</CODE> object.
24: *
25: * @see MimeHeaders MimeHeaders
26: */
27: public class MimeHeader {
28:
29: /**
30: * Constructs a <CODE>MimeHeader</CODE> object initialized with the given name and value.
31: *
32: * @param name a <CODE>String</CODE> giving the name of the header
33: * @param value a <CODE>String</CODE> giving the value of the header
34: */
35: public MimeHeader(String name, String value) {
36: this .name = name;
37: this .value = value;
38: }
39:
40: /**
41: * Returns the name of this <CODE>MimeHeader</CODE> object.
42: *
43: * @return the name of the header as a <CODE>String</CODE>
44: */
45: public String getName() {
46: return name;
47: }
48:
49: /**
50: * Returns the value of this <CODE>MimeHeader</CODE> object.
51: *
52: * @return the value of the header as a <CODE>String</CODE>
53: */
54: public String getValue() {
55: return value;
56: }
57:
58: private String name;
59:
60: private String value;
61: }
|