Source Code Cross Referenced for Resolver.java in  » Net » dnsjava » org » xbill » 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 » Net » dnsjava » org.xbill.DNS 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
02:
03:        package org.xbill.DNS;
04:
05:        import java.io.*;
06:        import java.util.*;
07:
08:        /**
09:         * Interface describing a resolver.
10:         *
11:         * @author Brian Wellington
12:         */
13:
14:        public interface Resolver {
15:
16:            /**
17:             * Sets the port to communicate with on the server
18:             * @param port The port to send messages to
19:             */
20:            void setPort(int port);
21:
22:            /**
23:             * Sets whether TCP connections will be sent by default
24:             * @param flag Indicates whether TCP connections are made
25:             */
26:            void setTCP(boolean flag);
27:
28:            /**
29:             * Sets whether truncated responses will be ignored.  If not, a truncated
30:             * response over UDP will cause a retransmission over TCP.
31:             * @param flag Indicates whether truncated responses should be ignored.
32:             */
33:            void setIgnoreTruncation(boolean flag);
34:
35:            /**
36:             * Sets the EDNS version used on outgoing messages.
37:             * @param level The EDNS level to use.  0 indicates EDNS0 and -1 indicates no
38:             * EDNS.
39:             * @throws IllegalArgumentException An invalid level was indicated.
40:             */
41:            void setEDNS(int level);
42:
43:            /**
44:             * Sets the EDNS information on outgoing messages.
45:             * @param level The EDNS level to use.  0 indicates EDNS0 and -1 indicates no
46:             * EDNS.
47:             * @param payloadSize The maximum DNS packet size that this host is capable
48:             * of receiving over UDP.  If 0 is specified, the default (1280) is used.
49:             * @param flags EDNS extended flags to be set in the OPT record.
50:             * @param options EDNS options to be set in the OPT record, specified as a
51:             * List of OPTRecord.Option elements.
52:             * @throws IllegalArgumentException An invalid field was specified.
53:             * @see OPTRecord
54:             */
55:            void setEDNS(int level, int payloadSize, int flags, List options);
56:
57:            /**
58:             * Specifies the TSIG key that messages will be signed with
59:             * @param key The key
60:             */
61:            void setTSIGKey(TSIG key);
62:
63:            /**
64:             * Sets the amount of time to wait for a response before giving up.
65:             * @param secs The number of seconds to wait.
66:             * @param msecs The number of milliseconds to wait.
67:             */
68:            void setTimeout(int secs, int msecs);
69:
70:            /**
71:             * Sets the amount of time to wait for a response before giving up.
72:             * @param secs The number of seconds to wait.
73:             */
74:            void setTimeout(int secs);
75:
76:            /**
77:             * Sends a message and waits for a response.
78:             * @param query The query to send.
79:             * @return The response
80:             * @throws IOException An error occurred while sending or receiving.
81:             */
82:            Message send(Message query) throws IOException;
83:
84:            /**
85:             * Asynchronously sends a message registering a listener to receive a callback
86:             * on success or exception.  Multiple asynchronous lookups can be performed
87:             * in parallel.  Since the callback may be invoked before the function returns,
88:             * external synchronization is necessary.
89:             * @param query The query to send
90:             * @param listener The object containing the callbacks.
91:             * @return An identifier, which is also a parameter in the callback
92:             */
93:            Object sendAsync(final Message query,
94:                    final ResolverListener listener);
95:
96:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.