com.sun.ws.rest.api
Interface Entity<T>

All Known Implementing Classes:
AtomEntryRepresentation, AtomFeedRepresentation, FormURLEncodedRepresentation, JAXBRepresentation, MimeMultipartRepresentation, Representation, StringRepresentation

public interface Entity<T>

An abstraction for the immutable entity of a HTTP request.


Method Summary
 T getContent()
          Get the content of the representation.
 java.lang.String getLanguage()
          Get the language of the entity
 MediaType getMediaType()
          Get the media type of the entity
 

Method Detail

getMediaType

MediaType getMediaType()
Get the media type of the entity

Returns:
the media type

getLanguage

java.lang.String getLanguage()
Get the language of the entity

Returns:
the language of the entity

getContent

T getContent()
Get the content of the representation.

Returns:
the representation as type T