Package io.grpc.xds
Interface Filter
-
- All Known Implementing Classes:
FaultFilter,RbacFilter,RouterFilter
interface FilterDefines the parsing functionality of an HTTP filter. A Filter may optionally implement eitherFilter.ClientInterceptorBuilderorFilter.ServerInterceptorBuilderor both, indicating it is capable of working on the client side or server side or both, respectively.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFilter.ClientInterceptorBuilderUses the FilterConfigs produced above to produce an HTTP filter interceptor for clients.static interfaceFilter.FilterConfigRepresents an opaque data structure holding configuration for a filter.static classFilter.NamedFilterConfigFilter config with instance name.static interfaceFilter.ServerInterceptorBuilderUses the FilterConfigs produced above to produce an HTTP filter interceptor for the server.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigOrError<? extends Filter.FilterConfig>parseFilterConfig(com.google.protobuf.Message rawProtoMessage)Parses the top-level filter config from raw proto message.ConfigOrError<? extends Filter.FilterConfig>parseFilterConfigOverride(com.google.protobuf.Message rawProtoMessage)Parses the per-filter override filter config from raw proto message.java.lang.String[]typeUrls()The proto message types supported by this filter.
-
-
-
Method Detail
-
typeUrls
java.lang.String[] typeUrls()
The proto message types supported by this filter. A filter will be registered by each of its supported message types.
-
parseFilterConfig
ConfigOrError<? extends Filter.FilterConfig> parseFilterConfig(com.google.protobuf.Message rawProtoMessage)
Parses the top-level filter config from raw proto message. The message may be either aAnyor aStruct.
-
parseFilterConfigOverride
ConfigOrError<? extends Filter.FilterConfig> parseFilterConfigOverride(com.google.protobuf.Message rawProtoMessage)
Parses the per-filter override filter config from raw proto message. The message may be either aAnyor aStruct.
-
-