Class RangeNotSatisfiable.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.RangeNotSatisfiable
org.apache.juneau.http.classic.response.RangeNotSatisfiable.Unmodifiable
- All Implemented Interfaces:
Serializable,HttpMessage,HttpResponse,UnmodifiableBean
- Enclosing class:
- RangeNotSatisfiable
public static class RangeNotSatisfiable.Unmodifiable
extends RangeNotSatisfiable
implements UnmodifiableBean
Unmodifiable point-in-time snapshot of the enclosing
RangeNotSatisfiable 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.RangeNotSatisfiable
RangeNotSatisfiable.Unmodifiable -
Field Summary
Fields inherited from class org.apache.juneau.http.classic.response.RangeNotSatisfiable
INSTANCE, REASON_PHRASE, STATUS_CODE -
Constructor Summary
Constructors -
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.RangeNotSatisfiable
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
-
Unmodifiable
Constructor.- Parameters:
copyFrom- The exception to snapshot. Must not benull .
-
-
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.
-