Class Http11ProxyUpstreamTransport

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.transport_sockets.http_11_proxy.v3.Http11ProxyUpstreamTransport
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Http11ProxyUpstreamTransportOrBuilder, Serializable

public final class Http11ProxyUpstreamTransport extends com.google.protobuf.GeneratedMessageV3 implements Http11ProxyUpstreamTransportOrBuilder
 HTTP/1.1 proxy transport socket establishes an upstream connection to a proxy address
 instead of the target host's address. This behavior is triggered when the transport
 socket is configured and proxy information is provided.

 Behavior when proxying:
 =======================
 When an upstream connection is established, instead of connecting directly to the endpoint
 address, the client will connect to the specified proxy address, send an HTTP/1.1 ``CONNECT`` request
 indicating the endpoint address, and process the response. If the response has HTTP status 200,
 the connection will be passed down to the underlying transport socket.

 Configuring proxy information:
 ==============================
 Set ``typed_filter_metadata`` in :ref:`LbEndpoint.Metadata <envoy_v3_api_field_config.endpoint.v3.lbendpoint.metadata>` or :ref:`LocalityLbEndpoints.Metadata <envoy_v3_api_field_config.endpoint.v3.LocalityLbEndpoints.metadata>`.
 using the key ``envoy.http11_proxy_transport_socket.proxy_address`` and the
 proxy address in ``config::core::v3::Address`` format.
 
Protobuf type envoy.extensions.transport_sockets.http_11_proxy.v3.Http11ProxyUpstreamTransport
See Also:
  • Field Details

    • TRANSPORT_SOCKET_FIELD_NUMBER

      public static final int TRANSPORT_SOCKET_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasTransportSocket

      public boolean hasTransportSocket()
       The underlying transport socket being wrapped. Defaults to plaintext (raw_buffer) if unset.
       
      .envoy.config.core.v3.TransportSocket transport_socket = 1;
      Specified by:
      hasTransportSocket in interface Http11ProxyUpstreamTransportOrBuilder
      Returns:
      Whether the transportSocket field is set.
    • getTransportSocket

      public TransportSocket getTransportSocket()
       The underlying transport socket being wrapped. Defaults to plaintext (raw_buffer) if unset.
       
      .envoy.config.core.v3.TransportSocket transport_socket = 1;
      Specified by:
      getTransportSocket in interface Http11ProxyUpstreamTransportOrBuilder
      Returns:
      The transportSocket.
    • getTransportSocketOrBuilder

      public TransportSocketOrBuilder getTransportSocketOrBuilder()
       The underlying transport socket being wrapped. Defaults to plaintext (raw_buffer) if unset.
       
      .envoy.config.core.v3.TransportSocket transport_socket = 1;
      Specified by:
      getTransportSocketOrBuilder in interface Http11ProxyUpstreamTransportOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Http11ProxyUpstreamTransport parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Http11ProxyUpstreamTransport parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Http11ProxyUpstreamTransport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Http11ProxyUpstreamTransport.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Http11ProxyUpstreamTransport.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Http11ProxyUpstreamTransport.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Http11ProxyUpstreamTransport getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Http11ProxyUpstreamTransport> parser()
    • getParserForType

      public com.google.protobuf.Parser<Http11ProxyUpstreamTransport> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Http11ProxyUpstreamTransport getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder