Method Summary |
|
public AcceptEncodingHeader | createAcceptEncodingHeader(String encoding) Creates a new AcceptEncodingHeader based on the newly supplied encoding
value.
Parameters: encoding - the new string containing the encoding value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the encoding value. |
public AcceptHeader | createAcceptHeader(String contentType, String contentSubType) Creates a new AcceptHeader based on the newly supplied contentType and
contentSubType values.
Parameters: contentType - the new string content type value. Parameters: contentSubType - the new string content sub-type value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the content type or content subtype value. |
public AcceptLanguageHeader | createAcceptLanguageHeader(Locale language) Creates a new AcceptLanguageHeader based on the newly supplied
language value. |
public AlertInfoHeader | createAlertInfoHeader(URI alertInfo) Creates a new AlertInfoHeader based on the newly supplied alertInfo value. |
public AllowEventsHeader | createAllowEventsHeader(String eventType) Creates a new AllowEventsHeader based on the newly supplied event type
value.
Parameters: eventType - the new string containing the eventType value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the eventType value. |
public AllowHeader | createAllowHeader(String method) Creates a new AllowHeader based on the newly supplied method value.
Parameters: method - the new string containing the method value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the method value. |
public AuthenticationInfoHeader | createAuthenticationInfoHeader(String response) Creates a new AuthenticationInfoHeader based on the newly supplied
response value.
Parameters: response - the new string value of the response. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the response value. |
public AuthorizationHeader | createAuthorizationHeader(String scheme) Creates a new AuthorizationHeader based on the newly supplied
scheme value.
Parameters: scheme - the new string value of the scheme. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the scheme value. |
public CSeqHeader | createCSeqHeader(int sequenceNumber, String method) Creates a new CSeqHeader based on the newly supplied sequence number and
method values.
Parameters: sequenceNumber - the new integer value of the sequence number. Parameters: method - the new string value of the method. throws: InvalidArgumentException - if supplied sequence number is less than zero. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the method value. |
public CSeqHeader | createCSeqHeader(long sequenceNumber, String method) Creates a new CSeqHeader based on the newly supplied sequence number and
method values.
Parameters: sequenceNumber - the new long value of the sequence number. Parameters: method - the new string value of the method. throws: InvalidArgumentException - if supplied sequence number is lessthan zero. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the method value. |
public CallIdHeader | createCallIdHeader(String callId) Creates a new CallIdHeader based on the newly supplied callId value. |
public CallInfoHeader | createCallInfoHeader(URI callInfo) Creates a new CallInfoHeader based on the newly supplied callInfo value.
Parameters: callInfo - the new URI value of the callInfo. |
public ContactHeader | createContactHeader(Address address) Creates a new ContactHeader based on the newly supplied address value.
Parameters: address - the new Address value of the address. |
public ContactHeader | createContactHeader() Creates a new wildcard ContactHeader. |
public ContentDispositionHeader | createContentDispositionHeader(String contentDispositionType) Creates a new ContentDispositionHeader based on the newly supplied
contentDisposition value.
Parameters: contentDispositionType - the new string value of the contentDisposition. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the contentDisposition value. |
public ContentEncodingHeader | createContentEncodingHeader(String encoding) Creates a new ContentEncodingHeader based on the newly supplied encoding
value.
Parameters: encoding - the new string containing the encoding value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the encoding value. |
public ContentLanguageHeader | createContentLanguageHeader(Locale contentLanguage) Creates a new ContentLanguageHeader based on the newly supplied
contentLanguage value.
Parameters: contentLanguage - the new Locale value of the contentLanguage. |
public ContentLengthHeader | createContentLengthHeader(int contentLength) Creates a new ContentLengthHeader based on the newly supplied contentLength value.
Parameters: contentLength - the new integer value of the contentLength. throws: InvalidArgumentException - if supplied contentLength is less than zero. |
public ContentTypeHeader | createContentTypeHeader(String contentType, String contentSubType) Creates a new ContentTypeHeader based on the newly supplied contentType and
contentSubType values.
Parameters: contentType - the new string content type value. Parameters: contentSubType - the new string content sub-type value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the content type or content subtype value. |
public DateHeader | createDateHeader(Calendar date) Creates a new DateHeader based on the newly supplied date value.
Parameters: date - the new Calender value of the date. |
public ErrorInfoHeader | createErrorInfoHeader(URI errorInfo) Creates a new ErrorInfoHeader based on the newly supplied errorInfo value.
Parameters: errorInfo - the new URI value of the errorInfo. |
public EventHeader | createEventHeader(String eventType) Creates a new EventHeader based on the newly supplied eventType value.
Parameters: eventType - the new string value of the eventType. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the eventType value. |
public ExpiresHeader | createExpiresHeader(int expires) Creates a new ExpiresHeader based on the newly supplied expires value.
Parameters: expires - the new integer value of the expires. throws: InvalidArgumentException - if supplied expires is less than zero. |
public FromHeader | createFromHeader(Address address, String tag) Creates a new FromHeader based on the newly supplied address and
tag values.
Parameters: address - the new Address object of the address. Parameters: tag - the new string value of the tag. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the tag value. |
public Header | createHeader(String name, String value) Creates a new Header based on the newly supplied name and value values. |
public 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.
This method can be used only for SIP headers whose grammar is of the form
header = header-name HCOLON header-value *(COMMA header-value) that
allows for combining header fields of the same name into a
comma-separated list. |
public InReplyToHeader | createInReplyToHeader(String callId) Creates a new InReplyToHeader based on the newly supplied callId
value.
Parameters: callId - the new string containing the callId value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the callId value. |
public MaxForwardsHeader | createMaxForwardsHeader(int maxForwards) Creates a new MaxForwardsHeader based on the newly supplied maxForwards value.
Parameters: maxForwards - the new integer value of the maxForwards. throws: InvalidArgumentException - if supplied maxForwards is less than zero or greater than 255. |
public MimeVersionHeader | createMimeVersionHeader(int majorVersion, int minorVersion) Creates a new MimeVersionHeader based on the newly supplied mimeVersion
values.
Parameters: majorVersion - the new integer value of the majorVersion. Parameters: minorVersion - the new integer value of the minorVersion. throws: InvalidArgumentException - if supplied majorVersion or minorVersion is less than zero. |
public MinExpiresHeader | createMinExpiresHeader(int minExpires) Creates a new MinExpiresHeader based on the newly supplied minExpires value.
Parameters: minExpires - the new integer value of the minExpires. throws: InvalidArgumentException - if supplied minExpires is less than zero. |
public OrganizationHeader | createOrganizationHeader(String organization) Creates a new OrganizationHeader based on the newly supplied
organization value.
Parameters: organization - the new string value of the organization. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the organization value. |
public PriorityHeader | createPriorityHeader(String priority) Creates a new PriorityHeader based on the newly supplied priority value.
Parameters: priority - the new string value of the priority. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the priority value. |
public ProxyAuthenticateHeader | createProxyAuthenticateHeader(String scheme) Creates a new ProxyAuthenticateHeader based on the newly supplied
scheme value.
Parameters: scheme - the new string value of the scheme. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the scheme value. |
public ProxyAuthorizationHeader | createProxyAuthorizationHeader(String scheme) Creates a new ProxyAuthorizationHeader based on the newly supplied
scheme value.
Parameters: scheme - the new string value of the scheme. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the scheme value. |
public ProxyRequireHeader | createProxyRequireHeader(String optionTag) Creates a new ProxyRequireHeader based on the newly supplied optionTag
value.
Parameters: optionTag - the new string OptionTag value. |
public RAckHeader | createRAckHeader(int rSeqNumber, int cSeqNumber, String method) Creates a new RAckHeader based on the newly supplied rSeqNumber,
cSeqNumber and method values.
Parameters: rSeqNumber - the new integer value of the rSeqNumber. Parameters: cSeqNumber - the new integer value of the cSeqNumber. Parameters: method - the new string value of the method. throws: InvalidArgumentException - if supplied rSeqNumber or cSeqNumber is less than zero or greater than than 2**31-1. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the method value. |
public RSeqHeader | createRSeqHeader(int sequenceNumber) Creates a new RSeqHeader based on the newly supplied sequenceNumber value.
Parameters: sequenceNumber - the new integer value of the sequenceNumber. throws: InvalidArgumentException - if supplied sequenceNumber is less than zero or greater than than 2**31-1. |
public ReasonHeader | createReasonHeader(String protocol, int cause, String text) Creates a new ReasonHeader based on the newly supplied reason value.
Parameters: protocol - the new string value of the protocol. Parameters: cause - the new integer value of the cause. Parameters: text - the new string value of the text. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the protocol or text value. throws: InvalidArgumentException - if supplied cause is less than zero. |
public RecordRouteHeader | createRecordRouteHeader(Address address) Creates a new RecordRouteHeader based on the newly supplied address value.
Parameters: address - the new Address object of the address. |
public ReferToHeader | createReferToHeader(Address address) Creates a new ReferToHeader based on the newly supplied address value.
Parameters: address - the new Address object of the address. |
public ReplyToHeader | createReplyToHeader(Address address) Creates a new ReplyToHeader based on the newly supplied address value.
Parameters: address - the new Address object of the address. |
public RequireHeader | createRequireHeader(String optionTag) Creates a new RequireHeader based on the newly supplied optionTag
value.
Parameters: optionTag - the new string value containing the optionTag value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the List of optionTag value. |
public RetryAfterHeader | createRetryAfterHeader(int retryAfter) Creates a new RetryAfterHeader based on the newly supplied retryAfter
value.
Parameters: retryAfter - the new integer value of the retryAfter. throws: InvalidArgumentException - if supplied retryAfter is less than zero. |
public RouteHeader | createRouteHeader(Address address) Creates a new RouteHeader based on the newly supplied address value.
Parameters: address - the new Address object of the address. |
public SIPETagHeader | createSIPETagHeader(String etag) |
public SIPIfMatchHeader | createSIPIfMatchHeader(String etag) |
public ServerHeader | createServerHeader(List product) Creates a new ServerHeader based on the newly supplied List of product
values.
Parameters: product - the new List of values of the product. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the List of product values. |
public SubjectHeader | createSubjectHeader(String subject) Creates a new SubjectHeader based on the newly supplied subject value.
Parameters: subject - the new string value of the subject. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the subject value. |
public SubscriptionStateHeader | createSubscriptionStateHeader(String subscriptionState) Creates a new SubscriptionStateHeader based on the newly supplied
subscriptionState value.
Parameters: subscriptionState - the new string value of the subscriptionState. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the subscriptionState value. |
public SupportedHeader | createSupportedHeader(String optionTag) Creates a new SupportedHeader based on the newly supplied optionTag
value.
Parameters: optionTag - the new string containing the optionTag value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the optionTag value. |
public TimeStampHeader | createTimeStampHeader(float timeStamp) Creates a new TimeStampHeader based on the newly supplied timeStamp value.
Parameters: timeStamp - the new float value of the timeStamp. throws: InvalidArgumentException - if supplied timeStamp is less than zero. |
public ToHeader | createToHeader(Address address, String tag) Creates a new ToHeader based on the newly supplied address and
tag values.
Parameters: address - the new Address object of the address. Parameters: tag - the new string value of the tag, this value may be null. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the tag value. |
public UnsupportedHeader | createUnsupportedHeader(String optionTag) Creates a new UnsupportedHeader based on the newly supplied optionTag
value.
Parameters: optionTag - the new string containing the optionTag value. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the List of optionTag value. |
public UserAgentHeader | createUserAgentHeader(List product) Creates a new UserAgentHeader based on the newly supplied List of product
values.
Parameters: product - the new List of values of the product. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the List of product values. |
public ViaHeader | createViaHeader(String host, int port, String transport, String branch) Creates a new ViaHeader based on the newly supplied uri and branch values.
Parameters: host - the new string value of the host. Parameters: port - the new integer value of the port. Parameters: transport - the new string value of the transport. Parameters: branch - the new string value of the branch. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the host, transport or branch value. throws: InvalidArgumentException - if the supplied port is invalid. |
public WWWAuthenticateHeader | createWWWAuthenticateHeader(String scheme) Creates a new WWWAuthenticateHeader based on the newly supplied
scheme value.
Parameters: scheme - the new string value of the scheme. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the scheme values. |
public WarningHeader | createWarningHeader(String agent, int code, String comment) Creates a new WarningHeader based on the newly supplied
agent, code and comment values.
Parameters: agent - the new string value of the agent. Parameters: code - the new boolean integer of the code. Parameters: comment - the new string value of the comment. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the agent or comment values. throws: InvalidArgumentException - if an invalid integer code is given forthe WarningHeader. |