Java Doc for ServerTransaction.java in  » 6.0-JDK-Modules » j2me » gov » nist » siplite » stack » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » gov.nist.siplite.stack 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gov.nist.siplite.stack.MessageChannel
      gov.nist.siplite.stack.Transaction
         gov.nist.siplite.stack.ServerTransaction

ServerTransaction
public class ServerTransaction extends Transaction implements SIPServerRequestInterface(Code)
Represents a server transaction.
version:
   JAIN-SIP-1.1
version:
   This code is in the public domain.

Inner Class :class SendTrying extends Thread

Field Summary
protected  intcollectionTime
     Collection time.
protected  booleanisMapped
     Flag indicating this transaction is known to the stack.

Constructor Summary
protected  ServerTransaction(SIPTransactionStack newSIPMessageStack, MessageChannel newChannelToHeaderUse)
     Creates a new server transaction.

Method Summary
protected  voidfireRetransmissionTimer()
     Called by the transaction stack when a retransmission timer fires.
protected  voidfireTimeoutTimer()
     Called by the transaction stack when a timeout timer fires.
public  ResponsegetLastResponse()
     Gets the last response.
public  StringgetProcessingInfo()
     Gets the processing infromation.
public  MessageChannelgetResponseChannel()
     Returns this transaction.
public  StringgetViaHost()
     Gets the via host name.
public  intgetViaPort()
     Gets the via port number.
public  booleanisMessagePartOfTransaction(Message messageToHeaderTest)
     Deterines if the message is a part of this transaction.
Parameters:
  messageToHeaderTest - Message to check if it is part of thistransaction.
public  booleanisTransactionMapped()
     Returns true if the transaction is known to stack.
protected  voidmap()
     Sends out a trying response (only happens when the transaction is mapped).
public  voidprocessRequest(Request transactionRequest, MessageChannel sourceChannel)
     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.
public  voidsendMessage(Message messageToSend)
     Sends a response message through this transactionand onto the client.
public  voidsendResponse(Response response)
     Sends specified Response message to a Request which is identified by the specified server transaction identifier.
public  voidsetOriginalRequest(Request originalRequest)
     Sets the original request.
public  voidsetRequestInterface(SIPServerRequestInterface newRequestOf)
     Sets the real RequestInterface this transaction encapsulates.

Field Detail
collectionTime
protected int collectionTime(Code)
Collection time.



isMapped
protected boolean isMapped(Code)
Flag indicating this transaction is known to the stack.




Constructor Detail
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.




Method Detail
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.



Fields inherited from gov.nist.siplite.stack.Transaction
final protected static int BASE_TIMER_INTERVAL(Code)(Java Doc)
final public static int CALLING_STATE(Code)(Java Doc)
final public static int COMPLETED_STATE(Code)(Java Doc)
final public static int CONFIRMED_STATE(Code)(Java Doc)
final public static int INITIAL_STATE(Code)(Java Doc)
final protected static int MAXIMUM_RETRANSMISSION_TICK_COUNT(Code)(Java Doc)
final public static int PROCEEDING_STATE(Code)(Java Doc)
final protected static int T1(Code)(Java Doc)
final protected static int T2(Code)(Java Doc)
final protected static int T4(Code)(Java Doc)
final public static int TERMINATED_STATE(Code)(Java Doc)
final protected static int TIMER_A(Code)(Java Doc)
final protected static int TIMER_B(Code)(Java Doc)
final protected static int TIMER_C(Code)(Java Doc)
final protected static int TIMER_D(Code)(Java Doc)
final protected static int TIMER_F(Code)(Java Doc)
final protected static int TIMER_H(Code)(Java Doc)
final protected static int TIMER_I(Code)(Java Doc)
final protected static int TIMER_J(Code)(Java Doc)
final protected static int TIMER_K(Code)(Java Doc)
final public static int TRYING_STATE(Code)(Java Doc)
protected boolean ackSeenFlag(Code)(Java Doc)
protected Object applicationData(Code)(Java Doc)
protected Dialog dialog(Code)(Java Doc)
protected MessageChannel encapsulatedChannel(Code)(Java Doc)
protected boolean isCancelled(Code)(Java Doc)
protected Response lastResponse(Code)(Java Doc)
protected SIPTransactionStack parentStack(Code)(Java Doc)
protected boolean toListener(Code)(Java Doc)

