• 検索結果がありません。

BLIP_CONTRIBUTORS_CHANGED

ドキュメント内 勉強会 資料 Google Developer Group 京都 (ページ 82-126)

ン 一覧 次

URL

参照

http://wave-robot-java-client.googlecode.com/svn/trunk/

doc/com/google/wave/api/EventType.html

Google Apps Engine

ン 録

https://appengine.google.com/

URL Google Apps Engine

https://appengine.google.com/

My Applications Create an Application

Application

追加

Application Identifier

Application Identifier 入力

感 完了

Google->Deploy To App Engine

App Engine project settings...

先ほ Application Identifier 入力

OK Deploy Deploy完了!!

Version Deploy 必要

更新 反映 模様

コン 追加

[email protected]

参加者一覧 追加 表示

Wave 追加

Blip

作成

Done

投稿

Blip sm*

含 場合

ID

動画情報 得 表示

動画情報 得 次

API

使用

http://ext.nicovideo.jp/api/getthumbinfo/sm*

表示 内容 動画 再生数 コ ン

数 数 最後 投稿 コ ン

投稿 対 投稿 記述 い

ID

ID

動画 情報

API

用い 得

投稿

private String getMessage( String submittedText ) throws XMLStreamException, IOException{

// 正規表現 コ動画 ID

Matcher matcher = pattern.matcher(submittedText);

// 場合

if( matcher.find() ){

// 最初 動画情報

String id = matcher.group(0);

// コ動画API URL

String url = getNiconicoApiUrl(id);

// コ動画API 使 動画 情報 検索

String xml = getXml(url);

URL http://ext.nicovideo.jp/api/getthumbinfo/sm123

private String getXml( String urlstr ) throws IOException{

URL url = new URL(urlstr);

InputStream is = url.openConnection().getInputStream();

BufferedReader br = new BufferedReader( new InputStreamReader( is , "UTF-8") ) ;

StringBuilder sb = new StringBuilder();

String line = null;

while( ( line = br.readLine() ) != null ){

sb.append(line);

sb.append("¥n");

}

return sb.toString();

}

個人的 趣味 StAX XML Woodstox 使用 使え 外部Jar 追加

public NiconicoVideoItem parseXml( String xml ) throws XMLStreamException{

XMLInputFactory f = XMLInputFactory.newInstance();

XMLEventReader r = f.createXMLEventReader( new StringReader(xml));

NiconicoVideoItem item = null ; while( r.hasNext() ){

XMLEvent event = r.nextEvent();

jar

追加 場合

jar

war/WEB-INF/lib

追加 い 通

private String

getNiconicoVideoInfo( NiconicoVideoItem item ){

StringBuilder sb = new StringBuilder();

sb.append("<a href=¥"");

sb.append(item.getUrl());

sb.append("¥">");

...

sb.append("<br />");

sb.append(item.getLastResBody());

return sb.toString();

}

投稿

HTML

使用 使用

<p>, <div>, <b>, <strong>,

<i>, <em>, <u> 使用可能

使用可能 明記 <a> 使え

<img> 使用不可

HTML 投稿

textView.appendMarkup(message);

返 う

Wave

追加

参加者一覧 追加 表示

投稿 反応 完成

投稿 対 子

Blip

作成 う

投稿自体 変更 加え ン 作成 い

出力 重要!

API 使用 Google Apps Engine Web

確認

private Logger logger = Logger.getLogger(this.getClass().getName());

logger.severe("severe");

logger.warning("warning"); // GAE

logger.info("info"); // 無視 logger.config("config");

logger.fine("fine");

logger.finer("finer");

logger.finest("finest");

GAE Logs 選択 https://appengine.google.com/

war/WEB-INF/logging.properties

.level = FINEST

Google Apps Engine

基本

Google Apps Engine Google Apps Engine

Wave

参加者 行

Wave

変更 ン 駆動

使う ン 設定 定義

Blip

投稿

HTML

使え

1, Google Wave 何

2, Google Wave Gadgets 3, Google Wave Robots

4, Google Wave Federation Protocol

Google Wave Google

提供

Wave

Wave Wave Wave

Wave

多数

Wave

連合

(Federate)

送 信 場合

回復手段 更新 衝突 場合 解決方 法 細 い部分 定義 あ

Google Wave Google

繋 人

FedOne

https://wave-protocol.googlecode.com/hg/

公開

Wave

実装

FedOne

使う

Wave

管理者

GoogleWave

現在

Google Wave Sandbox

可能

Wave 自分

http://www.24100.net/2009/11/federate-google-wave-sandbox-with-your-own-fedone-server/

FedOne

ソ コ

Wave

コ 含 い 独自

GUI Wave

ン 開 い 人

今後

Android iPhone

専用

Wave

ン 場 ?

ン コ

(

基本

XMPP)

Google

多数 接

実装 ソ コ 公開 い

1, Google Wave 何

2, Google Wave Gadgets 3, Google Wave Robots

4, Google Wave Federation Protocol

あ あ コ あ

特徴 ン 多人数 時

編集 様々 速度 コ ン 対応

ンソ コ 実装

独自 自由

基本

Google Gadgets Google

Gadgets

可能

Wave

可能

Google Wave

専用

API

追加 い

状態保

Wave

状態変

Callback

XML

作成 中

HTML

JavaScript

記述

Google Apps Engine

基本

Google Apps Engine Google Apps Engine

Wave

参加者 行

Wave

変更 ン 駆動

Blip

投稿

HTML

使え

ン コ

(

基本

XMPP)

Google

多数 接

実装 ソ コ 公開 い

Hackathon

参加 方 次

SVN

使 え う 設定 願いい

京都

GTUG

解説

http://docs.google.com/a/kyoto-gtug.org/present/edit?id=0AWrsKiIIze3BZGN4ams5N3RfNnJj aGRmamRw&hl=en&invite=CKONoMwG

ドキュメント内 勉強会 資料 Google Developer Group 京都 (ページ 82-126)

関連したドキュメント