Class NonAuthoritiveInformation
java.lang.Object
org.apache.juneau.http.classic.response.BasicHttpResponse<NonAuthoritiveInformation>
org.apache.juneau.http.classic.response.NonAuthoritiveInformation
- All Implemented Interfaces:
HttpMessage,HttpResponse
- Direct Known Subclasses:
NonAuthoritiveInformation.Unmodifiable
@Response
@StatusCode(203)
@Schema(description="Non-Authoritative Information")
public class NonAuthoritiveInformation
extends BasicHttpResponse<NonAuthoritiveInformation>
Represents an HTTP 203 Non-Authoritative Information response.
The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.
See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUnmodifiable point-in-time snapshot of the enclosingNonAuthoritiveInformationresponse. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NonAuthoritiveInformationDefault unmodifiable instancestatic final StringReason phrasestatic final intHTTP status code -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.NonAuthoritiveInformation(HttpResponse response) Constructor.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a builder for this class initialized with the contents of this bean.Returns an unmodifiable snapshot of this bean.Methods inherited from class org.apache.juneau.http.classic.response.BasicHttpResponse
addHeader, addHeader, assertStatusCode, containsHeader, equals, freeze, getAllHeaders, getEntity, getFirstHeader, getHeaders, getHeaders, getLastHeader, getLocale, getParams, getProtocolVersion, getStatusLine, hashCode, headerIterator, headerIterator, isUnmodifiable, modify, removeHeader, removeHeaders, self, setContent, setContent, setEntity, setHeader, setHeader, setHeader2, setHeader2, setHeaders, setHeaders, setHeaders, setHeaders2, setLocale, setLocale2, setLocation, setLocation, setParams, setProtocolVersion, setReasonPhrase, setReasonPhrase2, setReasonPhraseCatalog, setStatusCode, setStatusCode2, setStatusLine, setStatusLine, setStatusLine, setStatusLine, toString
-
Field Details
-
STATUS_CODE
HTTP status code- See Also:
-
REASON_PHRASE
Reason phrase- See Also:
-
INSTANCE
Default unmodifiable instance
-
-
Constructor Details
-
NonAuthoritiveInformation
public NonAuthoritiveInformation()Constructor. -
NonAuthoritiveInformation
Constructor.This is the constructor used when parsing an HTTP response.
- Parameters:
response- The HTTP response to copy from. Must not benull .- Throws:
IllegalArgumentException- If HTTP response status code does not match what was expected.
-
NonAuthoritiveInformation
Copy constructor.- Parameters:
copyFrom- The bean to copy from. Must not benull .
-
-
Method Details
-
copy
Creates a builder for this class initialized with the contents of this bean.- Returns:
- A new builder bean.
-
unmodifiable
Description copied from class:BasicHttpResponseReturns an unmodifiable snapshot of this bean.The returned instance is a point-in-time copy of the leaf's nested
Unmodifiabletype; any attempt to set a property on it throws anUnsupportedOperationException. This method is idempotent: if this bean is already unmodifiable it returns itself rather than taking another snapshot. The receiver is left unchanged (and still modifiable unless it was already unmodifiable).- Specified by:
unmodifiablein classBasicHttpResponse<NonAuthoritiveInformation>- Returns:
- An unmodifiable snapshot of this bean, or this bean if it is already unmodifiable.
-