public interface ConfigurableAffordance extends AffordanceOperations
Modifier and Type | Method and Description |
---|---|
ConfigurableAffordance |
addParameters(QueryParameter... parameters)
Adds the given
QueryParameter s to the Affordance to build. |
ConfigurableAffordance |
andAfford(HttpMethod method)
Concludes the creation of the current
Affordance to build and starts a new one. |
Affordances |
build()
Builds the
Affordance currently under construction and returns in alongside the ones already contained in
the Link the buildup started from. |
ConfigurableAffordance |
withInput(AffordanceModel.PayloadMetadata metadata)
Registers the given
AffordanceModel.PayloadMetadata as input model. |
ConfigurableAffordance |
withInput(Class<?> type)
Registers the given type as input model for the affordance.
|
ConfigurableAffordance |
withInput(ResolvableType type)
Registers the given
ResolvableType as input model for the affordance. |
ConfigurableAffordance |
withInputAndOutput(AffordanceModel.PayloadMetadata metadata)
Registers the given
AffordanceModel.PayloadMetadata as input and output model. |
ConfigurableAffordance |
withInputAndOutput(Class<?> type)
Registers the given type as input and output model for the affordance.
|
ConfigurableAffordance |
withInputAndOutput(ResolvableType type)
Registers the given
ResolvableType as input and output model for the affordance. |
ConfigurableAffordance |
withInputMediaType(MediaType inputMediaType)
Registers the input to expect to be of the given
MediaType . |
ConfigurableAffordance |
withInputMediaTypes(List<MediaType> inputMediaTypes)
Registers the given
MediaType s as input payload media types. |
ConfigurableAffordance |
withName(String name)
Create a new
ConfigurableAffordance by copying all attributes and replacing the name. |
ConfigurableAffordance |
withOutput(AffordanceModel.PayloadMetadata metadata)
Registers the given
AffordanceModel.PayloadMetadata as output model. |
ConfigurableAffordance |
withOutput(Class<?> type)
Registers the given type as the output model.
|
ConfigurableAffordance |
withOutput(ResolvableType type)
Registers the given
ResolvableType as the output model. |
ConfigurableAffordance |
withParameters(List<QueryParameter> parameters)
Replaces the current
QueryParameter list with the given ones. |
ConfigurableAffordance |
withParameters(QueryParameter... parameters)
Replaces the current
QueryParameter list with the given ones. |
ConfigurableAffordance |
withTarget(Link target)
Create a new
ConfigurableAffordance by copying all attributes and replacing the target. |
toLink
ConfigurableAffordance withInputAndOutput(Class<?> type)
type
- must not be null.ConfigurableAffordance withInputAndOutput(ResolvableType type)
ResolvableType
as input and output model for the affordance.type
- must not be null.ConfigurableAffordance withInputAndOutput(AffordanceModel.PayloadMetadata metadata)
AffordanceModel.PayloadMetadata
as input and output model.metadata
- must not be null.ConfigurableAffordance withInput(Class<?> type)
type
- must not be null.ConfigurableAffordance withInput(ResolvableType type)
ResolvableType
as input model for the affordance.type
- must not be null.ConfigurableAffordance withInput(AffordanceModel.PayloadMetadata metadata)
AffordanceModel.PayloadMetadata
as input model.metadata
- must not be null.ConfigurableAffordance withOutput(Class<?> type)
type
- must not be null.ConfigurableAffordance withOutput(ResolvableType type)
ResolvableType
as the output model.type
- must not be null.ConfigurableAffordance withOutput(AffordanceModel.PayloadMetadata metadata)
AffordanceModel.PayloadMetadata
as output model.metadata
- must not be null.ConfigurableAffordance withInputMediaType(MediaType inputMediaType)
MediaType
.inputMediaType
- can be null.ConfigurableAffordance withInputMediaTypes(List<MediaType> inputMediaTypes)
MediaType
s as input payload media types.inputMediaTypes
- must not be null.ConfigurableAffordance withParameters(QueryParameter... parameters)
QueryParameter
list with the given ones.parameters
- must not be null.ConfigurableAffordance withParameters(List<QueryParameter> parameters)
QueryParameter
list with the given ones.parameters
- must not be null.ConfigurableAffordance addParameters(QueryParameter... parameters)
QueryParameter
s to the Affordance
to build.parameters
- must not be null.ConfigurableAffordance andAfford(HttpMethod method)
Affordance
to build and starts a new one.method
- must not be null.build()
,
AffordanceOperations.toLink()
Affordances build()
Affordance
currently under construction and returns in alongside the ones already contained in
the Link
the buildup started from.ConfigurableAffordance withTarget(Link target)
ConfigurableAffordance
by copying all attributes and replacing the target.target
- must not be null.ConfigurableAffordance withName(@Nullable String name)
ConfigurableAffordance
by copying all attributes and replacing the name.name
- can be null.Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.