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.lang.Void,java.lang.RuntimeException> WebUtils.CLEAR_SESSION
          セッションスコープをクリアするFnです。
 

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

WebContext 型の引数を持つ型を返す woolpack.web のメソッド
static
<E extends java.lang.Exception>
Fn<WebContext,java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object>,E>
WebUtils.applicationFn()
          アプリケーションスコープを返すFnを返します。
 Fn<? super ContainerContext<WebContext>,?,? extends java.lang.Exception> ContainerContextSetter.getFn()
           
static
<E extends java.lang.Exception>
Fn<WebContext,java.util.Map<java.lang.String,java.lang.Object>,E>
WebUtils.requestFn()
          リクエストスコープを返すFnを返します。
static
<E extends java.lang.Exception>
Fn<WebContext,java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object>,E>
WebUtils.sessionFn()
          セッションスコープを返すFnを返します。
 

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

Method parameters in woolpack.web with type arguments of type WebContext
static ContainerContextSetter<java.lang.RuntimeException> WebUtils.setContainerContext(Fn<? super ContainerContext<WebContext>,?,? extends java.lang.Exception> fn)
           
 void ContainerContextSetter.setFn(Fn<? super ContainerContext<WebContext>,?,? extends java.lang.Exception> fn)
           
 

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


Woolpack API

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