http-rpc-client
Module Contents
alltypes
Module Contents
interface
AuthenticationConfig
Module Contents
abstract
fun
createScheme
(
)
:
AuthenticationScheme
abstract
fun
getCredentialsProvider
(
)
:
CredentialsProvider
interface
AuthenticationScheme
Module Contents
abstract
fun
authenticate
(
credentials
:
Any
,
request
:
HttpRequest
<
*
>
,
context
:
RequestContext
)
:
Unit
data
class
BasicAuthCredentials
:
CredentialsProvider
Module Contents
BasicAuthCredentials
(
username
:
String
,
password
:
String
)
fun
getCredentials
(
)
:
Any
val
password
:
String
val
username
:
String
class
BasicAuthenticationScheme
:
AuthenticationScheme
Module Contents
BasicAuthenticationScheme
(
)
fun
authenticate
(
credentials
:
Any
,
request
:
HttpRequest
<
*
>
,
context
:
RequestContext
)
:
Unit
data
class
BearerTokenCredentials
Module Contents
BearerTokenCredentials
(
token
:
String
)
val
token
:
String
data
class
BearerTokenCredentialsProvider
:
CredentialsProvider
Module Contents
BearerTokenCredentialsProvider
(
tokenProvider
:
BearerTokenProvider
)
fun
getCredentials
(
)
:
Any
val
tokenProvider
:
BearerTokenProvider
interface
BearerTokenProvider
Module Contents
@NotNull
abstract
fun
getToken
(
)
:
String
interface
CredentialsProvider
Module Contents
abstract
fun
getCredentials
(
)
:
Any
class
DurableCursorTransferObject
<
T
>
:
FiniteDurableCursorBuilder
<
T
>
,
Supplier
<
PollResult
<
T
>
>
Module Contents
DurableCursorTransferObject
(
pollResult
:
PollResult
<
T
>
)
fun
build
(
)
:
FiniteDurableCursor
<
T
>
fun
get
(
)
:
PollResult
<
T
>
data
class
PollResultImpl
<
T
>
:
PollResult
<
T
>
Module Contents
PollResultImpl
(
positionedValues
:
List
<
PositionedValue
<
T
>
>
,
remainingElementsCountEstimate
:
Long
?
,
isLastResult
:
Boolean
)
val
isLastResult
:
Boolean
val
positionedValues
:
List
<
PositionedValue
<
T
>
>
val
remainingElementsCountEstimate
:
Long
?
data
class
PositionedValueImpl
<
T
>
:
PositionedValue
<
T
>
Module Contents
PositionedValueImpl
(
value
:
T
,
position
:
Long
)
val
position
:
Long
val
value
:
T
var
positionManager
:
PositionManager
data
class
DurableStreamContext
Module Contents
DurableStreamContext
(
currentPosition
:
Long
,
maxCount
:
Int
,
awaitForResultTimeout
:
Duration
)
val
awaitForResultTimeout
:
Duration
val
currentPosition
:
Long
val
maxCount
:
Int
class
HttpRpcClient
<
I
:
RPCOps
>
:
AutoCloseable
Module Contents
HttpRpcClient
(
baseAddress
:
String
,
rpcOpsClass
:
Class
<
I
>
,
clientConfig
:
HttpRpcClientConfig
)
HttpRpcClient
(
baseAddress
:
String
,
rpcOpsClass
:
Class
<
I
>
,
clientConfig
:
HttpRpcClientConfig
,
healthCheckInterval
:
Long
)
fun
addConnectionListener
(
listener
:
HttpRpcConnectionListener
<
I
>
)
:
Boolean
fun
close
(
)
:
Unit
fun
removeConnectionListener
(
listener
:
HttpRpcConnectionListener
<
I
>
)
:
Boolean
fun
start
(
)
:
HttpRpcConnection
<
I
>
data
class
HttpRpcClientConfig
Module Contents
HttpRpcClientConfig
(
)
val
authenticationConfig
:
AuthenticationConfig
fun
bearerToken
(
tokenProvider
:
BearerTokenProvider
)
:
HttpRpcClientConfig
fun
enableSSL
(
enableSSL
:
Boolean
)
:
HttpRpcClientConfig
val
enableSSL
:
Boolean
fun
minimumServerProtocolVersion
(
minimumServerProtocolVersion
:
Int
)
:
HttpRpcClientConfig
val
minimumServerProtocolVersion
:
Int
fun
password
(
password
:
String
)
:
HttpRpcClientConfig
fun
username
(
username
:
String
)
:
HttpRpcClientConfig
data
class
HttpRpcClientDurableStreamContext
Module Contents
HttpRpcClientDurableStreamContext
(
currentPosition
:
Long
,
maxCount
:
Int
,
awaitForResultTimeout
:
Duration
)
val
awaitForResultTimeout
:
Duration
val
currentPosition
:
Long
val
maxCount
:
Int
@DoNotImplement
interface
HttpRpcConnection
<
out
I
:
RPCOps
>
Module Contents
abstract
val
proxy
:
I
abstract
val
serverProtocolVersion
:
Int
interface
HttpRpcConnectionListener
<
I
:
RPCOps
>
Module Contents
interface
HttpRpcConnectionContext
<
I
:
RPCOps
>
Module Contents
abstract
val
connectionOpt
:
HttpRpcConnection
<
I
>
?
abstract
val
credentialsProvider
:
CredentialsProvider
abstract
val
throwableOpt
:
Throwable
?
abstract
fun
onConnect
(
context
:
HttpRpcConnectionContext
<
I
>
)
:
Unit
abstract
fun
onDisconnect
(
context
:
HttpRpcConnectionContext
<
I
>
)
:
Unit
abstract
fun
onPermanentFailure
(
context
:
HttpRpcConnectionContext
<
I
>
)
:
Unit
class
HttpRpcConnectionListenerDistributor
<
I
:
RPCOps
>
Module Contents
HttpRpcConnectionListenerDistributor
(
listeners
:
Iterable
<
HttpRpcConnectionListener
<
I
>
>
,
credentialsProvider
:
CredentialsProvider
)
enum
class
HttpVerb
Module Contents
GET
POST
class
InMemoryPositionManager
:
PositionManager
Module Contents
InMemoryPositionManager
(
)
fun
accept
(
inLong
:
Long
)
:
Unit
fun
get
(
)
:
Long
class
InternalErrorException
:
CordaRuntimeException
Module Contents
InternalErrorException
(
message
:
String
)
kotlin.String
Module Contents
fun
String
.
replacePathParameters
(
pathParams
:
Map
<
String
,
String
>
)
:
String
class
MissingRequestedResourceException
:
CordaRuntimeException
Module Contents
MissingRequestedResourceException
(
message
:
String
)
class
PermissionException
:
CordaRuntimeException
Module Contents
PermissionException
(
message
:
String
)
interface
RemoteClient
Module Contents
abstract
val
baseAddress
:
String
abstract
fun
<
T
>
call
(
verb
:
HttpVerb
,
webRequest
:
WebRequest
<
T
>
,
responseType
:
Type
,
context
:
RequestContext
)
:
WebResponse
<
Any
>
abstract
fun
<
T
>
call
(
verb
:
HttpVerb
,
webRequest
:
WebRequest
<
T
>
,
context
:
RequestContext
)
:
WebResponse
<
String
>
class
RemoteUnirestClient
:
RemoteClient
Module Contents
RemoteUnirestClient
(
baseAddress
:
String
,
enableSsl
:
Boolean
=
false
)
val
baseAddress
:
String
fun
<
T
>
call
(
verb
:
HttpVerb
,
webRequest
:
WebRequest
<
T
>
,
responseType
:
Type
,
context
:
RequestContext
)
:
WebResponse
<
Any
>
fun
<
T
>
call
(
verb
:
HttpVerb
,
webRequest
:
WebRequest
<
T
>
,
context
:
RequestContext
)
:
WebResponse
<
String
>
class
RequestContext
Module Contents
val
authenticationScheme
:
AuthenticationScheme
val
credentials
:
Any
class
RequestErrorException
:
CordaRuntimeException
Module Contents
RequestErrorException
(
message
:
String
)
data
class
ResolvedParameters
Module Contents
ResolvedParameters
(
body
:
String
?
,
pathParams
:
Map
<
String
,
String
>
,
queryParams
:
Map
<
String
,
Any
?
>
)
val
body
:
String
?
val
pathParams
:
Map
<
String
,
String
>
val
queryParams
:
Map
<
String
,
Any
?
>
data
class
WebRequest
<
T
>
Module Contents
WebRequest
(
path
:
String
,
body
:
T
?
=
null
,
queryParameters
:
Map
<
String
,
Any
?
>
?
=
null
)
val
body
:
T
?
val
path
:
String
val
queryParameters
:
Map
<
String
,
Any
?
>
?
data
class
WebResponse
<
T
>
Module Contents
WebResponse
(
body
:
T
?
,
headers
:
Map
<
String
,
String
>
,
responseStatus
:
Int
,
responseStatusText
:
String
?
)
val
body
:
T
?
val
headers
:
Map
<
String
,
String
>
val
responseStatus
:
Int
val
responseStatusText
:
String
?
package
net.corda.v5.httprpc.client
Module Contents
class
HttpRpcClient
<
I
:
RPCOps
>
:
AutoCloseable
Module Contents
HttpRpcClient
(
baseAddress
:
String
,
rpcOpsClass
:
Class
<
I
>
,
clientConfig
:
HttpRpcClientConfig
)
HttpRpcClient
(
baseAddress
:
String
,
rpcOpsClass
:
Class
<
I
>
,
clientConfig
:
HttpRpcClientConfig
,
healthCheckInterval
:
Long
)
fun
addConnectionListener
(
listener
:
HttpRpcConnectionListener
<
I
>
)
:
Boolean
fun
close
(
)
:
Unit
fun
removeConnectionListener
(
listener
:
HttpRpcConnectionListener
<
I
>
)
:
Boolean
fun
start
(
)
:
HttpRpcConnection
<
I
>
@DoNotImplement
interface
HttpRpcConnection
<
out
I
:
RPCOps
>
Module Contents
abstract
val
proxy
:
I
abstract
val
serverProtocolVersion
:
Int
interface
HttpRpcConnectionListener
<
I
:
RPCOps
>
Module Contents
interface
HttpRpcConnectionContext
<
I
:
RPCOps
>
Module Contents
abstract
val
connectionOpt
:
HttpRpcConnection
<
I
>
?
abstract
val
credentialsProvider
:
CredentialsProvider
abstract
val
throwableOpt
:
Throwable
?
abstract
fun
onConnect
(
context
:
HttpRpcConnectionContext
<
I
>
)
:
Unit
abstract
fun
onDisconnect
(
context
:
HttpRpcConnectionContext
<
I
>
)
:
Unit
abstract
fun
onPermanentFailure
(
context
:
HttpRpcConnectionContext
<
I
>
)
:
Unit
package
net.corda.v5.httprpc.client.auth
Module Contents
class
RequestContext
Module Contents
val
authenticationScheme
:
AuthenticationScheme
val
credentials
:
Any
package
net.corda.v5.httprpc.client.auth.credentials
Module Contents
data
class
BasicAuthCredentials
:
CredentialsProvider
Module Contents
BasicAuthCredentials
(
username
:
String
,
password
:
String
)
fun
getCredentials
(
)
:
Any
val
password
:
String
val
username
:
String
data
class
BearerTokenCredentials
Module Contents
BearerTokenCredentials
(
token
:
String
)
val
token
:
String
data
class
BearerTokenCredentialsProvider
:
CredentialsProvider
Module Contents
BearerTokenCredentialsProvider
(
tokenProvider
:
BearerTokenProvider
)
fun
getCredentials
(
)
:
Any
val
tokenProvider
:
BearerTokenProvider
interface
BearerTokenProvider
Module Contents
@NotNull
abstract
fun
getToken
(
)
:
String
interface
CredentialsProvider
Module Contents
abstract
fun
getCredentials
(
)
:
Any
package
net.corda.v5.httprpc.client.auth.scheme
Module Contents
interface
AuthenticationScheme
Module Contents
abstract
fun
authenticate
(
credentials
:
Any
,
request
:
HttpRequest
<
*
>
,
context
:
RequestContext
)
:
Unit
class
BasicAuthenticationScheme
:
AuthenticationScheme
Module Contents
BasicAuthenticationScheme
(
)
fun
authenticate
(
credentials
:
Any
,
request
:
HttpRequest
<
*
>
,
context
:
RequestContext
)
:
Unit
package
net.corda.v5.httprpc.client.config
Module Contents
interface
AuthenticationConfig
Module Contents
abstract
fun
createScheme
(
)
:
AuthenticationScheme
abstract
fun
getCredentialsProvider
(
)
:
CredentialsProvider
data
class
HttpRpcClientConfig
Module Contents
HttpRpcClientConfig
(
)
val
authenticationConfig
:
AuthenticationConfig
fun
bearerToken
(
tokenProvider
:
BearerTokenProvider
)
:
HttpRpcClientConfig
fun
enableSSL
(
enableSSL
:
Boolean
)
:
HttpRpcClientConfig
val
enableSSL
:
Boolean
fun
minimumServerProtocolVersion
(
minimumServerProtocolVersion
:
Int
)
:
HttpRpcClientConfig
val
minimumServerProtocolVersion
:
Int
fun
password
(
password
:
String
)
:
HttpRpcClientConfig
fun
username
(
username
:
String
)
:
HttpRpcClientConfig
package
net.corda.v5.httprpc.client.exceptions
Module Contents
class
InternalErrorException
:
CordaRuntimeException
Module Contents
InternalErrorException
(
message
:
String
)
class
MissingRequestedResourceException
:
CordaRuntimeException
Module Contents
MissingRequestedResourceException
(
message
:
String
)
class
PermissionException
:
CordaRuntimeException
Module Contents
PermissionException
(
message
:
String
)
class
RequestErrorException
:
CordaRuntimeException
Module Contents
RequestErrorException
(
message
:
String
)
package
net.corda.v5.httprpc.client.internal
Module Contents
class
HttpRpcConnectionListenerDistributor
<
I
:
RPCOps
>
Module Contents
HttpRpcConnectionListenerDistributor
(
listeners
:
Iterable
<
HttpRpcConnectionListener
<
I
>
>
,
credentialsProvider
:
CredentialsProvider
)
package
net.corda.v5.httprpc.client.internal.processing
Module Contents
kotlin.String
Module Contents
fun
String
.
replacePathParameters
(
pathParams
:
Map
<
String
,
String
>
)
:
String
data
class
ResolvedParameters
Module Contents
ResolvedParameters
(
body
:
String
?
,
pathParams
:
Map
<
String
,
String
>
,
queryParams
:
Map
<
String
,
Any
?
>
)
val
body
:
String
?
val
pathParams
:
Map
<
String
,
String
>
val
queryParams
:
Map
<
String
,
Any
?
>
package
net.corda.v5.httprpc.client.internal.remote
Module Contents
enum
class
HttpVerb
Module Contents
GET
POST
interface
RemoteClient
Module Contents
abstract
val
baseAddress
:
String
abstract
fun
<
T
>
call
(
verb
:
HttpVerb
,
webRequest
:
WebRequest
<
T
>
,
responseType
:
Type
,
context
:
RequestContext
)
:
WebResponse
<
Any
>
abstract
fun
<
T
>
call
(
verb
:
HttpVerb
,
webRequest
:
WebRequest
<
T
>
,
context
:
RequestContext
)
:
WebResponse
<
String
>
class
RemoteUnirestClient
:
RemoteClient
Module Contents
RemoteUnirestClient
(
baseAddress
:
String
,
enableSsl
:
Boolean
=
false
)
val
baseAddress
:
String
fun
<
T
>
call
(
verb
:
HttpVerb
,
webRequest
:
WebRequest
<
T
>
,
responseType
:
Type
,
context
:
RequestContext
)
:
WebResponse
<
Any
>
fun
<
T
>
call
(
verb
:
HttpVerb
,
webRequest
:
WebRequest
<
T
>
,
context
:
RequestContext
)
:
WebResponse
<
String
>
data
class
WebRequest
<
T
>
Module Contents
WebRequest
(
path
:
String
,
body
:
T
?
=
null
,
queryParameters
:
Map
<
String
,
Any
?
>
?
=
null
)
val
body
:
T
?
val
path
:
String
val
queryParameters
:
Map
<
String
,
Any
?
>
?
data
class
WebResponse
<
T
>
Module Contents
WebResponse
(
body
:
T
?
,
headers
:
Map
<
String
,
String
>
,
responseStatus
:
Int
,
responseStatusText
:
String
?
)
val
body
:
T
?
val
headers
:
Map
<
String
,
String
>
val
responseStatus
:
Int
val
responseStatusText
:
String
?
package
net.corda.v5.httprpc.client.internal.stream
Module Contents
class
DurableCursorTransferObject
<
T
>
:
FiniteDurableCursorBuilder
<
T
>
,
Supplier
<
PollResult
<
T
>
>
Module Contents
DurableCursorTransferObject
(
pollResult
:
PollResult
<
T
>
)
fun
build
(
)
:
FiniteDurableCursor
<
T
>
fun
get
(
)
:
PollResult
<
T
>
data
class
PollResultImpl
<
T
>
:
PollResult
<
T
>
Module Contents
PollResultImpl
(
positionedValues
:
List
<
PositionedValue
<
T
>
>
,
remainingElementsCountEstimate
:
Long
?
,
isLastResult
:
Boolean
)
val
isLastResult
:
Boolean
val
positionedValues
:
List
<
PositionedValue
<
T
>
>
val
remainingElementsCountEstimate
:
Long
?
data
class
PositionedValueImpl
<
T
>
:
PositionedValue
<
T
>
Module Contents
PositionedValueImpl
(
value
:
T
,
position
:
Long
)
val
position
:
Long
val
value
:
T
var
positionManager
:
PositionManager
data
class
DurableStreamContext
Module Contents
DurableStreamContext
(
currentPosition
:
Long
,
maxCount
:
Int
,
awaitForResultTimeout
:
Duration
)
val
awaitForResultTimeout
:
Duration
val
currentPosition
:
Long
val
maxCount
:
Int
data
class
HttpRpcClientDurableStreamContext
Module Contents
HttpRpcClientDurableStreamContext
(
currentPosition
:
Long
,
maxCount
:
Int
,
awaitForResultTimeout
:
Duration
)
val
awaitForResultTimeout
:
Duration
val
currentPosition
:
Long
val
maxCount
:
Int
class
InMemoryPositionManager
:
PositionManager
Module Contents
InMemoryPositionManager
(
)
fun
accept
(
inLong
:
Long
)
:
Unit
fun
get
(
)
:
Long