Class NonAuthoritiveInformation.Unmodifiable
java.lang.Object
org.apache.juneau.http.classic.response.BasicHttpResponse<NonAuthoritiveInformation>
org.apache.juneau.http.classic.response.NonAuthoritiveInformation
org.apache.juneau.http.classic.response.NonAuthoritiveInformation.Unmodifiable
- All Implemented Interfaces:
HttpMessage,HttpResponse,UnmodifiableBean
- Enclosing class:
- NonAuthoritiveInformation
public static class NonAuthoritiveInformation.Unmodifiable
extends NonAuthoritiveInformation
implements UnmodifiableBean
Unmodifiable point-in-time snapshot of the enclosing
NonAuthoritiveInformation response.
Its only behavioral override is modify(Runnable), which throws — because all mutation is funneled through
modify(...), this single override freezes the entire mutation surface.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.http.classic.response.NonAuthoritiveInformation
NonAuthoritiveInformation.Unmodifiable -
Field Summary
Fields inherited from class org.apache.juneau.http.classic.response.NonAuthoritiveInformation
INSTANCE, REASON_PHRASE, STATUS_CODE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiable(NonAuthoritiveInformation copyFrom) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected NonAuthoritiveInformationSingle mutation funnel — the only choke-point through which all state changes on this bean flow.Methods inherited from class org.apache.juneau.http.classic.response.NonAuthoritiveInformation
copy, unmodifiableMethods inherited from class org.apache.juneau.http.classic.response.BasicHttpResponse
addHeader, addHeader, assertStatusCode, containsHeader, equals, freeze, getAllHeaders, getEntity, getFirstHeader, getHeaders, getHeaders, getLastHeader, getLocale, getParams, getProtocolVersion, getStatusLine, hashCode, headerIterator, headerIterator, isUnmodifiable, removeHeader, removeHeaders, self, setContent, setContent, setEntity, setHeader, setHeader, setHeader2, setHeader2, setHeaders, setHeaders, setHeaders, setHeaders2, setLocale, setLocale2, setLocation, setLocation, setParams, setProtocolVersion, setReasonPhrase, setReasonPhrase2, setReasonPhraseCatalog, setStatusCode, setStatusCode2, setStatusLine, setStatusLine, setStatusLine, setStatusLine, toString
-
Constructor Details
-
Unmodifiable
Constructor.- Parameters:
copyFrom- The response to snapshot. Must not benull .
-
-
Method Details
-
modify
Description copied from class:BasicHttpResponseSingle mutation funnel — the only choke-point through which all state changes on this bean flow.Every mutator (fluent setter and
voidinterface mutator) routes through this method. The nestedUnmodifiablesnapshot overrides only this method to throw, which freezes the entire mutation surface with a single override.- Overrides:
modifyin classBasicHttpResponse<NonAuthoritiveInformation>- Parameters:
mutation- The state change to apply.- Returns:
- This object.
-