Methods inherited from gov.nist.siplite.stack.Transaction
protected boolean IsServerTransaction()(Code)(Java Doc)
public void addEventListener(SIPTransactionEventListener newListener)(Code)(Java Doc)
protected void buildRouteSet(Request request) throws SipException(Code)(Java Doc)
public void close()(Code)(Java Doc)
final protected void disableRetransmissionTimer()(Code)(Java Doc)
final protected void disableTimeoutTimer()(Code)(Java Doc)
public boolean doesCancelMatchTransaction(Request requestToHeaderTest)(Code)(Java Doc)
final protected void enableRetransmissionTimer()(Code)(Java Doc)
final protected void enableRetransmissionTimer(int tickCount)(Code)(Java Doc)
final protected void enableTimeoutTimer(int tickCount)(Code)(Java Doc)
abstract protected void fireRetransmissionTimer()(Code)(Java Doc)
abstract protected void fireTimeoutTimer()(Code)(Java Doc)
final synchronized void fireTimer()(Code)(Java Doc)
public Object getApplicationData()(Code)(Java Doc)
final public String getBranch()(Code)(Java Doc)
public String getBranchId()(Code)(Java Doc)
public Dialog getDialog()(Code)(Java Doc)
public String getHost()(Code)(Java Doc)
public String getKey()(Code)(Java Doc)
public Response getLastResponse()(Code)(Java Doc)
public MessageChannel getMessageChannel()(Code)(Java Doc)
public MessageProcessor getMessageProcessor()(Code)(Java Doc)
public Request getOriginalRequest()(Code)(Java Doc)
public String getPeerAddress()(Code)(Java Doc)
public int getPeerPort()(Code)(Java Doc)
public int getPort()(Code)(Java Doc)
public Request getRequest()(Code)(Java Doc)
public int getRetransmitTimer()(Code)(Java Doc)
public SIPMessageStack getSIPStack()(Code)(Java Doc)
final public int getState()(Code)(Java Doc)
public String getTransactionId()(Code)(Java Doc)
public String getTransport()(Code)(Java Doc)
public ViaHeader getViaHeader()(Code)(Java Doc)
public String getViaHost()(Code)(Java Doc)
public int getViaPort()(Code)(Java Doc)
public void handleException(SIPServerException ex)(Code)(Java Doc)
public boolean isAckSeen()(Code)(Java Doc)
final protected boolean isByeTransaction()(Code)(Java Doc)
final protected boolean isCancelTransaction()(Code)(Java Doc)
final protected boolean isInviteTransaction()(Code)(Java Doc)
abstract public boolean isMessagePartOfTransaction(Message messageToHeaderTest)(Code)(Java Doc)
public boolean isReliable()(Code)(Java Doc)
public boolean isSecure()(Code)(Java Doc)
final protected boolean isTerminated()(Code)(Java Doc)
public boolean passToListener()(Code)(Java Doc)
protected void raiseErrorEvent(int errorEventID)(Code)(Java Doc)
public void removeEventListener(SIPTransactionEventListener oldListener)(Code)(Java Doc)
abstract public void sendMessage(Message messageToHeaderSend) throws IOException(Code)(Java Doc)
protected void sendMessage(byte[] messageBytes, String receiverAddress, int receiverPort) throws IOException(Code)(Java Doc)
public void setAckSeen()(Code)(Java Doc)
public void setApplicationData(Object newApplicationData)(Code)(Java Doc)
final public void setBranch(String newBranch)(Code)(Java Doc)
public void setDialog(Dialog newDialog)(Code)(Java Doc)
public void setOriginalRequest(Request newOriginalRequest)(Code)(Java Doc)
public void setState(int newState)(Code)(Java Doc)

Fields inherited from gov.nist.siplite.stack.MessageChannel
protected MessageProcessor messageProcessor(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.