Java Doc for Address.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » tomcat » jni » 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 » Sevlet Container » apache tomcat 6.0.14 » org.apache.tomcat.jni 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tomcat.jni.Address

Address
public class Address (Code)
Address
author:
   Mladen Turk
version:
   $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $


Field Summary
public static  StringAPR_ANYADDR
    


Method Summary
native public static  booleanequal(long a, long b)
     See if the IP addresses in two APR socket addresses are equivalent.
native public static  booleanfill(Sockaddr info, long sa)
    
native public static  longget(int which, long sock)
    
native public static  SockaddrgetInfo(long sa)
    
native public static  Stringgetip(long sa)
     Return the IP address (in numeric address string format) in an APR socket address.
native public static  Stringgetnameinfo(long sa, int flags)
     Look up the host name from an apr_sockaddr_t.
Parameters:
  sa - The apr_sockaddr_t.
Parameters:
  flags - Special processing flags.
native public static  intgetservbyname(long sockaddr, String servname)
    
native public static  longinfo(String hostname, int family, int port, int flags, long p)
     Create apr_sockaddr_t from hostname, address family, and port.
Parameters:
  hostname - The hostname or numeric address string to resolve/parse, orNULL to build an address that corresponds to 0.0.0.0 or ::
Parameters:
  family - The address family to use, or APR_UNSPEC if the system shoulddecide.
Parameters:
  port - The port number.
Parameters:
  flags - Special processing flags:
APR_IPV4_ADDR_OK          first query for IPv4 addresses; only lookfor IPv6 addresses if the first query failed;only valid if family is APR_UNSPEC and hostnameisn't NULL; mutually exclusive withAPR_IPV6_ADDR_OKAPR_IPV6_ADDR_OK          first query for IPv6 addresses; only lookfor IPv4 addresses if the first query failed;only valid if family is APR_UNSPEC and hostnameisn't NULL and APR_HAVE_IPV6; mutually exclusivewith APR_IPV4_ADDR_OK

Parameters:
  p - The pool for the apr_sockaddr_t and associated storage.

Field Detail
APR_ANYADDR
public static String APR_ANYADDR(Code)





Method Detail
equal
native public static boolean equal(long a, long b)(Code)
See if the IP addresses in two APR socket addresses are equivalent. Appropriate logic is present for comparing IPv4-mapped IPv6 addresses with IPv4 addresses.
Parameters:
  a - One of the APR socket addresses.
Parameters:
  b - The other APR socket address.The return value will be True if the addressesare equivalent.



fill
native public static boolean fill(Sockaddr info, long sa)(Code)
Fill the Sockaddr class from apr_sockaddr_t
Parameters:
  info - Sockaddr class to fill
Parameters:
  sa - Structure pointer



get
native public static long get(int which, long sock) throws Exception(Code)
Return an apr_sockaddr_t from an apr_socket_t
Parameters:
  which - Which interface do we want the apr_sockaddr_t for?
Parameters:
  sock - The socket to use The returned apr_sockaddr_t.



getInfo
native public static Sockaddr getInfo(long sa)(Code)
Create the Sockaddr object from apr_sockaddr_t
Parameters:
  sa - Structure pointer



getip
native public static String getip(long sa)(Code)
Return the IP address (in numeric address string format) in an APR socket address. APR will allocate storage for the IP address string from the pool of the apr_sockaddr_t.
Parameters:
  sa - The socket address to reference. The IP address.



getnameinfo
native public static String getnameinfo(long sa, int flags)(Code)
Look up the host name from an apr_sockaddr_t.
Parameters:
  sa - The apr_sockaddr_t.
Parameters:
  flags - Special processing flags. The hostname.



getservbyname
native public static int getservbyname(long sockaddr, String servname)(Code)
Given an apr_sockaddr_t and a service name, set the port for the service
Parameters:
  sockaddr - The apr_sockaddr_t that will have its port set
Parameters:
  servname - The name of the service you wish to use APR status code.



info
native public static long info(String hostname, int family, int port, int flags, long p) throws Exception(Code)
Create apr_sockaddr_t from hostname, address family, and port.
Parameters:
  hostname - The hostname or numeric address string to resolve/parse, orNULL to build an address that corresponds to 0.0.0.0 or ::
Parameters:
  family - The address family to use, or APR_UNSPEC if the system shoulddecide.
Parameters:
  port - The port number.
Parameters:
  flags - Special processing flags:
APR_IPV4_ADDR_OK          first query for IPv4 addresses; only lookfor IPv6 addresses if the first query failed;only valid if family is APR_UNSPEC and hostnameisn't NULL; mutually exclusive withAPR_IPV6_ADDR_OKAPR_IPV6_ADDR_OK          first query for IPv6 addresses; only lookfor IPv4 addresses if the first query failed;only valid if family is APR_UNSPEC and hostnameisn't NULL and APR_HAVE_IPV6; mutually exclusivewith APR_IPV4_ADDR_OK

Parameters:
  p - The pool for the apr_sockaddr_t and associated storage. The new apr_sockaddr_t.



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.