Package org.apache.juneau.http.response
Class Accepted
java.lang.Object
org.apache.juneau.http.response.BasicHttpResponse
org.apache.juneau.http.response.Accepted
- All Implemented Interfaces:
- HttpMessage,- HttpResponse
@Response
@StatusCode(202)
@Schema(description="Accepted")
public class Accepted
extends BasicHttpResponse
Represents an HTTP 202 Accepted  response.
 
The request has been accepted for processing, but the processing has not been completed. The request might or might not be eventually acted upon, and may be disallowed when processing occurs.
See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionAccepted()Constructor.Accepted(HttpResponse response) Constructor.Copy constructor.
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Creates a builder for this class initialized with the contents of this bean.setContent(String value) Sets the body on this response.setContent(HttpEntity value) Sets the body on this response.setHeader2(String name, String value) Sets the specified header to the end of the headers in this builder.setHeader2(Header value) Sets the specified header to the end of the headers in this builder.setHeaders(List<Header> values) Sets the specified headers to the end of the headers in this builder.setHeaders(HeaderList value) Sets the specified headers on this response.setHeaders2(Header... values) Sets the specified headers to the end of the headers in this builder.setLocale2(Locale value) Sets the locale used to retrieve reason phrases.setLocation(String value) Specifies the value for theLocation header.setLocation(URI value) Specifies the value for theLocation header.Sets the protocol version on the status line.setReasonPhrase2(String value) Sets the reason phrase on the status line.Sets the reason phrase catalog used to retrieve reason phrases.setStatusCode2(int value) Sets the status code on the status line.setStatusLine(BasicStatusLine value) Sets the protocol version on the status line.Specifies whether this bean should be unmodifiable.Methods inherited from class org.apache.juneau.http.response.BasicHttpResponseaddHeader, addHeader, assertModifiable, assertStatusCode, containsHeader, getAllHeaders, getEntity, getFirstHeader, getHeaders, getHeaders, getLastHeader, getLocale, getParams, getProtocolVersion, getStatusLine, headerIterator, headerIterator, isUnmodifiable, removeHeader, removeHeaders, setEntity, setHeader, setHeader, setHeaders, setLocale, setParams, setReasonPhrase, setStatusCode, setStatusLine, setStatusLine, setStatusLine, toString
- 
Field Details- 
STATUS_CODEHTTP status code- See Also:
 
- 
REASON_PHRASEReason phrase- See Also:
 
- 
INSTANCEDefault unmodifiable instance
 
- 
- 
Constructor Details- 
Acceptedpublic Accepted()Constructor.
- 
AcceptedCopy constructor.- Parameters:
- copyFrom- The bean to copy from.
 
- 
AcceptedConstructor.This is the constructor used when parsing an HTTP response. - Parameters:
- response- The HTTP response to copy from. Must not be- null .
- Throws:
- AssertionError- If HTTP response status code does not match what was expected.
 
 
- 
- 
Method Details- 
copyCreates a builder for this class initialized with the contents of this bean.- Returns:
- A new builder bean.
 
- 
setContentDescription copied from class:BasicHttpResponseSets the body on this response.- Overrides:
- setContentin class- BasicHttpResponse
- Parameters:
- value- The body on this response.
- Returns:
- This object.
 
- 
setContentDescription copied from class:BasicHttpResponseSets the body on this response.- Overrides:
- setContentin class- BasicHttpResponse
- Parameters:
- value- The body on this response.
- Returns:
- This object.
 
- 
setHeader2Description copied from class:BasicHttpResponseSets the specified header to the end of the headers in this builder.- Overrides:
- setHeader2in class- BasicHttpResponse
- Parameters:
- value- The header to add.- null values are ignored.
- Returns:
- This object.
 
- 
setHeader2Description copied from class:BasicHttpResponseSets the specified header to the end of the headers in this builder.- Overrides:
- setHeader2in class- BasicHttpResponse
- Parameters:
- name- The header name.
- value- The header value.
- Returns:
- This object.
 
- 
setHeadersDescription copied from class:BasicHttpResponseSets the specified headers to the end of the headers in this builder.- Overrides:
- setHeadersin class- BasicHttpResponse
- Parameters:
- values- The headers to add.- null values are ignored.
- Returns:
- This object.
 
- 
setHeadersDescription copied from class:BasicHttpResponseSets the specified headers on this response.- Overrides:
- setHeadersin class- BasicHttpResponse
- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
setHeaders2Description copied from class:BasicHttpResponseSets the specified headers to the end of the headers in this builder.- Overrides:
- setHeaders2in class- BasicHttpResponse
- Parameters:
- values- The headers to add.- null values are ignored.
- Returns:
- This object.
 
- 
setLocale2Description copied from class:BasicHttpResponseSets the locale used to retrieve reason phrases.If not specified, uses Locale.getDefault().- Overrides:
- setLocale2in class- BasicHttpResponse
- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
setLocationDescription copied from class:BasicHttpResponseSpecifies the value for theLocation header.- Overrides:
- setLocationin class- BasicHttpResponse
- Parameters:
- value- The new header location.
- Returns:
- This object.
 
- 
setLocationDescription copied from class:BasicHttpResponseSpecifies the value for theLocation header.- Overrides:
- setLocationin class- BasicHttpResponse
- Parameters:
- value- The new header location.
- Returns:
- This object.
 
- 
setProtocolVersionDescription copied from class:BasicHttpResponseSets the protocol version on the status line.If not specified, "HTTP/1.1" will be used.- Overrides:
- setProtocolVersionin class- BasicHttpResponse
- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
setReasonPhrase2Description copied from class:BasicHttpResponseSets the reason phrase on the status line.If not specified, the reason phrase will be retrieved from the reason phrase catalog using the locale on this builder. - Overrides:
- setReasonPhrase2in class- BasicHttpResponse
- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
setReasonPhraseCatalogDescription copied from class:BasicHttpResponseSets the reason phrase catalog used to retrieve reason phrases.If not specified, uses EnglishReasonPhraseCatalog.- Overrides:
- setReasonPhraseCatalogin class- BasicHttpResponse
- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
setStatusCode2Description copied from class:BasicHttpResponseSets the status code on the status line.If not specified, 0 will be used.- Overrides:
- setStatusCode2in class- BasicHttpResponse
- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
setStatusLineDescription copied from class:BasicHttpResponseSets the protocol version on the status line.If not specified, "HTTP/1.1" will be used.- Overrides:
- setStatusLinein class- BasicHttpResponse
- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
setUnmodifiableDescription copied from class:BasicHttpResponseSpecifies whether this bean should be unmodifiable.When enabled, attempting to set any properties on this bean will cause an UnsupportedOperationException.- Overrides:
- setUnmodifiablein class- BasicHttpResponse
- Returns:
- This object.
 
 
-