Uses of Interface
org.apache.http.Header
Packages that use Header
Package
Description
Core HTTP component APIs and primitives.
Core HTTP entity implementations.
Default implementations of message parses and writers
for synchronous, blocking communication.
Core HTTP message components, message element parser
and writer APIs and their default implementations.
-
Uses of Header in org.apache.http
Subinterfaces of Header in org.apache.httpModifier and TypeInterfaceDescriptioninterfaceAn HTTP header which is already formatted.Methods in org.apache.http that return HeaderModifier and TypeMethodDescriptionHeader[]HttpMessage.getAllHeaders()Returns all the headers of this message.HttpEntity.getContentEncoding()Obtains the Content-Encoding header, if known.HttpEntity.getContentType()Obtains the Content-Type header, if known.HttpMessage.getFirstHeader(String name) Returns the first header with a specified name of this message.Header[]HttpMessage.getHeaders(String name) Returns all the headers with a specified name of this message.HttpMessage.getLastHeader(String name) Returns the last header with a specified name of this message.HeaderIterator.nextHeader()Obtains the next header from this iteration.Methods in org.apache.http with parameters of type HeaderModifier and TypeMethodDescriptionvoidAdds a header to this message.voidHttpMessage.removeHeader(Header header) Removes a header from this message.voidOverwrites the first header with the same name.voidHttpMessage.setHeaders(Header[] headers) Overwrites all the headers in the message. -
Uses of Header in org.apache.http.entity
Fields in org.apache.http.entity declared as HeaderModifier and TypeFieldDescriptionprotected HeaderAbstractHttpEntity.contentEncodingprotected HeaderAbstractHttpEntity.contentTypeMethods in org.apache.http.entity that return HeaderModifier and TypeMethodDescriptionAbstractHttpEntity.getContentEncoding()Obtains the Content-Encoding header.HttpEntityWrapper.getContentEncoding()AbstractHttpEntity.getContentType()Obtains the Content-Type header.HttpEntityWrapper.getContentType()Methods in org.apache.http.entity with parameters of type HeaderModifier and TypeMethodDescriptionvoidAbstractHttpEntity.setContentEncoding(Header contentEncoding) Specifies the Content-Encoding header.voidAbstractHttpEntity.setContentType(Header contentType) Specifies the Content-Type header. -
Uses of Header in org.apache.http.impl.io
Methods in org.apache.http.impl.io that return HeaderModifier and TypeMethodDescriptionHeader[]ChunkedInputStream.getFooters()static Header[]AbstractMessageParser.parseHeaders(SessionInputBuffer inBuffer, int maxHeaderCount, int maxLineLen, LineParser parser) Parses HTTP headers from the data receiver stream according to the generic format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3.static Header[]AbstractMessageParser.parseHeaders(SessionInputBuffer inBuffer, int maxHeaderCount, int maxLineLen, LineParser parser, List<CharArrayBuffer> headerLines) Parses HTTP headers from the data receiver stream according to the generic format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3. -
Uses of Header in org.apache.http.message
Classes in org.apache.http.message that implement HeaderModifier and TypeClassDescriptionclassImplements a basicHeader.classThis class represents a raw HTTP header whose content is parsed 'on demand' only when the header value needs to be consumed.Fields in org.apache.http.message declared as HeaderModifier and TypeFieldDescriptionprotected final Header[]BasicHeaderIterator.allHeadersAn array of headers to iterate over.Fields in org.apache.http.message with type parameters of type HeaderModifier and TypeFieldDescriptionBasicListHeaderIterator.allHeadersA list of headers to iterate over.Methods in org.apache.http.message that return HeaderModifier and TypeMethodDescriptionHeader[]AbstractHttpMessage.getAllHeaders()Header[]HeaderGroup.getAllHeaders()Gets all of the headers contained within this group.HeaderGroup.getCondensedHeader(String name) Gets a header representing all of the header values with the given name.AbstractHttpMessage.getFirstHeader(String name) HeaderGroup.getFirstHeader(String name) Gets the first header with the given name.Header[]AbstractHttpMessage.getHeaders(String name) Header[]HeaderGroup.getHeaders(String name) Gets all of the headers with the given name.AbstractHttpMessage.getLastHeader(String name) HeaderGroup.getLastHeader(String name) Gets the last header with the given name.BasicHeaderIterator.nextHeader()Obtains the next header from this iteration.BasicListHeaderIterator.nextHeader()Obtains the next header from this iteration.static HeaderBasicLineParser.parseHeader(String value, LineParser parser) BasicLineParser.parseHeader(CharArrayBuffer buffer) LineParser.parseHeader(CharArrayBuffer buffer) Creates a header from a line.Methods in org.apache.http.message with parameters of type HeaderModifier and TypeMethodDescriptionvoidvoidAdds the given header to the group.protected voidBasicLineFormatter.doFormatHeader(CharArrayBuffer buffer, Header header) Actually formats a header.static StringBasicLineFormatter.formatHeader(Header header, LineFormatter formatter) Formats a header.BasicLineFormatter.formatHeader(CharArrayBuffer buffer, Header header) LineFormatter.formatHeader(CharArrayBuffer buffer, Header header) Formats a header.voidAbstractHttpMessage.removeHeader(Header header) voidHeaderGroup.removeHeader(Header header) Removes the given header.voidvoidAbstractHttpMessage.setHeaders(Header[] headers) voidHeaderGroup.setHeaders(Header[] headers) Sets all of the headers contained within this group overriding any existing headers.voidHeaderGroup.updateHeader(Header header) Replaces the first occurence of the header with the same name.Constructors in org.apache.http.message with parameters of type HeaderModifierConstructorDescriptionBasicHeaderIterator(Header[] headers, String name) Creates a new header iterator.Constructor parameters in org.apache.http.message with type arguments of type HeaderModifierConstructorDescriptionBasicListHeaderIterator(List<Header> headers, String name) Creates a new header iterator.