Modifier and Type | Class and Description |
---|---|
static class |
EdbGate.ExtStorage |
static interface |
EdbGate.LookListener
サーバ側の EDB/Gate にリクエストだけ送り,レスポンスが帰ってきたときに呼び出されるクラスのインタフェースです.
|
class |
EdbGate.Request
EDB/Gate へ送られるコマンドリクエストを表します.
|
class |
EdbGate.ResCLASSIFY
カラム分類情報の1レコードの情報を格納するための汎用のデータ形式です.
|
class |
EdbGate.ResCTABLE
文字変換テーブルの1レコードの情報を格納するための汎用のデータ形式です.
|
class |
EdbGate.ResEETX
EDB/Gate からのレスポンスの内容を格納するための汎用のデータ形式です.
|
Modifier and Type | Field and Description |
---|---|
(package private) Exception |
connectionException |
(package private) EDB |
edb |
(package private) int |
edbgateAge |
(package private) int |
edbgateOperator |
(package private) boolean |
edbgateStaff |
(package private) jp.ac.tokushima_u.edb.EdbGate.Reader |
reader |
static boolean |
selectMainServer |
(package private) SSLSocket |
socket |
(package private) jp.ac.tokushima_u.edb.EdbGate.Writer |
writer |
Constructor and Description |
---|
EdbGate(EDB edb,
String host,
int port)
EDB/Gate コネクターの新しいインスタンスを初期化します.
|
EdbGate(EDB edb,
String host,
int port,
boolean isUID,
String uid,
char[] passphrase) |
EdbGate(EDB edb,
String host,
int port,
int userEID,
char[] passphrase)
EDB/Gate コネクターの新しいインスタンスを初期化します.
|
EdbGate(EDB edb,
String host,
int port,
String pkcs12file,
char[] passphrase)
EDB/Gate コネクターを新規に構築し,EDB/Gate に指定のX.509個人証明書ファイル,パスワードでログインします.
|
Modifier and Type | Method and Description |
---|---|
static String |
chooseServer()
EDB/Gate のサーバをランダムに選択し返します.
|
(package private) int |
command_AGE() |
(package private) void |
command_BEGIN() |
(package private) String |
command_CACERTSIGN(EdbEID eid,
CharSequence certreq,
CharSequence[] opts) |
(package private) boolean |
command_CENSOR(String cmode) |
(package private) boolean |
command_CHECK(CharSequence xml) |
(package private) boolean |
command_CHOOSEDB(CharSequence mode) |
(package private) List<EdbGate.ResCLASSIFY> |
command_CLASSIFY(CharSequence cxn,
CharSequence condition) |
(package private) List<EdbGate.ResCLASSIFY> |
command_CLASSIFY(CharSequence cxn,
CharSequence condition,
CharSequence[] opts) |
(package private) int |
command_COUNT(CharSequence condition) |
(package private) boolean |
command_CREATABLE(CharSequence xn) |
(package private) boolean |
command_CREATABLE(EdbEID eid) |
(package private) List<EdbGate.ResCTABLE> |
command_CTABLE() |
(package private) String |
command_CTEXT(CharSequence text) |
(package private) boolean |
command_DELETABLE(EdbEID eid) |
(package private) byte[] |
command_DOWNLOAD(CharSequence name,
CharSequence args) |
(package private) String |
command_DTD(CharSequence xn) |
(package private) void |
command_END() |
(package private) boolean |
command_EXTSTORAGE(EdbGate.ExtStorage es) |
(package private) List<EdbGate.ResEETX> |
command_FRESH(int seconds) |
(package private) EdbGate.Request |
command_GET_nowait(int eid) |
(package private) EdbGate.Request |
command_GET_nowait(int eid,
int eoid) |
(package private) EdbGate.ResEETX |
command_GET_result(EdbGate.Request req) |
(package private) EdbGate.ResEETX |
command_GET(CharSequence arg) |
(package private) EdbGate.ResEETX |
command_GET(int eid) |
(package private) EdbGate.ResEETX |
command_GET(int eid,
int eoid) |
(package private) int |
command_INFO_MaxEID() |
(package private) int |
command_INFO_MaxEOID() |
(package private) boolean |
command_ISODIN(EdbEID eid) |
(package private) boolean |
command_ISSTAFF(EdbEID eid) |
(package private) boolean |
command_ISUSER(EdbEID eid) |
(package private) void |
command_LOGIN(CharSequence uid,
char[] pass) |
(package private) void |
command_LOGIN(int userEID,
char[] pass) |
(package private) List<EdbGate.ResEETX> |
command_LOOK_getResponse(EdbGate.Request req) |
(package private) List<EdbGate.ResEETX> |
command_LOOK_scanResponse(EdbGate.Request req) |
(package private) EdbGate.Request |
command_LOOK_sendRequest(CharSequence condition) |
(package private) EdbGate.Request |
command_LOOK_sendRequest(CharSequence condition,
CharSequence order) |
(package private) EdbGate.Request |
command_LOOK_sendRequest(CharSequence condition,
CharSequence order,
CharSequence language,
EdbGate.LookListener lis) |
(package private) EdbGate.Request |
command_LOOK_sendRequest(CharSequence condition,
CharSequence order,
EdbGate.LookListener lis) |
(package private) List<EdbGate.ResEETX> |
command_LOOK(CharSequence condition) |
(package private) List<EdbGate.ResEETX> |
command_LOOK(CharSequence condition,
CharSequence order) |
(package private) List<EdbGate.ResEETX> |
command_LOOK(CharSequence condition,
CharSequence order,
CharSequence language) |
(package private) UTLF |
command_LOOKUP(String type,
CharSequence query) |
(package private) String |
command_MODIFY(CharSequence xml) |
(package private) boolean |
command_NOTIFY(String mode) |
(package private) int |
command_NOW() |
(package private) boolean |
command_PASSPHRASE(CharSequence pass) |
(package private) void |
command_QUIT() |
(package private) UTLF |
command_REPGET(CharSequence id,
CharSequence opt) |
(package private) boolean |
command_SLOGIN(char[] pass) |
(package private) boolean |
command_SLOGOUT() |
(package private) boolean |
command_SSLLOGINAUTO(boolean autologin) |
(package private) List<EdbGate.ResEETX> |
command_TABLE() |
(package private) List<EdbGate.ResEETX> |
command_TABLE(boolean regular) |
(package private) List<EdbGate.ResEETX> |
command_TMCOUNT(EdbEID eid) |
(package private) List<EdbGate.ResEETX> |
command_TOCOUNT(EdbEID eid) |
(package private) List<EdbGate.ResEETX> |
command_TPCOUNT(EdbEID eid) |
(package private) List<EdbGate.ResEETX> |
command_TRCOUNT(EdbEID eid) |
(package private) List<EdbGate.ResEETX> |
command_TxCOUNT(CharSequence cmd,
EdbEID eid) |
(package private) boolean |
command_UPDATABLE(CharSequence arg) |
(package private) EdbGate.ResEETX |
command_UPDATE(CharSequence arg) |
(package private) boolean |
command_UPLOAD(CharSequence name,
CharSequence args,
byte[] data) |
(package private) boolean |
command_VERBOSE(int level) |
(package private) int |
command_WHOAMI() |
(package private) boolean |
command_WRITABLE(EdbEID eid) |
boolean |
connected()
EDB/GATE との接続状態を返します.
|
void |
disconnect()
EDB/GATE との接続を閉じます.
|
(package private) int |
getAge() |
(package private) int |
getOperator() |
(package private) boolean |
isStaff() |
(package private) EdbGate.Request |
sendRequest(EdbGate.Request request) |
EDB edb
SSLSocket socket
jp.ac.tokushima_u.edb.EdbGate.Reader reader
jp.ac.tokushima_u.edb.EdbGate.Writer writer
int edbgateAge
int edbgateOperator
boolean edbgateStaff
public static boolean selectMainServer
Exception connectionException
public EdbGate(EDB edb, String host, int port)
EDB/Gate に接続します.
edb
- EDB コンテキストhost
- EDB/Gate のホストport
- EDB/Gate のポートpublic EdbGate(EDB edb, String host, int port, int userEID, char[] passphrase)
EDB/Gate に指定のEID,パスフレーズでログインします.
edb
- EDB コンテキストhost
- EDB/Gate のホストport
- EDB/Gate のポートuserEID
- ユーザを示す EIDpassphrase
- パスフレーズpublic EdbGate(EDB edb, String host, int port, boolean isUID, String uid, char[] passphrase)
int getAge()
int getOperator()
boolean isStaff()
public static String chooseServer()
EDB/Gate のサーバのリストを取得し,その中からランダムにサーバを選択します. サーバのリストが取得できない場合は,デフォルトのサーバを返します.
public boolean connected()
true
,その他 false
を返します.public void disconnect()
EdbGate.Request sendRequest(EdbGate.Request request)
void command_BEGIN()
void command_END()
void command_QUIT()
void command_LOGIN(int userEID, char[] pass)
void command_LOGIN(CharSequence uid, char[] pass)
boolean command_SLOGIN(char[] pass)
boolean command_SLOGOUT()
EdbGate.ResEETX command_GET(CharSequence arg)
EdbGate.ResEETX command_GET(int eid)
EdbGate.Request command_GET_nowait(int eid)
EdbGate.ResEETX command_GET(int eid, int eoid)
EdbGate.Request command_GET_nowait(int eid, int eoid)
EdbGate.ResEETX command_GET_result(EdbGate.Request req)
String command_DTD(CharSequence xn)
UTLF command_REPGET(CharSequence id, CharSequence opt)
UTLF command_LOOKUP(String type, CharSequence query)
List<EdbGate.ResEETX> command_TABLE()
List<EdbGate.ResEETX> command_TABLE(boolean regular)
EdbGate.Request command_LOOK_sendRequest(CharSequence condition, CharSequence order, CharSequence language, EdbGate.LookListener lis)
EdbGate.Request command_LOOK_sendRequest(CharSequence condition, CharSequence order, EdbGate.LookListener lis)
EdbGate.Request command_LOOK_sendRequest(CharSequence condition, CharSequence order)
EdbGate.Request command_LOOK_sendRequest(CharSequence condition)
List<EdbGate.ResEETX> command_LOOK_getResponse(EdbGate.Request req)
List<EdbGate.ResEETX> command_LOOK_scanResponse(EdbGate.Request req)
List<EdbGate.ResEETX> command_LOOK(CharSequence condition, CharSequence order, CharSequence language)
List<EdbGate.ResEETX> command_LOOK(CharSequence condition, CharSequence order)
List<EdbGate.ResEETX> command_LOOK(CharSequence condition)
List<EdbGate.ResEETX> command_FRESH(int seconds)
List<EdbGate.ResEETX> command_TxCOUNT(CharSequence cmd, EdbEID eid)
List<EdbGate.ResEETX> command_TRCOUNT(EdbEID eid)
List<EdbGate.ResEETX> command_TOCOUNT(EdbEID eid)
List<EdbGate.ResEETX> command_TPCOUNT(EdbEID eid)
List<EdbGate.ResEETX> command_TMCOUNT(EdbEID eid)
List<EdbGate.ResCTABLE> command_CTABLE()
List<EdbGate.ResCLASSIFY> command_CLASSIFY(CharSequence cxn, CharSequence condition, CharSequence[] opts)
List<EdbGate.ResCLASSIFY> command_CLASSIFY(CharSequence cxn, CharSequence condition)
int command_WHOAMI()
int command_AGE()
int command_NOW()
int command_COUNT(CharSequence condition)
boolean command_WRITABLE(EdbEID eid)
boolean command_DELETABLE(EdbEID eid)
boolean command_CREATABLE(CharSequence xn)
boolean command_CREATABLE(EdbEID eid)
String command_CTEXT(CharSequence text)
boolean command_UPDATABLE(CharSequence arg)
EdbGate.ResEETX command_UPDATE(CharSequence arg)
int command_INFO_MaxEID()
int command_INFO_MaxEOID()
boolean command_VERBOSE(int level)
boolean command_CENSOR(String cmode)
boolean command_NOTIFY(String mode)
boolean command_CHOOSEDB(CharSequence mode)
boolean command_CHECK(CharSequence xml)
String command_MODIFY(CharSequence xml)
boolean command_ISUSER(EdbEID eid)
boolean command_ISSTAFF(EdbEID eid)
boolean command_ISODIN(EdbEID eid)
boolean command_PASSPHRASE(CharSequence pass)
boolean command_SSLLOGINAUTO(boolean autologin)
String command_CACERTSIGN(EdbEID eid, CharSequence certreq, CharSequence[] opts)
boolean command_UPLOAD(CharSequence name, CharSequence args, byte[] data)
byte[] command_DOWNLOAD(CharSequence name, CharSequence args)
boolean command_EXTSTORAGE(EdbGate.ExtStorage es)
EDB Working Group at Tue Jun 10 17:08:59 JST 2025