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


Field Summary
protected  java.lang.String baseURI
           
static java.lang.String CL
           
protected  IPCConnection connection
          IP connection
protected  java.lang.String host
           
protected  int port
           
protected  java.lang.String serverURL
           
 
Fields inherited from class kom.tools.ipc.IPCClient
connection
 
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 kom.tools.ipc.IPCClient
connect
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NameFinder

public NameFinder(java.lang.String server)
Class constructor
Parameters:
server - Base url for server, like "http://myserver.com:8080/A/B/"
Method Detail

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