Class BasicHttpResponse

java.lang.Object
org.apache.juneau.http.response.BasicHttpResponse
All Implemented Interfaces:
HttpMessage, HttpResponse
Direct Known Subclasses:
Accepted, AlreadyReported, Continue, Created, EarlyHints, Found, IMUsed, MovedPermanently, MultipleChoices, MultiStatus, NoContent, NonAuthoritiveInformation, NotModified, Ok, PartialContent, PermanentRedirect, Processing, ResetContent, SeeOther, SwitchingProtocols, TemporaryRedirect, UseProxy

@BeanIgnore public class BasicHttpResponse extends Object implements HttpResponse
Basic implementation of the HttpResponse interface.

Although this class implements the various setters defined on the HttpResponse interface, it's in general going to be more efficient to set the status/headers/content of this bean through the builder.

If the unmodifiable flag is set on this bean, calls to the setters will throw UnsupportedOperationException exceptions.

Notes:
  • Beans are not thread safe unless they're marked as unmodifiable.
See Also: