Class RetryableInterceptor
java.lang.Object
software.amazon.smithy.docgen.interceptors.RetryableInterceptor
- All Implemented Interfaces:
 CodeInterceptor<ShapeSubheadingSection,,DocWriter> CodeInterceptor.Prepender<ShapeSubheadingSection,DocWriter> 
public final class RetryableInterceptor
extends Object
implements CodeInterceptor.Prepender<ShapeSubheadingSection,DocWriter> 
This adds badges and notices to errors that are retryable.
- 
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.smithy.utils.CodeInterceptor
CodeInterceptor.Appender<S extends CodeSection,W extends AbstractCodeWriter<W>>, CodeInterceptor.Prepender<S extends CodeSection, W extends AbstractCodeWriter<W>>  - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanisIntercepted(ShapeSubheadingSection section) Checks if the given section is filtered by this interceptor or not.voidprepend(DocWriter writer, ShapeSubheadingSection section) Writes text before previously written content in the section.Get the strongly typedCodeSectionthis interceptor is used to intercept.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.smithy.utils.CodeInterceptor.Prepender
write 
- 
Constructor Details
- 
RetryableInterceptor
public RetryableInterceptor() 
 - 
 - 
Method Details
- 
sectionType
Description copied from interface:CodeInterceptorGet the strongly typedCodeSectionthis interceptor is used to intercept.- Specified by:
 sectionTypein interfaceCodeInterceptor<ShapeSubheadingSection,DocWriter> - Returns:
 - The code section to intercept.
 
 - 
isIntercepted
Description copied from interface:CodeInterceptorChecks if the given section is filtered by this interceptor or not.In some cases
CodeInterceptor.sectionType()might allow filtering a wider array of types than what is actually filtered by an interceptor. The most common example of this is intercepting any type of CodeSection and only filtering based on the result ofCodeSection.sectionName().This method will return
trueby default, meaning that any type ofCodeSectionthat is an instance of the class returned fromCodeInterceptor.sectionType()will be intercepted.- Specified by:
 isInterceptedin interfaceCodeInterceptor<ShapeSubheadingSection,DocWriter> - Parameters:
 section- Section to test if this interceptor is relevant.- Returns:
 - Returns true if the section is intercepted or not.
 
 - 
prepend
Description copied from interface:CodeInterceptor.PrependerWrites text before previously written content in the section.- Specified by:
 prependin interfaceCodeInterceptor.Prepender<ShapeSubheadingSection,DocWriter> - Parameters:
 writer- The code writer to write to.section- The section being intercepted.
 
 -