Java Doc for Message.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » jndi » provider » dns » 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 » Apache Harmony Java SE » org package » org.apache.harmony.jndi.provider.dns 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.jndi.provider.dns.Message

Message
public class Message (Code)
This class represents a domain protocol message.
See Also:   RFC
See Also:    1035



Constructor Summary
public  Message()
    
public  Message(int id, boolean qr, int opCode, boolean aa, boolean tc, boolean rd, boolean ra, int rCode, int qdCount, int anCount, int nsCount, int arCount)
    

Method Summary
public  voidaddAdditionalRR(ResourceRecord rr)
     Adds a new question record to the message.
public  voidaddAnswerRR(ResourceRecord rr)
     Adds a new question record to the message.
public  voidaddAuthorityRR(ResourceRecord rr)
     Adds a new question record to the message.
public  voidaddQuestionRecord(QuestionRecord qr)
     Adds a new question record to the message.
public  intgetANCount()
    
public  intgetARCount()
    
public  Enumeration<ResourceRecord>getAdditionalRRs()
    
public  Enumeration<ResourceRecord>getAnswerRRs()
    
public  Enumeration<ResourceRecord>getAuthorityRRs()
    
public  intgetId()
    
public  intgetNSCount()
    
public  intgetOpCode()
    
public  intgetQDCount()
    
public  booleangetQR()
    
public  Enumeration<QuestionRecord>getQuestionRecords()
    
public  intgetRCode()
    
public  booleanisAA()
    
public  booleanisRA()
    
public  booleanisRD()
    
public  booleanisTc()
    
public static  intparseMessage(byte[] mesBytes, int startIdx, Message mesObj)
     Parses given sequence of bytes and constructs a message object from it.
public  voidsetAA(boolean aa)
    
public  voidsetANCount(int anCount)
    
public  voidsetARCount(int arCount)
    
public  voidsetId(int id)
    
public  voidsetNSCount(int nsCount)
    
public  voidsetOpCode(int opCode)
    
public  voidsetQDCount(int qdCount)
    
public  voidsetQR(boolean qr)
    
public  voidsetRA(boolean ra)
    
public  voidsetRCode(int code)
    
public  voidsetRD(boolean rd)
    
public  voidsetTc(boolean tc)
    
public  StringtoString()
    
public  intwriteBytes(byte[] buffer, int startIdx)
     Generates sequence of bytes that represents the message.


Constructor Detail
Message
public Message()(Code)



Message
public Message(int id, boolean qr, int opCode, boolean aa, boolean tc, boolean rd, boolean ra, int rCode, int qdCount, int anCount, int nsCount, int arCount)(Code)
Constructs Message object from given parameters
Parameters:
  id - ID
Parameters:
  qr - QR
Parameters:
  opCode - OPCODE
Parameters:
  aa - AA
Parameters:
  tc - TC
Parameters:
  rd - RA
Parameters:
  ra - RA
Parameters:
  rCode - RCODE
Parameters:
  qdCount - QDCOUNT
Parameters:
  anCount - ANCOUNT
Parameters:
  nsCount - NSCOUNT
Parameters:
  arCount - ARCOUNT




Method Detail
addAdditionalRR
public void addAdditionalRR(ResourceRecord rr)(Code)
Adds a new question record to the message.
Parameters:
  rr - a record to add



addAnswerRR
public void addAnswerRR(ResourceRecord rr)(Code)
Adds a new question record to the message.
Parameters:
  rr - a record to add



addAuthorityRR
public void addAuthorityRR(ResourceRecord rr)(Code)
Adds a new question record to the message.
Parameters:
  rr - a record to add



addQuestionRecord
public void addQuestionRecord(QuestionRecord qr)(Code)
Adds a new question record to the message.
Parameters:
  qr - a record to add



getANCount
public int getANCount()(Code)
Returns the anCount.



getARCount
public int getARCount()(Code)
Returns the arCount.



getAdditionalRRs
public Enumeration<ResourceRecord> getAdditionalRRs()(Code)
available additional resource records



getAnswerRRs
public Enumeration<ResourceRecord> getAnswerRRs()(Code)
available answer resource records



getAuthorityRRs
public Enumeration<ResourceRecord> getAuthorityRRs()(Code)
available authority resource records



getId
public int getId()(Code)
Returns the id.



getNSCount
public int getNSCount()(Code)
Returns the nsCount.



getOpCode
public int getOpCode()(Code)
Returns the opCode.



getQDCount
public int getQDCount()(Code)
Returns the qdCount.



getQR
public boolean getQR()(Code)
Returns the QR.



getQuestionRecords
public Enumeration<QuestionRecord> getQuestionRecords()(Code)
question records that are contained by the current message.



getRCode
public int getRCode()(Code)
Returns the rCode.



isAA
public boolean isAA()(Code)
Returns the AA.



isRA
public boolean isRA()(Code)
Returns the RA.



isRD
public boolean isRD()(Code)
Returns the RD.



isTc
public boolean isTc()(Code)
Returns the TC.



parseMessage
public static int parseMessage(byte[] mesBytes, int startIdx, Message mesObj) throws DomainProtocolException(Code)
Parses given sequence of bytes and constructs a message object from it.
Parameters:
  mesBytes - the byte array that should be parsed
Parameters:
  startIdx - an index of mesBytes array to start the parsingat
Parameters:
  mes - an object to write a result to, should already be created updated index of mesBytes array
throws:
  DomainProtocolException - if some error has occurred



setAA
public void setAA(boolean aa)(Code)

Parameters:
  aa - The AA to set.



setANCount
public void setANCount(int anCount)(Code)

Parameters:
  anCount - The anCount to set.



setARCount
public void setARCount(int arCount)(Code)

Parameters:
  arCount - The arCount to set.



setId
public void setId(int id)(Code)

Parameters:
  id - The id to set.



setNSCount
public void setNSCount(int nsCount)(Code)

Parameters:
  nsCount - The nsCount to set.



setOpCode
public void setOpCode(int opCode)(Code)

Parameters:
  opCode - The opCode to set.



setQDCount
public void setQDCount(int qdCount)(Code)

Parameters:
  qdCount - The qdCount to set.



setQR
public void setQR(boolean qr)(Code)

Parameters:
  qr - The QR to set.



setRA
public void setRA(boolean ra)(Code)

Parameters:
  ra - The RA to set.



setRCode
public void setRCode(int code)(Code)

Parameters:
  code - The rCode to set.



setRD
public void setRD(boolean rd)(Code)

Parameters:
  rd - The RD to set.



setTc
public void setTc(boolean tc)(Code)

Parameters:
  tc - The TC to set.



toString
public String toString()(Code)
string representation of this message



writeBytes
public int writeBytes(byte[] buffer, int startIdx) throws DomainProtocolException(Code)
Generates sequence of bytes that represents the message.
Parameters:
  buffer - the buffer to write bytes into
Parameters:
  startIdx - the index of buffer to start writing at updated index of the buffer
throws:
  DomainProtocolException - if something went wrong



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.