| |
|
| java.lang.Object gov.nist.siplite.stack.MessageChannel gov.nist.siplite.stack.Transaction gov.nist.siplite.stack.ServerTransaction
Inner Class :class SendTrying extends Thread | |
Field Summary | |
protected int | collectionTime Collection time. | protected boolean | isMapped Flag indicating this transaction is known to the stack. |
collectionTime | protected int collectionTime(Code) | | Collection time.
|
isMapped | protected boolean isMapped(Code) | | Flag indicating this transaction is known to the stack.
|
ServerTransaction | protected ServerTransaction(SIPTransactionStack newSIPMessageStack, MessageChannel newChannelToHeaderUse)(Code) | | Creates a new server transaction.
Parameters: newSIPMessageStack - Transaction stack this transactionbelongs to. Parameters: newChannelToHeaderUse - Channel to encapsulate. |
fireRetransmissionTimer | protected void fireRetransmissionTimer()(Code) | | Called by the transaction stack when a retransmission
timer fires. This retransmits the last response when the
retransmission filter is enabled.
|
fireTimeoutTimer | protected void fireTimeoutTimer()(Code) | | Called by the transaction stack when a timeout timer fires.
|
getLastResponse | public Response getLastResponse()(Code) | | Gets the last response.
the last response |
getProcessingInfo | public String getProcessingInfo()(Code) | | Gets the processing infromation.
the processing information |
getResponseChannel | public MessageChannel getResponseChannel()(Code) | | Returns this transaction.
the response message channel |
getViaHost | public String getViaHost()(Code) | | Gets the via host name.
the via host |
getViaPort | public int getViaPort()(Code) | | Gets the via port number.
the via port number |
isMessagePartOfTransaction | public boolean isMessagePartOfTransaction(Message messageToHeaderTest)(Code) | | Deterines if the message is a part of this transaction.
Parameters: messageToHeaderTest - Message to check if it is part of thistransaction. True if the message is part of this transaction,false if not. |
isTransactionMapped | public boolean isTransactionMapped()(Code) | | Returns true if the transaction is known to stack.
true if the transaction is already mapped |
map | protected void map() throws IOException(Code) | | Sends out a trying response (only happens when the transaction is
mapped). Otherwise the transaction is not known to the stack.
exception: IOException - if the attempt to send fails |
processRequest | public void processRequest(Request transactionRequest, MessageChannel sourceChannel) throws SIPServerException(Code) | | Processes a new request message through this transaction.
If necessary, this message will also be passed onto the TU.
IMPL_NOTE:
Receiving the PUBLISH request at ESC (i.e. UAS):
The event state is identified by three major pieces:
Request-URI, event-type and entity-tag (RFC3903, section 4.1).
Maybe it is needed to maintain the event state vector in our
implementation.
Parameters: transactionRequest - Request to process. Parameters: sourceChannel - Channel that received this message. |
sendMessage | public void sendMessage(Message messageToSend) throws IOException(Code) | | Sends a response message through this transactionand onto
the client.
Parameters: messageToSend - Response to process and send. |
sendResponse | public void sendResponse(Response response) throws IOException, SipException(Code) | | Sends specified Response message to a Request which is identified by the
specified server transaction identifier. The semantics for various
application behaviour on sending Responses to Requests is outlined at
SipListener.processRequest(RequestEvent) .
Note that when a UAS core sends a 2xx response to an INVITE, the server
transaction is destroyed, by the underlying JAIN SIP implementation.
This means that when the ACK sent by the corresponding UAC arrives
at the UAS, there will be no matching server transaction for the ACK,
and based on this rule, the ACK is passed to the UAS application core,
where it is processed.
This ensures that the three way handsake of an INVITE that is managed by
the UAS application and not JAIN SIP.
Parameters: response - the Response to send to the Request throws: IOException - if an I/O error occured throws: SipException - if implementation cannot send response for anyother reason See Also: Response |
setOriginalRequest | public void setOriginalRequest(Request originalRequest)(Code) | | Sets the original request.
Parameters: originalRequest - original request to remember |
setRequestInterface | public void setRequestInterface(SIPServerRequestInterface newRequestOf)(Code) | | Sets the real RequestInterface this transaction encapsulates.
Parameters: newRequestOf - RequestInterface to send messages to. |
Methods inherited from gov.nist.siplite.stack.MessageChannel | abstract public void close()(Code)(Java Doc) public String getHost()(Code)(Java Doc) public HostPort getHostPort()(Code)(Java Doc) abstract public String getKey()(Code)(Java Doc) public static String getKey(String inetAddr, int port, String transport)(Code)(Java Doc) public MessageProcessor getMessageProcessor()(Code)(Java Doc) abstract public String getPeerAddress()(Code)(Java Doc) public HostPort getPeerHostPort()(Code)(Java Doc) abstract public int getPeerPort()(Code)(Java Doc) public int getPort()(Code)(Java Doc) abstract public SIPMessageStack getSIPStack()(Code)(Java Doc) abstract public String getTransport()(Code)(Java Doc) public ViaHeader getViaHeader()(Code)(Java Doc) abstract public String getViaHost()(Code)(Java Doc) public HostPort getViaHostPort()(Code)(Java Doc) abstract public int getViaPort()(Code)(Java Doc) abstract public void handleException(SIPServerException ex)(Code)(Java Doc) abstract public boolean isReliable()(Code)(Java Doc) abstract public boolean isSecure()(Code)(Java Doc) protected void logMessage(Message sipMessage, String address, int port, long time)(Code)(Java Doc) public void logResponse(Response sipResponse, long receptionTime, String status)(Code)(Java Doc) abstract public void sendMessage(Message sipMessage) throws IOException(Code)(Java Doc) abstract protected void sendMessage(byte[] message, String receiverAddress, int receiverPort) throws IOException(Code)(Java Doc) public void sendMessage(Message sipMessage, String receiverAddress, int receiverPort) throws IOException(Code)(Java Doc)
|
|
|
|