Woolpack API

インタフェース
woolpack.web.WebContext の使用

WebContext を使用しているパッケージ
woolpack.ee Web アプリケーション用部品とServlet API に依存する部品のパッケージです。 
woolpack.web Servlet APIの各スコープをMapConcurrentMapで抽象化したインタフェースと それに対する操作を定義するパッケージです。 
 

woolpack.ee での WebContext の使用
 

WebContext を実装している woolpack.ee のクラス
 class EEContext
          単一リクエストまたは単一スレッドごとの状態を保持するコンテキストです。
 

woolpack.web での WebContext の使用
 

WebContext を実装している woolpack.web のクラス
 class SimpleWebContext
          単純なWebContext実装です。
 

WebContext 型の型パラメータを持つ woolpack.web のフィールド
static Fn<WebContext,java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object>> WebUtils.APPLICATION_FN
          アプリケーションスコープを返すFnです。
static Fn<WebContext,java.lang.Void> WebUtils.CLEAR_SESSION
          セッションスコープをクリアするFnです。
static Fn<WebContext,java.util.Map<java.lang.String,java.lang.Object>> WebUtils.REQUEST_FN
          リクエストスコープを返すFnです。
static Fn<WebContext,java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object>> WebUtils.SESSION_FN
          セッションスコープを返すFnです。
 

WebContext 型の型パラメータを持つ woolpack.web のメソッド
static
<C extends ContainerContext<WebContext>>
ConcurrentMapCache<C,java.lang.String>
WebUtils.application(Fn<? super C,?> fn)
          アプリケーションスコープでキャッシュするFnを返します。
static
<C extends ContainerContext<WebContext>>
MapCache<C,java.lang.String>
WebUtils.request(Fn<? super C,?> fn)
          リクエストスコープでキャッシュするFnを返します。
static
<C extends ContainerContext<WebContext>>
ConcurrentMapCache<C,java.lang.String>
WebUtils.session(Fn<? super C,?> fn)
          セッションスコープでキャッシュするFnを返します。
 

WebContext 型の引数を持つ型を返す woolpack.web のメソッド
 Fn<? super ContainerContext<WebContext>,?> ContainerContextSetter.getFn()
           
 

WebContext 型のパラメータを持つ woolpack.web のメソッド
 java.lang.Void ContainerContextSetter.exec(WebContext c)
           
 

Method parameters in woolpack.web with type arguments of type WebContext
 void ContainerContextSetter.setFn(Fn<? super ContainerContext<WebContext>,?> fn)
           
 

Constructor parameters in woolpack.web with type arguments of type WebContext
ContainerContextSetter(Fn<? super ContainerContext<WebContext>,?> fn)
           
 


Woolpack API

Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.