public interface PrivacyHeader extends Header
Privacy-hdr = "Privacy" HCOLON priv-value *(";" priv-value) priv-value = "header" / "session" / "user" / "none" / "critical" / token
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
PRIVACY_CRITICAL |
static String |
PRIVACY_HEADER |
static String |
PRIVACY_ID |
static String |
PRIVACY_NONE |
static String |
PRIVACY_SESSION |
static String |
PRIVACY_USER |
Modifier and Type | Method and Description |
---|---|
void |
addPrivacyValue(String value)
Add another privacy value to the header.
|
Iterator |
getPrivacyValues()
Convenience method to get all the privacy values currently set
in this header.
|
boolean |
isCriticalPrivacyRequested()
Determine if privacy value "critical" has been requested.
|
boolean |
isHeaderPrivacyRequested()
Determine if privacy value "header" has been requested.
|
boolean |
isIDPrivacyRequested()
Determine if privacy value "id" has been requested (RFC 3325).
|
boolean |
isNoPrivacyRequested()
Determine if privacy value "none" has been requested.
|
boolean |
isPrivacyRequested(String value)
Determine if the particular privacy value has been requested.
|
boolean |
isSessionPrivacyRequested()
Determine if privacy value "session" has been requested.
|
boolean |
isUserPrivacyRequested()
Determine if privacy value "user" has been requested.
|
void |
removePrivacyValue(String value)
Remove the privacy value from the header.
|
void |
setPrivacyValue(String value)
Reset the privacy value to a new value, erasing all current values
|
static final String NAME
static final String PRIVACY_NONE
static final String PRIVACY_HEADER
static final String PRIVACY_SESSION
static final String PRIVACY_USER
static final String PRIVACY_CRITICAL
static final String PRIVACY_ID
boolean isNoPrivacyRequested()
boolean isHeaderPrivacyRequested()
boolean isSessionPrivacyRequested()
boolean isUserPrivacyRequested()
boolean isCriticalPrivacyRequested()
boolean isIDPrivacyRequested()
boolean isPrivacyRequested(String value)
true
if the value has been set in the
header, false
otherwise.void setPrivacyValue(String value)
void addPrivacyValue(String value)
void removePrivacyValue(String value)
Iterator getPrivacyValues()