Package app.l2nx.gs.adapter.core.connect
Class TypedConnectOutcome<R>
java.lang.Object
app.l2nx.gs.adapter.core.connect.TypedConnectOutcome<R>
- Type Parameters:
R- typed response DTO (e.g.ConnectResponse,LoginServerConnectResponse)
Outcome of one
HostConnectFlow.connect() attempt. Parameterized on
the host-type response DTO so the same shape carries both gameserver and
login-server responses.
Three shapes:
ok(Object)— HTTP 200 + parsed response body.httpError(int, ErrorEnvelope)— HTTP 4xx / 5xx with optional typed envelope.ioFailure(IOException)— transport failure or malformed 200 body.
-
Method Summary
Modifier and TypeMethodDescriptiongetError()intstatic <R> TypedConnectOutcome<R>httpError(int statusCode, ErrorEnvelope envelope) static <R> TypedConnectOutcome<R>booleanstatic <R> TypedConnectOutcome<R>ok(R response)
-
Method Details
-
ok
-
httpError
-
ioFailure
-
getStatusCode
public int getStatusCode() -
getResponse
-
getError
-
getIoException
-
isIoFailure
public boolean isIoFailure()
-