ConfiguredAffordance instead. Will be made private in 1.4.@Deprecated public static class Affordances.AffordanceBuilder extends Object implements ConfigurableAffordance, ConfiguredAffordance
Affordance instances.ConfigurableAffordance,
ConfiguredAffordance| Modifier and Type | Method and Description |
|---|---|
Affordances.AffordanceBuilder |
addParameters(QueryParameter... parameters)
Deprecated.
Adds the given
QueryParameters to the Affordance to build. |
Affordances.AffordanceBuilder |
andAfford(HttpMethod method)
Deprecated.
Concludes the creation of the current
Affordance to build and starts a new one. |
Affordances |
build()
Deprecated.
Builds the
Affordance currently under construction and returns in alongside the ones already contained in
the Link the buildup started from. |
AffordanceModel.InputPayloadMetadata |
getInputMetadata()
Deprecated.
Metadata about the input payload.
|
HttpMethod |
getMethod()
Deprecated.
The
HttpMethod of the affordance. |
String |
getNameOrDefault()
Deprecated.
Returns the explicitly configured name of the
Affordance or calculates a default based on the
HttpMethod and type backing it. |
AffordanceModel.PayloadMetadata |
getOutputMetadata()
Deprecated.
Metadata about the output payload.
|
List<QueryParameter> |
getQueryParameters()
Deprecated.
The parameters of the affordance.
|
Link |
getTarget()
Deprecated.
Returns the affordance's target.
|
Link |
toLink()
Deprecated.
Returns a
Link equipped with the Affordance currently under construction. |
Affordances.AffordanceBuilder |
withInput(AffordanceModel.PayloadMetadata metadata)
Deprecated.
Registers the given
AffordanceModel.PayloadMetadata as input model. |
Affordances.AffordanceBuilder |
withInput(Class<?> type)
Deprecated.
Registers the given type as input model for the affordance.
|
Affordances.AffordanceBuilder |
withInput(ResolvableType type)
Deprecated.
Registers the given
ResolvableType as input model for the affordance. |
Affordances.AffordanceBuilder |
withInputAndOutput(AffordanceModel.PayloadMetadata metadata)
Deprecated.
Registers the given
AffordanceModel.PayloadMetadata as input and output model. |
Affordances.AffordanceBuilder |
withInputAndOutput(Class<?> type)
Deprecated.
Registers the given type as input and output model for the affordance.
|
Affordances.AffordanceBuilder |
withInputAndOutput(ResolvableType type)
Deprecated.
Registers the given
ResolvableType as input and output model for the affordance. |
ConfigurableAffordance |
withInputMediaType(MediaType inputMediaType)
Deprecated.
Registers the input to expect to be of the given
MediaType. |
ConfigurableAffordance |
withInputMediaTypes(List<MediaType> inputMediaTypes)
Deprecated.
Registers the given
MediaTypes as input payload media types. |
ConfigurableAffordance |
withName(String name)
Deprecated.
Create a new
Affordances.AffordanceBuilder by copying all attributes and replacing the name. |
Affordances.AffordanceBuilder |
withOutput(AffordanceModel.PayloadMetadata metadata)
Deprecated.
Registers the given
AffordanceModel.PayloadMetadata as output model. |
Affordances.AffordanceBuilder |
withOutput(Class<?> type)
Deprecated.
Registers the given type as the output model.
|
Affordances.AffordanceBuilder |
withOutput(ResolvableType type)
Deprecated.
Registers the given
ResolvableType as the output model. |
Affordances.AffordanceBuilder |
withParameters(List<QueryParameter> parameters)
Deprecated.
Replaces the current
QueryParameter list with the given ones. |
Affordances.AffordanceBuilder |
withParameters(QueryParameter... parameters)
Deprecated.
Replaces the current
QueryParameter list with the given ones. |
ConfigurableAffordance |
withTarget(Link target)
Deprecated.
Create a new
Affordances.AffordanceBuilder by copying all attributes and replacing the target. |
public Affordances.AffordanceBuilder withInputAndOutput(Class<?> type)
ConfigurableAffordancewithInputAndOutput in interface ConfigurableAffordancetype - must not be null.public Affordances.AffordanceBuilder withInputAndOutput(ResolvableType type)
ConfigurableAffordanceResolvableType as input and output model for the affordance.withInputAndOutput in interface ConfigurableAffordancetype - must not be null.public Affordances.AffordanceBuilder withInputAndOutput(AffordanceModel.PayloadMetadata metadata)
ConfigurableAffordanceAffordanceModel.PayloadMetadata as input and output model.withInputAndOutput in interface ConfigurableAffordancemetadata - must not be null.public Affordances.AffordanceBuilder withInput(Class<?> type)
ConfigurableAffordancewithInput in interface ConfigurableAffordancetype - must not be null.public Affordances.AffordanceBuilder withInput(ResolvableType type)
ConfigurableAffordanceResolvableType as input model for the affordance.withInput in interface ConfigurableAffordancetype - must not be null.public Affordances.AffordanceBuilder withInput(AffordanceModel.PayloadMetadata metadata)
ConfigurableAffordanceAffordanceModel.PayloadMetadata as input model.withInput in interface ConfigurableAffordancemetadata - must not be null.public Affordances.AffordanceBuilder withOutput(Class<?> type)
ConfigurableAffordancewithOutput in interface ConfigurableAffordancetype - must not be null.public Affordances.AffordanceBuilder withOutput(ResolvableType type)
ConfigurableAffordanceResolvableType as the output model.withOutput in interface ConfigurableAffordancetype - must not be null.public Affordances.AffordanceBuilder withOutput(AffordanceModel.PayloadMetadata metadata)
ConfigurableAffordanceAffordanceModel.PayloadMetadata as output model.withOutput in interface ConfigurableAffordancemetadata - must not be null.public ConfigurableAffordance withInputMediaType(MediaType inputMediaType)
ConfigurableAffordanceMediaType.withInputMediaType in interface ConfigurableAffordanceinputMediaType - can be null.public ConfigurableAffordance withInputMediaTypes(List<MediaType> inputMediaTypes)
ConfigurableAffordanceMediaTypes as input payload media types.withInputMediaTypes in interface ConfigurableAffordanceinputMediaTypes - must not be null.public Affordances.AffordanceBuilder withParameters(QueryParameter... parameters)
ConfigurableAffordanceQueryParameter list with the given ones.withParameters in interface ConfigurableAffordanceparameters - must not be null.public Affordances.AffordanceBuilder withParameters(List<QueryParameter> parameters)
ConfigurableAffordanceQueryParameter list with the given ones.withParameters in interface ConfigurableAffordanceparameters - must not be null.public Affordances.AffordanceBuilder addParameters(QueryParameter... parameters)
ConfigurableAffordanceQueryParameters to the Affordance to build.addParameters in interface ConfigurableAffordanceparameters - must not be null.public ConfigurableAffordance withTarget(Link target)
ConfigurableAffordanceAffordances.AffordanceBuilder by copying all attributes and replacing the target.withTarget in interface ConfigurableAffordancepublic ConfigurableAffordance withName(@Nullable String name)
ConfigurableAffordanceAffordances.AffordanceBuilder by copying all attributes and replacing the name.withName in interface ConfigurableAffordancename - can be null.public Affordances.AffordanceBuilder andAfford(HttpMethod method)
ConfigurableAffordanceAffordance to build and starts a new one.andAfford in interface ConfigurableAffordancemethod - must not be null.ConfigurableAffordance.build(),
AffordanceOperations.toLink()public Affordances build()
ConfigurableAffordanceAffordance currently under construction and returns in alongside the ones already contained in
the Link the buildup started from.build in interface ConfigurableAffordancepublic Link toLink()
AffordanceOperationsLink equipped with the Affordance currently under construction.toLink in interface AffordanceOperationspublic String getNameOrDefault()
ConfiguredAffordanceAffordance or calculates a default based on the
HttpMethod and type backing it.getNameOrDefault in interface ConfiguredAffordancepublic HttpMethod getMethod()
ConfiguredAffordanceHttpMethod of the affordance.getMethod in interface ConfiguredAffordancepublic AffordanceModel.InputPayloadMetadata getInputMetadata()
ConfiguredAffordancegetInputMetadata in interface ConfiguredAffordancepublic AffordanceModel.PayloadMetadata getOutputMetadata()
ConfiguredAffordancegetOutputMetadata in interface ConfiguredAffordancepublic Link getTarget()
ConfiguredAffordancegetTarget in interface ConfiguredAffordancepublic List<QueryParameter> getQueryParameters()
ConfiguredAffordancegetQueryParameters in interface ConfiguredAffordanceCopyright © 2011–2021 Pivotal, Inc.. All rights reserved.