@ApplicationScoped public class DefaultAcceptHeaderToFormat extends java.lang.Object implements AcceptHeaderToFormat
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
mimeToFormat |
Constructor and Description |
---|
DefaultAcceptHeaderToFormat() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormat(java.lang.String acceptHeader)
Get the _format associated with the given Accept header.
|
protected final java.util.Map<java.lang.String,java.lang.String> mimeToFormat
public java.lang.String getFormat(java.lang.String acceptHeader)
AcceptHeaderToFormat
getFormat
in interface AcceptHeaderToFormat
acceptHeader
- The Accept HTTP headerCopyright © 2013 Caelum. All Rights Reserved.