public class SimpleResourceDescription extends ResolvableResourceDescriptionSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEY_PREFIX |
protected static org.springframework.http.MediaType |
DEFAULT_MEDIA_TYPE |
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleResourceDescription(String message,
org.springframework.http.MediaType mediaType)
Creates a new
SimpleResourceDescription with the given message and MediaType. |
| Modifier and Type | Method and Description |
|---|---|
static ResourceDescription |
defaultFor(String rel) |
String[] |
getCodes() |
String |
getMessage()
Returns the description.
|
org.springframework.http.MediaType |
getType() |
boolean |
isDefault()
Returns whether this is the default description.
|
getArguments, getDefaultMessagepublic static final String DEFAULT_KEY_PREFIX
protected static final org.springframework.http.MediaType DEFAULT_MEDIA_TYPE
protected SimpleResourceDescription(String message, org.springframework.http.MediaType mediaType)
SimpleResourceDescription with the given message and MediaType.message - must not be null or empty.mediaType - must not be null or empty.public static ResourceDescription defaultFor(String rel)
public String getMessage()
ResourceDescriptionResourceDescription using a MessageSource.public org.springframework.http.MediaType getType()
public boolean isDefault()
ResourceDescriptionpublic String[] getCodes()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.