Class UltiCloudRequests.Result

java.lang.Object
com.ultikits.ultitools.utils.UltiCloudRequests.Result
Enclosing class:
UltiCloudRequests

@Deprecated(since="6.3.1", forRemoval=true) public static final class UltiCloudRequests.Result extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
There is no replacement: CloudPlayerLinks reports its own outcomes. Removed in 6.4.0 with UltiCloudRequests.
The result of one call: an UltiCloudRequests.Outcome, and for a completed exchange its status and body. Carries no request header and no credential.
Since:
6.3.0
Scheduled removal version:
6.4.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    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.
     
    private final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Result(UltiCloudRequests.Outcome outcome, int statusCode, String body)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
     
    int
    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

    • outcome

      private final UltiCloudRequests.Outcome outcome
      Deprecated, for removal: This API element is subject to removal in a future version.
    • statusCode

      private final int statusCode
      Deprecated, for removal: This API element is subject to removal in a future version.
    • body

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

    • Result

      private Result(UltiCloudRequests.Outcome outcome, int statusCode, String body)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • withoutExchange

      private static UltiCloudRequests.Result withoutExchange(UltiCloudRequests.Outcome outcome)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOutcome

      public UltiCloudRequests.Outcome getOutcome()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      what happened; never null
    • getStatusCode

      public int getStatusCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the HTTP status code, or -1 when no HTTP exchange completed
    • getBody

      public String getBody()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the response body as UTF-8 text, or null when no HTTP exchange completed
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object
      Returns:
      the outcome and status only -- never the body, a header or a credential