Package org.apache.juneau.http
Class BasicStatusLine
java.lang.Object
org.apache.juneau.http.BasicStatusLine
- All Implemented Interfaces:
- StatusLine
- 
Constructor SummaryConstructorsModifierConstructorDescriptionConstructor.protectedBasicStatusLine(BasicStatusLine copyFrom) Copy constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected final voidThrows anUnsupportedOperationExceptionif the unmodifiable flag is set on this bean.copy()Returns a copy of this bean.static BasicStatusLinecreate()Instantiates a new instance of this bean.static BasicStatusLineInstantiates a new instance of this bean.Returns the locale of this status line.intSets the locale used to retrieve reason phrases.Sets the protocol version on the status line.setReasonPhrase(String value) Sets the reason phrase on the status line.Sets the reason phrase catalog used to retrieve reason phrases.setStatusCode(int value) Sets the status code on the status line.Specifies whether this bean should be unmodifiable.toString()
- 
Constructor Details- 
BasicStatusLinepublic BasicStatusLine()Constructor.
- 
BasicStatusLineCopy constructor.- Parameters:
- copyFrom- The status line being copied.
 
 
- 
- 
Method Details- 
createInstantiates a new instance of this bean.- Returns:
- A new bean.
 
- 
createInstantiates a new instance of this bean.- Parameters:
- statusCode- The initial status code.
- reasonPhrase- The initial reason phrase.
- Returns:
- A new bean.
 
- 
copyReturns a copy of this bean.- Returns:
- A copy of this bean.
 
- 
setUnmodifiableSpecifies whether this bean should be unmodifiable.When enabled, attempting to set any properties on this bean will cause an UnsupportedOperationException.- Returns:
- This object.
 
- 
assertModifiableThrows anUnsupportedOperationExceptionif the unmodifiable flag is set on this bean.
- 
getProtocolVersion- Specified by:
- getProtocolVersionin interface- StatusLine
 
- 
setProtocolVersionSets the protocol version on the status line.If not specified, "HTTP/1.1" will be used.- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
getStatusCode- Specified by:
- getStatusCodein interface- StatusLine
 
- 
setStatusCodeSets the status code on the status line.If not specified, 0 will be used.- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
getReasonPhrase- Specified by:
- getReasonPhrasein interface- StatusLine
 
- 
setReasonPhraseSets 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 bean. - Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
setReasonPhraseCatalogSets the reason phrase catalog used to retrieve reason phrases.If not specified, uses EnglishReasonPhraseCatalog.- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
getLocaleReturns the locale of this status line.- Returns:
- The locale of this status line.
 
- 
setLocaleSets the locale used to retrieve reason phrases.If not specified, uses Locale.getDefault().- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
toString
 
-