Class HttpResponseTestsTrait
- java.lang.Object
- 
- software.amazon.smithy.model.traits.AbstractTrait
- 
- software.amazon.smithy.protocoltests.traits.HttpResponseTestsTrait
 
 
- 
- All Implemented Interfaces:
- FromSourceLocation,- ToNode,- ToShapeId,- Trait
 
 public final class HttpResponseTestsTrait extends AbstractTrait Defines HTTP request protocol tests.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classHttpResponseTestsTrait.Provider
 - 
Constructor SummaryConstructors Constructor Description HttpResponseTestsTrait(java.util.List<HttpResponseTestCase> testCases)HttpResponseTestsTrait(SourceLocation sourceLocation, java.util.List<HttpResponseTestCase> testCases)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodecreateNode()The result of toNode is used for hashCodes and equality.java.util.List<HttpResponseTestCase>getTestCases()java.util.List<HttpResponseTestCase>getTestCasesFor(AppliesTo appliesTo)Gets all test cases that apply to a client or server.- 
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitequals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface software.amazon.smithy.model.traits.TraitisSynthetic
 
- 
 
- 
- 
- 
Field Detail- 
IDpublic static final ShapeId ID 
 
- 
 - 
Constructor Detail- 
HttpResponseTestsTraitpublic HttpResponseTestsTrait(java.util.List<HttpResponseTestCase> testCases) 
 - 
HttpResponseTestsTraitpublic HttpResponseTestsTrait(SourceLocation sourceLocation, java.util.List<HttpResponseTestCase> testCases) 
 
- 
 - 
Method Detail- 
getTestCasespublic java.util.List<HttpResponseTestCase> getTestCases() 
 - 
getTestCasesForpublic java.util.List<HttpResponseTestCase> getTestCasesFor(AppliesTo appliesTo) Gets all test cases that apply to a client or server.Test cases that define an appliesTomember are tests that should only be implemented by clients or servers. Is is assumed that test cases that do not define anappliesTomember are implemented by both client and server implementations.- Parameters:
- appliesTo- The type of test case to retrieve.
- Returns:
- Returns the matching test cases.
 
 - 
createNodeprotected Node createNode() Description copied from class:AbstractTraitThe result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.- Specified by:
- createNodein class- AbstractTrait
- Returns:
- Returns the trait as a node.
 
 
- 
 
-