Package | Description |
---|---|
org.elkoserver.foundation.actor |
Elko server classes representing entities with remote connections to a server.
|
org.elkoserver.foundation.json |
JSON message handling infrastructure inside Elko servers.
|
org.elkoserver.json |
Utilities for working with JSON (JavaScript Object Notation) objects.
|
org.elkoserver.objdb |
The Elko Object Database.
|
org.elkoserver.objdb.store |
Classes for implementing various Elko object store types.
|
org.elkoserver.server.context |
The Elko Context Server.
|
org.elkoserver.server.context.caps |
A package of mods related to using capability security patterns in Elko
Context Server applications.
|
org.elkoserver.server.context.users |
A package of mods related to alternative mechanisms for user creation.
|
org.elkoserver.server.presence |
The Elko Presence Server.
|
org.elkoserver.server.workshop |
The Elko Workshop Server.
|
org.elkoserver.util |
Miscellaneous utility classes used in the Elko server family.
|
org.elkoserver.util.trace |
Classes for logging error messages and trace messages for debugging.
|
Modifier and Type | Method and Description |
---|---|
void |
RefTable.dispatchMessage(Deliverer from,
DispatchTarget target,
JSONObject message)
Dispatch a JSON message directly to the appropriate method of a given
object.
|
void |
RefTable.dispatchMessage(Deliverer from,
JSONObject message)
Dispatch a JSON message to the appropriate method on the object that the
message says it is addressed to.
|
Modifier and Type | Method and Description |
---|---|
JSONObject |
Cryptor.decryptJSONObject(String str)
Decrypt a (base-64 encoded) encrypted JSON object literal.
|
Modifier and Type | Method and Description |
---|---|
static Object |
ObjectDecoder.decode(Class baseType,
JSONObject jsonObj)
A simple JSON object decoder for one-shot objects.
|
static Object |
ObjectDecoder.decode(Class baseType,
JSONObject obj,
TypeResolver resolver)
Produce the Java object described by a particular JSON object
descriptor.
|
void |
MessageDispatcher.dispatchMessage(Deliverer from,
DispatchTarget target,
JSONObject message)
Dispatch a received JSON message by invoking the appropriate JSON method
on the appropriate object with the parameters from the message.
|
void |
DefaultDispatchTarget.handleMessage(Deliverer from,
JSONObject message)
Handle a message for which the
MessageDispatcher could not
find an appropriate specific method to invoke. |
Modifier and Type | Method and Description |
---|---|
JSONObject |
JSONArray.getObject(int index)
Obtain the JSON object value of an element.
|
JSONObject |
JSONObject.getObject(String name)
Obtain a JSON object property value.
|
JSONObject |
JSONObject.optObject(String name)
Obtain the JSON object value of a property or an empty object if the
property has no value.
|
JSONObject |
JSONObject.optObject(String name,
JSONObject defaultValue)
Obtain the JSON object value of a property or a default value if the
property has no value.
|
static JSONObject |
JSONObject.parse(String str)
Create a JSON object by parsing a JSON object literal string.
|
JSONObject |
Parser.parseObjectLiteral()
Parse the next unparsed JSON object in the input string.
|
Modifier and Type | Method and Description |
---|---|
void |
JSONLiteralArray.addElement(JSONObject value)
Add a JSON object element to an incomplete array.
|
void |
JSONLiteral.addParameter(String param,
JSONObject value)
Add a JSON object parameter to an incomplete literal.
|
void |
JSONLiteral.addParameterOpt(String param,
JSONObject value)
Add an optional JSON object parameter to an incomplete literal.
|
void |
JSONObject.copyProperty(String name,
JSONObject orig)
Add a property to the object by copying a property of another object.
|
JSONObject |
JSONObject.optObject(String name,
JSONObject defaultValue)
Obtain the JSON object value of a property or a default value if the
property has no value.
|
Constructor and Description |
---|
JSONObject(JSONObject original)
Construct a JSON object by copying another pre-existing JSON object.
|
Modifier and Type | Method and Description |
---|---|
void |
ObjDBRemote.queryObjects(JSONObject template,
String collectionName,
int maxResults,
ArgRunnable handler)
Query one or more objects from the object database.
|
void |
ObjDBLocal.queryObjects(JSONObject template,
String collectionName,
int maxResults,
ArgRunnable handler)
Query the object store.
|
void |
ObjDB.queryObjects(JSONObject template,
String collectionName,
int maxResults,
ArgRunnable handler)
Query one or more objects from the object database.
|
Modifier and Type | Method and Description |
---|---|
JSONObject |
QueryDesc.template()
Get the query template for the queried object(s).
|
Constructor and Description |
---|
QueryDesc(JSONObject template,
OptString collectionName,
OptInteger maxResults)
JSON-driven (and direct) constructor.
|
QueryDesc(JSONObject template,
String collectionName,
int maxResults)
Direct constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
BasicObject.handleMessage(Deliverer from,
JSONObject msg)
Handle an otherwise unhandled message.
|
void |
UserFactory.provideUser(Contextor contextor,
Connection connection,
JSONObject param,
ArgRunnable handler)
Produce a user object.
|
User |
EphemeralUserFactory.provideUser(Contextor contextor,
Connection connection,
JSONObject param,
String contextRef,
String contextTemplate)
Synthesize a user object.
|
void |
Contextor.queryObjects(JSONObject template,
String collectionName,
int maxResults,
ArgRunnable handler)
Query the attached object store.
|
Constructor and Description |
---|
Cap(JSONObject desc)
JSON-driven constructor.
|
ContextKeyCap(JSONObject raw,
String[] contexts)
JSON-driven constructor.
|
Definer(JSONObject raw)
JSON-driven constructor.
|
Modifier and Type | Method and Description |
---|---|
protected DevicePersistentUserFactory.DeviceCredentials |
DevicePersistentUserFactory.extractCredentials(Trace appTrace,
JSONObject param)
Extract the user login credentials from a user factory parameter object.
|
void |
DevicePersistentUserFactory.provideUser(Contextor contextor,
Connection connection,
JSONObject param,
ArgRunnable handler)
Produce a user object.
|
void |
DeviceEphemeralUserFactory.provideUser(Contextor contextor,
Connection connection,
JSONObject param,
ArgRunnable handler)
Synthesize an ephemeral user object based on user description info
fetched from the Device.
|
Modifier and Type | Method and Description |
---|---|
void |
SocialGraph.init(org.elkoserver.server.presence.PresenceServer master,
org.elkoserver.server.presence.Domain domain,
JSONObject conf)
Initialize this social graph.
|
void |
SocialGraph.update(org.elkoserver.server.presence.PresenceServer master,
org.elkoserver.server.presence.Domain domain,
JSONObject conf)
Update this social graph.
|
Modifier and Type | Method and Description |
---|---|
void |
Workshop.queryObjects(JSONObject query,
int maxResults,
ArgRunnable handler)
Query the repository.
|
void |
Workshop.queryObjects(JSONObject query,
String collection,
int maxResults,
ArgRunnable handler)
Query a particular collection in the repository.
|
Modifier and Type | Method and Description |
---|---|
static Callable<Object> |
JSONHTTPRequest.make(String url,
JSONObject request)
Produce a task that will make an HTTP POST request to an external URL,
wait for the reponse, parse the response as JSON, and return the parsed
response as the product of the task.
|
Modifier and Type | Method and Description |
---|---|
void |
Trace.metrics(String type,
int id,
JSONObject value)
Output a JSON object-valued metrics message.
|
Copyright © 2017. All rights reserved.