All Packages Class Hierarchy This Package Previous Next Index
Class ORG.oclc.z39.client.Z39close
java.lang.Object
|
+----ORG.oclc.z39.client.Z39close
- public class Z39close
- extends Object
Z39close creates Close requests.
- Version:
- %W% %G%
-
closeReason
- Why the origin or target is closing the z-association
-
referenceId
- Value passed to Request and returned by a target Z39.50 server
-
sessionId
-
-
zsession
- Z39session
-
Z39close()
-
-
Z39close(Z39session)
-
-
doClose(int, int)
- Creates, sends, and processes a Z39.50 Close Request
-
Request(int, int)
- Creates a Z39.50 Close Request
-
Request(int, int, int, int)
- Creates a Z39.50 Close Request
-
Response(BerString)
- Processes a Z39.50 Close
-
Response(DataDir)
- Processes a Z39.50 Close.
-
toString()
-
referenceId
public int referenceId
- Value passed to Request and returned by a target Z39.50 server
closeReason
public int closeReason
- Why the origin or target is closing the z-association
sessionId
public int sessionId
zsession
public Z39session zsession
- Z39session
Z39close
public Z39close()
Z39close
public Z39close(Z39session z)
doClose
public boolean doClose(int referenceId,
int closeReason) throws Exception
- Creates, sends, and processes a Z39.50 Close Request
- Parameters:
- referenceId - Will be returned on Response and allows Requests
and responses to be matched up by the application.
- closeReason - See Z39.50 Specification.
- Returns:
- boolean. Failure would be inability to create request or parse response
- Throws: Exception
- when the request fails
Request
public BerString Request(int referenceId,
int closeReason)
- Creates a Z39.50 Close Request
- Parameters:
- referenceId - Will be returned on Response and allows Requests
and responses to be matched up by the application.
- closeReason - See Z39.50 Specification.
- Returns:
- BerString containing Request or null if space was unavailable
Request
public BerString Request(int referenceId,
int closeReason,
int extraLen,
int offset)
- Creates a Z39.50 Close Request
- Parameters:
- referenceId - Will be returned on Response and allows Requests
and responses to be matched up by the application.
- closeReason - See Z39.50 Specification.
- extraLen - Allow this much extra room in the built BER record.
- offset - Build the Request at this offset in the BerString
- Returns:
- BerString containing Request or null if space was unavailable
Response
public void Response(BerString response)
- Processes a Z39.50 Close
- Parameters:
- response - BerString containing response.
Response
public void Response(DataDir response)
- Processes a Z39.50 Close.
- Parameters:
- response - DataDir containing response
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index