public interface MessageFactory
SipFactory.createMessageFactory()
.Modifier and Type | Method and Description |
---|---|
Request |
createRequest(String request)
Create a new SIP Request object based on a specific string value.
|
Request |
createRequest(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.
|
Request |
createRequest(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.
|
Request |
createRequest(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.
|
Response |
createResponse(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.
|
Response |
createResponse(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.
|
Response |
createResponse(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.
|
Response |
createResponse(int statusCode,
Request request)
Creates a new Response message of type specified by the statusCode
paramater, based on a specific Request message.
|
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.
|
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.
|
Response |
createResponse(String response)
Creates a Response from a String.
|
Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) throws ParseException
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 Object of the body content value of this Message.ParseException
- which signals that an error has been reached
unexpectedly while parsing the method or the body.Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) throws ParseException
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.ParseException
- which signals that an error has been reached
unexpectedly while parsing the method or the body.Request createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards) throws ParseException
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.ParseException
- which signals that an error has been reached
unexpectedly while parsing the method.Request createRequest(String request) throws ParseException
request
- the new string value of the Request.ParseException
- which signals that an error has been reached
unexpectedly while parsing the request.Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) throws ParseException
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.ParseException
- which signals that an error has been reached
unexpectedly while parsing the statusCode or the body.Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) throws ParseException
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.ParseException
- which signals that an error has been reached
unexpectedly while parsing the statusCode or the body.Response createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards) throws ParseException
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.ParseException
- which signals that an error has been reached
unexpectedly while parsing the statusCode.Response createResponse(int statusCode, Request request, ContentTypeHeader contentType, Object content) throws ParseException
statusCode
- the new integer of the statusCode value of this Message.request
- the received Reqest object upon which to base the Response.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.ParseException
- which signals that an error has been reached
unexpectedly while parsing the statusCode or the body.Response createResponse(int statusCode, Request request, ContentTypeHeader contentType, byte[] content) throws ParseException
statusCode
- the new integer of the statusCode value of this Message.request
- the received Reqest object upon which to base the Response.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.ParseException
- which signals that an error has been reached
unexpectedly while parsing the statusCode or the body.Response createResponse(int statusCode, Request request) throws ParseException
statusCode
- the new integer of the statusCode value of this Message.request
- the received Reqest object upon which to base the Response.ParseException
- which signals that an error has been reached
unexpectedly while parsing the statusCode.Response createResponse(String response) throws ParseException
response
- is a string representing the response. The argument should
only contain the Sip Headers and not the body of the response.ParseException
- which signals an error has been reached unexpectedly
while parsing the response.Copyright © 2016. All Rights Reserved.