Class FileResource.Unmodifiable
java.lang.Object
org.apache.juneau.http.classic.resource.BasicResource<FileResource>
org.apache.juneau.http.classic.resource.FileResource
org.apache.juneau.http.classic.resource.FileResource.Unmodifiable
- All Implemented Interfaces:
HttpEntity,HttpResource,UnmodifiableBean
- Enclosing class:
- FileResource
An unmodifiable snapshot of a
FileResource.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.http.classic.resource.FileResource
FileResource.Unmodifiable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FileResourceSingle mutation funnel for direct-field state changes on this bean.Methods inherited from class org.apache.juneau.http.classic.resource.FileResource
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<FileResource>- Parameters:
mutation- The state change to apply.- Returns:
- This object.
-