Class BodySchema
java.lang.Object
com.orange.spring.tmf630.affordances.BodySchema
- All Implemented Interfaces:
AffordanceProperties.Property<BodySchema>
,Serializable
public final class BodySchema
extends Object
implements AffordanceProperties.Property<BodySchema>, Serializable
Describes the expected body structure of the request. Can be used instead of the
Fields
for a more complex structure.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBodySchema
(@NotNull BodySchema.SchemaType schemaType, @NotNull String schemaUrl) -
Method Summary
Modifier and TypeMethodDescription@NotNull BodySchema.SchemaType
@NotNull String
@NotNull String
name()
@NotNull BodySchema
value()
-
Constructor Details
-
BodySchema
public BodySchema(@NotNull @NotNull BodySchema.SchemaType schemaType, @NotNull @NotNull String schemaUrl) - Parameters:
schemaType
- type of the schema describing the expected bodyschemaUrl
- a URL where to retrieve the schema
-
-
Method Details
-
getSchemaType
- Returns:
- values are "json-schema" or "xsd"
-
getSchemaUrl
- Returns:
- a URL of a schema describing the expected payload
-
name
- Specified by:
name
in interfaceAffordanceProperties.Property<BodySchema>
-
value
- Specified by:
value
in interfaceAffordanceProperties.Property<BodySchema>
-