[Seasar-user:17618] Re: [Teeda]teeda-html-exampleのhttpヘダー等の情報の出力方法について

[E-MAIL ADDRESS DELETED] [E-MAIL ADDRESS DELETED]
2009年 6月 4日 (木) 14:32:47 JST


米林です。

Pageクラスにインジェクトしてもらって下さい。

public Cookie cookie;
public map header;

でクッキーとヘッダが取得出来ます。

よろしくお願いします。

Hidekazu Suzuki さんは書きました:
> いつもお世話になっております。
> 
> 鈴木と申します。
> 
> 
> teeda-html-exampleを実行すると以下のようなHttpヘダーやSession, Cookie等の
> 情報が、コンソールに出力されますが
> これを自プロジェクトでも出力したいと思っています。
> 
> これはどうすれば出力されるのでしょうか?
> 
> 自プロジェクトのdiconファイルを見比べて
> customizer.dicon の classLoaderAwareTraceInterceptor あたりかと
> 追加してみたのですが出力されませんでした。
> 
> よろしくお願いいたします。
> 
> 
> 鈴木 秀和
> 
> 
> --------------------------------------------------------------------
> 
> DEBUG 2009-06-04 13:32:33,549 [http-8080-1] HOT deployを開始します
> DEBUG 2009-06-04 13:32:33,549 [http-8080-1] 
> 
> ** before *****************************************: /view/foreach/foreachStringArray.html
>   Request class=org.apache.catalina.connector.RequestFacade, instance=[E-MAIL ADDRESS DELETED]
>   RequestedSessionId=12A5224FEDCE47B07063522BE2709366
>   REQUEST_URI=/teeda-html-example/view/foreach/foreachStringArray.html, SERVLET_PATH=/view/foreach/foreachStringArray.html
>   CharacterEncoding=UTF-8, ContentLength=-1, ContentType=null, Locale=ja_JP, Locales=ja_JP, ja, en, Scheme=http, isSecure=false
>   SERVER_PROTOCOL=HTTP/1.1, REMOTE_ADDR=127.0.0.1, REMOTE_HOST=127.0.0.1, SERVER_NAME=localhost, SERVER_PORT=8080
>   ContextPath=/teeda-html-example, REQUEST_METHOD=GET, QUERY_STRING=null, PathInfo=null, RemoteUser=null
>   [request]org.seasar.framework.container.hotdeploy.HotdeployFilter=[E-MAIL ADDRESS DELETED]
>   [request]org.seasar.teeda.extension.filter.MultipartFormDataFilter.doFilterCalled=true
>   [cookie]JSESSIONID=12A5224FEDCE47B07063522BE2709366
>   [header]accept=text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
>   [header]accept-charset=iso-8859-1, utf-8, utf-16, *;q=0.1
>   [header]accept-encoding=deflate, gzip, x-gzip, identity, *;q=0
>   [header]accept-language=ja-JP,ja;q=0.9,en;q=0.8
>   [header]connection=Keep-Alive, TE
>   [header]cookie=JSESSIONID=12A5224FEDCE47B07063522BE2709366
>   [header]cookie2=$Version=1
>   [header]host=localhost:8080
>   [header]referer=http://localhost:8080/teeda-html-example/view/start/index.html
>   [header]te=deflate, gzip, chunked, identity, trailers
>   [header]user-agent=Opera/9.64 (Windows NT 5.1; U; ja) Presto/2.1.1
>   [context]javax.servlet.context.tempdir=C:\Documents and Settings\xxxx\workspace\teeda-html-example\work
>   [context]org.apache.AnnotationProcessor=[E-MAIL ADDRESS DELETED]
>   [context]org.apache.catalina.WELCOME_FILES=[Ljava.lang.String;@c9583d
>   [context]org.apache.catalina.jsp_classpath=/C:/Documents%20and%20Settings/xxxx/workspace/teeda-html-example/src/main/webapp/WEB-INF/classes/;...
>   [context]org.apache.catalina.resources=[E-MAIL ADDRESS DELETED]
>   [context]org.seasar.teeda.core.config.webapp.element.WebappConfig=[E-MAIL ADDRESS DELETED]
> 
> 
> <<中略>>
> 
> 
> DEBUG 2009-06-04 13:32:34,361 [http-8080-1] 
> 
> ** after *****************************************: /view/foreach/foreachStringArray.html
>   Response class=org.apache.catalina.connector.ResponseFacade, instance=[E-MAIL ADDRESS DELETED]
>   [request]facesContext=[E-MAIL ADDRESS DELETED]
>   [request]foreach_foreachStringArrayPage=[E-MAIL ADDRESS DELETED]
>   [request]javax.faces.webapp.GLOBAL_ID_VIEW={}
>   [request]javax.servlet.jsp.jstl.fmt.locale.request=ja
>   [request]layout_headerPage=[E-MAIL ADDRESS DELETED]
>   [request]layout_menuPage=[E-MAIL ADDRESS DELETED]
>   [request]org.seasar.framework.container.hotdeploy.HotdeployFilter=[E-MAIL ADDRESS DELETED]
>   [request]org.seasar.teeda.extension.filter.MultipartFormDataFilter.doFilterCalled=true
>   [request]org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl={layout_headerPage=true, layout_menuPage=true}
>   [request]org.seasar.teeda.extension.render.html.THtmlHeadRenderer.CSS_KEY=[]
>   [request]org.seasar.teeda.extension.render.html.THtmlHeadRenderer.INLINE_CSS_KEY={}
>   [request]org.seasar.teeda.extension.render.html.THtmlHeadRenderer.INLINE_JS_KEY={}
>   [request]org.seasar.teeda.extension.render.html.THtmlHeadRenderer.JS_KEY=[]
>   [request]org.seasar.teeda.extension.util.LayoutBuilder=[[E-MAIL ADDRESS DELETED]]
>   [request]org.seasar.teeda.extension.util.LayoutBuilder.INDEX=-1
>   [request]postback=false
>   [cookie]JSESSIONID=12A5224FEDCE47B07063522BE2709366
>   [session]javax.faces.internal.scope.PageScope={null={}}
>   [session]javax.faces.internal.scope.RedirectScope={}
>   [session]javax.faces.internal.scope.SubApplicationScope={}
>   [session]javax.faces.request.charset=UTF-8
>   [session]org.seasar.teeda.core.lifecycle.impl.RestoreViewPhase.VIEW_ID_LRU={null=/view/foreach/foreachStringArray.html}
>   [context]javax.servlet.context.tempdir=C:\Documents and Settings\xxxx\workspace\teeda-html-example\work
>   [context]org.apache.AnnotationProcessor=[E-MAIL ADDRESS DELETED]
>   [context]org.apache.catalina.WELCOME_FILES=[Ljava.lang.String;@c9583d
>   [context]org.apache.catalina.jsp_classpath=/C:/Documents%20and%20Settings/xxxx/workspace/teeda-html-example/src/main/webapp/WEB-INF/classes/;...
>   [context]org.apache.catalina.resources=[E-MAIL ADDRESS DELETED]
>   [context]org.seasar.teeda.core.config.webapp.element.WebappConfig=[E-MAIL ADDRESS DELETED]
> 
> DEBUG 2009-06-04 13:32:34,392 [http-8080-1] HOT deployを終了しました
> 
> --------------------------------------------------------------------
> 
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
> 
> 


-- 
米 林   正 明
http://www.abby.co.jp


Seasar-user メーリングリストの案内