Package org.apache.juneau.http.response
Class HttpVersionNotSupported.Unmodifiable
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.http.response.BasicHttpException
org.apache.juneau.http.response.HttpVersionNotSupported
org.apache.juneau.http.response.HttpVersionNotSupported.Unmodifiable
- All Implemented Interfaces:
Serializable,HttpResponseMessage,UnmodifiableBean
- Enclosing class:
- HttpVersionNotSupported
public static class HttpVersionNotSupported.Unmodifiable
extends HttpVersionNotSupported
implements UnmodifiableBean
Unmodifiable point-in-time snapshot of the enclosing
HttpVersionNotSupported 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.HttpVersionNotSupported
HttpVersionNotSupported.Unmodifiable -
Field Summary
Fields inherited from class org.apache.juneau.http.response.HttpVersionNotSupported
REASON_PHRASE, STATUS_CODE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiable(HttpVersionNotSupported 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.HttpVersionNotSupported
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.
-