Class HttpStatus
java.lang.Object
de.captaingoldfish.scim.sdk.common.constants.HttpStatus
author Pascal Knueppel
created at: 28.09.2019 - 11:37
this class holds the relevant http status codes that we need here
created at: 28.09.2019 - 11:37
this class holds the relevant http status codes that we need here
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisResponseSuccessful(HttpMethod httpMethod, int status) checks if the response operation indicates success or failure
-
Field Details
-
OK
public static final int OK- See Also:
-
CREATED
public static final int CREATED- See Also:
-
NO_CONTENT
public static final int NO_CONTENT- See Also:
-
MOVED_PERMANENTLY
public static final int MOVED_PERMANENTLY- See Also:
-
MOVED_TEMPORARILY
public static final int MOVED_TEMPORARILY- See Also:
-
NOT_MODIFIED
public static final int NOT_MODIFIED- See Also:
-
BAD_REQUEST
public static final int BAD_REQUEST- See Also:
-
UNAUTHORIZED
public static final int UNAUTHORIZED- See Also:
-
FORBIDDEN
public static final int FORBIDDEN- See Also:
-
NOT_FOUND
public static final int NOT_FOUND- See Also:
-
METHOD_NOT_ALLOWED
public static final int METHOD_NOT_ALLOWED- See Also:
-
NOT_ACCEPTABLE
public static final int NOT_ACCEPTABLE- See Also:
-
CONFLICT
public static final int CONFLICT- See Also:
-
PRECONDITION_FAILED
public static final int PRECONDITION_FAILED- See Also:
-
REQUEST_TOO_LONG
public static final int REQUEST_TOO_LONG- See Also:
-
REQUEST_URI_TOO_LONG
public static final int REQUEST_URI_TOO_LONG- See Also:
-
UNSUPPORTED_MEDIA_TYPE
public static final int UNSUPPORTED_MEDIA_TYPE- See Also:
-
INTERNAL_SERVER_ERROR
public static final int INTERNAL_SERVER_ERROR- See Also:
-
NOT_IMPLEMENTED
public static final int NOT_IMPLEMENTED- See Also:
-
-
Method Details
-
isResponseSuccessful
checks if the response operation indicates success or failure- Parameters:
op- the response operation from the remote server- Returns:
- true if the operation seems to be successful, false else
-