RepresentationType (enum)

API

RepresentationType.java
enum RepresentationType {
  HOME_PAGE
  USER
  VERSION
  HEALTH
  LIST
  DOMAIN_OBJECT
  OBJECT_PROPERTY
  OBJECT_COLLECTION
  OBJECT_ACTION
  ACTION_RESULT
  TYPE_LIST
  DOMAIN_TYPE
  LAYOUT
  OBJECT_LAYOUT
  IMAGE
  MENUBARS
  PROPERTY_DESCRIPTION
  COLLECTION_DESCRIPTION
  ACTION_DESCRIPTION
  ACTION_PARAMETER_DESCRIPTION
  TYPE_ACTION_RESULT
  ERROR
  GENERIC
  String getName()
  MediaType getJsonMediaType()
  MediaType getXmlMediaType()
  MediaType getJsonElseXmlMediaType()
  MediaType getMediaType(String parameter, String paramValue)     (1)
  MediaType getJsonMediaType(Map<String, String> mediaTypeParams)
  MediaType getXmlMediaType(Map<String, String> mediaTypeParams)
  String getMediaTypeProfile()
  Class<? extends JsonRepresentation> getRepresentationClass()
  RepresentationType lookup(String name)
  RepresentationType lookup(MediaType mediaType)
  boolean matches(MediaType mediaType)
  boolean matchesXmlProfile(MediaType mediaType)
  boolean matchesJsonProfile(MediaType mediaType)
  MediaType matchesXmlProfileWithParameter(List<MediaType> mediaTypes, String parameterKey)     (2)
  MediaType matchesJsonProfileWithParameter(List<MediaType> mediaTypes, String parameterKey)     (3)
  Parser<RepresentationType> parser()
}
1 getMediaType(String, String)

Clones the (immutable) #getJsonMediaType() media type , adding in one additional parameter value.

2 matchesXmlProfileWithParameter(List, String)

whether any of the RepresentationType s matches any (accept header) XML MediaType with specified parameter.

3 matchesJsonProfileWithParameter(List, String)

whether any of the RepresentationType s matches any (accept header) JSON MediaType with specified parameter.

Members

getMediaType(String, String)

Clones the (immutable) #getJsonMediaType() media type , adding in one additional parameter value.

matchesXmlProfileWithParameter(List, String)

whether any of the RepresentationType s matches any (accept header) XML MediaType with specified parameter.

matchesJsonProfileWithParameter(List, String)

whether any of the RepresentationType s matches any (accept header) JSON MediaType with specified parameter.