
macros.syncclientclass.awsquery.ClientInitMethod.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-code-generator Show documentation
Show all versions of aws-java-sdk-code-generator Show documentation
The AWS SDK for Java - Code Generator module holds the classes and templates required to generate the AWS Java SDK clients for AWS services.
<#macro content serviceModelRoot>
private void init() {
<#list serviceModelRoot.shapes?values as shapeModel>
<#if shapeModel.type == "Exception">
exceptionUnmarshallers.add(new ${shapeModel.shapeName}Unmarshaller());
#if>
#list>
exceptionUnmarshallers.add(
new ${serviceModelRoot.exceptionUnmarshallerImpl}(${serviceModelRoot.sdkModeledExceptionBaseFqcn}.class));
setServiceNameIntern(DEFAULT_SIGNING_NAME);
setEndpointPrefix(ENDPOINT_PREFIX);
<#if serviceModelRoot.metadata.defaultEndpoint?has_content>
// calling this.setEndPoint(...) will also modify the signer accordingly
this.setEndpoint("${serviceModelRoot.metadata.defaultEndpoint}");
#if>
HandlerChainFactory chainFactory = new HandlerChainFactory();
requestHandler2s.addAll(chainFactory.newRequestHandlerChain(
"/${serviceModelRoot.metadata.packagePath}/request.handlers"));
requestHandler2s.addAll(chainFactory.newRequestHandler2Chain(
"/${serviceModelRoot.metadata.packagePath}/request.handler2s"));
}
#macro>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy