Interface ProtocolFact
- 
 public interface ProtocolFactRepresents know static facts about each protocol.
- 
- 
Field SummaryFields 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 SummaryAll 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- 
DEFAULTstatic final ProtocolFact DEFAULT Defaults used by all protocols that do not have overrides.
 - 
AWS_JSONstatic final ProtocolFact AWS_JSON Overrides for AWS JSON.
 - 
SMITHY_RPC_V2_CBORstatic final ProtocolFact SMITHY_RPC_V2_CBOR Overrides for Smithy RPCv2.
 
- 
 - 
Method Detail- 
generatesBodydefault 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.
 - 
extraHeadersdefault Map<String,String> extraHeaders() Returns a configured set of headers to be added to each request of the protocol.
 - 
fromstatic ProtocolFact from(AwsJsonProtocol protocol) Returns the object representing a collection of facts for each protocol.
 
- 
 
-