Uses of Interface
org.apache.juneau.http.HttpHeader
Packages that use HttpHeader
Package
Description
HTTP Part Annotations
Next-generation HTTP header implementations.
Next-generation HTTP resource types — bodies bundled with associated headers.
Next-generation HTTP response types.
Next-generation REST client — transport-agnostic HTTP client built on Juneau's serialization stack.
REST Server API
REST HTTP Parts
REST Static Files Support
-
Uses of HttpHeader in org.apache.juneau.http
Methods in org.apache.juneau.http that return HttpHeaderModifier and TypeMethodDescriptionstatic HttpHeaderCreates a genericHttpHeaderwith the given name and value.static HttpHeaderCreates a genericHttpHeaderwith a lazy value supplier.Methods in org.apache.juneau.http that return types with arguments of type HttpHeaderModifier and TypeMethodDescriptionHttpResource.getHeaders()Returns the headers associated with this resource. -
Uses of HttpHeader in org.apache.juneau.http.header
Classes in org.apache.juneau.http.header that implement HttpHeaderModifier and TypeClassDescriptionclassRepresents an HTTPAccept header.classRepresents an HTTPAccept-Charset header.classRepresents an HTTPAccept-Encoding header.classRepresents an HTTPAccept-Language header.classRepresents an HTTPAccept-Ranges header.classRepresents an HTTPAge header.classRepresents an HTTPAllow header.classRepresents an HTTPAuthorization header.classRepresents an HTTPCache-Control header.classRepresents an HTTPClient-Version header.classRepresents an HTTPConnection header.classRepresents an HTTPContent-Disposition header.classRepresents an HTTPContent-Encoding header.classRepresents an HTTPContent-Language header.classRepresents an HTTPContent-Length header.classRepresents an HTTPContent-Location header.classRepresents an HTTPContent-Range header.classRepresents an HTTPContent-Security-Policy (orContent-Security-Policy-Report-Only ) response header.classRepresents an HTTPContent-Type header.classRepresents an HTTPDate header.classRepresents an HTTPDebug header.classRepresents an HTTPETag header.classRepresents an HTTPExpect header.classRepresents an HTTPExpires header.classRepresents an HTTPForwarded header.classRepresents an HTTPFrom header.classRepresents an HTTPHost header.classBase for boolean headers.classBase for simple comma-separated token lists.classBase for HTTP-date headers.classBase for single entity-tag headers.classBase for multiple entity-tags headers.classRoot concrete implementation ofHttpHeader.classBase for integer headers.classBase for long headers.classBase type for headers whose wire format is anAccept -style list of media ranges.classBase type for headers whose value is a singleMediaType(e.g.classBase type for HTTP headers whose value is an opaque string (or lazySupplierof string).classBase for comma-separated tokens with optional q-values.classBase for single-URI headers.classclassRepresents an HTTPIf-Modified-Since header.classclassRepresents an HTTPIf-Range header.classRepresents an HTTPIf-Unmodified-Since header.classRepresents an HTTPLast-Modified header.classRepresents an HTTPLocation header.classRepresents an HTTPMax-Forwards header.classRepresents an HTTPNo-Trace header.classRepresents an HTTPOrigin header.classRepresents an HTTPPragma header.classRepresents an HTTPProxy-Authenticate header.classRepresents an HTTPProxy-Authorization header.classRepresents an HTTPRange header.classRepresents an HTTPReferer header.classRepresents an HTTPRetry-After header.classRepresents an HTTPServer header.classRepresents an HTTPTE header.classRepresents an HTTPThrown header.classRepresents an HTTPTrailer header.classRepresents an HTTPTransfer-Encoding header.classRepresents an HTTPUpgrade header.classRepresents an HTTPUser-Agent header.classRepresents an HTTPVary header.classRepresents an HTTPVia header.classRepresents an HTTPWarning header.classRepresents an HTTPWWW-Authenticate header.Methods in org.apache.juneau.http.header that return HttpHeaderModifier and TypeMethodDescriptionHttpHeaderList.getAll()Returns all headers in this list as a typed array.Returns the first header with the given name, ornullif absent.Returns the last header with the given name, ornullif absent.HttpHeaderList.Unmodifiable.remove(int index) HttpHeaderList.Unmodifiable.set(int index, HttpHeader element) HttpHeaderList.toHeaderArray()Returns the headers in this list as a typed array.Methods in org.apache.juneau.http.header that return types with arguments of type HttpHeaderModifier and TypeMethodDescriptionReturns all headers with the given name in insertion order.HttpHeaderList.Unmodifiable.iterator()HttpHeaderList.Unmodifiable.listIterator()HttpHeaderList.Unmodifiable.listIterator(int index) Methods in org.apache.juneau.http.header with parameters of type HttpHeaderModifier and TypeMethodDescriptionvoidHttpHeaderList.Unmodifiable.add(int index, HttpHeader element) booleanHttpHeaderList.Unmodifiable.add(HttpHeader e) HttpHeaderList.append(HttpHeader value) Appends the given header.HttpHeaderList.append(HttpHeader... values) Appends the given headers in order.HttpHeaderList.Unmodifiable.append(HttpHeader value) HttpHeaderList.Unmodifiable.append(HttpHeader... values) static HttpHeaderListHttpHeaderList.of(HttpHeader... headers) Creates a newHttpHeaderListinitialized with the given headers.HttpHeaderList.set(HttpHeader value) Sets the given header, replacing any prior entry with the same name.HttpHeaderList.set(HttpHeader... values) Sets the given headers, each replacing any prior entry with the same name.HttpHeaderList.Unmodifiable.set(int index, HttpHeader element) HttpHeaderList.Unmodifiable.set(HttpHeader value) HttpHeaderList.Unmodifiable.set(HttpHeader... values) HttpHeaderList.setDefault(HttpHeader value) Sets the given header as a default.HttpHeaderList.setDefault(HttpHeader... values) Sets the given headers as defaults, in order.HttpHeaderList.Unmodifiable.setDefault(HttpHeader value) HttpHeaderList.Unmodifiable.setDefault(HttpHeader... values) Method parameters in org.apache.juneau.http.header with type arguments of type HttpHeaderModifier and TypeMethodDescriptionbooleanHttpHeaderList.Unmodifiable.addAll(int index, Collection<? extends HttpHeader> c) booleanHttpHeaderList.Unmodifiable.addAll(Collection<? extends HttpHeader> c) HttpHeaderList.append(List<HttpHeader> values) Appends the given headers in order.HttpHeaderList.Unmodifiable.append(List<HttpHeader> values) HttpHeaderList.forEach(String name, Consumer<HttpHeader> action) Performs an action on each header whose name matches.static HttpHeaderListHttpHeaderList.of(List<HttpHeader> headers) Creates a newHttpHeaderListinitialized with the given headers.booleanHttpHeaderList.Unmodifiable.removeIf(Predicate<? super HttpHeader> filter) voidHttpHeaderList.Unmodifiable.replaceAll(UnaryOperator<HttpHeader> operator) voidHttpHeaderList.Unmodifiable.sort(Comparator<? super HttpHeader> c) -
Uses of HttpHeader in org.apache.juneau.http.resource
Methods in org.apache.juneau.http.resource that return HttpHeaderModifier and TypeMethodDescriptionHttpResourceBean.getFirstHeader(String name) Returns the first header with the given name (case-insensitive), ornull if absent.Methods in org.apache.juneau.http.resource that return types with arguments of type HttpHeaderMethods in org.apache.juneau.http.resource with parameters of type HttpHeaderModifier and TypeMethodDescriptionHttpResourceBean.withHeader(HttpHeader header) Returns a new instance with the given header added.HttpResourceBean.withHeaders(HttpHeader... toAdd) Returns a new instance with the given headers added.Method parameters in org.apache.juneau.http.resource with type arguments of type HttpHeaderModifier and TypeMethodDescriptionstatic HttpResourceBeanHttpResourceBean.of(HttpBody body, List<HttpHeader> headers) Creates anHttpResourceBeanwrapping the given body and headers.HttpResourceBean.withHeaders(List<HttpHeader> toAdd) Returns a new instance with the given headers added. -
Uses of HttpHeader in org.apache.juneau.http.response
Methods in org.apache.juneau.http.response that return HttpHeaderModifier and TypeMethodDescriptiondefault HttpHeaderHttpResponseMessage.getFirstHeader(String name) Returns the first response header with the given name (case-insensitive), ornull if absent.Methods in org.apache.juneau.http.response that return types with arguments of type HttpHeaderModifier and TypeMethodDescriptionBasicHttpException.getHeaders()BasicHttpResponse.getHeaders()HttpResponseMessage.getHeaders()Returns all response headers, in the order they were received.default List<HttpHeader>HttpResponseMessage.getHeaders(String name) Returns all response headers with the given name (case-insensitive).Methods in org.apache.juneau.http.response with parameters of type HttpHeaderModifier and TypeMethodDescriptionBasicHttpException.addHeader(HttpHeader value) Appends a header to the end of the header list.BasicHttpResponse.addHeader(HttpHeader value) Appends a header to the end of the header list.BasicHttpException.setHeader(HttpHeader value) Sets a single header, replacing any existing header with the same name.BasicHttpResponse.setHeader(HttpHeader value) Sets a single header, replacing any existing header with the same name.BasicHttpException.setHeaders(HttpHeader... values) Replaces all headers with the given array.BasicHttpResponse.setHeaders(HttpHeader... values) Replaces all headers with the given array.BasicHttpResponse.withHeader(HttpHeader header) Appends a header to this response.Method parameters in org.apache.juneau.http.response with type arguments of type HttpHeaderModifier and TypeMethodDescriptionBasicHttpException.setHeaders(List<HttpHeader> values) Replaces all headers with the given list.BasicHttpResponse.setHeaders(List<HttpHeader> values) Replaces all headers with the given list.Constructor parameters in org.apache.juneau.http.response with type arguments of type HttpHeaderModifierConstructorDescriptionprotectedBasicHttpResponse(HttpStatusLine statusLine, List<HttpHeader> headers, HttpBody body) Constructor with headers and an optional body. -
Uses of HttpHeader in org.apache.juneau.rest.client
Methods in org.apache.juneau.rest.client with parameters of type HttpHeaderModifier and TypeMethodDescriptionRestClient.Builder.headers(HttpHeader... value) Adds default headers sent with every request.RestRequest.headers(HttpHeader... value) Adds request headers. -
Uses of HttpHeader in org.apache.juneau.rest.server
Methods in org.apache.juneau.rest.server with parameters of type HttpHeaderModifier and TypeMethodDescriptionRestResponse.addHeader(HttpHeader header) Adds a response header.RestResponse.setHeader(HttpHeader header) Sets a response header. -
Uses of HttpHeader in org.apache.juneau.rest.server.httppart
Classes in org.apache.juneau.rest.server.httppart that implement HttpHeaderModifier and TypeClassDescriptionclassRepresents a single header on an HTTP request.Methods in org.apache.juneau.rest.server.httppart with parameters of type HttpHeaderModifier and TypeMethodDescriptionRequestHeaderList.add(HttpHeader... headers) Adds request header values.RequestHeaderList.addDefault(HttpHeader... pairs) Adds default entries to these headers.RequestHeaderList.set(HttpHeader... headers) Sets request header values.Method parameters in org.apache.juneau.rest.server.httppart with type arguments of type HttpHeaderModifier and TypeMethodDescriptionRequestHeaderList.addDefault(List<HttpHeader> pairs) Adds default entries to these headers. -
Uses of HttpHeader in org.apache.juneau.rest.server.staticfile
Methods in org.apache.juneau.rest.server.staticfile with parameters of type HttpHeaderModifier and TypeMethodDescriptionStaticFiles.Builder.headers(HttpHeader... headers) Appends headers to add to HTTP responses.