trait PathMatchingSupport extends AnyRef
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
.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- PathMatchingSupport
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract val httpMethodsToUrisMap: Map[String, Seq[String]]
- Attributes
- protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSupportedCall(configuredMethodName: String, configuredPath: String, runtimeMethodName: String, runtimePath: String): Boolean
- Attributes
- protected
- def mergeParameters(configuredPath: String, queryString: QueryStringDecoder): Map[String, Seq[String]]
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def supportsCall(method: HttpMethod, uri: String): Boolean
Determine whether current HTTP
method
anduri
are supported.Determine whether current HTTP
method
anduri
are supported. Any given operation is supported if and only ifgoogle.api.http
option is defined and gRPC function is unary (no streaming, either client or server).- method
HTTP method
- uri
current URI
- returns
true if supported, false otherwise
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)