Package se.curity.identityserver.sdk.web
Interface Representation
public interface Representation
Base interface for all resource representations.
A representation reflects the state of a resource or of an error and can be included into HTTP message payloads. (see RFC 7132).
- Since:
- 5.4.0
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()Returns the representation payload.Returns the representation's media type.
-
Method Details
-
getMediaType
MediaType getMediaType()Returns the representation's media type.- Returns:
- the representation media type (also known as MIME type).
-
getBody
SerializableAsMap getBody()Returns the representation payload.- Returns:
- the representation contents, ready to be serialized and added to a HTTP message payload.
-