本文整理匯總了Java中javax.sip.header.UserAgentHeader類的典型用法代碼示例。如果您正苦於以下問題:Java UserAgentHeader類的具體用法?Java UserAgentHeader怎麽用?Java UserAgentHeader使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
UserAgentHeader類屬於javax.sip.header包,在下文中一共展示了UserAgentHeader類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setDefaultUserAgentHeader
import javax.sip.header.UserAgentHeader; //導入依賴的package包/類
/**
* Set the common UserAgent header for all Requests created from this message factory.
* This header is applied to all Messages created from this Factory object except those
* that take String for an argument and create Message from the given String.
*
* @param userAgent -- the user agent header to set.
*
*/
public void setDefaultUserAgentHeader(UserAgentHeader userAgent);