Uses of Class
org.apache.juneau.http.resource.BasicResource
Packages that use BasicResource
-
Uses of BasicResource in org.apache.juneau.http.resource
Subclasses of BasicResource in org.apache.juneau.http.resourceModifier and TypeClassDescriptionclass
A repeatable resource that obtains its content from a byte array.class
A repeatable resource that obtains its content from aFile
.class
A streamed, non-repeatable resource that obtains its content from anReader
.class
A streamed, non-repeatable resource that obtains its content from anInputStream
.class
A self contained, repeatable resource that obtains its content from aString
.Methods in org.apache.juneau.http.resource that return BasicResourceModifier and TypeMethodDescriptionAppends the specified header to the end of the headers in this builder.BasicResource.addHeaders
(Header... values) Appends the specified headers to the end of the headers in this builder.BasicResource.copy()
Creates a builder for this class initialized with the contents of this bean.BasicResource.copyFrom
(HttpResponse response) Copies the contents of the specified HTTP response to this builder.BasicResource.setCached()
Specifies that the contents of this resource should be cached into an internal byte array so that it can be read multiple times.BasicResource.setChunked()
Sets the 'chunked' flag value totrue .BasicResource.setChunked
(boolean value) Sets the 'chunked' flag value.BasicResource.setContent
(Object value) Sets the content on this entity bean.BasicResource.setContent
(Supplier<?> value) Sets the content on this entity bean from a supplier.BasicResource.setContentEncoding
(String value) Sets the content encoding header on this entity bean.BasicResource.setContentEncoding
(ContentEncoding value) Sets the content encoding header on this entity bean.BasicResource.setContentLength
(long value) Sets the content length on this entity bean.BasicResource.setContentType
(String value) Sets the content type on this entity bean.BasicResource.setContentType
(ContentType value) Sets the content type on this entity bean.Sets the specified header in this builder.BasicResource.setHeaders
(Header... values) Sets the specified headers in this builder.BasicResource.setHeaders
(HeaderList value) Sets the specified headers in this builder.BasicResource.setUnmodifiable()
Specifies whether this bean should be unmodifiable.Methods in org.apache.juneau.http.resource that return types with arguments of type BasicResourceModifier and TypeMethodDescriptionBasicResource.assertBytes()
Returns an assertion on the contents of the entity of this resource.BasicResource.assertString()
Returns an assertion on the contents of the entity of this resource.Constructors in org.apache.juneau.http.resource with parameters of type BasicResource