public class Negotiator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LANG |
static int |
HTML |
static int |
N3 |
static int |
RDFXML |
static int |
TURTLE |
static int |
UNSPECIFIED |
static int |
WILDCARD |
| Constructor and Description |
|---|
Negotiator() |
| Modifier and Type | Method and Description |
|---|---|
static Comparator<MediaRange> |
getMediaRangeComparator()
Method to get a comparator to compare media ranges regarding their
content negotiation precedence.
|
static int |
negotiate(String acceptHeader) |
static boolean |
sendRedirect(javax.servlet.http.HttpServletResponse response,
String handle,
String extraPathInfo,
int serialization,
boolean redirectHTML) |
public static final int UNSPECIFIED
public static final int WILDCARD
public static final int HTML
public static final int RDFXML
public static final int TURTLE
public static final int N3
public static final String DEFAULT_LANG
public static int negotiate(String acceptHeader)
public static Comparator<MediaRange> getMediaRangeComparator()
Note: this comparator imposes orderings that are inconsistent with equals! Caution should be exercised when using it to order a sorted set or a sorted map. Take a look at the java.util.Comparator for further information.
public static boolean sendRedirect(javax.servlet.http.HttpServletResponse response,
String handle,
String extraPathInfo,
int serialization,
boolean redirectHTML)
throws IOException
IOExceptionCopyright © 2022 LYRASIS. All rights reserved.