public static class PreferHeader.PreferBuilder extends Object
Modifier and Type | Method and Description |
---|---|
PreferHeader |
build()
Create the PreferHeader.
|
PreferHeader.PreferBuilder |
include(String... ldpPreferUri)
LDP specific: Add a "include" parameter for the given URIs.
|
PreferHeader.PreferBuilder |
omit(String... ldpPreferUri)
LDP specific: Add a "omit" parameter for the given URIs.
|
PreferHeader.PreferBuilder |
parameter(String parameter)
Add a parameter (without value)
|
PreferHeader.PreferBuilder |
parameter(String parameter,
String value)
Add a parameter with the provided value.
|
PreferHeader.PreferBuilder |
parameters(Map<String,String> params)
Add the provided parameters and their values.
|
public PreferHeader.PreferBuilder parameter(String parameter)
parameter
- the parameter to addpublic PreferHeader.PreferBuilder parameter(String parameter, String value)
null
, the parameter is removed.parameter
- the parameter to add (or remove)value
- the parameter value (or null
to removepublic PreferHeader.PreferBuilder parameters(Map<String,String> params)
null
, all parameters will be removed.params
- the parameters to add (or null
to remove all parameters)public PreferHeader.PreferBuilder include(String... ldpPreferUri)
ldpPreferUri
- the URIs to "include"public PreferHeader.PreferBuilder omit(String... ldpPreferUri)
ldpPreferUri
- the URIs to "omit"public PreferHeader build()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.