Class JSONErrorResponse
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.messaging.JSONErrorResponse
- All Implemented Interfaces:
ErrorResponse,Message,Response
@Deprecated(since="4.2.0",
forRemoval=true)
public class JSONErrorResponse
extends Object
implements ErrorResponse
Deprecated, for removal: This API element is subject to removal in a future version.
Class for creating JSON Error response for requests expecting JSON response.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDeprecated, for removal: This API element is subject to removal in a future version.cache control value.private ErrorObjectDeprecated, for removal: This API element is subject to removal in a future version.Error object.private StringDeprecated, for removal: This API element is subject to removal in a future version.pragma value. -
Constructor Summary
ConstructorsConstructorDescriptionJSONErrorResponse(ErrorObject errorObject) Deprecated, for removal: This API element is subject to removal in a future version.Constructor.JSONErrorResponse(ErrorObject errorObject, String cacheControlValue, String pragmaValue) Deprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprivate StringDeprecated, for removal: This API element is subject to removal in a future version.Error content as json.Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
error
Deprecated, for removal: This API element is subject to removal in a future version.Error object. -
cacheControl
Deprecated, for removal: This API element is subject to removal in a future version.cache control value. -
pragma
Deprecated, for removal: This API element is subject to removal in a future version.pragma value.
-
-
Constructor Details
-
JSONErrorResponse
Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
errorObject- error. MUST not be null.
-
JSONErrorResponse
public JSONErrorResponse(@Nonnull ErrorObject errorObject, @Nullable String cacheControlValue, @Nullable String pragmaValue) Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
errorObject- JSON content.cacheControlValue- cache control value.pragmaValue- pragma value.
-
-
Method Details
-
indicatesSuccess
public boolean indicatesSuccess()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
indicatesSuccessin interfaceResponse
-
getContent
Deprecated, for removal: This API element is subject to removal in a future version.Error content as json.- Returns:
- error as json.
-
toHTTPResponse
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toHTTPResponsein interfaceResponse
-
getErrorObject
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getErrorObjectin interfaceErrorResponse
-