Interface Filter
- All Known Implementing Classes:
FaultFilter, RbacFilter, RouterFilter
interface Filter
Defines the parsing functionality of an HTTP filter. A Filter may optionally implement either
Filter.ClientInterceptorBuilder or Filter.ServerInterceptorBuilder or both, indicating it is
capable of working on the client side or server side or both, respectively.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceUses the FilterConfigs produced above to produce an HTTP filter interceptor for clients.static interfaceRepresents an opaque data structure holding configuration for a filter.static final classFilter config with instance name.static interfaceUses the FilterConfigs produced above to produce an HTTP filter interceptor for the server. -
Method Summary
Modifier and TypeMethodDescriptionConfigOrError<? 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.String[]typeUrls()The proto message types supported by this filter.
-
Method Details
-
typeUrls
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.
-