public interface SipMessageFactory
Modifier and Type | Method and Description |
---|---|
SipRequest |
createRequest(SipRequest originalRequest)
Creates a new
SipRequest using the original request as a
template. |
SipRequest |
createRequest(URI requestURI,
Buffer method,
CallIdHeader callId,
CSeqHeader cseq,
FromHeader from,
ToHeader to,
List<ViaHeader> via,
MaxForwardsHeader maxForwards)
Creates a new
SipRequest based on the passed in parameters. |
SipResponse |
createResponse(int statusCode,
SipRequest request)
Create a new response based on the supplied
SipRequest . |
SipResponse createResponse(int statusCode, SipRequest request) throws SipParseException
SipRequest
. Only the
mandatory headers from the SipRequest
are copied. Those mandatory
headers are:
statusCode
- request
- SipParseException
- in case anything goes wrong when parsing out headers from the
SipRequest
SipRequest createRequest(SipRequest originalRequest) throws SipParseException
SipRequest
using the original request as a
template.originalRequest
- SipParseException
SipRequest createRequest(URI requestURI, Buffer method, CallIdHeader callId, CSeqHeader cseq, FromHeader from, ToHeader to, List<ViaHeader> via, MaxForwardsHeader maxForwards)
SipRequest
based on the passed in parameters.requestURI
- method
- callId
- cseq
- from
- to
- via
- maxForwards
- Copyright © 2013. All Rights Reserved.