Uses of Class
org.apache.juneau.http.resource.HttpResourceBean
Packages that use HttpResourceBean
Package
Description
Next-generation HTTP resource types — bodies bundled with associated headers.
-
Uses of HttpResourceBean in org.apache.juneau.http.resource
Methods in org.apache.juneau.http.resource that return HttpResourceBeanModifier and TypeMethodDescriptionstatic HttpResourceBeanCreates anHttpResourceBeanwrapping the given body with no additional headers.static HttpResourceBeanHttpResourceBean.of(HttpBody body, List<HttpHeader> headers) Creates anHttpResourceBeanwrapping the given body and headers.HttpResourceBean.withHeader(String name, String value) Returns a new instance with the given header name and value added.HttpResourceBean.withHeader(HttpHeader header) Returns a new instance with the given header added.HttpResourceBean.withHeaders(List<HttpHeader> toAdd) Returns a new instance with the given headers added.HttpResourceBean.withHeaders(HttpHeader... toAdd) Returns a new instance with the given headers added.