本文整理了Java中facebook4j.internal.util.z_F4JInternalParseUtil.getURL()
方法的一些代码示例,展示了z_F4JInternalParseUtil.getURL()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。z_F4JInternalParseUtil.getURL()
方法的具体详情如下:
包路径:facebook4j.internal.util.z_F4JInternalParseUtil
类名称:z_F4JInternalParseUtil
方法名:getURL
暂无
代码示例来源:origin: org.facebook4j/facebook4j-core
/*package*/ImageJSONImpl(JSONObject json) {
if (!json.isNull("height")) {
height = getPrimitiveInt("height", json);
}
if (!json.isNull("width")) {
width = getPrimitiveInt("width", json);
}
source = getURL("source", json);
if (source == null) {
source = getURL("src", json);
}
}
代码示例来源:origin: roundrop/facebook4j
/*package*/ImageJSONImpl(JSONObject json) {
if (!json.isNull("height")) {
height = getPrimitiveInt("height", json);
}
if (!json.isNull("width")) {
width = getPrimitiveInt("width", json);
}
source = getURL("source", json);
if (source == null) {
source = getURL("src", json);
}
}
代码示例来源:origin: roundrop/facebook4j
/*pakcage*/PagingJSONImpl(JSONObject json, Class<?> type) throws FacebookException {
this.jsonObjectType = type;
try {
if (!json.isNull("cursors")) {
cursors = new CursorsJSONImpl(json.getJSONObject("cursors"));
} else {
cursors = null;
}
previous = getURL("previous", json);
next = getURL("next", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
代码示例来源:origin: apache/servicemix-bundles
/*package*/ImageJSONImpl(JSONObject json) {
if (!json.isNull("height")) {
height = getPrimitiveInt("height", json);
}
if (!json.isNull("width")) {
width = getPrimitiveInt("width", json);
}
source = getURL("source", json);
if (source == null) {
source = getURL("src", json);
}
}
代码示例来源:origin: org.facebook4j/facebook4j-core
/*pakcage*/PagingJSONImpl(JSONObject json, Class<?> type) throws FacebookException {
this.jsonObjectType = type;
try {
if (!json.isNull("cursors")) {
cursors = new CursorsJSONImpl(json.getJSONObject("cursors"));
} else {
cursors = null;
}
previous = getURL("previous", json);
next = getURL("next", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
代码示例来源:origin: apache/servicemix-bundles
/*pakcage*/PagingJSONImpl(JSONObject json, Class<?> type) throws FacebookException {
this.jsonObjectType = type;
try {
if (!json.isNull("cursors")) {
cursors = new CursorsJSONImpl(json.getJSONObject("cursors"));
} else {
cursors = null;
}
previous = getURL("previous", json);
next = getURL("next", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
代码示例来源:origin: roundrop/facebook4j
/*package*/AchievedObjectJSONImpl(JSONObject json) {
id = getRawString("id", json);
url = getURL("url", json);
type = getRawString("type", json);
title = getRawString("title", json);
}
代码示例来源:origin: roundrop/facebook4j
/*package*/PictureJSONImpl(JSONObject json) throws FacebookException {
try {
JSONObject pictureJSONObject = json.getJSONObject("data");
url = z_F4JInternalParseUtil.getURL("url", pictureJSONObject);
isSilhouette = z_F4JInternalParseUtil.getBoolean("is_silhouette", pictureJSONObject);
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
/*package*/PictureJSONImpl(URL url) {
代码示例来源:origin: org.facebook4j/facebook4j-core
/*package*/AchievedObjectJSONImpl(JSONObject json) {
id = getRawString("id", json);
url = getURL("url", json);
type = getRawString("type", json);
title = getRawString("title", json);
}
代码示例来源:origin: apache/servicemix-bundles
/*package*/AchievedObjectJSONImpl(JSONObject json) {
id = getRawString("id", json);
url = getURL("url", json);
type = getRawString("type", json);
title = getRawString("title", json);
}
代码示例来源:origin: apache/servicemix-bundles
/*package*/PictureJSONImpl(JSONObject json) throws FacebookException {
try {
JSONObject pictureJSONObject = json.getJSONObject("data");
url = z_F4JInternalParseUtil.getURL("url", pictureJSONObject);
isSilhouette = z_F4JInternalParseUtil.getBoolean("is_silhouette", pictureJSONObject);
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
/*package*/PictureJSONImpl(URL url) {
代码示例来源:origin: org.facebook4j/facebook4j-core
/*package*/PictureJSONImpl(JSONObject json) throws FacebookException {
try {
JSONObject pictureJSONObject = json.getJSONObject("data");
url = z_F4JInternalParseUtil.getURL("url", pictureJSONObject);
isSilhouette = z_F4JInternalParseUtil.getBoolean("is_silhouette", pictureJSONObject);
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
/*package*/PictureJSONImpl(URL url) {
代码示例来源:origin: roundrop/facebook4j
FormatJSONImpl(JSONObject json) throws FacebookException {
embedHtml = getRawString("embed_html", json);
filter = getRawString("filter", json);
height = getInt("height", json);
width = getInt("width", json);
picture = getURL("picture", json);
}
代码示例来源:origin: org.facebook4j/facebook4j-core
FormatJSONImpl(JSONObject json) throws FacebookException {
embedHtml = getRawString("embed_html", json);
filter = getRawString("filter", json);
height = getInt("height", json);
width = getInt("width", json);
picture = getURL("picture", json);
}
代码示例来源:origin: org.facebook4j/facebook4j-core
private void init(JSONObject json) throws FacebookException {
try {
id = getRawString("id", json);
name = getRawString("name", json);
link = getURL("link", json);
if (!json.isNull("application")) {
application = new IdNameEntityJSONImpl(json.getJSONObject("application"));
}
customName = getRawString("custom_name", json);
isPermanent = getBoolean("is_permanent", json);
position = getInt("position", json);
isNonConnectionLandingTab = getBoolean("is_non_connection_landing_tab", json);
imageURL = getURL("image_url", json);
customImageURL = getURL("custom_image_url", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
代码示例来源:origin: apache/servicemix-bundles
FormatJSONImpl(JSONObject json) throws FacebookException {
embedHtml = getRawString("embed_html", json);
filter = getRawString("filter", json);
height = getInt("height", json);
width = getInt("width", json);
picture = getURL("picture", json);
}
代码示例来源:origin: roundrop/facebook4j
private void init(JSONObject json) throws FacebookException {
try {
token = getRawString("id", json);
name = getRawString("name", json);
if (!json.isNull("picture")) {
String pictureRawString = getRawString("picture", json);
if (pictureRawString.startsWith("{")) {
JSONObject pictureJSONObject = json.getJSONObject("picture");
picture = new PictureJSONImpl(pictureJSONObject);
} else {
picture = new PictureJSONImpl(getURL("picture", json));
}
}
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
代码示例来源:origin: apache/servicemix-bundles
private void init(JSONObject json) throws FacebookException {
try {
token = getRawString("id", json);
name = getRawString("name", json);
if (!json.isNull("picture")) {
String pictureRawString = getRawString("picture", json);
if (pictureRawString.startsWith("{")) {
JSONObject pictureJSONObject = json.getJSONObject("picture");
picture = new PictureJSONImpl(pictureJSONObject);
} else {
picture = new PictureJSONImpl(getURL("picture", json));
}
}
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
代码示例来源:origin: org.facebook4j/facebook4j-core
private void init(JSONObject json) throws FacebookException {
try {
token = getRawString("id", json);
name = getRawString("name", json);
if (!json.isNull("picture")) {
String pictureRawString = getRawString("picture", json);
if (pictureRawString.startsWith("{")) {
JSONObject pictureJSONObject = json.getJSONObject("picture");
picture = new PictureJSONImpl(pictureJSONObject);
} else {
picture = new PictureJSONImpl(getURL("picture", json));
}
}
} catch (JSONException jsone) {
throw new FacebookException(jsone);
}
}
代码示例来源:origin: roundrop/facebook4j
private void init(JSONObject json) throws FacebookException {
try {
id = getRawString("id", json);
if (!json.isNull("from")) {
JSONObject fromJSONObject = json.getJSONObject("from");
from = new IdNameEntityJSONImpl(fromJSONObject);
}
subject = getRawString("subject", json);
message = getRawString("message", json);
icon = getURL("icon", json);
createdTime = getISO8601Datetime("created_time", json);
updatedTime = getISO8601Datetime("updated_time", json);
revision = getLong("revision", json);
canEdit = getBoolean("can_edit", json);
canDelete = getBoolean("can_delete", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
}
}
内容来源于网络,如有侵权,请联系作者删除!