Class UnavailableForLegalReasons.Unmodifiable
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.commons.BasicRuntimeException
org.apache.juneau.marshall.BasicRuntimeException
org.apache.juneau.http.classic.response.BasicHttpException
org.apache.juneau.http.classic.response.UnavailableForLegalReasons
org.apache.juneau.http.classic.response.UnavailableForLegalReasons.Unmodifiable
- All Implemented Interfaces:
Serializable,HttpMessage,HttpResponse,UnmodifiableBean
- Enclosing class:
- UnavailableForLegalReasons
public static class UnavailableForLegalReasons.Unmodifiable
extends UnavailableForLegalReasons
implements UnmodifiableBean
Unmodifiable point-in-time snapshot of the enclosing
UnavailableForLegalReasons exception.
Its only behavioral override is modify(Runnable), which throws — because all mutation is funneled through
modify(...), this single override freezes the entire mutation surface.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.http.classic.response.UnavailableForLegalReasons
UnavailableForLegalReasons.Unmodifiable -
Field Summary
Fields inherited from class org.apache.juneau.http.classic.response.UnavailableForLegalReasons
INSTANCE, REASON_PHRASE, STATUS_CODE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiable(UnavailableForLegalReasons copyFrom) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicHttpExceptionSingle 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.UnavailableForLegalReasons
copy, setContent, setContent, setHeader2, setHeaders, setHeaders, setHeaders2, setLocale2, setMessage, setProtocolVersion, setReasonPhrase2, setReasonPhraseCatalog, setStatusCode2, setStatusLine, unmodifiableMethods inherited from class org.apache.juneau.http.classic.response.BasicHttpException
addHeader, addHeader, assertStatusCode, containsHeader, equals, freeze, getAllHeaders, getEntity, getFirstHeader, getFullStackMessage, getHeaders, getHeaders, getLastHeader, getLocale, getMessage, getParams, getProtocolVersion, getRootCause, getStatusLine, hashCode, headerIterator, headerIterator, isUnmodifiable, removeHeader, removeHeaders, setEntity, setHeader, setHeader, setHeaders, setLocale, setParams, setReasonPhrase, setStatusCode, setStatusLine, setStatusLine, setStatusLine, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
Method Details
-
modify
Description copied from class:BasicHttpExceptionSingle 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. Because this is aThrowable-rooted hierarchy (no CRTP self-type), the funnel returns the base type.- Overrides:
modifyin classBasicHttpException- Parameters:
mutation- The state change to apply.- Returns:
- This object.
-