public class Affordance extends Object
AffordanceModel
s for all supported media types.Constructor and Description |
---|
Affordance(String name,
Link link,
HttpMethod httpMethod,
ResolvableType inputType,
List<QueryParameter> queryMethodParameters,
ResolvableType outputType)
Creates a new
Affordance . |
Modifier and Type | Method and Description |
---|---|
<T extends AffordanceModel> |
getAffordanceModel(MediaType mediaType)
Look up the
AffordanceModel for the requested MediaType . |
public Affordance(String name, Link link, HttpMethod httpMethod, ResolvableType inputType, List<QueryParameter> queryMethodParameters, ResolvableType outputType)
Affordance
.name
- link
- httpMethod
- inputType
- queryMethodParameters
- outputType
- @Nullable public <T extends AffordanceModel> T getAffordanceModel(MediaType mediaType)
AffordanceModel
for the requested MediaType
.mediaType
- Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.