toggle menu
Wow
3.16.8
jvm
switch theme
search in API
wow-apiclient
/
me.ahoo.wow.apiclient.command
/
RestCommandGateway
Rest
Command
Gateway
interface
RestCommandGateway
<
RW
,
RB
>
Inheritors
ReactiveRestCommandGateway
SyncRestCommandGateway
Members
Types
Companion
Link copied to clipboard
object
Companion
Functions
send
Link copied to clipboard
open
fun
send
(
commandRequest
:
CommandRequest
)
:
RB
Send a command request.
@
PostExchange
abstract
fun
send
(
sendUri
:
URI
,
@
RequestHeader
(
value
=
"Command-Type"
,
required
=
false
)
commandType
:
String
,
@
RequestBody
command
:
Any
,
@
RequestHeader
(
value
=
"Command-Wait-Stage"
,
required
=
false
)
waitStage
:
CommandStage
=
CommandStage.PROCESSED
,
@
RequestHeader
(
value
=
"Command-Wait-Context"
,
required
=
false
)
waitContext
:
String
?
=
null
,
@
RequestHeader
(
value
=
"Command-Wait-Processor"
,
required
=
false
)
waitProcessor
:
String
?
=
null
,
@
RequestHeader
(
value
=
"Command-Wait-Timout"
,
required
=
false
)
waitTimeout
:
Long
?
=
null
,
@
RequestHeader
(
value
=
"Command-Tenant-Id"
,
required
=
false
)
tenantId
:
String
?
=
null
,
@
RequestHeader
(
value
=
"Command-Aggregate-Id"
,
required
=
false
)
aggregateId
:
String
?
=
null
,
@
RequestHeader
(
value
=
"Command-Aggregate-Version"
,
required
=
false
)
aggregateVersion
:
Int
?
=
null
,
@
RequestHeader
(
value
=
"Command-Request-Id"
,
required
=
false
)
requestId
:
String
?
=
null
,
@
RequestHeader
(
value
=
"Command-Local-First"
,
required
=
false
)
localFirst
:
Boolean
?
=
null
,
@
RequestHeader
(
value
=
"Command-Aggregate-Context"
,
required
=
false
)
context
:
String
?
=
null
,
@
RequestHeader
(
value
=
"Command-Aggregate-Name"
,
required
=
false
)
aggregate
:
String
?
=
null
)
:
RW
unwrap
Response
Link copied to clipboard
abstract
fun
unwrapResponse
(
commandRequest
:
CommandRequest
,
response
:
RW
)
:
RB