tuweni / org.apache.tuweni.jsonrpc / JSONRPCServer

JSONRPCServer

class JSONRPCServer : CoroutineScope (source)

Constructors

<init>

JSONRPCServer(vertx: Vertx, port: Int, networkInterface: String = "127.0.0.1", ssl: Boolean = false, trustOptions: TrustOptions? = null, useBasicAuthentication: Boolean = false, basicAuthenticationUsername: String? = null, basicAuthenticationPassword: String? = null, basicAuthRealm: String = "Apache Tuweni JSON-RPC proxy", ipRangeChecker: IPRangeChecker = IPRangeChecker.allowAll(), coroutineContext: CoroutineContext = Dispatchers.Default, methodHandler: (JSONRPCRequest) -> JSONRPCResponse)

Properties

basicAuthenticationPassword

val basicAuthenticationPassword: String?

basicAuthenticationUsername

val basicAuthenticationUsername: String?

basicAuthRealm

val basicAuthRealm: String

coroutineContext

val coroutineContext: CoroutineContext

ipRangeChecker

val ipRangeChecker: IPRangeChecker

methodHandler

val methodHandler: (JSONRPCRequest) -> JSONRPCResponse

networkInterface

val networkInterface: String

ssl

val ssl: Boolean

trustOptions

val trustOptions: TrustOptions?

useBasicAuthentication

val useBasicAuthentication: Boolean

vertx

val vertx: Vertx

Functions

port

fun port(): Int

start

fun start(): <ERROR CLASS>

stop

fun stop(): <ERROR CLASS>

Companion Object Properties

logger

val logger: Logger!

mapper

val mapper: ObjectMapper