@ApplicationScoped public class DefaultAcceptHeaderToFormat extends Object implements AcceptHeaderToFormat
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
mimeToFormat |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultAcceptHeaderToFormat()
Deprecated.
CDI eyes only
|
|
DefaultAcceptHeaderToFormat(CacheStore<String,String> acceptToFormatCache) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat(String acceptHeader)
Get the _format associated with the given Accept header.
|
protected DefaultAcceptHeaderToFormat()
@Inject public DefaultAcceptHeaderToFormat(@LRU(capacity=100) CacheStore<String,String> acceptToFormatCache)
public String getFormat(String acceptHeader)
AcceptHeaderToFormatgetFormat in interface AcceptHeaderToFormatacceptHeader - The Accept HTTP headerCopyright © 2014 Caelum. All rights reserved.