GrpcGatewayHandler

com.improving.grpc_rest_gateway.runtime.handlers.GrpcGatewayHandler
@ChannelHandler$$Sharable
abstract class GrpcGatewayHandler(channel: ManagedChannel)(implicit ec: ExecutionContext) extends ChannelInboundHandlerAdapter, PathMatchingSupport

Attributes

Graph
Supertypes
class ChannelInboundHandlerAdapter
trait ChannelInboundHandler
class ChannelHandlerAdapter
trait ChannelHandler
class Object
trait Matchable
class Any
Show all

Members list

Value members

Abstract methods

protected def dispatchCall(method: HttpMethod, uri: String, body: String): Future[GeneratedMessage]

Makes gRPC call.

Makes gRPC call.

Value parameters

body

request body

method

HTTP method

uri

current URI

Attributes

Returns

result of the gRPC call

Concrete methods

override def channelRead(ctx: ChannelHandlerContext, msg: Any): Unit

Attributes

Definition Classes
ChannelInboundHandlerAdapter -> ChannelInboundHandler
def shutdown(): Unit

Inherited methods

def channelActive(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def channelInactive(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def channelReadComplete(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def channelRegistered(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def channelUnregistered(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def channelWritabilityChanged(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def exceptionCaught(x$0: ChannelHandlerContext, x$1: Throwable): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def handlerAdded(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelHandlerAdapter
def handlerRemoved(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelHandlerAdapter
def isSharable(): Boolean

Attributes

Inherited from:
ChannelHandlerAdapter
protected def isSupportedCall(configuredMethodName: String, configuredPath: String, runtimeMethodName: String, runtimePath: String): Boolean

Attributes

Inherited from:
PathMatchingSupport
protected def mergeParameters(configuredPath: String, queryString: QueryStringDecoder): Map[String, Seq[String]]

Attributes

Inherited from:
PathMatchingSupport
protected def supportsCall(method: HttpMethod, uri: String): Boolean

Determine whether current HTTP method and uri are supported. Any given operation is supported if and only if google.api.http option is defined and gRPC function is unary (no streaming, either client or server).

Determine whether current HTTP method and uri are supported. Any given operation is supported if and only if google.api.http option is defined and gRPC function is unary (no streaming, either client or server).

Value parameters

method

HTTP method

uri

current URI

Attributes

Returns

true if supported, false otherwise

Inherited from:
PathMatchingSupport
def userEventTriggered(x$0: ChannelHandlerContext, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter

Abstract fields

val serviceName: String

Name of the service

Name of the service

Attributes

val specificationName: String

Name of OpenAPI yaml file (without extension) which contains OpenAPI specification for this service. This would be the name of the proto file.

Name of OpenAPI yaml file (without extension) which contains OpenAPI specification for this service. This would be the name of the proto file.

Attributes

Concrete fields

protected val logger: Logger

Inherited and Abstract fields

protected val httpMethodsToUrisMap: Map[String, Seq[String]]

Attributes

Inherited from:
PathMatchingSupport