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