package handlers
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- handlers
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- sealed trait GatewayException extends Exception
- abstract class GrpcGatewayHandler extends ChannelInboundHandlerAdapter with PathMatchingSupport
- Annotations
- @Sharable()
- case class InvalidArgument(details: String) extends Exception with GatewayException with Product with Serializable
- class MethodNotFoundHandler extends ChannelInboundHandlerAdapter
- implicit class ParametersOps extends AnyRef
- trait PathMatchingSupport extends AnyRef
Helper trait to make URI path matching.
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
.
- When there is no path element, this is easy case we can have exact match, for example,
- class SwaggerHandler extends ChannelInboundHandlerAdapter
- Annotations
- @Sharable()
Value Members
- val GRPC_HTTP_CODE_MAP: Map[Int, HttpResponseStatus]
- def buildFullHttpResponse(requestMsg: HttpMessage, responseBody: String, responseStatus: HttpResponseStatus, responseContentType: String): FullHttpResponse
- def jsonException2GatewayExceptionPF[U]: PartialFunction[Throwable, Try[U]]
- object SwaggerHandler