jp.ac.naka.ec.plugin.http
クラス HttpCore

java.lang.Object
  上位を拡張 jp.ac.naka.ec.EventSource
      上位を拡張 jp.ac.naka.ec.plugin.http.HttpCore
すべての実装されたインタフェース:
java.util.EventListener, EntityListener, Plugin

public class HttpCore
extends EventSource

Webサーバとして機能し、HTTPからのイベントの入出力も管理する。 httpフォルダ以下の静的なWebリソースを読み込み表示する。デフォルトのWebへのアクセスポートは8080。

作成者:
Takashi Kasuya

フィールドの概要
static int DEFAULT_PORT
           
 
クラス jp.ac.naka.ec.EventSource から継承されたフィールド
dispatcher, name, uri
 
コンストラクタの概要
HttpCore()
           
 
メソッドの概要
 void init(EntityContainer source)
          初期化を行う
 void init(EntityContainer source, java.util.Properties prop)
          初期化を行う。
 boolean isStarted()
           
 void stopServer()
           
 
クラス jp.ac.naka.ec.EventSource から継承されたメソッド
addedNewEntity, equals, getEventDispatcher, getPluginName, getURI, isLocal, receiveAck, receiveAnswer, receiveBye, receiveMessage, receiveOffer, removedEntity, setPluginName, setURI
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_PORT

public static int DEFAULT_PORT
コンストラクタの詳細

HttpCore

public HttpCore()
メソッドの詳細

init

public void init(EntityContainer source)
          throws java.lang.Exception
インタフェース Plugin の記述:
初期化を行う

例外:
java.lang.Exception

init

public void init(EntityContainer source,
                 java.util.Properties prop)
          throws java.lang.Exception
インタフェース Plugin の記述:
初期化を行う。

例外:
java.lang.Exception

isStarted

public boolean isStarted()
戻り値:

stopServer

public void stopServer()
                throws java.lang.InterruptedException
例外:
java.lang.InterruptedException