Uses of Interface
org.apache.juneau.http.HttpBody
Packages that use HttpBody
Package
Description
HTTP Part Annotations
Next-generation HTTP body (entity) implementations.
Next-generation HTTP part (query/form/path) 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.
-
Uses of HttpBody in org.apache.juneau.http
Subinterfaces of HttpBody in org.apache.juneau.httpModifier and TypeInterfaceDescriptioninterfaceAnHttpBodythat carries additional headers (such asContent-Type,Content-Disposition, orContent-Language) alongside the body. -
Uses of HttpBody in org.apache.juneau.http.entity
Classes in org.apache.juneau.http.entity that implement HttpBodyModifier and TypeClassDescriptionfinal classAnHttpBodybacked by a raw byte array.final classfinal classA mutable wrapper around anHttpBodythat allows overriding the content type.final classAnHttpBodythat serializes amultipart/form-datamessage (RFC 7578).final classfinal classA non-repeatableHttpBodythat streams content from anInputStream.final classAnHttpBodybacked by a UTF-8 string.Methods in org.apache.juneau.http.entity that return HttpBodyModifier and TypeMethodDescriptionMultipartBody.MultipartPart.body()Returns the value of thebodyrecord component.Methods in org.apache.juneau.http.entity with parameters of type HttpBodyModifier and TypeMethodDescriptionstatic HttpBodyBeanCreates anHttpBodyBeanwrapping the given body and retaining its content type.static HttpBodyBeanCreates anHttpBodyBeanwrapping the given body with the specified content type.static MultipartBody.MultipartPartCreates a part from an arbitraryHttpBody.Constructors in org.apache.juneau.http.entity with parameters of type HttpBodyModifierConstructorDescriptionMultipartPart(String name, String filename, String contentType, HttpBody body) Compact constructor enforcing the documented non-null contract onnameandbody, and rejecting CR/LF and other control characters inname,filename, andcontentTypethat could otherwise inject an extra MIME header line into the multipart wire format. -
Uses of HttpBody in org.apache.juneau.http.part
Classes in org.apache.juneau.http.part that implement HttpBody -
Uses of HttpBody in org.apache.juneau.http.resource
Classes in org.apache.juneau.http.resource that implement HttpBodyModifier and TypeClassDescriptionfinal classDefault immutable implementation ofHttpResource: anHttpBodybundled with a set of associated headers (such asContent-Type,Content-Disposition, orContent-Language).Methods in org.apache.juneau.http.resource that return HttpBodyMethods in org.apache.juneau.http.resource with parameters of type HttpBodyModifier 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. -
Uses of HttpBody in org.apache.juneau.http.response
Methods in org.apache.juneau.http.response that return HttpBodyModifier and TypeMethodDescriptionBasicHttpException.getBody()BasicHttpResponse.getBody()HttpResponseMessage.getBody()Returns the response body, ornull if the response has no body.Methods in org.apache.juneau.http.response with parameters of type HttpBodyModifier and TypeMethodDescriptionSets the response body.Sets the response body.BasicHttpException.setContent(HttpBody value) Sets the response body.BasicHttpResponse.setContent(HttpBody value) Sets the response body.Sets the body on this response.Constructors in org.apache.juneau.http.response with parameters of type HttpBodyModifierConstructorDescriptionConstructor with a response body.AlreadyReported(HttpBody body) Constructor with a response body.protectedBasicHttpResponse(HttpStatusLine statusLine, List<HttpHeader> headers, HttpBody body) Constructor with headers and an optional body.protectedBasicHttpResponse(HttpStatusLine statusLine, HttpBody body) Constructor with a body.Constructor with a response body.Constructor with a response body.EarlyHints(HttpBody body) Constructor with a response body.Constructor with a response body.Constructor with a response body.MovedPermanently(HttpBody body) Constructor with a response body.MultipleChoices(HttpBody body) Constructor with a response body.MultiStatus(HttpBody body) Constructor with a response body.Constructor with a response body.Constructor with a response body.NotModified(HttpBody body) Constructor with a response body.Constructor with a response body.PartialContent(HttpBody body) Constructor with a response body.PermanentRedirect(HttpBody body) Constructor with a response body.Processing(HttpBody body) Constructor with a response body.ResetContent(HttpBody body) Constructor with a response body.Constructor with a response body.SwitchingProtocols(HttpBody body) Constructor with a response body.TemporaryRedirect(HttpBody body) Constructor with a response body.Constructor with a response body. -
Uses of HttpBody in org.apache.juneau.rest.client
Classes in org.apache.juneau.rest.client that implement HttpBodyModifier and TypeClassDescriptionfinal classA streaming HTTP request body that emits its content through a token/record-streaming cursor.final classA repeatableHttpBodythat serializes a POJO straight to the transport output stream.Methods in org.apache.juneau.rest.client with parameters of type HttpBodyModifier and TypeMethodDescriptionSets the request body directly from anHttpBody.static TransportBodyWraps the givenHttpBodyas aTransportBody.