Uses of Interface
org.springframework.hateoas.mediatype.ConfigurableAffordance
-
Uses of ConfigurableAffordance in org.springframework.hateoas.mediatype
Modifier and TypeMethodDescriptionConfigurableAffordance.addParameters
(QueryParameter... parameters) Adds the givenQueryParameter
s to theAffordance
to build.Affordances.afford
(HttpMethod httpMethod) Creates a newAffordances.AffordanceBuilder
for the given HTTP method for further customization.ConfigurableAffordance.andAfford
(HttpMethod method) Concludes the creation of the currentAffordance
to build and starts a new one.Registers the given type as input model for the affordance.ConfigurableAffordance.withInput
(ResolvableType type) Registers the givenResolvableType
as input model for the affordance.ConfigurableAffordance.withInput
(AffordanceModel.PayloadMetadata metadata) Registers the givenAffordanceModel.PayloadMetadata
as input model.ConfigurableAffordance.withInputAndOutput
(Class<?> type) Registers the given type as input and output model for the affordance.ConfigurableAffordance.withInputAndOutput
(ResolvableType type) Registers the givenResolvableType
as input and output model for the affordance.ConfigurableAffordance.withInputAndOutput
(AffordanceModel.PayloadMetadata metadata) Registers the givenAffordanceModel.PayloadMetadata
as input and output model.ConfigurableAffordance.withInputMediaType
(MediaType inputMediaType) Registers the input to expect to be of the givenMediaType
.ConfigurableAffordance.withInputMediaTypes
(List<MediaType> inputMediaTypes) Registers the givenMediaType
s as input payload media types.Create a newConfigurableAffordance
by copying all attributes and replacing the name.ConfigurableAffordance.withOutput
(Class<?> type) Registers the given type as the output model.ConfigurableAffordance.withOutput
(ResolvableType type) Registers the givenResolvableType
as the output model.ConfigurableAffordance.withOutput
(AffordanceModel.PayloadMetadata metadata) Registers the givenAffordanceModel.PayloadMetadata
as output model.ConfigurableAffordance.withParameters
(List<QueryParameter> parameters) Replaces the currentQueryParameter
list with the given ones.ConfigurableAffordance.withParameters
(QueryParameter... parameters) Replaces the currentQueryParameter
list with the given ones.ConfigurableAffordance.withTarget
(Link target) Create a newConfigurableAffordance
by copying all attributes and replacing the target.