gov.nist.javax.sip.message
クラス MessageFactoryImpl

java.lang.Object
  上位を拡張 gov.nist.javax.sip.message.MessageFactoryImpl
すべての実装されたインタフェース:
javax.sip.message.MessageFactory

public class MessageFactoryImpl
extends java.lang.Object
implements javax.sip.message.MessageFactory

Message Factory implementation

バージョン:
JAIN-SIP-1.1 $Revision: 1.4 $ $Date: 2004/09/10 18:26:07 $
作成者:
M. Ranganathan
, Olivier Deruelle
This code is in the public domain.

コンストラクタの概要
MessageFactoryImpl()
          Creates a new instance of MessageFactoryImpl
 
メソッドの概要
 javax.sip.message.Request createRequest(java.lang.String requestString)
          Create a request from a string.
 javax.sip.message.Request createRequest(javax.sip.address.URI requestURI, java.lang.String method, javax.sip.header.CallIdHeader callId, javax.sip.header.CSeqHeader cSeq, javax.sip.header.FromHeader from, javax.sip.header.ToHeader to, java.util.List via, javax.sip.header.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.
 javax.sip.message.Request createRequest(javax.sip.address.URI requestURI, java.lang.String method, javax.sip.header.CallIdHeader callId, javax.sip.header.CSeqHeader cSeq, javax.sip.header.FromHeader from, javax.sip.header.ToHeader to, java.util.List via, javax.sip.header.MaxForwardsHeader maxForwards, byte[] content, javax.sip.header.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.
 javax.sip.message.Request createRequest(javax.sip.address.URI requestURI, java.lang.String method, javax.sip.header.CallIdHeader callId, javax.sip.header.CSeqHeader cSeq, javax.sip.header.FromHeader from, javax.sip.header.ToHeader to, java.util.List via, javax.sip.header.MaxForwardsHeader maxForwards, javax.sip.header.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.
 javax.sip.message.Request createRequest(javax.sip.address.URI requestURI, java.lang.String method, javax.sip.header.CallIdHeader callId, javax.sip.header.CSeqHeader cSeq, javax.sip.header.FromHeader from, javax.sip.header.ToHeader to, java.util.List via, javax.sip.header.MaxForwardsHeader maxForwards, javax.sip.header.ContentTypeHeader contentType, java.lang.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.
 javax.sip.message.Response createResponse(int statusCode, javax.sip.header.CallIdHeader callId, javax.sip.header.CSeqHeader cSeq, javax.sip.header.FromHeader from, javax.sip.header.ToHeader to, java.util.List via, javax.sip.header.MaxForwardsHeader maxForwards)
          Creates a new Response message of type specified by the statusCode paramater, containing the mandatory headers of the message.
 javax.sip.message.Response createResponse(int statusCode, javax.sip.header.CallIdHeader callId, javax.sip.header.CSeqHeader cSeq, javax.sip.header.FromHeader from, javax.sip.header.ToHeader to, java.util.List via, javax.sip.header.MaxForwardsHeader maxForwards, byte[] content, javax.sip.header.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.
 javax.sip.message.Response createResponse(int statusCode, javax.sip.header.CallIdHeader callId, javax.sip.header.CSeqHeader cSeq, javax.sip.header.FromHeader from, javax.sip.header.ToHeader to, java.util.List via, javax.sip.header.MaxForwardsHeader maxForwards, javax.sip.header.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.
 javax.sip.message.Response createResponse(int statusCode, javax.sip.header.CallIdHeader callId, javax.sip.header.CSeqHeader cSeq, javax.sip.header.FromHeader from, javax.sip.header.ToHeader to, java.util.List via, javax.sip.header.MaxForwardsHeader maxForwards, javax.sip.header.ContentTypeHeader contentType, java.lang.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.
 javax.sip.message.Response createResponse(int statusCode, javax.sip.header.CallIdHeader callId, javax.sip.header.CSeqHeader cSeq, javax.sip.header.FromHeader from, javax.sip.header.ToHeader to, java.util.List via, javax.sip.header.MaxForwardsHeader maxForwards, java.lang.Object content, javax.sip.header.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.
 javax.sip.message.Response createResponse(int statusCode, javax.sip.message.Request request)
          Creates a new Response message of type specified by the statusCode paramater, based on a specific Request message.
 javax.sip.message.Response createResponse(int statusCode, javax.sip.message.Request request, javax.sip.header.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.
 javax.sip.message.Response createResponse(int statusCode, javax.sip.message.Request request, javax.sip.header.ContentTypeHeader contentType, java.lang.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.
 javax.sip.message.Response createResponse(java.lang.String responseString)
          Create a response from a string
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

MessageFactoryImpl

public MessageFactoryImpl()
Creates a new instance of MessageFactoryImpl

メソッドの詳細

createRequest

public javax.sip.message.Request createRequest(javax.sip.address.URI requestURI,
                                               java.lang.String method,
                                               javax.sip.header.CallIdHeader callId,
                                               javax.sip.header.CSeqHeader cSeq,
                                               javax.sip.header.FromHeader from,
                                               javax.sip.header.ToHeader to,
                                               java.util.List via,
                                               javax.sip.header.MaxForwardsHeader maxForwards,
                                               javax.sip.header.ContentTypeHeader contentType,
                                               java.lang.Object content)
                                        throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createRequest
パラメータ:
requestURI - - the new URI object of the requestURI value of this Message.
method - - the new string of the method value of this Message.
callId - - the new CallIdHeader object of the callId value of this Message.
cSeq - - the new CSeqHeader object of the cSeq value of this Message.
from - - the new FromHeader object of the from value of this Message.
to - - the new ToHeader object of the to value of this Message.
via - - the new List object of the ViaHeaders of this Message.
content - - the new Object of the body content value of this Message.
contentType - - the new ContentTypeHeader object of the content type value of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the method or the body.

createRequest

public javax.sip.message.Request createRequest(javax.sip.address.URI requestURI,
                                               java.lang.String method,
                                               javax.sip.header.CallIdHeader callId,
                                               javax.sip.header.CSeqHeader cSeq,
                                               javax.sip.header.FromHeader from,
                                               javax.sip.header.ToHeader to,
                                               java.util.List via,
                                               javax.sip.header.MaxForwardsHeader maxForwards,
                                               byte[] content,
                                               javax.sip.header.ContentTypeHeader contentType)
                                        throws java.text.ParseException
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.

パラメータ:
requestURI - - the new URI object of the requestURI value of this Message.
method - - the new string of the method value of this Message.
callId - - the new CallIdHeader object of the callId value of this Message.
cSeq - - the new CSeqHeader object of the cSeq value of this Message.
from - - the new FromHeader object of the from value of this Message.
to - - the new ToHeader object of the to value of this Message.
via - - the new List object of the ViaHeaders of this Message.
content - - the new byte array of the body content value of this Message.
contentType - - the new ContentTypeHeader object of the content type value of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the method or the body.

createRequest

public javax.sip.message.Request createRequest(javax.sip.address.URI requestURI,
                                               java.lang.String method,
                                               javax.sip.header.CallIdHeader callId,
                                               javax.sip.header.CSeqHeader cSeq,
                                               javax.sip.header.FromHeader from,
                                               javax.sip.header.ToHeader to,
                                               java.util.List via,
                                               javax.sip.header.MaxForwardsHeader maxForwards)
                                        throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createRequest
パラメータ:
requestURI - - the new URI object of the requestURI value of this Message.
method - - the new string of the method value of this Message.
callId - - the new CallIdHeader object of the callId value of this Message.
cSeq - - the new CSeqHeader object of the cSeq value of this Message.
from - - the new FromHeader object of the from value of this Message.
to - - the new ToHeader object of the to value of this Message.
via - - the new List object of the ViaHeaders of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the method.

createResponse

public javax.sip.message.Response createResponse(int statusCode,
                                                 javax.sip.header.CallIdHeader callId,
                                                 javax.sip.header.CSeqHeader cSeq,
                                                 javax.sip.header.FromHeader from,
                                                 javax.sip.header.ToHeader to,
                                                 java.util.List via,
                                                 javax.sip.header.MaxForwardsHeader maxForwards,
                                                 java.lang.Object content,
                                                 javax.sip.header.ContentTypeHeader contentType)
                                          throws java.text.ParseException
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.

パラメータ:
statusCode - - the new integer of the statusCode value of this Message.
callId - - the new CallIdHeader object of the callId value of this Message.
cSeq - - the new CSeqHeader object of the cSeq value of this Message.
from - - the new FromHeader object of the from value of this Message.
to - - the new ToHeader object of the to value of this Message.
via - - the new List object of the ViaHeaders of this Message.
content - - the new Object of the body content value of this Message.
contentType - - the new ContentTypeHeader object of the content type value of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the statusCode or the body.

createResponse

public javax.sip.message.Response createResponse(int statusCode,
                                                 javax.sip.header.CallIdHeader callId,
                                                 javax.sip.header.CSeqHeader cSeq,
                                                 javax.sip.header.FromHeader from,
                                                 javax.sip.header.ToHeader to,
                                                 java.util.List via,
                                                 javax.sip.header.MaxForwardsHeader maxForwards,
                                                 byte[] content,
                                                 javax.sip.header.ContentTypeHeader contentType)
                                          throws java.text.ParseException
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.

パラメータ:
statusCode - - the new integer of the statusCode value of this Message.
callId - - the new CallIdHeader object of the callId value of this Message.
cSeq - - the new CSeqHeader object of the cSeq value of this Message.
from - - the new FromHeader object of the from value of this Message.
to - - the new ToHeader object of the to value of this Message.
via - - the new List object of the ViaHeaders of this Message.
content - - the new byte array of the body content value of this Message.
contentType - - the new ContentTypeHeader object of the content type value of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the statusCode or the body.

createResponse

public javax.sip.message.Response createResponse(int statusCode,
                                                 javax.sip.header.CallIdHeader callId,
                                                 javax.sip.header.CSeqHeader cSeq,
                                                 javax.sip.header.FromHeader from,
                                                 javax.sip.header.ToHeader to,
                                                 java.util.List via,
                                                 javax.sip.header.MaxForwardsHeader maxForwards)
                                          throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createResponse
パラメータ:
statusCode - - the new integer of the statusCode value of this Message.
callId - - the new CallIdHeader object of the callId value of this Message.
cSeq - - the new CSeqHeader object of the cSeq value of this Message.
from - - the new FromHeader object of the from value of this Message.
to - - the new ToHeader object of the to value of this Message.
via - - the new List object of the ViaHeaders of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the statusCode.

createResponse

public javax.sip.message.Response createResponse(int statusCode,
                                                 javax.sip.message.Request request,
                                                 javax.sip.header.ContentTypeHeader contentType,
                                                 java.lang.Object content)
                                          throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createResponse
パラメータ:
statusCode - - the new integer of the statusCode value of this Message.
request - - the received Reqest object upon which to base the Response.
content - - the new Object of the body content value of this Message.
contentType - - the new ContentTypeHeader object of the content type value of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the statusCode or the body.

createResponse

public javax.sip.message.Response createResponse(int statusCode,
                                                 javax.sip.message.Request request,
                                                 javax.sip.header.ContentTypeHeader contentType,
                                                 byte[] content)
                                          throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createResponse
パラメータ:
statusCode - - the new integer of the statusCode value of this Message.
request - - the received Reqest object upon which to base the Response.
content - - the new byte array of the body content value of this Message.
contentType - - the new ContentTypeHeader object of the content type value of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the statusCode or the body.

createResponse

public javax.sip.message.Response createResponse(int statusCode,
                                                 javax.sip.message.Request request)
                                          throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createResponse
パラメータ:
statusCode - - the new integer of the statusCode value of this Message.
request - - the received Reqest object upon which to base the Response.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the statusCode.

createRequest

public javax.sip.message.Request createRequest(javax.sip.address.URI requestURI,
                                               java.lang.String method,
                                               javax.sip.header.CallIdHeader callId,
                                               javax.sip.header.CSeqHeader cSeq,
                                               javax.sip.header.FromHeader from,
                                               javax.sip.header.ToHeader to,
                                               java.util.List via,
                                               javax.sip.header.MaxForwardsHeader maxForwards,
                                               javax.sip.header.ContentTypeHeader contentType,
                                               byte[] content)
                                        throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createRequest
パラメータ:
requestURI - - the new URI object of the requestURI value of this Message.
method - - the new string of the method value of this Message.
callId - - the new CallIdHeader object of the callId value of this Message.
cSeq - - the new CSeqHeader object of the cSeq value of this Message.
from - - the new FromHeader object of the from value of this Message.
to - - the new ToHeader object of the to value of this Message.
via - - the new List object of the ViaHeaders of this Message.
contentType - - the new ContentTypeHeader object of the content type value of this Message.
content - - the new byte array of the body content value of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the method or the body.

createResponse

public javax.sip.message.Response createResponse(int statusCode,
                                                 javax.sip.header.CallIdHeader callId,
                                                 javax.sip.header.CSeqHeader cSeq,
                                                 javax.sip.header.FromHeader from,
                                                 javax.sip.header.ToHeader to,
                                                 java.util.List via,
                                                 javax.sip.header.MaxForwardsHeader maxForwards,
                                                 javax.sip.header.ContentTypeHeader contentType,
                                                 java.lang.Object content)
                                          throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createResponse
パラメータ:
statusCode - the new integer of the statusCode value of this Message.
callId - the new CallIdHeader object of the callId value of this Message.
cSeq - the new CSeqHeader object of the cSeq value of this Message.
from - the new FromHeader object of the from value of this Message.
to - the new ToHeader object of the to value of this Message.
via - the new List object of the ViaHeaders of this Message.
contentType - the new ContentTypeHeader object of the content type value of this Message.
content - the new Object of the body content value of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the statusCode or the body.

createResponse

public javax.sip.message.Response createResponse(int statusCode,
                                                 javax.sip.header.CallIdHeader callId,
                                                 javax.sip.header.CSeqHeader cSeq,
                                                 javax.sip.header.FromHeader from,
                                                 javax.sip.header.ToHeader to,
                                                 java.util.List via,
                                                 javax.sip.header.MaxForwardsHeader maxForwards,
                                                 javax.sip.header.ContentTypeHeader contentType,
                                                 byte[] content)
                                          throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createResponse
パラメータ:
statusCode - the new integer of the statusCode value of this Message.
callId - the new CallIdHeader object of the callId value of this Message.
cSeq - the new CSeqHeader object of the cSeq value of this Message.
from - the new FromHeader object of the from value of this Message.
to - the new ToHeader object of the to value of this Message.
via - the new List object of the ViaHeaders of this Message.
contentType - the new ContentTypeHeader object of the content type value of this Message.
content - the new byte array of the body content value of this Message.
例外:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the statusCode or the body.

createRequest

public javax.sip.message.Request createRequest(java.lang.String requestString)
                                        throws java.text.ParseException
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.

定義:
インタフェース javax.sip.message.MessageFactory 内の createRequest
パラメータ:
requestString - -- string from which to create the message null string returns an empty message.
例外:
java.text.ParseException

createResponse

public javax.sip.message.Response createResponse(java.lang.String responseString)
                                          throws java.text.ParseException
Create a response from a string

パラメータ:
responseString-- - string from which to create the message null string returns an empty message.
例外:
java.text.ParseException