Java Doc for MessageChannel.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

All known Subclasses:   gov.nist.siplite.stack.Transaction,  gov.nist.siplite.stack.UDPMessageChannel,  gov.nist.siplite.stack.TCPMessageChannel,
MessageChannel
abstract public class MessageChannel (Code)
Message channel abstraction for the SIP stack. This code is in the public domain.


Field Summary
protected  MessageProcessormessageProcessor
     Message processor to whom I belong (if set).


Method Summary
abstract public  voidclose()
     Closes the message channel.
public  StringgetHost()
     Gets the host of this message channel.
public  HostPortgetHostPort()
     Gets the hostport structure of this message channel.
abstract public  StringgetKey()
     Generates a key which identifies the message channel.
public static  StringgetKey(String inetAddr, int port, String transport)
     Generates a key given the inet address port and transport.
public  MessageProcessorgetMessageProcessor()
     Gets the message processor.
abstract public  StringgetPeerAddress()
     Gets the peer address of the machine that sent us this message.
public  HostPortgetPeerHostPort()
     Gets the peer host and port.
abstract public  intgetPeerPort()
     Gets the sender port (the port of the other end that sent me the message).
public  intgetPort()
     Gets port of this message channel.
abstract public  SIPMessageStackgetSIPStack()
     Gets the SIPMessageStack object from this message channel.
abstract public  StringgetTransport()
     Gets transport string of this message channel.
public  ViaHeadergetViaHeader()
     Gets the Via header for this transport.
abstract public  StringgetViaHost()
     Gets the host to assign for an outgoing Request via header.
public  HostPortgetViaHostPort()
     Gets the via header host:port structure.
abstract public  intgetViaPort()
     Gets the port to assign for the via header of an outgoing message.
abstract public  voidhandleException(SIPServerException ex)
     Handles an exception.
abstract public  booleanisReliable()
     Gets whether this channel is reliable or not.
abstract public  booleanisSecure()
     Returns true if this is a secure channel.
protected  voidlogMessage(Message sipMessage, String address, int port, long time)
     Logs a message sent to an address and port via the default interface.
public  voidlogResponse(Response sipResponse, long receptionTime, String status)
     Logs a response received at this message channel.
abstract public  voidsendMessage(Message sipMessage)
    
abstract protected  voidsendMessage(byte[] message, String receiverAddress, int receiverPort)
    
public  voidsendMessage(Message sipMessage, String receiverAddress, int receiverPort)
     Sends a message given SIP message.

Field Detail
messageProcessor
protected MessageProcessor messageProcessor(Code)
Message processor to whom I belong (if set).





Method Detail
close
abstract public void close()(Code)
Closes the message channel.



getHost
public String getHost()(Code)
Gets the host of this message channel. host of this messsage channel.



getHostPort
public HostPort getHostPort()(Code)
Gets the hostport structure of this message channel. the host and port



getKey
abstract public String getKey()(Code)
Generates a key which identifies the message channel. This allows us to cache the message channel. the key



getKey
public static String getKey(String inetAddr, int port, String transport)(Code)
Generates a key given the inet address port and transport.
Parameters:
  inetAddr - internet address
Parameters:
  port - the connection end point
Parameters:
  transport - the connection type the connection key



getMessageProcessor
public MessageProcessor getMessageProcessor()(Code)
Gets the message processor. the message processor



getPeerAddress
abstract public String getPeerAddress()(Code)
Gets the peer address of the machine that sent us this message. a string contianing the ip address or host name of the senderof the message.



getPeerHostPort
public HostPort getPeerHostPort()(Code)
Gets the peer host and port. a HostPort structure for the peer.



getPeerPort
abstract public int getPeerPort()(Code)
Gets the sender port (the port of the other end that sent me the message). the peer port



getPort
public int getPort()(Code)
Gets port of this message channel. Port of this message channel.



getSIPStack
abstract public SIPMessageStack getSIPStack()(Code)
Gets the SIPMessageStack object from this message channel. SIPMessageStack object of this message channel



getTransport
abstract public String getTransport()(Code)
Gets transport string of this message channel. Transport string of this message channel.



getViaHeader
public ViaHeader getViaHeader()(Code)
Gets the Via header for this transport. Note that this does not set a branch identifier. a via header for outgoing messages sent from this channel.



getViaHost
abstract public String getViaHost()(Code)
Gets the host to assign for an outgoing Request via header. the via host



getViaHostPort
public HostPort getViaHostPort()(Code)
Gets the via header host:port structure. This is extracted from the topmost via header of the request. a host:port structure



getViaPort
abstract public int getViaPort()(Code)
Gets the port to assign for the via header of an outgoing message. the via port



handleException
abstract public void handleException(SIPServerException ex)(Code)
Handles an exception.
Parameters:
  ex - the exception to process



isReliable
abstract public boolean isReliable()(Code)
Gets whether this channel is reliable or not. True if reliable, false if not.



isSecure
abstract public boolean isSecure()(Code)
Returns true if this is a secure channel. true if connection is secure



logMessage
protected void logMessage(Message sipMessage, String address, int port, long time)(Code)
Logs a message sent to an address and port via the default interface.
Parameters:
  sipMessage - is the message to log.
Parameters:
  address - is the inet address to which the message is sent.
Parameters:
  port - is the port to which the message is directed.
Parameters:
  time - timestamp for the logged message



logResponse
public void logResponse(Response sipResponse, long receptionTime, String status)(Code)
Logs a response received at this message channel. This is used for processing incoming responses to a client transaction.
Parameters:
  sipResponse - the response object to be logged
Parameters:
  receptionTime - is the time at which the response was received.
Parameters:
  status - is the processing status of the message.



sendMessage
abstract public void sendMessage(Message sipMessage) throws IOException(Code)
Sends the message (after it has been formatted)
Parameters:
  sipMessage - Message to send.



sendMessage
abstract protected void sendMessage(byte[] message, String receiverAddress, int receiverPort) throws IOException(Code)
Sends the message (after it has been formatted), to a specified address and a specified port
Parameters:
  message - Message to send.
Parameters:
  receiverAddress - Address of the receiver.
Parameters:
  receiverPort - Port of the receiver.



sendMessage
public void sendMessage(Message sipMessage, String receiverAddress, int receiverPort) throws IOException(Code)
Sends a message given SIP message.
Parameters:
  sipMessage - is the messge to send.
Parameters:
  receiverAddress - is the address to which we want to send
Parameters:
  receiverPort - is the port to which we want to send



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.