Package org.apache.juneau.http.response
Class NonAuthoritativeInformation.Unmodifiable
java.lang.Object
org.apache.juneau.http.response.BasicHttpResponse<NonAuthoritativeInformation>
org.apache.juneau.http.response.NonAuthoritativeInformation
org.apache.juneau.http.response.NonAuthoritativeInformation.Unmodifiable
- All Implemented Interfaces:
HttpResponseMessage,UnmodifiableBean
- Enclosing class:
- NonAuthoritativeInformation
public static class NonAuthoritativeInformation.Unmodifiable
extends NonAuthoritativeInformation
implements UnmodifiableBean
Unmodifiable point-in-time snapshot of the enclosing
NonAuthoritativeInformation 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.response.NonAuthoritativeInformation
NonAuthoritativeInformation.Unmodifiable -
Field Summary
Fields inherited from class org.apache.juneau.http.response.NonAuthoritativeInformation
INSTANCE, REASON_PHRASE, STATUS_CODE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiable(NonAuthoritativeInformation copyFrom) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected NonAuthoritativeInformationSingle mutation funnel — the only choke-point through which all state changes on this bean flow.Methods inherited from class org.apache.juneau.http.response.NonAuthoritativeInformation
unmodifiableMethods inherited from class org.apache.juneau.http.response.BasicHttpResponse
addHeader, addHeader, equals, freeze, getBody, getHeaders, getLocale, getStatusCode, getStatusLine, hashCode, isUnmodifiable, self, setBody, setContent, setContent, setHeader, setHeader, setHeaders, setHeaders, setLocale, setLocation, setLocation, setProtocolVersion, setReasonPhrase, setStatusCode, setStatusLine, toString, withBody, withBody, withHeader, withHeaderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.juneau.http.response.HttpResponseMessage
getFirstHeader, getHeaders
-
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 fluent setter routes through this method. The nested
Unmodifiablesnapshot overrides only this method to throw, which freezes the entire mutation surface with a single override.- Overrides:
modifyin classBasicHttpResponse<NonAuthoritativeInformation>- Parameters:
mutation- The state change to apply.- Returns:
- This object.
-