Interface ProtocolFact
-
public interface ProtocolFactRepresents know static facts about each protocol.
-
-
Field Summary
Fields Modifier and Type Field Description static ProtocolFactAWS_JSONOverrides for AWS JSON.static ProtocolFactDEFAULTDefaults used by all protocols that do not have overrides.static ProtocolFactSMITHY_RPC_V2_CBOROverrides for Smithy RPCv2.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default Map<String,String>extraHeaders()Returns a configured set of headers to be added to each request of the protocol.static ProtocolFactfrom(AwsJsonProtocol protocol)Returns the object representing a collection of facts for each protocol.default booleangeneratesBody(OperationInfo info)Returns true if the operation generates a body, false otherwise.
-
-
-
Field Detail
-
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 Detail
-
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.
-
-