public final class NegotiatedFormat extends Object
| Constructor and Description |
|---|
NegotiatedFormat(MediaType mediaType,
String format)
Construct
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat() |
MediaType |
getMediaType() |
static String |
negotiateFormat(String accept,
NegotiatedFormat[] negotiatedFormats)
Negotiate Format - given a list of accepted media types, return the format that's
most suitable
|
public MediaType getMediaType()
public String getFormat()
public static String negotiateFormat(String accept, NegotiatedFormat[] negotiatedFormats)
accept - comma-seperated list of accepted media typesnegotiatedFormats - list of available formatsCopyright © 2005–2016 Alfresco Software. All rights reserved.