com.improving.grpc_rest_gateway.runtime.handlers
Members list
Type members
Classlikes
sealed trait GatewayException extends Exception
Attributes
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class InvalidArgument
@ChannelHandler$$Sharable
abstract class GrpcGatewayHandler(channel: ManagedChannel)(implicit ec: ExecutionContext) extends ChannelInboundHandlerAdapter, PathMatchingSupport
Attributes
- Supertypes
-
trait PathMatchingSupportclass ChannelInboundHandlerAdaptertrait ChannelInboundHandlerclass ChannelHandlerAdaptertrait ChannelHandlerclass Objecttrait Matchableclass AnyShow all
case class InvalidArgument(details: String) extends Exception, GatewayException
Attributes
- Supertypes
-
trait Producttrait Equalstrait GatewayExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
class MethodNotFoundHandler extends ChannelInboundHandlerAdapter
Attributes
- Supertypes
-
class ChannelInboundHandlerAdaptertrait ChannelInboundHandlerclass ChannelHandlerAdaptertrait ChannelHandlerclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
trait PathMatchingSupport
Helper trait to make URI path matching. This is done to make testing easier.
Helper trait to make URI path matching. This is done to make testing easier.
Our aim is to match given incoming URL and match it to configured path in the protobuf.
There are two cases:
- When there is no path element, this is easy case we can have exact match, for example,
/v1/messages
. - When there is path element, we can not have exact match just by comparing two strings, for example, if configured value is
/v1/messages/{message_id}/users/{user_id}
and runtime value is/v1/messages/1/users/1
.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class GrpcGatewayHandler
object SwaggerHandler
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SwaggerHandler.type
@ChannelHandler$$Sharable
class SwaggerHandler(services: Seq[GrpcGatewayHandler]) extends ChannelInboundHandlerAdapter
Attributes
- Companion
- object
- Supertypes
-
class ChannelInboundHandlerAdaptertrait ChannelInboundHandlerclass ChannelHandlerAdaptertrait ChannelHandlerclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
def buildFullHttpResponse(requestMsg: HttpMessage, responseBody: String, responseStatus: HttpResponseStatus, responseContentType: String): FullHttpResponse
Concrete fields
Implicits
Implicits
In this article