Class JSONSuccessResponse

java.lang.Object
net.shibboleth.idp.plugin.oidc.op.messaging.JSONSuccessResponse
All Implemented Interfaces:
Message, Response, SuccessResponse

@Deprecated(since="4.2.0", forRemoval=true) public class JSONSuccessResponse extends Object implements SuccessResponse
Deprecated, for removal: This API element is subject to removal in a future version.
Class for creating JSON Success response.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    Deprecated, for removal: This API element is subject to removal in a future version.
    cache control value.
    private JSONObject
    Deprecated, for removal: This API element is subject to removal in a future version.
    JSON content.
    private String
    Deprecated, for removal: This API element is subject to removal in a future version.
    pragma value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor.
    JSONSuccessResponse(JSONObject contentObject, String cacheControlValue, String pragmaValue)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, 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.
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • content

      private JSONObject content
      Deprecated, for removal: This API element is subject to removal in a future version.
      JSON content.
    • cacheControl

      private String cacheControl
      Deprecated, for removal: This API element is subject to removal in a future version.
      cache control value.
    • pragma

      private String pragma
      Deprecated, for removal: This API element is subject to removal in a future version.
      pragma value.
  • Constructor Details

    • JSONSuccessResponse

      public JSONSuccessResponse(@Nonnull JSONObject contentObject)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor.
      Parameters:
      contentObject - JSON content. MUST not be null.
    • JSONSuccessResponse

      public JSONSuccessResponse(@Nonnull JSONObject contentObject, @Nullable String cacheControlValue, @Nullable String pragmaValue)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor.
      Parameters:
      contentObject - 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:
      indicatesSuccess in interface Response
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object
    • toHTTPResponse

      public HTTPResponse toHTTPResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toHTTPResponse in interface Response