Package org.apache.juneau.http.response
Class RequestHeaderFieldsTooLarge.Unmodifiable
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.http.response.BasicHttpException
org.apache.juneau.http.response.RequestHeaderFieldsTooLarge
org.apache.juneau.http.response.RequestHeaderFieldsTooLarge.Unmodifiable
- All Implemented Interfaces:
Serializable,HttpResponseMessage,UnmodifiableBean
- Enclosing class:
- RequestHeaderFieldsTooLarge
public static class RequestHeaderFieldsTooLarge.Unmodifiable
extends RequestHeaderFieldsTooLarge
implements UnmodifiableBean
Unmodifiable point-in-time snapshot of the enclosing
RequestHeaderFieldsTooLarge 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.response.RequestHeaderFieldsTooLarge
RequestHeaderFieldsTooLarge.Unmodifiable -
Field Summary
Fields inherited from class org.apache.juneau.http.response.RequestHeaderFieldsTooLarge
REASON_PHRASE, STATUS_CODE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiable(RequestHeaderFieldsTooLarge 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.response.RequestHeaderFieldsTooLarge
unmodifiableMethods inherited from class org.apache.juneau.http.response.BasicHttpException
addHeader, addHeader, equals, freeze, getBody, getFullStackMessage, getHeaders, getLocale, getMessage, getRootCause, getStatusCode, getStatusLine, hashCode, isUnmodifiable, setBody, setContent, setContent, setHeader, setHeader, setHeaders, setHeaders, setLocale, setProtocolVersion, setReasonPhrase, setStatusCode, setStatusLine, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceMethods 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 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 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. 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.
-