|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.zbase.server.TransactionHandler
Process a Z39.50 request. Accepts the request from an ZBaseThread object, invokes a Db object and replies to the client.
Field Summary | |
protected DataOutputStream |
dataOut
Output stream for response. |
protected boolean |
holdConnection
Flag to caller (ZBaseThread) that connection should be held open. |
protected int |
lastNewSessionId
Last assigned session id. |
protected BerString |
message
Z39.50 request. |
protected BerString |
response
Z39.50 response. |
Constructor Summary | |
TransactionHandler()
Just initialize the thread group. |
Method Summary | |
protected BerString |
AccessControl(DataDir dir)
Z3950 AccessControl Response. |
protected BerString |
Close(DataDir dir)
Z39.50 Close request. |
protected BerString |
Dedup(DataDir dir)
Z39.50 Dedup request. |
protected BerString |
Delete(DataDir dir)
Z39.50 Delete Hitlist request. |
protected BerString |
Display(DataDir dir)
Z39.50 Present request. |
protected BerString |
Extsvc(DataDir dir)
Z39.50 Extended Services request. |
protected BerString |
Find(DataDir dir)
Z39.50 Search request. |
static AccessClient |
getUserAccessClient(String sessionID)
|
BerString |
handle(BerString message)
Handle the request. |
protected BerString |
Init(DataDir dir)
Z39.50 Init request. |
static void |
init(IniFile ini,
String serverName)
Invokes the init method with the input IniFile object, serverName and the verbose flag set to true. |
static void |
init(IniFile ini,
String serverName,
boolean verbose)
init should only be called once. |
void |
run()
Used by ZBaseMultiThread. |
protected BerString |
Scan(DataDir dir)
Z39.50 Scan request. |
protected BerString |
Sort(DataDir dir)
Z39.50 Sort request. |
protected void |
Stop(DataDir dir)
Z39.50 Trigger Resource Control request. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected BerString message
protected BerString response
protected DataOutputStream dataOut
protected int lastNewSessionId
protected boolean holdConnection
Constructor Detail |
public TransactionHandler()
Method Detail |
public static AccessClient getUserAccessClient(String sessionID)
public static void init(IniFile ini, String serverName)
ini
- configuration filename
- section name for this threadpublic static void init(IniFile ini, String serverName, boolean verbose)
ini
- configuration filename
- section name for this threadverbose
- flag indicating whether the configuration information
should be dumped to the server log.public void run()
public BerString handle(BerString message)
message
- the requestprotected BerString Init(DataDir dir)
sessionId
- the assigned session iddir
- the requestprotected BerString Sort(DataDir dir)
dir
- the requestprotected BerString Dedup(DataDir dir)
dir
- the requestprotected BerString Scan(DataDir dir)
dir
- the requestprotected BerString Display(DataDir dir)
dir
- the requestprotected BerString Find(DataDir dir)
dir
- the requestprotected BerString Delete(DataDir dir)
dir
- the requestprotected BerString Close(DataDir dir)
dir
- the requestprotected BerString Extsvc(DataDir dir)
protected BerString AccessControl(DataDir dir)
protected void Stop(DataDir dir)
dir
- the request
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |