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


java.lang.Object
   gov.nist.siplite.message.MessageFactory

MessageFactory
public class MessageFactory (Code)
Message Factory implementation
version:
   JAIN-SIP-1.1
version:
   This code is in the public domain.



Constructor Summary
public  MessageFactory()
    

Method Summary
public  RequestcreateRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector 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 valueof this Message.
Parameters:
  method - the new string of the method value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value ofthis Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of thisMessage.
Parameters:
  from - the new FromHeader object of the from value of thisMessage.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the contenttype value of this Message.
Parameters:
  content - the new Object of the body content value of thisMessage.
public  RequestcreateRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, byte[] content, ContentTypeHeader contentType)
     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 therequestURI 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 ofthis Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  content - - the new byte array of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message.
public  RequestcreateRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector 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 ofthis Message.
Parameters:
  method - - the new string of the method value of this Message.
Parameters:
  callId - - the new CallIdHeader object of the callId value ofthis Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
public  RequestcreateRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector 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 valueof this Message.
Parameters:
  method - - the new string of the method value of this Message.
Parameters:
  callId - - the new CallIdHeader object of the callId valueof this Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the content typevalue of this Message.
Parameters:
  content - - the new byte array of the body contentvalue of this Message.
public  RequestcreateRequest(String requestString)
     Create a request from a string.
public  ResponsecreateResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, Object content, ContentTypeHeader contentType)
     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 ofthis Message.
Parameters:
  callId - - the new CallIdHeader object of the callId value ofthis Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  content - - the new Object of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message.
public  ResponsecreateResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, byte[] content, ContentTypeHeader contentType)
     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 ofthis Message.
Parameters:
  callId - - the new CallIdHeader object of the callId value ofthis Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  content - - the new byte array of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message.
public  ResponsecreateResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector 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.
Parameters:
  statusCode - - the new integer of the statusCode value ofthis Message.
Parameters:
  request - - the received Reqest object upon which to basethe Response.
Parameters:
  content - - the new Object of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message.
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.
Parameters:
  statusCode - - the new integer of the statusCode value ofthis Message.
Parameters:
  request - - the received Reqest object upon which to basethe Response.
