Enum ExceptionConverter.AdditionalStatus
- java.lang.Object
-
- java.lang.Enum<ExceptionConverter.AdditionalStatus>
-
- com.atlassian.confluence.rest.api.model.ExceptionConverter.AdditionalStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ExceptionConverter.AdditionalStatus>,javax.ws.rs.core.Response.StatusType
- Enclosing class:
- ExceptionConverter
public static enum ExceptionConverter.AdditionalStatus extends Enum<ExceptionConverter.AdditionalStatus> implements javax.ws.rs.core.Response.StatusType
Response.StatusTypes for HTTP response codes not supported directly byResponse.Status.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description READ_ONLY_MODE_ENABLEDREQUEST_TOO_LONG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response.Status.FamilygetFamily()Get the class of status codeStringgetReasonPhrase()Get the reason phraseintgetStatusCode()Get the associated status codeStringtoString()Get the reason phrasestatic ExceptionConverter.AdditionalStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ExceptionConverter.AdditionalStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ_ONLY_MODE_ENABLED
public static final ExceptionConverter.AdditionalStatus READ_ONLY_MODE_ENABLED
-
REQUEST_TOO_LONG
public static final ExceptionConverter.AdditionalStatus REQUEST_TOO_LONG
-
-
Method Detail
-
values
public static ExceptionConverter.AdditionalStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExceptionConverter.AdditionalStatus c : ExceptionConverter.AdditionalStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExceptionConverter.AdditionalStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getFamily
public javax.ws.rs.core.Response.Status.Family getFamily()
Get the class of status code- Specified by:
getFamilyin interfacejavax.ws.rs.core.Response.StatusType- Returns:
- the class of status code
-
getStatusCode
public int getStatusCode()
Get the associated status code- Specified by:
getStatusCodein interfacejavax.ws.rs.core.Response.StatusType- Returns:
- the status code
-
getReasonPhrase
public String getReasonPhrase()
Get the reason phrase- Specified by:
getReasonPhrasein interfacejavax.ws.rs.core.Response.StatusType- Returns:
- the reason phrase
-
toString
public String toString()
Get the reason phrase- Overrides:
toStringin classEnum<ExceptionConverter.AdditionalStatus>- Returns:
- the reason phrase
-
-