Java Doc for HeaderFactory.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » sip » header » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » javax.sip.header 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.sip.header.HeaderFactory

HeaderFactory
public interface HeaderFactory (Code)
This interface provides factory methods that allow an application to create Header object from a particular implementation of JAIN SIP. This class is a singleton and can be retrieved from the javax.sip.SipFactory.createHeaderFactory .
author:
   BEA Systems, NIST
version:
   1.2




Method Summary
public  AcceptEncodingHeadercreateAcceptEncodingHeader(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  AcceptHeadercreateAcceptHeader(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  AcceptLanguageHeadercreateAcceptLanguageHeader(Locale language)
     Creates a new AcceptLanguageHeader based on the newly supplied language value.
public  AlertInfoHeadercreateAlertInfoHeader(URI alertInfo)
     Creates a new AlertInfoHeader based on the newly supplied alertInfo value.
public  AllowEventsHeadercreateAllowEventsHeader(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  AllowHeadercreateAllowHeader(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  AuthenticationInfoHeadercreateAuthenticationInfoHeader(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  AuthorizationHeadercreateAuthorizationHeader(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  CSeqHeadercreateCSeqHeader(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  CSeqHeadercreateCSeqHeader(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  CallIdHeadercreateCallIdHeader(String callId)
     Creates a new CallIdHeader based on the newly supplied callId value.
public  CallInfoHeadercreateCallInfoHeader(URI callInfo)
     Creates a new CallInfoHeader based on the newly supplied callInfo value.
Parameters:
  callInfo - the new URI value of the callInfo.
public  ContactHeadercreateContactHeader(Address address)
     Creates a new ContactHeader based on the newly supplied address value.
Parameters:
  address - the new Address value of the address.
public  ContactHeadercreateContactHeader()
     Creates a new wildcard ContactHeader.
public  ContentDispositionHeadercreateContentDispositionHeader(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  ContentEncodingHeadercreateContentEncodingHeader(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  ContentLanguageHeadercreateContentLanguageHeader(Locale contentLanguage)
     Creates a new ContentLanguageHeader based on the newly supplied contentLanguage value.
Parameters:
  contentLanguage - the new Locale value of the contentLanguage.
public  ContentLengthHeadercreateContentLengthHeader(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  ContentTypeHeadercreateContentTypeHeader(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  DateHeadercreateDateHeader(Calendar date)
     Creates a new DateHeader based on the newly supplied date value.
Parameters:
  date - the new Calender value of the date.
public  ErrorInfoHeadercreateErrorInfoHeader(URI errorInfo)
     Creates a new ErrorInfoHeader based on the newly supplied errorInfo value.
Parameters:
  errorInfo - the new URI value of the errorInfo.
public  EventHeadercreateEventHeader(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  ExpiresHeadercreateExpiresHeader(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  FromHeadercreateFromHeader(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  HeadercreateHeader(String name, String value)
     Creates a new Header based on the newly supplied name and value values.
public  ListcreateHeaders(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  InReplyToHeadercreateInReplyToHeader(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  MaxForwardsHeadercreateMaxForwardsHeader(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  MimeVersionHeadercreateMimeVersionHeader(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  MinExpiresHeadercreateMinExpiresHeader(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  OrganizationHeadercreateOrganizationHeader(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  PriorityHeadercreatePriorityHeader(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  ProxyAuthenticateHeadercreateProxyAuthenticateHeader(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  ProxyAuthorizationHeadercreateProxyAuthorizationHeader(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  ProxyRequireHeadercreateProxyRequireHeader(String optionTag)
     Creates a new ProxyRequireHeader based on the newly supplied optionTag value.
Parameters:
  optionTag - the new string OptionTag value.
public  RAckHeadercreateRAckHeader(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  RSeqHeadercreateRSeqHeader(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  ReasonHeadercreateReasonHeader(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  RecordRouteHeadercreateRecordRouteHeader(Address address)
     Creates a new RecordRouteHeader based on the newly supplied address value.
Parameters:
  address - the new Address object of the address.
public  ReferToHeadercreateReferToHeader(Address address)
     Creates a new ReferToHeader based on the newly supplied address value.
Parameters:
  address - the new Address object of the address.
public  ReplyToHeadercreateReplyToHeader(Address address)
     Creates a new ReplyToHeader based on the newly supplied address value.
Parameters:
  address - the new Address object of the address.
public  RequireHeadercreateRequireHeader(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  RetryAfterHeadercreateRetryAfterHeader(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  RouteHeadercreateRouteHeader(Address address)
     Creates a new RouteHeader based on the newly supplied address value.
Parameters:
  address - the new Address object of the address.
public  SIPETagHeadercreateSIPETagHeader(String etag)
    
public  SIPIfMatchHeadercreateSIPIfMatchHeader(String etag)
    
public  ServerHeadercreateServerHeader(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  SubjectHeadercreateSubjectHeader(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  SubscriptionStateHeadercreateSubscriptionStateHeader(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  SupportedHeadercreateSupportedHeader(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  TimeStampHeadercreateTimeStampHeader(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  ToHeadercreateToHeader(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  UnsupportedHeadercreateUnsupportedHeader(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  UserAgentHeadercreateUserAgentHeader(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  ViaHeadercreateViaHeader(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  WWWAuthenticateHeadercreateWWWAuthenticateHeader(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  WarningHeadercreateWarningHeader(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.



Method Detail
createAcceptEncodingHeader
public AcceptEncodingHeader createAcceptEncodingHeader(String encoding) throws ParseException(Code)
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. the newly created AcceptEncodingHeader object.



createAcceptHeader
public AcceptHeader createAcceptHeader(String contentType, String contentSubType) throws ParseException(Code)
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. the newly created AcceptHeader object.



createAcceptLanguageHeader
public AcceptLanguageHeader createAcceptLanguageHeader(Locale language)(Code)
Creates a new AcceptLanguageHeader based on the newly supplied language value.
Parameters:
  language - the new Locale value of the language the newly created AcceptLanguageHeader object.



createAlertInfoHeader
public AlertInfoHeader createAlertInfoHeader(URI alertInfo)(Code)
Creates a new AlertInfoHeader based on the newly supplied alertInfo value.
Parameters:
  alertInfo - the new URI value of the alertInfo the newly created AlertInfoHeader object.



createAllowEventsHeader
public AllowEventsHeader createAllowEventsHeader(String eventType) throws ParseException(Code)
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. the newly created AllowEventsHeader object.



createAllowHeader
public AllowHeader createAllowHeader(String method) throws ParseException(Code)
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. the newly created AllowHeader object.



createAuthenticationInfoHeader
public AuthenticationInfoHeader createAuthenticationInfoHeader(String response) throws ParseException(Code)
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. the newly created AuthenticationInfoHeader object.



createAuthorizationHeader
public AuthorizationHeader createAuthorizationHeader(String scheme) throws ParseException(Code)
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. the newly created AuthorizationHeader object.



createCSeqHeader
public CSeqHeader createCSeqHeader(int sequenceNumber, String method) throws ParseException, InvalidArgumentException(Code)
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. the newly created CSeqHeader object.HeaderFactory.createCSeqHeader(long,String)



createCSeqHeader
public CSeqHeader createCSeqHeader(long sequenceNumber, String method) throws ParseException, InvalidArgumentException(Code)
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. the newly created CSeqHeader object.
since:
   v1.2



createCallIdHeader
public CallIdHeader createCallIdHeader(String callId) throws ParseException(Code)
Creates a new CallIdHeader based on the newly supplied callId value.
Parameters:
  callId - the new string value of the call-id.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the callId value. the newly created CallIdHeader object.



createCallInfoHeader
public CallInfoHeader createCallInfoHeader(URI callInfo)(Code)
Creates a new CallInfoHeader based on the newly supplied callInfo value.
Parameters:
  callInfo - the new URI value of the callInfo. the newly created CallInfoHeader object.



createContactHeader
public ContactHeader createContactHeader(Address address)(Code)
Creates a new ContactHeader based on the newly supplied address value.
Parameters:
  address - the new Address value of the address. the newly created ContactHeader object.



createContactHeader
public ContactHeader createContactHeader()(Code)
Creates a new wildcard ContactHeader. This is used in Register requests to indicate to the server that it should remove all locations the at which the user is currently available. This implies that the following conditions are met:
  • ContactHeader.getAddress.getUserInfo() == *;
  • ContactHeader.getAddress.isWildCard() == true;
  • ContactHeader.getExpires() == 0;
the newly created wildcard ContactHeader.



createContentDispositionHeader
public ContentDispositionHeader createContentDispositionHeader(String contentDispositionType) throws ParseException(Code)
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. the newly created ContentDispositionHeader object.



createContentEncodingHeader
public ContentEncodingHeader createContentEncodingHeader(String encoding) throws ParseException(Code)
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. the newly created ContentEncodingHeader object.



createContentLanguageHeader
public ContentLanguageHeader createContentLanguageHeader(Locale contentLanguage)(Code)
Creates a new ContentLanguageHeader based on the newly supplied contentLanguage value.
Parameters:
  contentLanguage - the new Locale value of the contentLanguage. the newly created ContentLanguageHeader object.



createContentLengthHeader
public ContentLengthHeader createContentLengthHeader(int contentLength) throws InvalidArgumentException(Code)
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. the newly created ContentLengthHeader object.



createContentTypeHeader
public ContentTypeHeader createContentTypeHeader(String contentType, String contentSubType) throws ParseException(Code)
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. the newly created ContentTypeHeader object.



createDateHeader
public DateHeader createDateHeader(Calendar date)(Code)
Creates a new DateHeader based on the newly supplied date value.
Parameters:
  date - the new Calender value of the date. the newly created DateHeader object.



createErrorInfoHeader
public ErrorInfoHeader createErrorInfoHeader(URI errorInfo)(Code)
Creates a new ErrorInfoHeader based on the newly supplied errorInfo value.
Parameters:
  errorInfo - the new URI value of the errorInfo. the newly created ErrorInfoHeader object.



createEventHeader
public EventHeader createEventHeader(String eventType) throws ParseException(Code)
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. the newly created EventHeader object.



createExpiresHeader
public ExpiresHeader createExpiresHeader(int expires) throws InvalidArgumentException(Code)
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. the newly created ExpiresHeader object.



createFromHeader
public FromHeader createFromHeader(Address address, String tag) throws ParseException(Code)
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. the newly created FromHeader object.



createHeader
public Header createHeader(String name, String value) throws ParseException(Code)
Creates a new Header based on the newly supplied name and value values. This method can be used to create ExtensionHeaders.
Parameters:
  name - the new string name of the Header value.
Parameters:
  value - the new string value of the Header.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the name or value values. the newly created Header object.
See Also:   ExtensionHeader



createHeaders
public List createHeaders(String headers) throws ParseException(Code)
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. Note that the Contact header field allows a comma-separated list unless the header field value is "*"
Parameters:
  headers - the new string comma seperated list of Header values.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the headers value or a List of that Headertype is not allowed. the newly created List of Header objects.



createInReplyToHeader
public InReplyToHeader createInReplyToHeader(String callId) throws ParseException(Code)
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. the newly created InReplyToHeader object.



createMaxForwardsHeader
public MaxForwardsHeader createMaxForwardsHeader(int maxForwards) throws InvalidArgumentException(Code)
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. the newly created MaxForwardsHeader object.



createMimeVersionHeader
public MimeVersionHeader createMimeVersionHeader(int majorVersion, int minorVersion) throws InvalidArgumentException(Code)
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. the newly created MimeVersionHeader object.



createMinExpiresHeader
public MinExpiresHeader createMinExpiresHeader(int minExpires) throws InvalidArgumentException(Code)
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. the newly created MinExpiresHeader object.



createOrganizationHeader
public OrganizationHeader createOrganizationHeader(String organization) throws ParseException(Code)
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. the newly created OrganizationHeader object.



createPriorityHeader
public PriorityHeader createPriorityHeader(String priority) throws ParseException(Code)
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. the newly created PriorityHeader object.



createProxyAuthenticateHeader
public ProxyAuthenticateHeader createProxyAuthenticateHeader(String scheme) throws ParseException(Code)
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. the newly created ProxyAuthenticateHeader object.



createProxyAuthorizationHeader
public ProxyAuthorizationHeader createProxyAuthorizationHeader(String scheme) throws ParseException(Code)
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. the newly created ProxyAuthorizationHeader object.



createProxyRequireHeader
public ProxyRequireHeader createProxyRequireHeader(String optionTag) throws ParseException(Code)
Creates a new ProxyRequireHeader based on the newly supplied optionTag value.
Parameters:
  optionTag - the new string OptionTag value. the newly created ProxyRequireHeader object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the optionTag value.



createRAckHeader
public RAckHeader createRAckHeader(int rSeqNumber, int cSeqNumber, String method) throws InvalidArgumentException, ParseException(Code)
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. the newly created RAckHeader object.



createRSeqHeader
public RSeqHeader createRSeqHeader(int sequenceNumber) throws InvalidArgumentException(Code)
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. the newly created RSeqHeader object.



createReasonHeader
public ReasonHeader createReasonHeader(String protocol, int cause, String text) throws InvalidArgumentException, ParseException(Code)
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. the newly created ReasonHeader object.



createRecordRouteHeader
public RecordRouteHeader createRecordRouteHeader(Address address)(Code)
Creates a new RecordRouteHeader based on the newly supplied address value.
Parameters:
  address - the new Address object of the address. the newly created RecordRouteHeader object.



createReferToHeader
public ReferToHeader createReferToHeader(Address address)(Code)
Creates a new ReferToHeader based on the newly supplied address value.
Parameters:
  address - the new Address object of the address. the newly created ReferToHeader object.



createReplyToHeader
public ReplyToHeader createReplyToHeader(Address address)(Code)
Creates a new ReplyToHeader based on the newly supplied address value.
Parameters:
  address - the new Address object of the address. the newly created ReplyToHeader object.



createRequireHeader
public RequireHeader createRequireHeader(String optionTag) throws ParseException(Code)
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. the newly created RequireHeader object.



createRetryAfterHeader
public RetryAfterHeader createRetryAfterHeader(int retryAfter) throws InvalidArgumentException(Code)
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. the newly created RetryAfterHeader object.



createRouteHeader
public RouteHeader createRouteHeader(Address address)(Code)
Creates a new RouteHeader based on the newly supplied address value.
Parameters:
  address - the new Address object of the address. the newly created RouteHeader object.



createSIPETagHeader
public SIPETagHeader createSIPETagHeader(String etag) throws ParseException(Code)
Creates a new SIP-ETag header with the supplied tag value
Parameters:
  etag - the new tag token the newly created SIP-ETag header
throws:
  ParseException - when an error occurs during parsing of the etag parameter
since:
   1.2



createSIPIfMatchHeader
public SIPIfMatchHeader createSIPIfMatchHeader(String etag) throws ParseException(Code)
Creates a new SIP-If-Match header with the supplied tag value
Parameters:
  etag - the new tag token the newly created SIP-If-Match header
throws:
  ParseException - when an error occurs during parsing of the etag parameter
since:
   1.2



createServerHeader
public ServerHeader createServerHeader(List product) throws ParseException(Code)
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. the newly created ServerHeader object.



createSubjectHeader
public SubjectHeader createSubjectHeader(String subject) throws ParseException(Code)
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. the newly created SubjectHeader object.



createSubscriptionStateHeader
public SubscriptionStateHeader createSubscriptionStateHeader(String subscriptionState) throws ParseException(Code)
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. the newly created SubscriptionStateHeader object.



createSupportedHeader
public SupportedHeader createSupportedHeader(String optionTag) throws ParseException(Code)
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. the newly created SupportedHeader object.



createTimeStampHeader
public TimeStampHeader createTimeStampHeader(float timeStamp) throws InvalidArgumentException(Code)
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. the newly created TimeStampHeader object.



createToHeader
public ToHeader createToHeader(Address address, String tag) throws ParseException(Code)
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. the newly created ToHeader object.



createUnsupportedHeader
public UnsupportedHeader createUnsupportedHeader(String optionTag) throws ParseException(Code)
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. the newly created UnsupportedHeader object.



createUserAgentHeader
public UserAgentHeader createUserAgentHeader(List product) throws ParseException(Code)
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. the newly created UserAgentHeader object.



createViaHeader
public ViaHeader createViaHeader(String host, int port, String transport, String branch) throws ParseException, InvalidArgumentException(Code)
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. the newly created ViaHeader object.



createWWWAuthenticateHeader
public WWWAuthenticateHeader createWWWAuthenticateHeader(String scheme) throws ParseException(Code)
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. the newly created WWWAuthenticateHeader object.



createWarningHeader
public WarningHeader createWarningHeader(String agent, int code, String comment) throws InvalidArgumentException, ParseException(Code)
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. the newly created WarningHeader object.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.