Class ErrorResponse
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializable.Base
-
- com.fasterxml.jackson.databind.JsonNode
-
- com.fasterxml.jackson.databind.node.BaseJsonNode
-
- com.fasterxml.jackson.databind.node.ContainerNode<com.fasterxml.jackson.databind.node.ObjectNode>
-
- com.fasterxml.jackson.databind.node.ObjectNode
-
- de.captaingoldfish.scim.sdk.common.resources.base.ScimObjectNode
-
- de.captaingoldfish.scim.sdk.common.resources.AbstractSchemasHolder
-
- de.captaingoldfish.scim.sdk.common.response.ScimResponse
-
- de.captaingoldfish.scim.sdk.common.response.ErrorResponse
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.TreeNode,com.fasterxml.jackson.databind.JsonSerializable,com.fasterxml.jackson.databind.node.JsonNodeCreator,ScimNode,Serializable,Iterable<com.fasterxml.jackson.databind.JsonNode>
public class ErrorResponse extends ScimResponse
author Pascal Knueppel
created at: 14.10.2019 - 20:58
represents a SCIM error response- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse(com.fasterxml.jackson.databind.JsonNode responseNode)ErrorResponse(ScimException scimException)ErrorResponse(ScimException scimException, boolean useDetailMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getDetail()A detailed human-readable message.intgetHttpStatus()the http status code of the responseOptional<String>getScimType()A SCIM detail error keyword.intgetStatus()The HTTP status code (see Section 6 of [RFC7231]) expressed as a JSON string.voidsetDetail(String detail)A detailed human-readable message.voidsetScimType(String scimType)A SCIM detail error keyword.voidsetStatus(int status)The HTTP status code (see Section 6 of [RFC7231]) expressed as a JSON string.StringtoPrettyString()override method for usage with wildfly 18 that still uses jackson 2.9.xStringtoString()override method for usage with wildfly 18 that still uses jackson 2.9.x-
Methods inherited from class de.captaingoldfish.scim.sdk.common.response.ScimResponse
buildResponse, setETag
-
Methods inherited from class de.captaingoldfish.scim.sdk.common.resources.AbstractSchemasHolder
addSchema, getSchemas, removeSchema, setSchemas, setSchemas
-
Methods inherited from class de.captaingoldfish.scim.sdk.common.resources.base.ScimObjectNode
addAttribute, getArrayAttribute, getBooleanAttribute, getDateTimeAttribute, getDoubleAttribute, getIntegerAttribute, getLongAttribute, getObjectAttribute, getSimpleArrayAttribute, getSimpleArrayAttribute, getSimpleArrayAttributeSet, getSimpleArrayAttributeSet, getStringAttribute, getStringAttribute, isEmpty, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeList, setDateTimeAttribute, setDateTimeAttribute, setDateTimeAttribute, setDateTimeAttribute, setStringAttributeList, setStringAttributeList
-
Methods inherited from class com.fasterxml.jackson.databind.node.ObjectNode
_at, _childrenEqual, _put, asToken, deepCopy, elements, equals, equals, fieldNames, fields, findParent, findParents, findValue, findValues, findValuesAsText, get, get, getNodeType, hashCode, isEmpty, isObject, path, path, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, putArray, putNull, putObject, putPOJO, putRawValue, remove, remove, removeAll, replace, required, retain, retain, serialize, serializeWithType, set, setAll, setAll, size, with, withArray, without, without
-
Methods inherited from class com.fasterxml.jackson.databind.node.ContainerNode
arrayNode, arrayNode, asText, binaryNode, binaryNode, booleanNode, missingNode, nullNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, objectNode, pojoNode, rawValueNode, textNode
-
Methods inherited from class com.fasterxml.jackson.databind.node.BaseJsonNode
findPath, numberType, required, traverse, traverse
-
Methods inherited from class com.fasterxml.jackson.databind.JsonNode
_reportRequiredViolation, _this, asBoolean, asBoolean, asDouble, asDouble, asInt, asInt, asLong, asLong, asText, at, at, bigIntegerValue, binaryValue, booleanValue, canConvertToExactIntegral, canConvertToInt, canConvertToLong, decimalValue, doubleValue, findParents, findValues, findValuesAsText, floatValue, has, has, hasNonNull, hasNonNull, intValue, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isContainerNode, isDouble, isFloat, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isPojo, isShort, isTextual, isValueNode, iterator, longValue, numberValue, require, requiredAt, requiredAt, requireNonNull, shortValue, textValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface de.captaingoldfish.scim.sdk.common.resources.base.ScimNode
getAttributeDescription, getAttributeName, getCanonicalValues, getMutability, getReferenceTypes, getReturned, getSchemaAttribute, getScimNodeName, getUniqueness, getValueType, isCaseExact, isMultiValued, isRequired
-
-
-
-
Constructor Detail
-
ErrorResponse
public ErrorResponse(com.fasterxml.jackson.databind.JsonNode responseNode)
-
ErrorResponse
public ErrorResponse(ScimException scimException)
-
ErrorResponse
public ErrorResponse(ScimException scimException, boolean useDetailMessage)
-
-
Method Detail
-
getStatus
public int getStatus()
The HTTP status code (see Section 6 of [RFC7231]) expressed as a JSON string. REQUIRED.
-
setStatus
public void setStatus(int status)
The HTTP status code (see Section 6 of [RFC7231]) expressed as a JSON string. REQUIRED.
-
getScimType
public Optional<String> getScimType()
A SCIM detail error keyword. See Table 9. OPTIONAL.
-
setScimType
public void setScimType(String scimType)
A SCIM detail error keyword. See Table 9. OPTIONAL.
-
setDetail
public void setDetail(String detail)
A detailed human-readable message. OPTIONAL.
-
getHttpStatus
public int getHttpStatus()
the http status code of the response- Specified by:
getHttpStatusin classScimResponse
-
toString
public String toString()
Description copied from class:ScimObjectNodeoverride method for usage with wildfly 18 that still uses jackson 2.9.x- Overrides:
toStringin classScimObjectNode
-
toPrettyString
public String toPrettyString()
Description copied from class:ScimObjectNodeoverride method for usage with wildfly 18 that still uses jackson 2.9.x- Overrides:
toPrettyStringin classScimObjectNode
-
-