Class UltiCloudRequests
UltiCloudRequests.Outcome.PATH_NOT_ALLOWED.
Protocol 2.0.0 has no v1 REST cloud, so the two magic-link requests this class used to make
(POST /auth/magic-link and GET /auth/magic-link/poll) no longer reach anything and
are refused without opening a connection. The first such call in a run writes one INFO line that
names the replacement.
Replacement. UltiLogin 2.1.0 uses CloudPlayerLinks: the framework asks the
gateway for a one-time player link and the gateway reports how the web user proved the game
identity, so no module talks to a cloud endpoint itself and no module ever holds the server
credential.
Compatibility. Every public type and member of 6.3.0 is still present with the same
signatures; only behaviour and this documentation changed. As of 6.3.1 the class, its two calls
and its two nested types are deprecated for removal in 6.4.0. UltiLogin 2.0.0 maps
UltiCloudRequests.Outcome.PATH_NOT_ALLOWED to a link error and never retries, so its /panel fails in
the way it already handles.
Threading. The methods no longer perform network I/O, but they keep the 6.3.0 contract
and still refuse the server's primary thread with IllegalStateException; callers that
already hop to an asynchronous task keep working unchanged.
- Since:
- 6.3.0
- Scheduled removal version:
- 6.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version.There is no replacement:CloudPlayerLinksreports its own outcomes.static final classDeprecated, for removal: This API element is subject to removal in a future version.There is no replacement:CloudPlayerLinksreports its own outcomes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicBooleanDeprecated, for removal: This API element is subject to removal in a future version.private static final StringDeprecated, for removal: This API element is subject to removal in a future version.The request path UltiLogin 2.0.0 used to create a link.private static final LoggerDeprecated, for removal: This API element is subject to removal in a future version.private static final StringDeprecated, for removal: This API element is subject to removal in a future version.The request path UltiLogin 2.0.0 used to poll that link. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidannounceOnce(boolean removedCall) Deprecated, for removal: This API element is subject to removal in a future version.static UltiCloudRequests.ResultDeprecated, for removal: This API element is subject to removal in a future version.UseCloudPlayerLinks.create(com.ultikits.ultitools.abstracts.UltiToolsPlugin, java.util.UUID, java.lang.String, com.ultikits.ultitools.websocket.CloudPlayerLinks.GameAuth, java.util.Set<com.ultikits.ultitools.websocket.CloudPlayerLinks.LinkProof>)to link a player; protocol 2.0.0 has no v1 REST cloud, so this call is always refused.static UltiCloudRequests.ResultDeprecated, for removal: This API element is subject to removal in a future version.UseCloudPlayerLinks.create(com.ultikits.ultitools.abstracts.UltiToolsPlugin, java.util.UUID, java.lang.String, com.ultikits.ultitools.websocket.CloudPlayerLinks.GameAuth, java.util.Set<com.ultikits.ultitools.websocket.CloudPlayerLinks.LinkProof>)to link a player; protocol 2.0.0 has no v1 REST cloud, so this call is always refused.private static voidDeprecated, for removal: This API element is subject to removal in a future version.(package private) static voidDeprecated, for removal: This API element is subject to removal in a future version.Drops the once-per-run announcement so a test can observe it again.
-
Field Details
-
LOGGER
Deprecated, for removal: This API element is subject to removal in a future version. -
CREATE_PATH
Deprecated, for removal: This API element is subject to removal in a future version.The request path UltiLogin 2.0.0 used to create a link.- See Also:
-
POLL_PATH
Deprecated, for removal: This API element is subject to removal in a future version.The request path UltiLogin 2.0.0 used to poll that link.- See Also:
-
ANNOUNCED
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
UltiCloudRequests
private UltiCloudRequests()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
post
@Deprecated(since="6.3.1", forRemoval=true) public static UltiCloudRequests.Result post(String path, String jsonBody) Deprecated, for removal: This API element is subject to removal in a future version.UseCloudPlayerLinks.create(com.ultikits.ultitools.abstracts.UltiToolsPlugin, java.util.UUID, java.lang.String, com.ultikits.ultitools.websocket.CloudPlayerLinks.GameAuth, java.util.Set<com.ultikits.ultitools.websocket.CloudPlayerLinks.LinkProof>)to link a player; protocol 2.0.0 has no v1 REST cloud, so this call is always refused. Removed in 6.4.0.AnswersUltiCloudRequests.Outcome.PATH_NOT_ALLOWEDwithout opening a connection; no request is made.- Parameters:
path- the request path; only the two removed magic-link paths write a diagnosticjsonBody- the JSON request body, ignored because nothing is sent- Returns:
UltiCloudRequests.Outcome.PATH_NOT_ALLOWEDwith no status code and no body- Throws:
IllegalStateException- if called on the server's primary thread- Scheduled removal version:
- 6.4.0
-
get
@Deprecated(since="6.3.1", forRemoval=true) public static UltiCloudRequests.Result get(String path, Map<String, String> query) Deprecated, for removal: This API element is subject to removal in a future version.UseCloudPlayerLinks.create(com.ultikits.ultitools.abstracts.UltiToolsPlugin, java.util.UUID, java.lang.String, com.ultikits.ultitools.websocket.CloudPlayerLinks.GameAuth, java.util.Set<com.ultikits.ultitools.websocket.CloudPlayerLinks.LinkProof>)to link a player; protocol 2.0.0 has no v1 REST cloud, so this call is always refused. Removed in 6.4.0.AnswersUltiCloudRequests.Outcome.PATH_NOT_ALLOWEDwithout opening a connection; no request is made.- Parameters:
path- the request path; only the two removed magic-link paths write a diagnosticquery- query parameters, ignored because nothing is sent- Returns:
UltiCloudRequests.Outcome.PATH_NOT_ALLOWEDwith no status code and no body- Throws:
IllegalStateException- if called on the server's primary thread- Scheduled removal version:
- 6.4.0
-
requireOffPrimaryThread
private static void requireOffPrimaryThread()Deprecated, for removal: This API element is subject to removal in a future version. -
announceOnce
private static void announceOnce(boolean removedCall) Deprecated, for removal: This API element is subject to removal in a future version. -
resetAnnouncementForTesting
static void resetAnnouncementForTesting()Deprecated, for removal: This API element is subject to removal in a future version.Drops the once-per-run announcement so a test can observe it again.
-
CloudPlayerLinksto link a player; protocol 2.0.0 has no v1 REST cloud, so every call of this class is refused. Removed in 6.4.0.