This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet(e) { | |
// クエリパラメーター「name」で指定された、Googleカレンダー取得対象のユーザーの名前を取得する。 | |
var name = e.parameter.name; | |
// ユーザーが発話した名前(「〇〇さんの今日の予定を教えて」の〇〇の部分)に紐づく | |
// メールアドレスを定義する。Googleカレンダーの予定を取得する際は、 | |
// そのキーにメールアドレスを指定しなければならないので、この変換が必要になる。 | |
var mail = {}; | |
mail['タケイ'] = 'ntakei@contoso.com'; | |
mail['スズキ'] = 'suzuki@contoso.com'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sios.flow; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.springframework.binding.message.MessageContext; | |
import org.springframework.stereotype.Component; | |
import org.springframework.webflow.action.EventFactorySupport; | |
import org.springframework.webflow.execution.Event; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:th="http://www.thymeleaf.org" | |
xmlns:tiles="http://www.thymeleaf.org" | |
xmlns:sec="http://www.thymeleaf.org" lang="jp"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>検索画面</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:th="http://www.thymeleaf.org" | |
xmlns:tiles="http://www.thymeleaf.org" | |
xmlns:sec="http://www.thymeleaf.org" lang="jp"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>検索画面</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sios.flow; | |
import java.util.Arrays; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.validation.Validator; | |
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; | |
import org.springframework.web.filter.CharacterEncodingFilter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sios.flow; | |
import java.io.Serializable; | |
/** | |
* 掲示板のメッセージを格納するBean | |
* @author ntakei | |
*/ | |
public class Message implements Serializable { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sios.flow; | |
import java.io.Serializable; | |
public class SearchForm implements Serializable{ | |
private static final long serialVersionUID = 1L; | |
private String title; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package actor; | |
/** | |
* アクターにより並列処理を行うクラスです。 | |
* 色々な挨拶をアクターに渡します。 | |
*/ | |
public class Executor { | |
public static void main(String[] args) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package actor; | |
/** | |
* アクターにより並列処理を行うクラスです。 色々な挨拶をアクターに渡します。 | |
*/ | |
public class Executor { | |
public static void main(String[] args) { | |
AbstractActor actor1 = new GreetingActor(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package actor; | |
import java.util.Queue; | |
import java.util.concurrent.ConcurrentLinkedQueue; | |
/** | |
* アクターを実装するための抽象クラスです。 | |
* スレッドで動作するため、Runnableを実装しています。 | |
*/ | |
public abstract class AbstractActor implements Runnable { |