Class ByteArrayResource.Unmodifiable
java.lang.Object
org.apache.juneau.http.classic.resource.BasicResource<ByteArrayResource>
org.apache.juneau.http.classic.resource.ByteArrayResource
org.apache.juneau.http.classic.resource.ByteArrayResource.Unmodifiable
- All Implemented Interfaces:
HttpEntity,HttpResource,UnmodifiableBean
- Enclosing class:
- ByteArrayResource
public static class ByteArrayResource.Unmodifiable
extends ByteArrayResource
implements UnmodifiableBean
An unmodifiable snapshot of a
ByteArrayResource.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.http.classic.resource.ByteArrayResource
ByteArrayResource.Unmodifiable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ByteArrayResourceSingle mutation funnel for direct-field state changes on this bean.Methods inherited from class org.apache.juneau.http.classic.resource.ByteArrayResource
copy, unmodifiableMethods inherited from class org.apache.juneau.http.classic.resource.BasicResource
addHeader, addHeaders, asBytes, assertBytes, assertString, asString, consumeContent, copyFrom, freeze, getContent, getContentEncoding, getContentLength, getContentType, getEntity, getHeaders, isChunked, isRepeatable, isStreaming, isUnmodifiable, self, setCached, setChunked, setChunked, setContent, setContent, setContentEncoding, setContentEncoding, setContentLength, setContentType, setContentType, setHeader, setHeaders, setHeaders, writeTo
-
Constructor Details
-
Unmodifiable
Constructor.- Parameters:
copyFrom- The bean to snapshot-copy. Must not benull .
-
-
Method Details
-
modify
Description copied from class:BasicResourceSingle mutation funnel for direct-field state changes on this bean.Each leaf's nested
Unmodifiablesnapshot overrides this method to throw. Mutators that delegate to the entity or header sub-beans are frozen by theBasicResource.freeze()deep-freeze of those sub-beans; this funnel additionally covers the direct-fieldBasicResource.setHeaders(HeaderList)reassignment.- Overrides:
modifyin classBasicResource<ByteArrayResource>- Parameters:
mutation- The state change to apply.- Returns:
- This object.
-