public interface CallInfoHeader extends Parameters, Header
Use of the Call-Info header field can pose a security risk. If a callee fetches the URIs provided by a malicious caller, the callee may be at risk for displaying inappropriate or offensive content, dangerous or illegal content, and so on. Therefore, it is RECOMMENDED that a User Agent only render the information in the Call-Info header field if it can verify the authenticity of the element that originated the header field and trusts that element. This need not be the peer User Agent; a proxy can insert this header field into requests.
For Example:
Call-Info: http://jcp.org/duke/photo.jpg;
purpose=icon, http://jcp.org/duke/; purpose=info
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Name of CallInfoHeader
|
Modifier and Type | Method and Description |
---|---|
URI |
getInfo()
Gets the URI that represents the location of the info of the caller
or callee.
|
String |
getPurpose()
Gets the purpose of the information supplied in this CallInfoHeader.
|
void |
setInfo(URI info)
Sets the Information parameter of this CallInfoHeader.
|
void |
setPurpose(String purpose)
Sets the purpose parameter of the info of this CallInfoHeader.
|
getParameter, getParameterNames, removeParameter, setParameter
static final String NAME
void setInfo(URI info)
info
- the new URI value of the location of the information.URI getInfo()
void setPurpose(String purpose) throws ParseException
purpose
- - the new string value of the purpose of this info.ParseException
- which signals that an error has been reached
unexpectedly while parsing the purpose value.String getPurpose()
Copyright © 2015. All Rights Reserved.