3 import org.yaz4j.jni.SWIGTYPE_p_ZOOM_options_p;
4 import org.yaz4j.jni.SWIGTYPE_p_ZOOM_package_p;
5 import org.yaz4j.jni.yaz4jlib;
8 * Offers an interface to a subset of the Z39.50 extended services as well as a
9 * few privately defined ones. E.g, Z59.50 ILL, record update, database drop,
12 * @see <a href="http://www.indexdata.com/yaz/doc/zoom.extendedservices.html">ZOOM Extended Services</a>
16 public class ConnectionExtended extends Connection {
18 public ConnectionExtended(String host, int port) {
23 * Creates an extended-services package for the connection.
24 * @param type type of package (operation)
27 public Package getPackage(String type) {
29 throw new IllegalStateException("Connection is closed.");
32 SWIGTYPE_p_ZOOM_options_p options = yaz4jlib.ZOOM_options_create();
33 SWIGTYPE_p_ZOOM_package_p yazPackage = yaz4jlib.ZOOM_connection_package(
34 zoomConnection, options);
35 pack = new Package(yazPackage, this, type);