Header.java revision 069490a5ca2fd1988d29daf45d892f47ad665115
1/* 2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/Header.java $ 3 * $Revision: 569636 $ 4 * $Date: 2007-08-25 00:34:47 -0700 (Sat, 25 Aug 2007) $ 5 * 6 * ==================================================================== 7 * Licensed to the Apache Software Foundation (ASF) under one 8 * or more contributor license agreements. See the NOTICE file 9 * distributed with this work for additional information 10 * regarding copyright ownership. The ASF licenses this file 11 * to you under the Apache License, Version 2.0 (the 12 * "License"); you may not use this file except in compliance 13 * with the License. You may obtain a copy of the License at 14 * 15 * http://www.apache.org/licenses/LICENSE-2.0 16 * 17 * Unless required by applicable law or agreed to in writing, 18 * software distributed under the License is distributed on an 19 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 20 * KIND, either express or implied. See the License for the 21 * specific language governing permissions and limitations 22 * under the License. 23 * ==================================================================== 24 * 25 * This software consists of voluntary contributions made by many 26 * individuals on behalf of the Apache Software Foundation. For more 27 * information on the Apache Software Foundation, please see 28 * <http://www.apache.org/>. 29 * 30 */ 31 32package org.apache.http; 33 34/** 35 * Represents an HTTP header field. 36 * 37 * <p>The HTTP header fields follow the same generic format as 38 * that given in Section 3.1 of RFC 822. Each header field consists 39 * of a name followed by a colon (":") and the field value. Field names 40 * are case-insensitive. The field value MAY be preceded by any amount 41 * of LWS, though a single SP is preferred. 42 * 43 *<pre> 44 * message-header = field-name ":" [ field-value ] 45 * field-name = token 46 * field-value = *( field-content | LWS ) 47 * field-content = <the OCTETs making up the field-value 48 * and consisting of either *TEXT or combinations 49 * of token, separators, and quoted-string> 50 *</pre> 51 * 52 * @author <a href="mailto:remm@apache.org">Remy Maucherat</a> 53 * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a> 54 * @version $Revision: 569636 $ 55 */ 56public interface Header { 57 58 String getName(); 59 60 String getValue(); 61 62 HeaderElement[] getElements() throws ParseException; 63 64} 65