public class Preference extends Object
Modifier and Type | Method and Description |
---|---|
static Preference |
defaultPreference()
The default preference: not minimal, all included.
|
boolean |
includeContainment()
Should containment triples be included in the response?
|
boolean |
includeContent()
Should the LDP-RS content be included in the response?
|
boolean |
includeMembership()
Should membership triples be included in the response?
|
boolean |
includeMinimalContainer()
Should minimal container triples be included in the response?
|
static Preference |
includePreference(String... includes)
Non-minimal preference, with only the args included.
|
boolean |
isMinimal()
Reflects a
Prefer: return="minimal" header |
static Preference |
minimalPreference()
The minimal preference: minimal is
true , nothing included. |
static Preference |
omitPreference(String... omits)
Non-minimal preference, with all the provided args omitted.
|
void |
setContainment(boolean containment)
Setting containment to
true will also set minimal to false |
void |
setContent(boolean content)
Setting content to
true will also set minimal to false |
void |
setMembership(boolean membership)
Setting membership to
true will also set minimal to false |
void |
setMinimal(boolean minimal)
If minimal is set to
true , all other settings will be set to false. |
void |
setMinimalContainer(boolean minimalContainer)
Setting minimal container to
true will also set minimal to false |
public boolean isMinimal()
Prefer: return="minimal"
headertrue
if the minimal representation is preferred by the clientpublic boolean includeContent()
true
if the content triples should be included in the responsepublic boolean includeMembership()
true
if membership triples should be included in the responsepublic boolean includeContainment()
true
if containment triples should be included in the responsepublic boolean includeMinimalContainer()
true
if minimal container triples should be included in the responsepublic void setMinimal(boolean minimal)
true
, all other settings will be set to false.minimal
- whether minimal representation is preferred.public void setContent(boolean content)
true
will also set minimal to false
content
- should the LDP-RS content be included in the response?public void setMembership(boolean membership)
true
will also set minimal to false
membership
- should membership triples be included in the response?public void setContainment(boolean containment)
true
will also set minimal to false
containment
- should containment triples be included in the response?public void setMinimalContainer(boolean minimalContainer)
true
will also set minimal to false
minimalContainer
- should minimal container triples be included in the response?public static Preference defaultPreference()
public static Preference minimalPreference()
true
, nothing included.public static Preference includePreference(String... includes)
includes
- LDP-Preference URIs to include in the responsepublic static Preference omitPreference(String... omits)
omits
- LDP-Preference URIs to omit in the responseCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.