Class JsonRequest
java.lang.Object
org.eclipse.scout.rt.ui.html.json.JsonRequest
- Direct Known Subclasses:
JsonStartupRequest
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ThreadLocal<JsonRequest>
TheJsonRequest
which is currently associated with the current thread.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
ConstructorDescriptionJsonRequest
(JSONObject request) Creates a new (validated) JsonRequest instance. -
Method Summary
Modifier and TypeMethodDescriptiongetEvent()
protected JSONObject
Returns the type of theJsonRequest
, and is nevernull
.toString()
protected void
validate
(JsonRequest.RequestType requestType, JSONObject request)
-
Field Details
-
CURRENT
TheJsonRequest
which is currently associated with the current thread. -
PROP_STARTUP
- See Also:
-
PROP_UNLOAD
- See Also:
-
PROP_LOG
- See Also:
-
PROP_POLL
- See Also:
-
PROP_CANCEL
- See Also:
-
PROP_PING
- See Also:
-
PROP_SYNC_RESPONSE_QUEUE
- See Also:
-
PROP_UI_SESSION_ID
- See Also:
-
PROP_EVENTS
- See Also:
-
PROP_EVENT
- See Also:
-
PROP_MESSAGE
- See Also:
-
PROP_SEQUENCE_NO
- See Also:
-
PROP_ACK_SEQUENCE_NO
- See Also:
-
-
Constructor Details
-
JsonRequest
Creates a new (validated) JsonRequest instance.- Throws:
org.eclipse.scout.rt.platform.util.Assertions.AssertionException
- if mandatory property 'uiSessionId' is not set for a request other than 'STARTUP' or 'PING' request.
-
-
Method Details
-
validate
-
getRequestObject
-
getUiSessionId
-
getEvents
-
getRequestType
Returns the type of theJsonRequest
, and is nevernull
. -
getEvent
- Returns:
- attribute
PROP_EVENT
(for typeJsonRequest.RequestType.LOG_REQUEST
)
-
getMessage
- Returns:
- attribute
PROP_MESSAGE
(for typeJsonRequest.RequestType.LOG_REQUEST
)
-
getAckSequenceNo
- Returns:
- The acknowledged response sequence number
-
getSequenceNo
- Returns:
- The sequence number of this request
-
toString
-