Package org.apache.juneau.http.classic
Class BasicStatusLine.Unmodifiable
java.lang.Object
org.apache.juneau.http.classic.BasicStatusLine
org.apache.juneau.http.classic.BasicStatusLine.Unmodifiable
- All Implemented Interfaces:
StatusLine,UnmodifiableBean
- Enclosing class:
- BasicStatusLine
public static class BasicStatusLine.Unmodifiable
extends BasicStatusLine
implements UnmodifiableBean
An unmodifiable point-in-time snapshot of a
BasicStatusLine.
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.classic.BasicStatusLine
BasicStatusLine.Unmodifiable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicStatusLineSingle mutation funnel — the only choke-point through which all state changes on this bean flow.Methods inherited from class org.apache.juneau.http.classic.BasicStatusLine
copy, create, create, equals, freeze, getLocale, getProtocolVersion, getReasonPhrase, getStatusCode, hashCode, isUnmodifiable, setLocale, setProtocolVersion, setReasonPhrase, setReasonPhraseCatalog, setStatusCode, toString, unmodifiable
-
Constructor Details
-
Unmodifiable
Constructor.- Parameters:
copyFrom- The status line to snapshot. Must not benull .
-
-
Method Details
-
modify
Description copied from class:BasicStatusLineSingle mutation funnel — the only choke-point through which all state changes on this bean flow.Every mutator routes through this method. The
BasicStatusLine.Unmodifiablesnapshot overrides only this method to throw, which freezes the entire mutation surface with a single override.- Overrides:
modifyin classBasicStatusLine- Parameters:
mutation- The state change to apply.- Returns:
- This object.
-