Java Doc for MessageFactory.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » sip » message » 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.message 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.sip.message.MessageFactory

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




Method Summary
public  RequestcreateRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content)
     Creates a new Request message of type specified by the method paramater, containing the URI of the Request, the mandatory headers of the message with a body in the form of a Java object and the body content type.
Parameters:
  requestURI - the new URI object of the requestURI value of this Message.
Parameters:
  method - the new string of the method value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new Object of the body content value of this Message.
public  RequestcreateRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content)
     Creates a new Request message of type specified by the method paramater, containing the URI of the Request, the mandatory headers of the message with a body in the form of a byte array and body content type.
Parameters:
  requestURI - the new URI object of the requestURI value of this Message.
Parameters:
  method - the new string of the method value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new byte array of the body content value of this Message.
public  RequestcreateRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards)
     Creates a new Request message of type specified by the method paramater, containing the URI of the Request, the mandatory headers of the message. This new Request does not contain a body.
Parameters:
  requestURI - the new URI object of the requestURI value of this Message.
Parameters:
  method - the new string of the method value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message.
public  RequestcreateRequest(String request)
     Create a new SIP Request object based on a specific string value.
public  ResponsecreateResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content)
     Creates a new Response message of type specified by the statusCode paramater, containing the mandatory headers of the message with a body in the form of a Java object and the body content type.
Parameters:
  statusCode - the new integer of the statusCode value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new Object of the body content value of this Message.
public  ResponsecreateResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content)
     Creates a new Response message of type specified by the statusCode paramater, containing the mandatory headers of the message with a body in the form of a byte array and the body content type.
Parameters:
  statusCode - the new integer of the statusCode value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new byte array of the body content value of this Message.
public  ResponsecreateResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards)
     Creates a new Response message of type specified by the statusCode paramater, containing the mandatory headers of the message.
public  ResponsecreateResponse(int statusCode, Request request, ContentTypeHeader contentType, Object content)
     Creates a new Response message of type specified by the statusCode paramater, based on a specific Request with a new body in the form of a Java object and the body content type.
public  ResponsecreateResponse(int statusCode, Request request, ContentTypeHeader contentType, byte[] content)
     Creates a new Response message of type specified by the statusCode paramater, based on a specific Request with a new body in the form of a byte array and the body content type.
public  ResponsecreateResponse(int statusCode, Request request)
     Creates a new Response message of type specified by the statusCode paramater, based on a specific Request message.
public  ResponsecreateResponse(String response)
     Creates a Response from a String.



Method Detail
createRequest
public Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) throws ParseException(Code)
Creates a new Request message of type specified by the method paramater, containing the URI of the Request, the mandatory headers of the message with a body in the form of a Java object and the body content type.
Parameters:
  requestURI - the new URI object of the requestURI value of this Message.
Parameters:
  method - the new string of the method value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new Object of the body content value of this Message. the newly created Request object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the method or the body.



createRequest
public Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) throws ParseException(Code)
Creates a new Request message of type specified by the method paramater, containing the URI of the Request, the mandatory headers of the message with a body in the form of a byte array and body content type.
Parameters:
  requestURI - the new URI object of the requestURI value of this Message.
Parameters:
  method - the new string of the method value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new byte array of the body content value of this Message. the newly created Request object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the method or the body.



createRequest
public Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards) throws ParseException(Code)
Creates a new Request message of type specified by the method paramater, containing the URI of the Request, the mandatory headers of the message. This new Request does not contain a body.
Parameters:
  requestURI - the new URI object of the requestURI value of this Message.
Parameters:
  method - the new string of the method value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message. the newly created Request object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the method.



createRequest
public Request createRequest(String request) throws ParseException(Code)
Create a new SIP Request object based on a specific string value. This method parses the supplied string into a SIP Request. The request string should only consist of the SIP portion of the Request and not the content. Supplying a null argument creates an empty SIP Request which may be used to end out "keep alive" messages for a connection.
Parameters:
  request - the new string value of the Request. the newly created Request object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the request.



createResponse
public Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) throws ParseException(Code)
Creates a new Response message of type specified by the statusCode paramater, containing the mandatory headers of the message with a body in the form of a Java object and the body content type.
Parameters:
  statusCode - the new integer of the statusCode value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new Object of the body content value of this Message. the newly created Response object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.



createResponse
public Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) throws ParseException(Code)
Creates a new Response message of type specified by the statusCode paramater, containing the mandatory headers of the message with a body in the form of a byte array and the body content type.
Parameters:
  statusCode - the new integer of the statusCode value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new byte array of the body content value of this Message. the newly created Response object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.



createResponse
public Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards) throws ParseException(Code)
Creates a new Response message of type specified by the statusCode paramater, containing the mandatory headers of the message. This new Response does not contain a body.
Parameters:
  statusCode - the new integer of the statusCode value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value of this Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of this Message.
Parameters:
  from - the new FromHeader object of the from value of this Message.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new List object of the ViaHeaders of this Message. the newly created Response object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode.



createResponse
public Response createResponse(int statusCode, Request request, ContentTypeHeader contentType, Object content) throws ParseException(Code)
Creates a new Response message of type specified by the statusCode paramater, based on a specific Request with a new body in the form of a Java object and the body content type. Only the required headers are copied from the Request.
Parameters:
  statusCode - the new integer of the statusCode value of this Message.
Parameters:
  request - the received Reqest object upon which to base the Response.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new Object of the body content value of this Message. the newly created Response object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.



createResponse
public Response createResponse(int statusCode, Request request, ContentTypeHeader contentType, byte[] content) throws ParseException(Code)
Creates a new Response message of type specified by the statusCode paramater, based on a specific Request with a new body in the form of a byte array and the body content type. Only the required headers are copied from the Request.
Parameters:
  statusCode - the new integer of the statusCode value of this Message.
Parameters:
  request - the received Reqest object upon which to base the Response.
Parameters:
  contentType - the new ContentTypeHeader object of the content type value of this Message.
Parameters:
  content - the new byte array of the body content value of this Message. the newly created Response object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.



createResponse
public Response createResponse(int statusCode, Request request) throws ParseException(Code)
Creates a new Response message of type specified by the statusCode paramater, based on a specific Request message. This new Response does not contain a body. Only the required headers are copied from the Request.
Parameters:
  statusCode - the new integer of the statusCode value of this Message.
Parameters:
  request - the received Reqest object upon which to base the Response. the newly created Response object.
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode.



createResponse
public Response createResponse(String response) throws ParseException(Code)
Creates a Response from a String. This method parses the supplied string into a SIP Response. The response string should only consist of the SIP portion of the Response and not the content.
Parameters:
  response - is a string representing the response. The argument should only contain the Sip Headers and not the body of the response.
throws:
  ParseException - which signals an error has been reached unexpectedlywhile parsing the response.
since:
   v1.2



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