public class SinglePrefer extends Object
Constructor and Description |
---|
SinglePrefer(String header)
Parse a Prefer: header
|
Modifier and Type | Method and Description |
---|---|
PreferTag |
getHandling()
Get the return tag, or a blank default, if none exists.
|
PreferTag |
getReturn()
Get the return tag, or a blank default, if none exists.
|
Boolean |
hasHandling()
Does the Prefer: header have a return tag
|
Boolean |
hasReturn()
Does the Prefer: header have a return tag
|
protected Set<PreferTag> |
preferTags() |
public SinglePrefer(String header) throws ParseException
header
- the headerParseException
- if parse exception occurredpublic Boolean hasReturn()
public Boolean hasHandling()
public PreferTag getReturn()
public PreferTag getHandling()
protected Set<PreferTag> preferTags()
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.