Package org.fcrepo.http.commons.domain
Class SinglePrefer
java.lang.Object
org.fcrepo.http.commons.domain.SinglePrefer
- Direct Known Subclasses:
MultiPrefer
JAX-RS HTTP parameter parser for the Prefer header
- Author:
- cabeer, ajs6f, acoburn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the return tag, or a blank default, if none exists.Get the return tag, or a blank default, if none exists.Does the Prefer: header have a return tagDoes the Prefer: header have a return tag
-
Constructor Details
-
SinglePrefer
Parse a Prefer: header- Parameters:
header- the header
-
-
Method Details
-
hasReturn
Does the Prefer: header have a return tag- Returns:
- true if the header has a return tag
-
hasHandling
Does the Prefer: header have a return tag- Returns:
- true if the header has a return tag
-
getReturn
Get the return tag, or a blank default, if none exists.- Returns:
- return tag, or a blank default, if none exists
-
getHandling
Get the return tag, or a blank default, if none exists.- Returns:
- return tag, or a blank default, if none exists
-
preferTags
-