Interface ResponseMapperOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResponseMapper,ResponseMapper.Builder
public interface ResponseMapperOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataSourcegetBody()The new local reply body text if specified.SubstitutionFormatStringgetBodyFormatOverride()A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.SubstitutionFormatStringOrBuildergetBodyFormatOverrideOrBuilder()A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.DataSourceOrBuildergetBodyOrBuilder()The new local reply body text if specified.AccessLogFiltergetFilter()Filter to determine if this mapper should apply.AccessLogFilterOrBuildergetFilterOrBuilder()Filter to determine if this mapper should apply.HeaderValueOptiongetHeadersToAdd(int index)HTTP headers to add to a local reply.intgetHeadersToAddCount()HTTP headers to add to a local reply.List<HeaderValueOption>getHeadersToAddList()HTTP headers to add to a local reply.HeaderValueOptionOrBuildergetHeadersToAddOrBuilder(int index)HTTP headers to add to a local reply.List<? extends HeaderValueOptionOrBuilder>getHeadersToAddOrBuilderList()HTTP headers to add to a local reply.com.google.protobuf.UInt32ValuegetStatusCode()The new response status code if specified.com.google.protobuf.UInt32ValueOrBuildergetStatusCodeOrBuilder()The new response status code if specified.booleanhasBody()The new local reply body text if specified.booleanhasBodyFormatOverride()A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.booleanhasFilter()Filter to determine if this mapper should apply.booleanhasStatusCode()The new response status code if specified.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasFilter
boolean hasFilter()
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... }- Returns:
- Whether the filter field is set.
-
getFilter
AccessLogFilter getFilter()
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... }- Returns:
- The filter.
-
getFilterOrBuilder
AccessLogFilterOrBuilder getFilterOrBuilder()
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... }
-
hasStatusCode
boolean hasStatusCode()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... }- Returns:
- Whether the statusCode field is set.
-
getStatusCode
com.google.protobuf.UInt32Value getStatusCode()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... }- Returns:
- The statusCode.
-
getStatusCodeOrBuilder
com.google.protobuf.UInt32ValueOrBuilder getStatusCodeOrBuilder()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... }
-
hasBody
boolean hasBody()
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3;- Returns:
- Whether the body field is set.
-
getBody
DataSource getBody()
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3;- Returns:
- The body.
-
getBodyOrBuilder
DataSourceOrBuilder getBodyOrBuilder()
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3;
-
hasBodyFormatOverride
boolean hasBodyFormatOverride()
A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4;- Returns:
- Whether the bodyFormatOverride field is set.
-
getBodyFormatOverride
SubstitutionFormatString getBodyFormatOverride()
A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4;- Returns:
- The bodyFormatOverride.
-
getBodyFormatOverrideOrBuilder
SubstitutionFormatStringOrBuilder getBodyFormatOverrideOrBuilder()
A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4;
-
getHeadersToAddList
List<HeaderValueOption> getHeadersToAddList()
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }
-
getHeadersToAdd
HeaderValueOption getHeadersToAdd(int index)
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }
-
getHeadersToAddCount
int getHeadersToAddCount()
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }
-
getHeadersToAddOrBuilderList
List<? extends HeaderValueOptionOrBuilder> getHeadersToAddOrBuilderList()
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }
-
getHeadersToAddOrBuilder
HeaderValueOptionOrBuilder getHeadersToAddOrBuilder(int index)
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }
-
-