|
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.zbroker.TransactionHandler
Process a Z39.50 request. Accepts the request from an ZBrokerThread object, passes the message to the correct ZBrokerClient object and replies to the client.
Field Summary | |
protected DataOutputStream |
dataOut
Output stream for response. |
protected boolean |
holdConnection
Flag to caller (ZBrokerThread) that connection should be held open. |
protected String |
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. |
|
TransactionHandler(BerString message,
ThreadGroup t,
DataOutputStream dataOut)
Set up and run(). |
Method Summary | |
protected BerString |
Close(DataDir dir)
Z39.50 Close request. |
protected BerString |
DedupError(DataDir dir,
Diagnostic1 d)
Z39.50 DedupError response. |
protected BerString |
DeleteError(DataDir dir,
Diagnostic1 d)
Z39.50 Delete Hitlist Error response. |
protected BerString |
ExtsvcError(DataDir dir,
Diagnostic1 d)
Z39.50 Extended Services request. |
BerString |
handle(BerString message)
Handle the request. |
protected BerString |
Init(DataDir dir)
Z39.50 Init request. |
static void |
init(IniFile ini,
String serverName)
init should only be called once. |
protected BerString |
PresentError(DataDir dir,
Diagnostic1 d)
Z39.50 PresentError response. |
void |
run()
Used by ZBrokerMultiThread. |
protected BerString |
ScanError(DataDir dir,
Diagnostic1 d)
Z39.50 ScanError response. |
protected BerString |
SearchError(DataDir dir,
Diagnostic1 d)
Z39.50 SearchError response. |
protected BerString |
sendRequest(DataDir dir,
boolean expectResponse)
Z39.50 Request. |
protected BerString |
SortError(DataDir dir,
Diagnostic1 d)
Z39.50 SortError response. |
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 String lastNewSessionId
protected boolean holdConnection
Constructor Detail |
public TransactionHandler()
public TransactionHandler(BerString message, ThreadGroup t, DataOutputStream dataOut)
Method Detail |
public static void init(IniFile ini, String serverName)
ini
- configuration filename
- section name for this threadpublic void run()
public BerString handle(BerString message)
message
- the requestprotected BerString Init(DataDir dir)
sessionId
- the assigned session iddir
- the requestprotected BerString sendRequest(DataDir dir, boolean expectResponse)
dir
- the requestprotected BerString SortError(DataDir dir, Diagnostic1 d)
dir
- the requestprotected BerString DedupError(DataDir dir, Diagnostic1 d)
dir
- the requestprotected BerString ScanError(DataDir dir, Diagnostic1 d)
dir
- the requestprotected BerString PresentError(DataDir dir, Diagnostic1 d)
dir
- the requestprotected BerString SearchError(DataDir dir, Diagnostic1 d)
dir
- the requestprotected BerString DeleteError(DataDir dir, Diagnostic1 d)
dir
- the requestprotected BerString Close(DataDir dir)
dir
- the requestprotected BerString ExtsvcError(DataDir dir, Diagnostic1 d)
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 |