kom.smtpd
Class NameFinder
java.lang.Object
|
+--kom.tools.ipc.IPCClient
|
+--kom.smtpd.NameFinder
- class NameFinder
- extends IPCClient
Class for handling name lookups in a KOM 2000 database
Constructor Summary |
NameFinder(java.lang.String server)
Class constructor |
Method Summary |
void |
close()
Closes connection to remote host |
void |
get(java.lang.String data)
Sends a GET request to remote host |
java.lang.String |
lookup(java.lang.String mbox)
Puts a query to remote host |
java.lang.String |
receive()
Receives data from remote host |
void |
setConnection(java.lang.String url)
Opens a connection to some HTTP server |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
serverURL
protected java.lang.String serverURL
connection
protected IPCConnection connection
- IP connection
baseURI
protected java.lang.String baseURI
host
protected java.lang.String host
port
protected int port
CL
public static final java.lang.String CL
NameFinder
public NameFinder(java.lang.String server)
- Class constructor
- Parameters:
server
- Base url for server, like "http://myserver.com:8080/A/B/"
setConnection
public void setConnection(java.lang.String url)
- Opens a connection to some HTTP server
- Parameters:
url
- URL of server, with or without "http://"
lookup
public java.lang.String lookup(java.lang.String mbox)
- Puts a query to remote host
- Parameters:
mbox
- Mailbox part of a possible user or forum at the host database- Returns:
- data about user/forum or null
get
public void get(java.lang.String data)
- Sends a GET request to remote host
- Parameters:
data
- Data to be passed in URL
receive
public java.lang.String receive()
- Receives data from remote host
close
public void close()
- Closes connection to remote host