|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.lang.Thread
|
+--JSPservletPkg.whoisHandler
Handles whois requests in a worker thread.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Inner Class Summary | |
(package private) class |
whoisHandler.CodeRange
Returned by whois. |
| Field Summary | |
private int |
action
Equals NOOP or WHOIS. |
(package private) java.lang.String |
address
IP address in xxx.xxx.xxx.xxx format. |
(package private) whoisHandler.CodeRange |
codeRange
Object returned by thread. |
(package private) boolean |
completed
If true the thread has completed its task. |
(package private) JSPhandler |
handler
Handle on JSPhandler set in constructor. |
(package private) boolean |
isStarted
If true, the thread is ready. |
private static int |
NOOP
No operation - wait. |
private static int |
WHOIS
Check availability - use of subscrib and rc. |
| Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
| Constructor Summary | |
(package private) |
whoisHandler(JSPhandler jh)
Starts the thread. |
| Method Summary | |
void |
run()
Main method of Thread. |
private whoisHandler.CodeRange |
threadWhois(java.lang.String address)
Returns the country code and the alloted range of addresses for a address. |
private whoisHandler.CodeRange |
threadWhois2(java.lang.String authority,
java.lang.String address)
Returns the country code and the alloted range of addresses for a address. |
(package private) whoisHandler.CodeRange |
whois(java.lang.String address)
Returns the country code and the alloted range of addresses for a address. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
boolean isStarted
JSPhandler handler
java.lang.String address
whoisHandler.CodeRange codeRange
boolean completed
private static final int NOOP
private static final int WHOIS
private int action
| Constructor Detail |
whoisHandler(JSPhandler jh)
| Method Detail |
whoisHandler.CodeRange whois(java.lang.String address)
address - requestor address.public void run()
private whoisHandler.CodeRange threadWhois(java.lang.String address)
Algorithm
address - requestor address.
private whoisHandler.CodeRange threadWhois2(java.lang.String authority,
java.lang.String address)
Algorithm
authority - authority to query (RIPE/APNIC supported).address - requestor address.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||