private StructuredJsonGenerator createGenerator(OperationInfo operationInfo) { if (operationInfo.hasPayloadMembers() || operationInfo.protocol() == Protocol.AWS_JSON) { return createGenerator(); } else { return StructuredJsonGenerator.NO_OP; } }
public <T> ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest) { return JsonProtocolMarshallerBuilder.<T>standard() .jsonGenerator(createGenerator(operationInfo)) .contentType(getContentType()) .operationInfo(operationInfo) .originalRequest(origRequest) .sendExplicitNullForPayload(false) .build(); }
private StructuredJsonGenerator createGenerator(OperationInfo operationInfo) { if (operationInfo.hasPayloadMembers() || operationInfo.protocol() == Protocol.AWS_JSON) { return createGenerator(); } else { return StructuredJsonGenerator.NO_OP; } }
public <T> ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest) { return JsonProtocolMarshallerBuilder.<T>standard() .jsonGenerator(createGenerator(operationInfo)) .contentType(getContentType()) .operationInfo(operationInfo) .originalRequest(origRequest) .sendExplicitNullForPayload(false) .build(); }
private StructuredJsonGenerator createGenerator(OperationInfo operationInfo) { if (operationInfo.hasPayloadMembers() || operationInfo.protocol() == Protocol.AWS_JSON) { return createGenerator(); } else { return StructuredJsonGenerator.NO_OP; } }
public <T> ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest) { return JsonProtocolMarshallerBuilder.<T>standard() .jsonGenerator(createGenerator(operationInfo)) .contentType(getContentType()) .operationInfo(operationInfo) .originalRequest(origRequest) .sendExplicitNullForPayload(false) .build(); }