Interface ProtocolFact


public interface ProtocolFact
Represents know static facts about each protocol.
  • Field Details

    • DEFAULT

      static final ProtocolFact DEFAULT
      Defaults used by all protocols that do not have overrides.
    • AWS_JSON

      static final ProtocolFact AWS_JSON
      Overrides for AWS JSON.
    • SMITHY_RPC_V2_CBOR

      static final ProtocolFact SMITHY_RPC_V2_CBOR
      Overrides for Smithy RPCv2.
  • Method Details

    • generatesBody

      default boolean generatesBody(OperationInfo info)
      Returns true if the operation generates a body, false otherwise. By default, this depends on whether the operation input has members bound to the payload.
    • extraHeaders

      default Map<String,String> extraHeaders()
      Returns a configured set of headers to be added to each request of the protocol.
    • from

      static ProtocolFact from(AwsJsonProtocol protocol)
      Returns the object representing a collection of facts for each protocol.