Parameters:
  content - - the new byte array of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message.
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(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector 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 thestatusCode value of this Message.
Parameters:
  callId - the new CallIdHeader object of thecallId 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 Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content typevalue 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, Vector 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 ofthis Message.
Parameters:
  callId - the new CallIdHeader object of the callId value ofthis 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 Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content typevalue of this Message.
Parameters:
  content - the new byte array of the body content value ofthis Message.


Constructor Detail
MessageFactory
public MessageFactory()(Code)
Creates a new instance of MessageFactoryImpl




Method Detail
createRequest
public Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) throws SipException(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 valueof this Message.
Parameters:
  method - the new string of the method value of this Message.
Parameters:
  callId - the new CallIdHeader object of the callId value ofthis Message.
Parameters:
  cSeq - the new CSeqHeader object of the cSeq value of thisMessage.
Parameters:
  from - the new FromHeader object of the from value of thisMessage.
Parameters:
  to - the new ToHeader object of the to value of this Message.
Parameters:
  via - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the contenttype value of this Message.
Parameters:
  content - the new Object of the body content value of thisMessage. a new request object
throws:
  SipException - if the request can't be created.IMPL_NOTE: investigate. "throws ParseException which signals that an errorhas been reached unexpectedly while parsing the method or the body."



createRequest
public Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, byte[] content, ContentTypeHeader contentType) throws ParseException, SipException(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 therequestURI 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 ofthis Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  content - - the new byte array of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message. the new request object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the method or the body.
throws:
  SipException - if the request can't be created.



createRequest
public Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards) throws ParseException, SipException(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 ofthis Message.
Parameters:
  method - - the new string of the method value of this Message.
Parameters:
  callId - - the new CallIdHeader object of the callId value ofthis Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message. the new request object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the method.
throws:
  SipException - if the request can't be created.



createRequest
public Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) throws ParseException, SipException(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 valueof this Message.
Parameters:
  method - - the new string of the method value of this Message.
Parameters:
  callId - - the new CallIdHeader object of the callId valueof this Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the content typevalue of this Message.
Parameters:
  content - - the new byte array of the body contentvalue of this Message. the new request object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the method or the body.
throws:
  SipException - if the response can't be created.



createRequest
public Request createRequest(String requestString) throws ParseException(Code)
Create a request from a string. Conveniance method for UACs that want to create an outgoing request from a string. Only the headers of the request should be included in the String that is supplied to this method.
Parameters:
  requestString - string from which to create the message the new request object



createResponse
public Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, Object content, ContentTypeHeader contentType) throws ParseException, SipException(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 ofthis Message.
Parameters:
  callId - - the new CallIdHeader object of the callId value ofthis Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  content - - the new Object of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message. the new response object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.
throws:
  SipException - if the request can't be created.



createResponse
public Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, byte[] content, ContentTypeHeader contentType) throws ParseException, SipException(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 ofthis Message.
Parameters:
  callId - - the new CallIdHeader object of the callId value ofthis Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  content - - the new byte array of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message. the new response object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.
throws:
  SipException - if the request can't be created.



createResponse
public Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards) throws ParseException, SipException(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 ofthis Message.
Parameters:
  callId - - the new CallIdHeader object of the callId value ofthis Message.
Parameters:
  cSeq - - the new CSeqHeader object of the cSeq value ofthis Message.
Parameters:
  from - - the new FromHeader object of the from value ofthis Message.
Parameters:
  to - - the new ToHeader object of the to value of this Message.
Parameters:
  via - - the new Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message. the new response object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode.
throws:
  SipException - if the response can't be created.



createResponse
public Response createResponse(int statusCode, Request request, ContentTypeHeader contentType, Object content) throws ParseException, SipException(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.
Parameters:
  statusCode - - the new integer of the statusCode value ofthis Message.
Parameters:
  request - - the received Reqest object upon which to basethe Response.
Parameters:
  content - - the new Object of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message. the new response object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.
throws:
  SipException - if the response can't be created.



createResponse
public Response createResponse(int statusCode, Request request, ContentTypeHeader contentType, byte[] content) throws ParseException, SipException(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.
Parameters:
  statusCode - - the new integer of the statusCode value ofthis Message.
Parameters:
  request - - the received Reqest object upon which to basethe Response.
Parameters:
  content - - the new byte array of the body content value ofthis Message.
Parameters:
  contentType - - the new ContentTypeHeader object of the contenttype value of this Message. the new resaponse object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.
throws:
  SipException - if the response can't be created.



createResponse
public Response createResponse(int statusCode, Request request) throws ParseException, SipException(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.
Parameters:
  statusCode - - the new integer of the statusCode value ofthis Message.
Parameters:
  request - - the received Reqest object upon which to basethe Response. the new response object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode.
throws:
  SipException - if the response can't be created.



createResponse
public Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) throws ParseException, SipException(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 thestatusCode value of this Message.
Parameters:
  callId - the new CallIdHeader object of thecallId 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 Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content typevalue of this Message.
Parameters:
  content - the new Object of the body content value of this Message. the new response object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.
throws:
  SipException - if the response can't be created.



createResponse
public Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, Vector via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) throws ParseException, SipException(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 ofthis Message.
Parameters:
  callId - the new CallIdHeader object of the callId value ofthis 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 Vector object of the ViaHeaders of this Message.
Parameters:
  maxForwards - the new MaxForward of this Message.
Parameters:
  contentType - the new ContentTypeHeader object of the content typevalue of this Message.
Parameters:
  content - the new byte array of the body content value ofthis Message. the new response object
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the statusCode or the body.
throws:
  SipException - if the response can't be created.



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.