| Package | Description |
|---|---|
| org.b3log.latke.cache |
Cache service.
|
| org.b3log.latke.cache.caffeine | |
| org.b3log.latke.cache.redis | |
| org.b3log.latke.http |
Latke HTTP server.
|
| org.b3log.latke.http.advice | |
| org.b3log.latke.http.renderer | |
| org.b3log.latke.plugin |
Plugin framework.
|
| org.b3log.latke.repository |
Data access service.
|
| org.b3log.latke.repository.jdbc | |
| org.b3log.latke.repository.jdbc.util | |
| org.json |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
NoneCache.get(String key) |
JSONObject |
Cache.get(String key)
Gets a object by the specified key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NoneCache.put(String key,
JSONObject value) |
void |
Cache.put(String key,
JSONObject value)
Puts the specified object into this cache.
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
CaffeineCache.get(String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
CaffeineCache.put(String key,
JSONObject value) |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
RedisCache.get(String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
RedisCache.put(String key,
JSONObject value) |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
Request.getJSON() |
JSONObject |
RequestContext.requestJSON()
Gets the request json object.
|
| Modifier and Type | Method and Description |
|---|---|
RequestContext |
RequestContext.renderJSON(JSONObject json)
Renders with the specified json object.
|
RequestContext |
RequestContext.renderJSONPretty(JSONObject json)
Pretty rends with the specified json object.
|
void |
Request.setJSON(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
RequestProcessAdviceException.getJsonObject() |
| Constructor and Description |
|---|
RequestProcessAdviceException(JSONObject jsonObject)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
JsonRenderer.getJSONObject()
Gets the json object to render.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JsonRenderer.setJSONObject(JSONObject jsonObject)
Sets the json object to render with the specified json object.
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
AbstractPlugin.getSetting()
getSetting.
|
JSONObject |
AbstractPlugin.toJSONObject()
Converts this plugin to a json object (plugin description).
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractPlugin.setSetting(JSONObject setting)
setSetting.
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
Repository.get(Query query)
Gets json objects by the specified query.
|
JSONObject |
NoneRepository.get(Query query) |
JSONObject |
AbstractRepository.get(Query query) |
JSONObject |
Repository.get(String id)
Gets a json object by the specified id.
|
JSONObject |
NoneRepository.get(String id) |
JSONObject |
AbstractRepository.get(String id) |
default JSONObject |
Repository.getFirst(Query query)
Gets the first result json object by the specified query.
|
static JSONObject |
Repositories.getRepositoriesDescription()
Gets repositories description.
|
static JSONObject |
Repositories.getRepositoryDef(String repositoryName)
Gets the repository definition of an repository specified by the given repository name.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,JSONObject> |
Repository.get(Iterable<String> ids)
Gets json objects by the specified ids.
|
Map<String,JSONObject> |
NoneRepository.get(Iterable<String> ids) |
Map<String,JSONObject> |
AbstractRepository.get(Iterable<String> ids) |
default List<JSONObject> |
Repository.getList(Query query)
Get json objects by the specified query.
|
List<JSONObject> |
Repository.getRandomly(int fetchSize)
Gets a list of json objects randomly with the specified fetch size.
|
List<JSONObject> |
NoneRepository.getRandomly(int fetchSize) |
List<JSONObject> |
AbstractRepository.getRandomly(int fetchSize) |
List<JSONObject> |
Repository.select(String statement,
Object... params)
Gets json objects by the specified query statement.
|
List<JSONObject> |
NoneRepository.select(String statement,
Object... params) |
List<JSONObject> |
AbstractRepository.select(String statement,
Object... params) |
| Modifier and Type | Method and Description |
|---|---|
String |
Repository.add(JSONObject jsonObject)
Adds the specified json object.
|
String |
NoneRepository.add(JSONObject jsonObject) |
String |
AbstractRepository.add(JSONObject jsonObject) |
static void |
Repositories.check(String repositoryName,
JSONObject jsonObject,
String... ignoredKeys)
Determines whether the specified json object can not be persisted (add or update) into an repository which specified
by the given repository name.
|
void |
Repository.update(String id,
JSONObject jsonObject,
String... propertyNames)
Updates a certain json object specified by the given id with the specified new json object and property names.
|
void |
NoneRepository.update(String id,
JSONObject jsonObject,
String... propertyNames) |
void |
AbstractRepository.update(String id,
JSONObject jsonObject,
String... propertyNames) |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
JdbcRepository.get(Query query) |
JSONObject |
JdbcRepository.get(String id) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,JSONObject> |
JdbcRepository.get(Iterable<String> ids) |
List<JSONObject> |
JdbcRepository.getRandomly(int fetchSize) |
List<JSONObject> |
JdbcRepository.select(String statement,
Object... params) |
| Modifier and Type | Method and Description |
|---|---|
String |
JdbcRepository.add(JSONObject jsonObject) |
void |
JdbcRepository.update(String id,
JSONObject jsonObject,
String... propertyNames) |
| Modifier and Type | Method and Description |
|---|---|
static JSONObject |
JdbcUtil.queryJsonObject(String sql,
List<Object> paramList,
Connection connection,
String tableName,
boolean isDebug)
queryJsonObject.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
JdbcUtil.fromOracleClobEmpty(JSONObject jsonObject)
Process Oracle CLOB empty string.
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
JSONObject.accumulate(String key,
Object value)
Accumulate values under a key.
|
JSONObject |
JSONObject.append(String key,
Object value)
Append values to the array under a key.
|
JSONObject |
JSONArray.getJSONObject(int index)
Get the JSONObject associated with an index.
|
JSONObject |
JSONObject.getJSONObject(String key)
Get the JSONObject value associated with a key.
|
JSONObject |
JSONObject.increment(String key)
Increment a property of a JSONObject.
|
JSONObject |
JSONArray.optJSONObject(int index)
Get the optional JSONObject associated with an index.
|
JSONObject |
JSONObject.optJSONObject(String key)
Get an optional JSONObject associated with a key.
|
JSONObject |
JSONObject.put(String key,
boolean value)
Put a key/boolean pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
Collection<?> value)
Put a key/value pair in the JSONObject, where the value will be a
JSONArray which is produced from a Collection.
|
JSONObject |
JSONObject.put(String key,
double value)
Put a key/double pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
float value)
Put a key/float pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
int value)
Put a key/int pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
long value)
Put a key/long pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
Map<?,?> value)
Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.
|
JSONObject |
JSONObject.put(String key,
Object value)
Put a key/value pair in the JSONObject.
|
JSONObject |
JSONObject.putOnce(String key,
Object value)
Put a key/value pair in the JSONObject, but only if the key and the value
are both non-null, and only if there is not already a member with that
name.
|
JSONObject |
JSONObject.putOpt(String key,
Object value)
Put a key/value pair in the JSONObject, but only if the key and the value
are both non-null.
|
static JSONObject |
CDL.rowToJSONObject(JSONArray names,
JSONTokener x)
Produce a JSONObject from a row of comma delimited text, using a
parallel JSONArray of strings to provides the names of the elements.
|
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values of
this JSONArray.
|
static JSONObject |
Property.toJSONObject(Properties properties)
Converts a property file object into a JSONObject.
|
static JSONObject |
XML.toJSONObject(Reader reader)
Convert a well-formed (but not necessarily valid) XML into a
JSONObject.
|
static JSONObject |
XML.toJSONObject(Reader reader,
boolean keepStrings)
Convert a well-formed (but not necessarily valid) XML into a
JSONObject.
|
static JSONObject |
XML.toJSONObject(String string)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
|
static JSONObject |
Cookie.toJSONObject(String string)
Convert a cookie specification string into a JSONObject.
|
static JSONObject |
HTTP.toJSONObject(String string)
Convert an HTTP header string into a JSONObject.
|
static JSONObject |
CookieList.toJSONObject(String string)
Convert a cookie list into a JSONObject.
|
static JSONObject |
JSONML.toJSONObject(String string)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
|
static JSONObject |
XML.toJSONObject(String string,
boolean keepStrings)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
|
static JSONObject |
JSONML.toJSONObject(String string,
boolean keepStrings)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
|
static JSONObject |
JSONML.toJSONObject(XMLTokener x)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
|
static JSONObject |
JSONML.toJSONObject(XMLTokener x,
boolean keepStrings)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
|
| Modifier and Type | Method and Description |
|---|---|
static String[] |
JSONObject.getNames(JSONObject jo)
Get an array of field names from a JSONObject.
|
static Properties |
Property.toProperties(JSONObject jo)
Converts the JSONObject into a property file object.
|
static String |
Cookie.toString(JSONObject jo)
Convert a JSONObject into a cookie specification string.
|
static String |
HTTP.toString(JSONObject jo)
Convert a JSONObject into an HTTP header.
|
static String |
CookieList.toString(JSONObject jo)
Convert a JSONObject into a cookie list.
|
static String |
JSONML.toString(JSONObject jo)
Reverse the JSONML transformation, making an XML text from a JSONObject.
|
| Constructor and Description |
|---|
JSONObject(JSONObject jo,
String[] names)
Construct a JSONObject from a subset of another JSONObject.
|
Copyright © 2009–2019 B3log. All rights reserved.