| java.lang.Object gov.nist.siplite.message.MessageFactory
Method Summary | |
public Request | createRequest(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 Request | createRequest(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 Request | createRequest(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 Request | createRequest(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 Request | createRequest(String requestString) Create a request from a string. | public Response | createResponse(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 Response | createResponse(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 Response | createResponse(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 Response | createResponse(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 Response | createResponse(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 Response | createResponse(int statusCode, Request request) Creates a new Response message of type specified by the statusCode
paramater, based on a specific Request message. | public Response | createResponse(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 Response | createResponse(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. |
MessageFactory | public MessageFactory()(Code) | | Creates a new instance of MessageFactoryImpl
|
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. |
|
|