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
Modifier and TypeMethodDescriptiongetBody()
The new local reply body text if specified.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>`.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>`.The new local reply body text if specified.Filter to determine if this mapper should apply.Filter to determine if this mapper should apply.getHeadersToAdd
(int index) HTTP headers to add to a local reply.int
HTTP headers to add to a local reply.HTTP headers to add to a local reply.getHeadersToAddOrBuilder
(int index) HTTP headers to add to a local reply.List
<? extends HeaderValueOptionOrBuilder> HTTP headers to add to a local reply.com.google.protobuf.UInt32Value
The new response status code if specified.com.google.protobuf.UInt32ValueOrBuilder
The new response status code if specified.boolean
hasBody()
The new local reply body text if specified.boolean
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>`.boolean
Filter to determine if this mapper should apply.boolean
The new response status code if specified.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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) = { ... }
-