Node Director
|
Classes | |
class | SessionInfo |
class | WFEntry |
Public Member Functions | |
FrontendHTTPServer (int port, frinterface frontend, boolean master, FrontendCallback session) throws IOException | |
FrontendHTTPServer (int port, frinterface frontend, boolean master, FrontendCallback session, boolean ssl) throws IOException | |
Response | redirect (Properties header, String uri) |
Response | serve (String uri, NanoHTTPD.Method imethod, Map< String, String >header, Map< String, String >parms, Map< String, String >files) |
Response | sessionProxy (SessionInfo sinfo, String uri, String method, Map< String, String > header, Map< String, String > parms, Map< String, String > files) |
String | sessionId () |
Accessor for attribute sessionId. | |
String | sessionId (String sessionId) |
Mutator for attribute sessionId. | |
String | linkid () |
Accessor for attribute linkid. | |
JSONObject | session_request (String method, JSONArray args) throws DirectorException |
JSONObject | session_enumDomains (JSONArray args) |
JSONObject | session_create (JSONArray args) throws DirectorException |
JSONObject | auth_request (String method, JSONArray args) throws DirectorException |
JSONObject | auth_login (JSONArray args) throws DirectorException |
DBObject | authUser () |
Accessor for attribute authUser. | |
DBObject | authUser (DBObject authUser) |
Mutator for attribute authUser. | |
DBObject | authRole () |
Accessor for attribute authRole. | |
DBObject | authRole (DBObject authRole) |
Mutator for attribute authRole. | |
void | ensure_authenticated () throws DirectorException |
JSONObject | db_request (String method, JSONArray args) throws DirectorException |
JSONObject | db_listevents (JSONObject args) throws DirectorException |
JSONObject | db_event (JSONObject args) throws DirectorException |
JSONObject | db_replace (JSONObject args) throws DirectorException |
JSONObject | db_get (JSONObject args) throws DirectorException |
JSONObject | db_decryptpw (JSONObject args) throws DirectorException |
String | decryptpw (DBObject dbo, String password) |
JSONObject | db_remove (JSONObject args) throws DirectorException |
JSONObject | db_searchdispose (JSONObject args) throws DirectorException |
JSONObject | db_searchsize (JSONObject args) throws DirectorException |
JSONObject | db_searchnoop (JSONObject args) throws DirectorException |
JSONObject | db_searchget (JSONObject args) throws DirectorException |
void | fillRel (String evalRels, DBObject dbo) |
JSONObject | db_search (JSONObject args) throws DirectorException |
JSONObject | file_request (String method, JSONArray args) throws DirectorException |
JSONObject | file_retrieve (JSONArray args) throws DirectorException |
JSONObject | file_upload (JSONArray args) throws DirectorException |
JSONObject | util_request (String method, JSONArray args) throws DirectorException |
JSONObject | util_remotehostpw (JSONObject args) throws DirectorException |
JSONObject | util_logOverview (JSONObject args) throws DirectorException |
JSONObject | edit_request (String method, JSONArray args) throws DirectorException |
JSONObject | edit_fields (JSONObject args) throws DirectorException |
JSONObject | edit_data (JSONObject args) throws DirectorException |
JSONObject | edit_update (JSONObject args) throws DirectorException |
JSONObject | edit_export (JSONObject args) throws DirectorException |
JSONObject | edit_editor (JSONObject args) throws DirectorException |
boolean | useGzipWhenAccepted () |
Public Member Functions inherited from sfi.director.util.NanoHTTPD | |
NanoHTTPD (int port) throws IOException | |
Starts a HTTP server to given port. | |
Response | serveFile (String uri, Properties header, File dir, boolean allowListing) |
Response | serveFile (String uri, Map< String, String > header, File dir, boolean allowListing) |
Public Member Functions inherited from fi.iki.elonen.NanoHTTPD | |
NanoHTTPD (String hostname, int port) | |
Constructs an HTTP server on given hostname and port. | |
synchronized void | closeAllConnections () |
Forcibly closes all connections that are open. | |
final int | getListeningPort () |
final boolean | isAlive () |
void | makeSecure (SSLServerSocketFactory sslServerSocketFactory) |
Call before start() to serve over HTTPS instead of HTTP. | |
Response | newChunkedResponse (IStatus status, String mimeType, InputStream data) |
Create a response with unknown length (using HTTP 1.1 chunking). | |
Response | newFixedLengthResponse (IStatus status, String mimeType, InputStream data, long totalBytes) |
Create a response with known length. | |
Response | newFixedLengthResponse (IStatus status, String mimeType, String txt) |
Create a text response with known length. | |
Response | newFixedLengthResponse (String msg) |
Create a text response with known length. | |
Response | serve (IHTTPSession session) |
Override this to customize the server. | |
Response | serve (String uri, Method method, Map< String, String > headers, Map< String, String > parms, Map< String, String > files) |
Override this to customize the server. | |
void | setAsyncRunner (AsyncRunner asyncRunner) |
Pluggable strategy for asynchronously executing requests. | |
void | setTempFileManagerFactory (TempFileManagerFactory tempFileManagerFactory) |
Pluggable strategy for creating and cleaning up temporary files. | |
void | start () throws IOException |
Start the server. | |
void | start (final int timeout) throws IOException |
Start the server. | |
void | stop () |
Stop the server. | |
final boolean | wasStarted () |
Static Public Member Functions | |
static JSONArray | fieldsToJSON (DaemonObjectEdit editor, Vector limitAttrs, Vector cfgFeatures) |
Static Public Member Functions inherited from sfi.director.util.NanoHTTPD | |
static String | readLine (InputStream is) throws IOException |
Static Public Member Functions inherited from fi.iki.elonen.NanoHTTPD | |
static SSLServerSocketFactory | makeSSLSocketFactory (KeyStore loadedKeyStore, KeyManager[] keyManagers) throws IOException |
Creates an SSLSocketFactory for HTTPS. | |
static SSLServerSocketFactory | makeSSLSocketFactory (KeyStore loadedKeyStore, KeyManagerFactory loadedKeyFactory) throws IOException |
Creates an SSLSocketFactory for HTTPS. | |
static SSLServerSocketFactory | makeSSLSocketFactory (String keyAndTrustStoreClasspathPath, char[] passphrase) throws IOException |
Creates an SSLSocketFactory for HTTPS. |
Protected Member Functions | |
Response | handleRpc (String method, Map< String, String > header, Map< String, String > parms, Map< String, String >files) throws Exception |
JSONObject | convertException (Throwable error) |
DBObject | emulateRootUser () |
void | _recurse (int operation, DBConnection db, DBObject dbo) throws DirectorException |
DBConnection | findDB (JSONObject args) throws DirectorException |
DBConnection | findDB (String dbid) throws DirectorException |
FrontendEditor | findEditor (JSONObject args) throws DirectorException |
JSONObject | getEditorErrors (FrontendEditor editor) |
void | postEvent (DBConnection db, DBObject dbo, Record data, String event) throws DirectorException |
void | postEvent (Enumeration< DBConnection > dbs, Enumeration< DBObject > dbos, Record data, String event) throws DirectorException |
void | LogMonitor () |
void | parseLog (LogEntry le) |
Static Protected Member Functions | |
static void | _hideField (DBObject fieldobj, boolean hidden, Vector cfgFeatures) |
Protected Attributes | |
String | sessionId = null |
DBObject | authUser = null |
DBObject | authRole = null |
Static Protected Attributes | |
static int | ERROR_ORIGIN_SERVER = 1 |
static int | ERROR_ORIGIN_APPLICATION = 2 |
Additional Inherited Members | |
Static Public Attributes inherited from sfi.director.util.NanoHTTPD | |
static final String | MIME_PLAINTEXT = "text/plain" |
Common mime types for dynamic content. |
sfi.director.application.FrontendHTTPServer.FrontendHTTPServer | ( | int | port, |
frinterface | frontend, | ||
boolean | master, | ||
FrontendCallback | session | ||
) | throws IOException |
sfi.director.application.FrontendHTTPServer.FrontendHTTPServer | ( | int | port, |
frinterface | frontend, | ||
boolean | master, | ||
FrontendCallback | session, | ||
boolean | ssl | ||
) | throws IOException |
References fi.iki.elonen.NanoHTTPD.makeSecure(), and fi.iki.elonen.NanoHTTPD.start().
|
staticprotected |
References sfi.director.repository.DBObject.getAttribute().
Referenced by sfi.director.application.FrontendHTTPServer.fieldsToJSON().
|
protected |
References sfi.director.repository.DN.equals(), sfi.director.repository.DBObject.getDN(), sfi.director.repository.DN.getRaw(), sfi.director.application.FrontendHTTPServer.postEvent(), sfi.director.repository.DBConnection.SEARCH_BASEDN, sfi.director.util.Options.setOption(), sfi.director.repository.DBConnection.unwrap(), and sfi.director.application.objevents.EventEnvironment.WF_REMOVE.
Referenced by sfi.director.application.FrontendHTTPServer.db_remove().
JSONObject sfi.director.application.FrontendHTTPServer.auth_login | ( | JSONArray | args | ) | throws DirectorException |
References sfi.director.util.Setup.authdb, com.graeff.pwencode.Encoder.authorize(), sfi.director.application.FrontendHTTPServer.authUser(), sfi.director.application.FrontendHTTPServer.emulateRootUser(), sfi.director.repository.DBObject.equals(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.config.DirectoryAccess.getConfig(), sfi.director.util.Credentials.getEntity(), sfi.director.util.MyProperties.getPropertyBoolean(), sfi.director.repository.DN.getRaw(), sfi.director.repository.DBObject.getValue(), sfi.director.util.Setup.peopledir, sfi.director.util.Setup.properties, org.json.JSONObject.put(), sfi.director.repository.DBConnection.search(), sfi.director.application.FrontendCredentials.setCredentials(), and sfi.director.repository.DBConnection.unwrap().
Referenced by sfi.director.application.FrontendHTTPServer.auth_request().
JSONObject sfi.director.application.FrontendHTTPServer.auth_request | ( | String | method, |
JSONArray | args | ||
) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.auth_login().
Referenced by sfi.director.application.FrontendHTTPServer.handleRpc().
DBObject sfi.director.application.FrontendHTTPServer.authRole | ( | ) |
Accessor for attribute authRole.
Referenced by sfi.director.application.FrontendHTTPServer.authRole().
Mutator for attribute authRole.
References sfi.director.application.FrontendHTTPServer.authRole().
DBObject sfi.director.application.FrontendHTTPServer.authUser | ( | ) |
Mutator for attribute authUser.
References sfi.director.application.FrontendHTTPServer.authUser().
|
protected |
JSONObject sfi.director.application.FrontendHTTPServer.db_decryptpw | ( | JSONObject | args | ) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.decryptpw(), sfi.director.application.FrontendHTTPServer.findDB(), sfi.director.repository.DBConnection.get(), sfi.director.repository.DBAccessor.getDBObject(), and org.json.JSONObject.put().
Referenced by sfi.director.application.FrontendHTTPServer.db_request().
JSONObject sfi.director.application.FrontendHTTPServer.db_event | ( | JSONObject | args | ) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.findDB(), sfi.director.repository.DBConnection.get(), sfi.director.repository.config.DirectoryAccess.getConfig(), sfi.director.repository.DBAccessor.getDBObject(), org.json.JSONArray.getString(), org.json.JSONArray.length(), org.json.JSONArray.optJSONArray(), sfi.director.util.Setup.peopledir, sfi.director.application.FrontendHTTPServer.postEvent(), and sfi.director.util.Tools.toDBEditRecord().
Referenced by sfi.director.application.FrontendHTTPServer.db_request().
JSONObject sfi.director.application.FrontendHTTPServer.db_get | ( | JSONObject | args | ) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.findDB(), sfi.director.repository.DBConnection.get(), sfi.director.repository.DBAccessor.getDBObject(), org.json.JSONObject.put(), and sfi.director.repository.DBObject.toJSONObject().
Referenced by sfi.director.application.FrontendHTTPServer.db_request().
JSONObject sfi.director.application.FrontendHTTPServer.db_listevents | ( | JSONObject | args | ) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.findDB(), sfi.director.application.objevents.EventEnvironment.findObjectEvents(), sfi.director.repository.DBConnection.get(), sfi.director.repository.DBAccessor.getDBObject(), org.json.JSONArray.put(), org.json.JSONObject.put(), and sfi.director.repository.DBObject.toJSONObject().
Referenced by sfi.director.application.FrontendHTTPServer.db_request().
JSONObject sfi.director.application.FrontendHTTPServer.db_remove | ( | JSONObject | args | ) | throws DirectorException |
JSONObject sfi.director.application.FrontendHTTPServer.db_replace | ( | JSONObject | args | ) | throws DirectorException |
JSONObject sfi.director.application.FrontendHTTPServer.db_request | ( | String | method, |
JSONArray | args | ||
) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.db_decryptpw(), sfi.director.application.FrontendHTTPServer.db_event(), sfi.director.application.FrontendHTTPServer.db_get(), sfi.director.application.FrontendHTTPServer.db_listevents(), sfi.director.application.FrontendHTTPServer.db_remove(), sfi.director.application.FrontendHTTPServer.db_replace(), sfi.director.application.FrontendHTTPServer.db_search(), sfi.director.application.FrontendHTTPServer.db_searchdispose(), sfi.director.application.FrontendHTTPServer.db_searchget(), sfi.director.application.FrontendHTTPServer.db_searchnoop(), sfi.director.application.FrontendHTTPServer.db_searchsize(), sfi.director.application.FrontendHTTPServer.ensure_authenticated(), and org.json.JSONObject.optJSONObject().
Referenced by sfi.director.application.FrontendHTTPServer.handleRpc().
JSONObject sfi.director.application.FrontendHTTPServer.db_search | ( | JSONObject | args | ) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.findDB(), sfi.director.application.FrontendSearchResults.getId(), org.json.JSONArray.length(), org.json.JSONArray.optJSONArray(), org.json.JSONArray.optString(), sfi.director.application.FrontendCallback.remember(), sfi.director.repository.DBConnection.search(), sfi.director.repository.DBConnection.SEARCH_BASEDN, sfi.director.repository.DBConnection.SEARCH_NOSUB, sfi.director.repository.DBConnection.SEARCH_SCHEMA, sfi.director.repository.DBConnection.SEARCH_SORT, sfi.director.util.Options.setOption(), sfi.director.application.FrontendSearchResults.setTimeout(), and sfi.director.repository.DBConnection.unwrap().
Referenced by sfi.director.application.FrontendHTTPServer.db_request().
JSONObject sfi.director.application.FrontendHTTPServer.db_searchdispose | ( | JSONObject | args | ) | throws DirectorException |
JSONObject sfi.director.application.FrontendHTTPServer.db_searchget | ( | JSONObject | args | ) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.fillRel(), sfi.director.application.FrontendSearchResults.getPosition(), sfi.director.application.FrontendSearchResults.getRange(), sfi.director.repository.SchemaEnforcer.getSchemaEnforcer(), sfi.director.application.FrontendSearchResults.getSearch(), org.json.JSONArray.put(), org.json.JSONObject.put(), sfi.director.repository.SchemaEnforcer.reduce(), sfi.director.application.FrontendSearchResults.reorder(), sfi.director.application.FrontendSearchResults.size(), fi.iki.elonen.NanoHTTPD.start(), and sfi.director.repository.DBObject.toJSONObject().
Referenced by sfi.director.application.FrontendHTTPServer.db_request().
JSONObject sfi.director.application.FrontendHTTPServer.db_searchnoop | ( | JSONObject | args | ) | throws DirectorException |
JSONObject sfi.director.application.FrontendHTTPServer.db_searchsize | ( | JSONObject | args | ) | throws DirectorException |
String sfi.director.application.FrontendHTTPServer.decryptpw | ( | DBObject | dbo, |
String | password | ||
) |
JSONObject sfi.director.application.FrontendHTTPServer.edit_data | ( | JSONObject | args | ) | throws DirectorException |
References org.json.JSONObject.accumulate(), com.graeff.dbedit.Field.clearUpdated(), com.graeff.dbedit.EditUi.fields(), sfi.director.application.FrontendHTTPServer.findEditor(), sfi.director.repository.DN.get(), com.graeff.dbedit.Field.getAttribute(), sfi.director.application.FrontendEditor.getBase(), sfi.director.application.FrontendEditor.getEditor(), sfi.director.application.DaemonObjectEdit.getInterface(), com.graeff.dbedit.Field.isUpdated(), org.json.JSONArray.put(), org.json.JSONObject.put(), sfi.director.util.Tools.split(), com.graeff.dbedit.Field.toString(), and com.graeff.dbedit.Field.toVector().
Referenced by sfi.director.application.FrontendHTTPServer.edit_request(), and sfi.director.application.FrontendHTTPServer.edit_update().
JSONObject sfi.director.application.FrontendHTTPServer.edit_editor | ( | JSONObject | args | ) | throws DirectorException |
References com.graeff.dbedit.Record.add(), com.graeff.dbedit.EditUi.fields(), sfi.director.application.FrontendHTTPServer.findDB(), sfi.director.repository.DBConnection.get(), com.graeff.dbedit.Field.getAttribute(), sfi.director.repository.DBObject.getAttribute(), sfi.director.application.FrontendEditor.getBase(), sfi.director.util.ObjectRegistry.getByClass(), sfi.director.util.ObjectRegistry.getByName(), sfi.director.repository.DBAccessor.getDBObject(), sfi.director.repository.config.Directory.getDirectory(), sfi.director.application.FrontendEditor.getEditor(), com.graeff.dbedit.EditUi.getFieldByAttribute(), sfi.director.application.FrontendEditor.getId(), sfi.director.application.DaemonObjectEdit.getInterface(), sfi.director.repository.DBObject.getValue(), sfi.director.application.FrontendCallback.remember(), sfi.director.repository.config.DirectoryAccess.search(), sfi.director.application.FrontendEditor.setBase(), sfi.director.application.FrontendEditor.setCreate(), sfi.director.application.FrontendEditor.setDB(), sfi.director.application.FrontendEditor.setTimeout(), com.graeff.dbedit.EditUi.textinput(), com.graeff.dbedit.Field.toVector(), and sfi.director.repository.DBConnection.unwrap().
Referenced by sfi.director.application.FrontendHTTPServer.edit_request().
JSONObject sfi.director.application.FrontendHTTPServer.edit_export | ( | JSONObject | args | ) | throws DirectorException |
References sfi.director.repository.DN.append(), sfi.director.repository.DBConnection.append(), sfi.director.application.FrontendHTTPServer.findDB(), sfi.director.application.FrontendHTTPServer.findEditor(), sfi.director.application.FrontendEditor.getBase(), sfi.director.application.FrontendEditor.getCreate(), com.graeff.dbedit.EditUi.getData(), sfi.director.application.FrontendEditor.getDB(), sfi.director.application.DaemonObjectEdit.getDBObject(), sfi.director.repository.DBObject.getDN(), sfi.director.application.FrontendEditor.getEditor(), sfi.director.application.DaemonObjectEdit.getInterface(), sfi.director.application.FrontendHTTPServer.postEvent(), org.json.JSONObject.put(), sfi.director.repository.DBConnection.replace(), sfi.director.repository.DBObject.toJSONObject(), sfi.director.application.objevents.EventEnvironment.WF_ALTER, and sfi.director.application.objevents.EventEnvironment.WF_CREATE.
Referenced by sfi.director.application.FrontendHTTPServer.edit_request().
JSONObject sfi.director.application.FrontendHTTPServer.edit_fields | ( | JSONObject | args | ) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.authUser(), sfi.director.application.FrontendHTTPServer.fieldsToJSON(), sfi.director.application.FrontendHTTPServer.findEditor(), sfi.director.repository.config.DirectoryAccess.get(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.config.Directory.getDirectory(), sfi.director.application.FrontendEditor.getEditor(), sfi.director.repository.DBObject.getValue(), and org.json.JSONObject.put().
Referenced by sfi.director.application.FrontendHTTPServer.edit_request().
JSONObject sfi.director.application.FrontendHTTPServer.edit_request | ( | String | method, |
JSONArray | args | ||
) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.edit_data(), sfi.director.application.FrontendHTTPServer.edit_editor(), sfi.director.application.FrontendHTTPServer.edit_export(), sfi.director.application.FrontendHTTPServer.edit_fields(), sfi.director.application.FrontendHTTPServer.edit_update(), sfi.director.application.FrontendHTTPServer.ensure_authenticated(), and org.json.JSONObject.optJSONObject().
Referenced by sfi.director.application.FrontendHTTPServer.handleRpc().
JSONObject sfi.director.application.FrontendHTTPServer.edit_update | ( | JSONObject | args | ) | throws DirectorException |
References com.graeff.dbedit.EditDaemon.clearErrors(), sfi.director.application.FrontendHTTPServer.edit_data(), sfi.director.application.FrontendHTTPServer.findEditor(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.DBObject.getAttributes(), sfi.director.application.FrontendEditor.getEditor(), sfi.director.application.FrontendHTTPServer.getEditorErrors(), sfi.director.application.DaemonObjectEdit.getInterface(), org.json.JSONObject.put(), sfi.director.application.FrontendEditor.setBase(), and com.graeff.dbedit.EditUi.textinput().
Referenced by sfi.director.application.FrontendHTTPServer.edit_request().
|
protected |
References sfi.director.util.Setup.authdb, sfi.director.util.Tools.log(), sfi.director.util.Setup.nulldb, sfi.director.application.FrontendHTTPServer.postEvent(), sfi.director.repository.DBConnection.search(), sfi.director.repository.DBObject.setDN(), sfi.director.repository.DBConnection.unwrap(), and sfi.director.util.Logger.WARNING.
Referenced by sfi.director.application.FrontendHTTPServer.auth_login().
void sfi.director.application.FrontendHTTPServer.ensure_authenticated | ( | ) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.authUser().
Referenced by sfi.director.application.FrontendHTTPServer.db_request(), sfi.director.application.FrontendHTTPServer.edit_request(), sfi.director.application.FrontendHTTPServer.file_request(), and sfi.director.application.FrontendHTTPServer.util_request().
|
static |
References sfi.director.application.FrontendHTTPServer._hideField(), sfi.director.repository.DBSet.add(), sfi.director.repository.DBSet.elements(), com.graeff.dbedit.EditUi.fields(), sfi.director.util.Tools.fieldToDBObject(), sfi.director.repository.DBObject.getEValue(), sfi.director.application.DaemonObjectEdit.getInterface(), sfi.director.repository.DBSet.indexedGet(), org.json.JSONArray.put(), sfi.director.repository.DBSet.remove(), and sfi.director.repository.DBObject.toJSONObject().
Referenced by sfi.director.application.FrontendHTTPServer.edit_fields().
JSONObject sfi.director.application.FrontendHTTPServer.file_request | ( | String | method, |
JSONArray | args | ||
) | throws DirectorException |
JSONObject sfi.director.application.FrontendHTTPServer.file_retrieve | ( | JSONArray | args | ) | throws DirectorException |
JSONObject sfi.director.application.FrontendHTTPServer.file_upload | ( | JSONArray | args | ) | throws DirectorException |
References sfi.director.util.FileStore.getInstance(), org.json.JSONObject.getString(), org.json.JSONObject.keys(), org.json.JSONArray.length(), sfi.director.util.FileStore.logicalPath(), org.json.JSONObject.optJSONObject(), org.json.JSONObject.optString(), org.json.JSONArray.put(), org.json.JSONObject.put(), and sfi.director.util.FileStore.store().
Referenced by sfi.director.application.FrontendHTTPServer.file_request().
void sfi.director.application.FrontendHTTPServer.fillRel | ( | String | evalRels, |
DBObject | dbo | ||
) |
References sfi.director.repository.DBObject.getValue(), and sfi.director.util.Tools.split().
Referenced by sfi.director.application.FrontendHTTPServer.db_searchget().
|
protected |
Referenced by sfi.director.application.FrontendHTTPServer.db_decryptpw(), sfi.director.application.FrontendHTTPServer.db_event(), sfi.director.application.FrontendHTTPServer.db_get(), sfi.director.application.FrontendHTTPServer.db_listevents(), sfi.director.application.FrontendHTTPServer.db_remove(), sfi.director.application.FrontendHTTPServer.db_replace(), sfi.director.application.FrontendHTTPServer.db_search(), sfi.director.application.FrontendHTTPServer.edit_editor(), and sfi.director.application.FrontendHTTPServer.edit_export().
|
protected |
|
protected |
References sfi.director.application.FrontendDisposableAdapter.accessed(), and sfi.director.application.FrontendEditor.getEditor().
Referenced by sfi.director.application.FrontendHTTPServer.edit_data(), sfi.director.application.FrontendHTTPServer.edit_export(), sfi.director.application.FrontendHTTPServer.edit_fields(), and sfi.director.application.FrontendHTTPServer.edit_update().
|
protected |
References org.json.JSONObject.accumulate(), com.graeff.dbedit.Field.getAttribute(), sfi.director.application.FrontendEditor.getEditor(), com.graeff.dbedit.EditError.getField(), sfi.director.application.DaemonObjectEdit.getInterface(), com.graeff.dbedit.EditError.getMessage(), and com.graeff.dbedit.EditDaemon.getNextError().
Referenced by sfi.director.application.FrontendHTTPServer.edit_update().
|
protected |
References sfi.director.application.FrontendHTTPServer.auth_request(), sfi.director.application.FrontendHTTPServer.convertException(), sfi.director.application.FrontendHTTPServer.db_request(), sfi.director.util.Tools.debug(), sfi.director.application.FrontendHTTPServer.edit_request(), sfi.director.application.FrontendHTTPServer.file_request(), org.json.JSONObject.getString(), org.json.JSONObject.keys(), sfi.director.util.NanoHTTPD.MIME_PLAINTEXT, fi.iki.elonen.NanoHTTPD.newFixedLengthResponse(), org.json.JSONObject.optJSONArray(), org.json.JSONObject.optJSONObject(), org.json.JSONArray.optString(), org.json.JSONObject.optString(), org.json.JSONObject.put(), org.json.JSONObject.remove(), sfi.director.application.FrontendHTTPServer.session_request(), sfi.director.application.FrontendInterface.sessionPassword, sfi.director.util.Tools.stacktrace(), org.json.JSONObject.toString(), and sfi.director.application.FrontendHTTPServer.util_request().
Referenced by sfi.director.application.FrontendHTTPServer.serve().
String sfi.director.application.FrontendHTTPServer.linkid | ( | ) |
Accessor for attribute linkid.
Accessor for attribute linkid.
References sfi.director.application.FrontendInterface.sessionLinkid.
Referenced by sfi.director.application.FrontendHTTPServer.serve().
|
protected |
|
protected |
|
protected |
References sfi.director.application.objevents.Workflow.doEvent(), and sfi.director.application.objevents.Workflow.flush().
Referenced by sfi.director.application.FrontendHTTPServer._recurse(), sfi.director.application.FrontendHTTPServer.db_event(), sfi.director.application.FrontendHTTPServer.edit_export(), and sfi.director.application.FrontendHTTPServer.emulateRootUser().
|
protected |
Response sfi.director.application.FrontendHTTPServer.redirect | ( | Properties | header, |
String | uri | ||
) |
References fi.iki.elonen.NanoHTTPD.newFixedLengthResponse().
Referenced by sfi.director.application.FrontendHTTPServer.serve().
Response sfi.director.application.FrontendHTTPServer.serve | ( | String | uri, |
NanoHTTPD.Method | imethod, | ||
Map< String, String > | header, | ||
Map< String, String > | parms, | ||
Map< String, String > | files | ||
) |
References sfi.director.util.Setup.fileSeparator, org.json.JSONArray.get(), sfi.director.application.FrontendHTTPServer.handleRpc(), sfi.director.application.FrontendCallback.heartbeat(), sfi.director.util.Logger.INFO, org.json.JSONArray.length(), sfi.director.application.FrontendHTTPServer.linkid(), sfi.director.util.Tools.log(), sfi.director.util.NanoHTTPD.MIME_PLAINTEXT, fi.iki.elonen.NanoHTTPD.newFixedLengthResponse(), org.json.JSONArray.put(), org.json.JSONObject.put(), sfi.director.application.FrontendHTTPServer.redirect(), sfi.director.util.Setup.rootDir, sfi.director.util.NanoHTTPD.serveFile(), sfi.director.application.FrontendHTTPServer.sessionId(), sfi.director.application.FrontendHTTPServer.sessionProxy(), org.json.JSONObject.toString(), and sfi.director.util.Logger.WARNING.
JSONObject sfi.director.application.FrontendHTTPServer.session_create | ( | JSONArray | args | ) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.SessionInfo.downSessionpw, sfi.director.application.FrontendHTTPServer.SessionInfo.id, sfi.director.application.FrontendHTTPServer.SessionInfo.port, org.json.JSONObject.put(), sfi.director.application.FrontendInterface.startSession(), and sfi.director.application.FrontendHTTPServer.SessionInfo.upSessionpw.
Referenced by sfi.director.application.FrontendHTTPServer.session_request().
JSONObject sfi.director.application.FrontendHTTPServer.session_enumDomains | ( | JSONArray | args | ) |
JSONObject sfi.director.application.FrontendHTTPServer.session_request | ( | String | method, |
JSONArray | args | ||
) | throws DirectorException |
String sfi.director.application.FrontendHTTPServer.sessionId | ( | ) |
Accessor for attribute sessionId.
Referenced by sfi.director.application.FrontendHTTPServer.serve(), and sfi.director.application.FrontendHTTPServer.sessionId().
String sfi.director.application.FrontendHTTPServer.sessionId | ( | String | sessionId | ) |
Mutator for attribute sessionId.
References sfi.director.application.FrontendHTTPServer.sessionId().
Response sfi.director.application.FrontendHTTPServer.sessionProxy | ( | SessionInfo | sinfo, |
String | uri, | ||
String | method, | ||
Map< String, String > | header, | ||
Map< String, String > | parms, | ||
Map< String, String > | files | ||
) |
References sfi.director.application.FrontendHTTPServer.SessionInfo.downSessionpw, sfi.director.application.FrontendHTTPServer.SessionInfo.id, sfi.director.util.NanoHTTPD.MIME_PLAINTEXT, fi.iki.elonen.NanoHTTPD.newChunkedResponse(), fi.iki.elonen.NanoHTTPD.newFixedLengthResponse(), org.json.JSONObject.optJSONArray(), org.json.JSONArray.optJSONObject(), org.json.JSONArray.optString(), org.json.JSONObject.optString(), sfi.director.application.FrontendHTTPServer.SessionInfo.port, sfi.director.util.NanoHTTPD.readLine(), sfi.director.util.Tools.timeStamp(), and sfi.director.application.FrontendHTTPServer.SessionInfo.username.
Referenced by sfi.director.application.FrontendHTTPServer.serve().
boolean sfi.director.application.FrontendHTTPServer.useGzipWhenAccepted | ( | ) |
Reimplemented from fi.iki.elonen.NanoHTTPD.
JSONObject sfi.director.application.FrontendHTTPServer.util_logOverview | ( | JSONObject | args | ) | throws DirectorException |
References org.json.JSONArray.put(), and org.json.JSONObject.put().
Referenced by sfi.director.application.FrontendHTTPServer.util_request().
JSONObject sfi.director.application.FrontendHTTPServer.util_remotehostpw | ( | JSONObject | args | ) | throws DirectorException |
JSONObject sfi.director.application.FrontendHTTPServer.util_request | ( | String | method, |
JSONArray | args | ||
) | throws DirectorException |
References sfi.director.application.FrontendHTTPServer.ensure_authenticated(), org.json.JSONObject.optJSONObject(), sfi.director.application.FrontendHTTPServer.util_logOverview(), and sfi.director.application.FrontendHTTPServer.util_remotehostpw().
Referenced by sfi.director.application.FrontendHTTPServer.handleRpc().
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |