Java Doc for HeaderFactory.java in  » 6.0-JDK-Modules » j2me » gov » nist » siplite » 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 » j2me » gov.nist.siplite.header 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gov.nist.siplite.header.HeaderFactory

HeaderFactory
public class HeaderFactory (Code)
Implementation of the JAIN SIP HeaderFactory
version:
   JAIN-SIP-1.1
version:
   This code is in the public domain.



Constructor Summary
public  HeaderFactory()
     Default constructor.

Method Summary
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:
  IllegalArgumentException - if supplied sequence number is lessthan zero.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the method value.
public  CallIdHeadercreateCallId(String callId)
     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.
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  ContentLengthHeadercreateContentLengthHeader(int contentLength)
     Creates a new CSeqHeader based on the newly supplied contentLength value.
Parameters:
  contentLength - - the new integer value of the contentLength.
throws:
  IllegalArgumentException - if supplied contentLength is lessthan 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  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:
  IllegalArgumentException - if supplied expires is lessthan zero.
public  ExtensionHeadercreateExtensionHeader(String name, String value)
     Creates a new ExtensionHeader based on the newly supplied name and value values.
Parameters:
  name - - the new string name of the ExtensionHeader value.
Parameters:
  value - - the new string value of the ExtensionHeader.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the name or value values.
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 headerName, String headerValue)
     Create and parse a header.
public  VectorcreateHeaders(String headers)
     Create and return a list of headers.
Parameters:
  headers - -- list of headers.
throws:
  ParseException - -- if a parse exception occurs or a Listof that type of header is not alowed.
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:
  IllegalArgumentException - if supplied maxForwards is lessthan zero or greater than 255.
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  RecordRouteHeadercreateRecordRouteHeader(Address address)
     Creates a new RecordRouteHeader based on the newly supplied address value.
Parameters:
  address - - the new Address object of the address.
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  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.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the tag value.
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 host value from the uri field
Parameters:
  port - the new port value from the uri field
Parameters:
  transport - the new transport value from the uri field
Parameters:
  branch - - the new string value of the branch.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the branch value.
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.


Constructor Detail
HeaderFactory
public HeaderFactory()(Code)
Default constructor.




Method Detail
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, IllegalArgumentException(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:
  IllegalArgumentException - 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.



createCallId
public CallIdHeader createCallId(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.



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.getAddress.getUserInfo() == *;
  • ContactHeader.getAddress.getAddress.isWildCard() == true;
  • ContactHeader.getExpiresHeader() == 0;
the newly created wildcard ContactHeader.



createContentLengthHeader
public ContentLengthHeader createContentLengthHeader(int contentLength) throws IllegalArgumentException(Code)
Creates a new CSeqHeader based on the newly supplied contentLength value.
Parameters:
  contentLength - - the new integer value of the contentLength.
throws:
  IllegalArgumentException - if supplied contentLength is lessthan 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.



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.
since:
   v1.1



createExpiresHeader
public ExpiresHeader createExpiresHeader(int expires) throws IllegalArgumentException(Code)
Creates a new ExpiresHeader based on the newly supplied expires value.
Parameters:
  expires - - the new integer value of the expires.
throws:
  IllegalArgumentException - if supplied expires is lessthan zero. the newly created ExpiresHeader object.



createExtensionHeader
public ExtensionHeader createExtensionHeader(String name, String value) throws ParseException(Code)
Creates a new ExtensionHeader based on the newly supplied name and value values.
Parameters:
  name - - the new string name of the ExtensionHeader value.
Parameters:
  value - - the new string value of the ExtensionHeader.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the name or value values. the newly created ExtensionHeader 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 headerName, String headerValue) throws ParseException(Code)
Create and parse a header.
Parameters:
  headerName - -- header name for the header to parse.
Parameters:
  headerValue - -- header value for the header to parse.
throws:
  ParseException - the parsed sip header



createHeaders
public Vector createHeaders(String headers) throws ParseException(Code)
Create and return a list of headers.
Parameters:
  headers - -- list of headers.
throws:
  ParseException - -- if a parse exception occurs or a Listof that type of header is not alowed. a List containing the headers.



createMaxForwardsHeader
public MaxForwardsHeader createMaxForwardsHeader(int maxForwards) throws IllegalArgumentException(Code)
Creates a new MaxForwardsHeader based on the newly supplied maxForwards value.
Parameters:
  maxForwards - the new integer value of the maxForwards.
throws:
  IllegalArgumentException - if supplied maxForwards is lessthan zero or greater than 255. the newly created MaxForwardsHeader 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.



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.



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.



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.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the tag value. the newly created ToHeader object.



createViaHeader
public ViaHeader createViaHeader(String host, int port, String transport, String branch) throws ParseException(Code)
Creates a new ViaHeader based on the newly supplied uri and branch values.
Parameters:
  host - the new host value from the uri field
Parameters:
  port - the new port value from the uri field
Parameters:
  transport - the new transport value from the uri field
Parameters:
  branch - - the new string value of the branch.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the branch value. 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.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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