|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SipMessageFactory
Interface for factories for creating SIP messages.
| Method Summary | |
|---|---|
Invite |
addVia(Invite message,
SipHeader newHeader)
Copies all the data from the original message into a new message, adding the specified Via header. |
Register |
addVia(Register request,
SipHeader via)
Copies all the data from the original message into a new message, adding the specified Via header. |
SipMessage |
createErrorResponse(SipMessage request,
org.apache.commons.id.uuid.UUID instanceId,
URI contactUri,
int responseCode,
String reasonPhrase)
Creates an error response to the specified request. |
SipResponse |
createInviteOk(Invite request,
org.apache.commons.id.uuid.UUID instanceId,
URI contactUri,
org.littleshoot.mina.common.ByteBuffer body)
Creates a new INVITE OK message, copying data from the specified request. |
Invite |
createInviteRequest(String displayName,
URI toUri,
URI fromUri,
org.apache.commons.id.uuid.UUID instanceId,
URI contactUri,
org.littleshoot.mina.common.ByteBuffer body)
Creates a new invite request outside of a dialog. |
Invite |
createInviteToForward(InetSocketAddress socketAddress,
Invite invite)
Creates a new message to forward with all of the appropriate modifications to the Via header based on the remote reading of the socket address and port. |
SipResponse |
createRegisterOk(Register register)
Creates a register OK message from the specified request. |
Register |
createRegisterRequest(URI requestUri,
String displayName,
URI toUri,
org.apache.commons.id.uuid.UUID instanceId,
URI contactUri)
Creates a new register request. |
SipResponse |
createRequestTimeoutResponse(SipMessage request)
Creates a 408 Request Timeout response. |
SipResponse |
stripVia(SipResponse response)
Strips the topmost Via header from the response, returning a new message without the topmost Via. |
| Method Detail |
|---|
Register createRegisterRequest(URI requestUri,
String displayName,
URI toUri,
org.apache.commons.id.uuid.UUID instanceId,
URI contactUri)
requestUri - The request URI for the request start line.displayName - The display name to send the request to.toUri - The URI to send the request to.instanceId - The instance ID of the registering SIP entity.contactUri - The contact URI of the registering SIP entity.
Invite createInviteRequest(String displayName,
URI toUri,
URI fromUri,
org.apache.commons.id.uuid.UUID instanceId,
URI contactUri,
org.littleshoot.mina.common.ByteBuffer body)
displayName - The name to display.toUri - The SIP URI to send the message to.fromUri - The SIP URI the message is from.instanceId - The instance ID of the sending client, used in the
contact header.contactUri - The contact URI.body - The body of the INVITE. This is typcically SDP.
SipResponse createInviteOk(Invite request,
org.apache.commons.id.uuid.UUID instanceId,
URI contactUri,
org.littleshoot.mina.common.ByteBuffer body)
request - The request to respond to with an OK response.instanceId - The instance ID of the responding user.contactUri - The contact URI of the responding user.body - The body of the message.
SipMessage createErrorResponse(SipMessage request,
org.apache.commons.id.uuid.UUID instanceId,
URI contactUri,
int responseCode,
String reasonPhrase)
request - The request to create a response for.instanceId - The instance ID of the resonding peer.contactUri - The contact URI of the responding peer.responseCode - The reason code for the response.reasonPhrase - The reason phrase for the response.
SipResponse createRegisterOk(Register register)
register - The register request to create an OK response for.
Invite addVia(Invite message,
SipHeader newHeader)
message - The original message to create a new message from.newHeader - The Via header to add.
Register addVia(Register request,
SipHeader via)
request - The original message to create a new message from.via - The Via header to add.
SipResponse stripVia(SipResponse response)
response - The response message to strip the Via from.
SipResponse createRequestTimeoutResponse(SipMessage request)
request - The request that timed out.
Invite createInviteToForward(InetSocketAddress socketAddress,
Invite invite)
throws IOException
socketAddress - The remote socket address the INVITE arrived from.invite - The incoming INVITE message.
IOException - If the message does not match the expected syntax.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||