public interface HeaderFactory
SipFactory.createHeaderFactory()
.Modifier and Type | Method and Description |
---|---|
AcceptEncodingHeader |
createAcceptEncodingHeader(String encoding)
Creates a new AcceptEncodingHeader based on the newly supplied encoding
value.
|
AcceptHeader |
createAcceptHeader(String contentType,
String contentSubType)
Creates a new AcceptHeader based on the newly supplied contentType and
contentSubType values.
|
AcceptLanguageHeader |
createAcceptLanguageHeader(Locale language)
Creates a new AcceptLanguageHeader based on the newly supplied
language value.
|
AlertInfoHeader |
createAlertInfoHeader(URI alertInfo)
Creates a new AlertInfoHeader based on the newly supplied alertInfo value.
|
AllowEventsHeader |
createAllowEventsHeader(String eventType)
Creates a new AllowEventsHeader based on the newly supplied event type
value.
|
AllowHeader |
createAllowHeader(String method)
Creates a new AllowHeader based on the newly supplied method value.
|
AuthenticationInfoHeader |
createAuthenticationInfoHeader(String response)
Creates a new AuthenticationInfoHeader based on the newly supplied
response value.
|
AuthorizationHeader |
createAuthorizationHeader(String scheme)
Creates a new AuthorizationHeader based on the newly supplied
scheme value.
|
CallIdHeader |
createCallIdHeader(String callId)
Creates a new CallIdHeader based on the newly supplied callId value.
|
CallInfoHeader |
createCallInfoHeader(URI callInfo)
Creates a new CallInfoHeader based on the newly supplied callInfo value.
|
ContactHeader |
createContactHeader()
Creates a new wildcard ContactHeader.
|
ContactHeader |
createContactHeader(Address address)
Creates a new ContactHeader based on the newly supplied address value.
|
ContentDispositionHeader |
createContentDispositionHeader(String contentDispositionType)
Creates a new ContentDispositionHeader based on the newly supplied
contentDisposition value.
|
ContentEncodingHeader |
createContentEncodingHeader(String encoding)
Creates a new ContentEncodingHeader based on the newly supplied encoding
value.
|
ContentLanguageHeader |
createContentLanguageHeader(Locale contentLanguage)
Creates a new ContentLanguageHeader based on the newly supplied
contentLanguage value.
|
ContentLengthHeader |
createContentLengthHeader(int contentLength)
Creates a new ContentLengthHeader based on the newly supplied contentLength value.
|
ContentTypeHeader |
createContentTypeHeader(String contentType,
String contentSubType)
Creates a new ContentTypeHeader based on the newly supplied contentType and
contentSubType values.
|
CSeqHeader |
createCSeqHeader(int sequenceNumber,
String method)
Deprecated.
Since 1.2. Use
createCSeqHeader(long, String) method
with type long. |
CSeqHeader |
createCSeqHeader(long sequenceNumber,
String method)
Creates a new CSeqHeader based on the newly supplied sequence number and
method values.
|
DateHeader |
createDateHeader(Calendar date)
Creates a new DateHeader based on the newly supplied date value.
|
ErrorInfoHeader |
createErrorInfoHeader(URI errorInfo)
Creates a new ErrorInfoHeader based on the newly supplied errorInfo value.
|
EventHeader |
createEventHeader(String eventType)
Creates a new EventHeader based on the newly supplied eventType value.
|
ExpiresHeader |
createExpiresHeader(int expires)
Creates a new ExpiresHeader based on the newly supplied expires value.
|
FromHeader |
createFromHeader(Address address,
String tag)
Creates a new FromHeader based on the newly supplied address and
tag values.
|
Header |
createHeader(String name,
String value)
Creates a new Header based on the newly supplied name and value values.
|
List |
createHeaders(String headers)
Creates a new List of Headers based on a supplied comma seperated
list of Header values for a single header name.
|
InReplyToHeader |
createInReplyToHeader(String callId)
Creates a new InReplyToHeader based on the newly supplied callId
value.
|
MaxForwardsHeader |
createMaxForwardsHeader(int maxForwards)
Creates a new MaxForwardsHeader based on the newly supplied maxForwards value.
|
MimeVersionHeader |
createMimeVersionHeader(int majorVersion,
int minorVersion)
Creates a new MimeVersionHeader based on the newly supplied mimeVersion
values.
|
MinExpiresHeader |
createMinExpiresHeader(int minExpires)
Creates a new MinExpiresHeader based on the newly supplied minExpires value.
|
OrganizationHeader |
createOrganizationHeader(String organization)
Creates a new OrganizationHeader based on the newly supplied
organization value.
|
PriorityHeader |
createPriorityHeader(String priority)
Creates a new PriorityHeader based on the newly supplied priority value.
|
ProxyAuthenticateHeader |
createProxyAuthenticateHeader(String scheme)
Creates a new ProxyAuthenticateHeader based on the newly supplied
scheme value.
|
ProxyAuthorizationHeader |
createProxyAuthorizationHeader(String scheme)
Creates a new ProxyAuthorizationHeader based on the newly supplied
scheme value.
|
ProxyRequireHeader |
createProxyRequireHeader(String optionTag)
Creates a new ProxyRequireHeader based on the newly supplied optionTag
value.
|
RAckHeader |
createRAckHeader(int rSeqNumber,
int cSeqNumber,
String method)
Creates a new RAckHeader based on the newly supplied rSeqNumber,
cSeqNumber and method values.
|
ReasonHeader |
createReasonHeader(String protocol,
int cause,
String text)
Creates a new ReasonHeader based on the newly supplied reason value.
|
RecordRouteHeader |
createRecordRouteHeader(Address address)
Creates a new RecordRouteHeader based on the newly supplied address value.
|
ReferToHeader |
createReferToHeader(Address address)
Creates a new ReferToHeader based on the newly supplied address value.
|
ReplyToHeader |
createReplyToHeader(Address address)
Creates a new ReplyToHeader based on the newly supplied address value.
|
RequireHeader |
createRequireHeader(String optionTag)
Creates a new RequireHeader based on the newly supplied optionTag
value.
|
RetryAfterHeader |
createRetryAfterHeader(int retryAfter)
Creates a new RetryAfterHeader based on the newly supplied retryAfter
value.
|
RouteHeader |
createRouteHeader(Address address)
Creates a new RouteHeader based on the newly supplied address value.
|
RSeqHeader |
createRSeqHeader(int sequenceNumber)
Creates a new RSeqHeader based on the newly supplied sequenceNumber value.
|
ServerHeader |
createServerHeader(List product)
Creates a new ServerHeader based on the newly supplied List of product
values.
|
SIPETagHeader |
createSIPETagHeader(String etag)
Creates a new SIP-ETag header with the supplied tag value
|
SIPIfMatchHeader |
createSIPIfMatchHeader(String etag)
Creates a new SIP-If-Match header with the supplied tag value
|
SubjectHeader |
createSubjectHeader(String subject)
Creates a new SubjectHeader based on the newly supplied subject value.
|
SubscriptionStateHeader |
createSubscriptionStateHeader(String subscriptionState)
Creates a new SubscriptionStateHeader based on the newly supplied
subscriptionState value.
|
SupportedHeader |
createSupportedHeader(String optionTag)
Creates a new SupportedHeader based on the newly supplied optionTag
value.
|
TimeStampHeader |
createTimeStampHeader(float timeStamp)
Creates a new TimeStampHeader based on the newly supplied timeStamp value.
|
ToHeader |
createToHeader(Address address,
String tag)
Creates a new ToHeader based on the newly supplied address and
tag values.
|
UnsupportedHeader |
createUnsupportedHeader(String optionTag)
Creates a new UnsupportedHeader based on the newly supplied optionTag
value.
|
UserAgentHeader |
createUserAgentHeader(List product)
Creates a new UserAgentHeader based on the newly supplied List of product
values.
|
ViaHeader |
createViaHeader(String host,
int port,
String transport,
String branch)
Creates a new ViaHeader based on the newly supplied uri and branch values.
|
WarningHeader |
createWarningHeader(String agent,
int code,
String comment)
Creates a new WarningHeader based on the newly supplied
agent, code and comment values.
|
WWWAuthenticateHeader |
createWWWAuthenticateHeader(String scheme)
Creates a new WWWAuthenticateHeader based on the newly supplied
scheme value.
|
AcceptEncodingHeader createAcceptEncodingHeader(String encoding) throws ParseException
encoding
- the new string containing the encoding value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the encoding value.AcceptHeader createAcceptHeader(String contentType, String contentSubType) throws ParseException
contentType
- the new string content type value.contentSubType
- the new string content sub-type value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the content type or content subtype value.AcceptLanguageHeader createAcceptLanguageHeader(Locale language)
language
- the new Locale value of the languageAlertInfoHeader createAlertInfoHeader(URI alertInfo)
alertInfo
- the new URI value of the alertInfoAllowEventsHeader createAllowEventsHeader(String eventType) throws ParseException
eventType
- the new string containing the eventType value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the eventType value.AllowHeader createAllowHeader(String method) throws ParseException
method
- the new string containing the method value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the method value.AuthenticationInfoHeader createAuthenticationInfoHeader(String response) throws ParseException
response
- the new string value of the response.ParseException
- which signals that an error has been reached
unexpectedly while parsing the response value.AuthorizationHeader createAuthorizationHeader(String scheme) throws ParseException
scheme
- the new string value of the scheme.ParseException
- which signals that an error has been reached
unexpectedly while parsing the scheme value.CSeqHeader createCSeqHeader(int sequenceNumber, String method) throws ParseException, InvalidArgumentException
createCSeqHeader(long, String)
method
with type long.sequenceNumber
- the new integer value of the sequence number.method
- the new string value of the method.InvalidArgumentException
- if supplied sequence number is less
than zero.ParseException
- which signals that an error has been reached
unexpectedly while parsing the method value.CSeqHeader createCSeqHeader(long sequenceNumber, String method) throws ParseException, InvalidArgumentException
sequenceNumber
- the new long value of the sequence number.method
- the new string value of the method.InvalidArgumentException
- if supplied sequence number is less
than zero.ParseException
- which signals that an error has been reached
unexpectedly while parsing the method value.CallIdHeader createCallIdHeader(String callId) throws ParseException
callId
- the new string value of the call-id.ParseException
- which signals that an error has been reached
unexpectedly while parsing the callId value.CallInfoHeader createCallInfoHeader(URI callInfo)
callInfo
- the new URI value of the callInfo.ContactHeader createContactHeader(Address address)
address
- the new Address value of the address.ContactHeader createContactHeader()
ContactHeader.getAddress.getUserInfo() == *;
ContactHeader.getAddress.isWildCard() == true;
ContactHeader.getExpires() == 0;
ContentDispositionHeader createContentDispositionHeader(String contentDispositionType) throws ParseException
contentDispositionType
- the new string value of the contentDisposition.ParseException
- which signals that an error has been reached
unexpectedly while parsing the contentDisposition value.ContentEncodingHeader createContentEncodingHeader(String encoding) throws ParseException
encoding
- the new string containing the encoding value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the encoding value.ContentLanguageHeader createContentLanguageHeader(Locale contentLanguage)
contentLanguage
- the new Locale value of the contentLanguage.ContentLengthHeader createContentLengthHeader(int contentLength) throws InvalidArgumentException
contentLength
- the new integer value of the contentLength.InvalidArgumentException
- if supplied contentLength is less
than zero.ContentTypeHeader createContentTypeHeader(String contentType, String contentSubType) throws ParseException
contentType
- the new string content type value.contentSubType
- the new string content sub-type value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the content type or content subtype value.DateHeader createDateHeader(Calendar date)
date
- the new Calender value of the date.ErrorInfoHeader createErrorInfoHeader(URI errorInfo)
errorInfo
- the new URI value of the errorInfo.EventHeader createEventHeader(String eventType) throws ParseException
eventType
- the new string value of the eventType.ParseException
- which signals that an error has been reached
unexpectedly while parsing the eventType value.ExpiresHeader createExpiresHeader(int expires) throws InvalidArgumentException
expires
- the new integer value of the expires.InvalidArgumentException
- if supplied expires is less
than zero.Header createHeader(String name, String value) throws ParseException
name
- the new string name of the Header value.value
- the new string value of the Header.ParseException
- which signals that an error has been reached
unexpectedly while parsing the name or value values.ExtensionHeader
List createHeaders(String headers) throws ParseException
headers
- the new string comma seperated list of Header values.ParseException
- which signals that an error has been reached
unexpectedly while parsing the headers value or a List of that Header
type is not allowed.FromHeader createFromHeader(Address address, String tag) throws ParseException
address
- the new Address object of the address.tag
- the new string value of the tag.ParseException
- which signals that an error has been reached
unexpectedly while parsing the tag value.InReplyToHeader createInReplyToHeader(String callId) throws ParseException
callId
- the new string containing the callId value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the callId value.MaxForwardsHeader createMaxForwardsHeader(int maxForwards) throws InvalidArgumentException
maxForwards
- the new integer value of the maxForwards.InvalidArgumentException
- if supplied maxForwards is less
than zero or greater than 255.MimeVersionHeader createMimeVersionHeader(int majorVersion, int minorVersion) throws InvalidArgumentException
majorVersion
- the new integer value of the majorVersion.minorVersion
- the new integer value of the minorVersion.InvalidArgumentException
- if supplied majorVersion or minorVersion
is less than zero.MinExpiresHeader createMinExpiresHeader(int minExpires) throws InvalidArgumentException
minExpires
- the new integer value of the minExpires.InvalidArgumentException
- if supplied minExpires is less
than zero.OrganizationHeader createOrganizationHeader(String organization) throws ParseException
organization
- the new string value of the organization.ParseException
- which signals that an error has been reached
unexpectedly while parsing the organization value.PriorityHeader createPriorityHeader(String priority) throws ParseException
priority
- the new string value of the priority.ParseException
- which signals that an error has been reached
unexpectedly while parsing the priority value.ProxyAuthenticateHeader createProxyAuthenticateHeader(String scheme) throws ParseException
scheme
- the new string value of the scheme.ParseException
- which signals that an error has been reached
unexpectedly while parsing the scheme value.ProxyAuthorizationHeader createProxyAuthorizationHeader(String scheme) throws ParseException
scheme
- the new string value of the scheme.ParseException
- which signals that an error has been reached
unexpectedly while parsing the scheme value.ProxyRequireHeader createProxyRequireHeader(String optionTag) throws ParseException
optionTag
- the new string OptionTag value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the optionTag value.RAckHeader createRAckHeader(int rSeqNumber, int cSeqNumber, String method) throws InvalidArgumentException, ParseException
rSeqNumber
- the new integer value of the rSeqNumber.cSeqNumber
- the new integer value of the cSeqNumber.method
- the new string value of the method.InvalidArgumentException
- if supplied rSeqNumber or cSeqNumber is
less than zero or greater than than 2**31-1.ParseException
- which signals that an error has been reached
unexpectedly while parsing the method value.RSeqHeader createRSeqHeader(int sequenceNumber) throws InvalidArgumentException
sequenceNumber
- the new integer value of the sequenceNumber.InvalidArgumentException
- if supplied sequenceNumber is
less than zero or greater than than 2**31-1.ReasonHeader createReasonHeader(String protocol, int cause, String text) throws InvalidArgumentException, ParseException
protocol
- the new string value of the protocol.cause
- the new integer value of the cause.text
- the new string value of the text.ParseException
- which signals that an error has been reached
unexpectedly while parsing the protocol or text value.InvalidArgumentException
- if supplied cause is
less than zero.RecordRouteHeader createRecordRouteHeader(Address address)
address
- the new Address object of the address.ReplyToHeader createReplyToHeader(Address address)
address
- the new Address object of the address.ReferToHeader createReferToHeader(Address address)
address
- the new Address object of the address.RequireHeader createRequireHeader(String optionTag) throws ParseException
optionTag
- the new string value containing the optionTag value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the List of optionTag value.RetryAfterHeader createRetryAfterHeader(int retryAfter) throws InvalidArgumentException
retryAfter
- the new integer value of the retryAfter.InvalidArgumentException
- if supplied retryAfter is less
than zero.RouteHeader createRouteHeader(Address address)
address
- the new Address object of the address.ServerHeader createServerHeader(List product) throws ParseException
product
- the new List of values of the product.ParseException
- which signals that an error has been reached
unexpectedly while parsing the List of product values.SubjectHeader createSubjectHeader(String subject) throws ParseException
subject
- the new string value of the subject.ParseException
- which signals that an error has been reached
unexpectedly while parsing the subject value.SubscriptionStateHeader createSubscriptionStateHeader(String subscriptionState) throws ParseException
subscriptionState
- the new string value of the subscriptionState.ParseException
- which signals that an error has been reached
unexpectedly while parsing the subscriptionState value.SupportedHeader createSupportedHeader(String optionTag) throws ParseException
optionTag
- the new string containing the optionTag value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the optionTag value.TimeStampHeader createTimeStampHeader(float timeStamp) throws InvalidArgumentException
timeStamp
- the new float value of the timeStamp.InvalidArgumentException
- if supplied timeStamp is less
than zero.ToHeader createToHeader(Address address, String tag) throws ParseException
address
- the new Address object of the address.tag
- the new string value of the tag, this value may be null.ParseException
- which signals that an error has been reached
unexpectedly while parsing the tag value.UnsupportedHeader createUnsupportedHeader(String optionTag) throws ParseException
optionTag
- the new string containing the optionTag value.ParseException
- which signals that an error has been reached
unexpectedly while parsing the List of optionTag value.UserAgentHeader createUserAgentHeader(List product) throws ParseException
product
- the new List of values of the product.ParseException
- which signals that an error has been reached
unexpectedly while parsing the List of product values.ViaHeader createViaHeader(String host, int port, String transport, String branch) throws ParseException, InvalidArgumentException
host
- the new string value of the host.port
- the new integer value of the port.transport
- the new string value of the transport.branch
- the new string value of the branch.ParseException
- which signals that an error has been reached
unexpectedly while parsing the host, transport or branch value.InvalidArgumentException
- if the supplied port is invalid.WWWAuthenticateHeader createWWWAuthenticateHeader(String scheme) throws ParseException
scheme
- the new string value of the scheme.ParseException
- which signals that an error has been reached
unexpectedly while parsing the scheme values.WarningHeader createWarningHeader(String agent, int code, String comment) throws InvalidArgumentException, ParseException
agent
- the new string value of the agent.code
- the new boolean integer of the code.comment
- the new string value of the comment.ParseException
- which signals that an error has been reached
unexpectedly while parsing the agent or comment values.InvalidArgumentException
- if an invalid integer code is given for
the WarningHeader.SIPETagHeader createSIPETagHeader(String etag) throws ParseException
etag
- the new tag tokenParseException
- when an error occurs during parsing of the etag parameterSIPIfMatchHeader createSIPIfMatchHeader(String etag) throws ParseException
etag
- the new tag tokenParseException
- when an error occurs during parsing of the etag parameterCopyright © 2017. All Rights Reserved.