Interface ProtocolFact
public interface ProtocolFact
Represents know static facts about each protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProtocolFact
Overrides for AWS JSON.static final ProtocolFact
Defaults used by all protocols that do not have overrides.static final ProtocolFact
Overrides for Smithy RPCv2. -
Method Summary
Modifier and TypeMethodDescriptionReturns a configured set of headers to be added to each request of the protocol.static ProtocolFact
from
(AwsJsonProtocol protocol) Returns the object representing a collection of facts for each protocol.default boolean
generatesBody
(OperationInfo info) Returns true if the operation generates a body, false otherwise.
-
Field Details
-
DEFAULT
Defaults used by all protocols that do not have overrides. -
AWS_JSON
Overrides for AWS JSON. -
SMITHY_RPC_V2_CBOR
Overrides for Smithy RPCv2.
-
-
Method Details
-
generatesBody
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
-
from
Returns the object representing a collection of facts for each protocol.
-