資源簡介
JAVAEE架構設計與開發(fā)實踐 這本書 第一章至第八章的代碼
代碼片段和文件信息
/*
?*?Copyright?2005?Joe?Walker
?*
?*?Licensed?under?the?Apache?License?Version?2.0?(the?“License“);
?*?you?may?not?use?this?file?except?in?compliance?with?the?License.
?*?You?may?obtain?a?copy?of?the?License?at
?*
?*?????http://www.apache.org/licenses/LICENSE-2.0
?*
?*?Unless?required?by?applicable?law?or?agreed?to?in?writing?software
?*?distributed?under?the?License?is?distributed?on?an?“AS?IS“?BASIS
?*?WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND?either?express?or?implied.
?*?See?the?License?for?the?specific?language?governing?permissions?and
?*?limitations?under?the?License.
?*/
package?org.directwebremoting;
import?java.io.IOException;
import?java.lang.reflect.Method;
/**
?*?A?filter?is?a?way?to?insert?processing?tasks?at?various?points?during?the
?*?processing?of?an?Ajax?call.
?*?Example?filters:
?*?
?*?- Authentication
?*?- Latency?simulators
?*?- Data?cleansing?-?remove?private?data
?*?- Logging?filters?-?when?you?need?specific?logging?action
?*?
?*?@since?DWR?2.0
?*?@author?Joe?Walker?[joe?at?getahead?dot?ltd?dot?uk]
?*/
public?interface?AjaxFilter
{
????/**
?????*?The?doFilter
?method?of?the?AjaxFilter?is?called?by?DWR?each
?????*?time?an?Ajax?request?is?made?on?a?method?that?this?filter?is?configured
?????*?against.?The?AjaxFilterChain?passed?in?to?this?method?allows
?????*?the?filter?to?pass?on?method?details?to?next?entity?in?the?chain.
?????*?Typically?the?method?would?do?the?following:
?????*?
?????*?- Examine?the?request
?????*?- Optionally?alter?the?method?ob
ject?or?parameters
?????*?- Either?invoke?the?next?entity?in?the?chain?using?the?AjaxFilterChain
?????*?or?decide?to?take?some?other?action?instead.
?????*?- Optionally?modify?the?value?returned?to?the?user
?????*?- Take?some?other?action?(e.g.?logging)
?????*?
?????*?@param?obj?The?object?to?execute?the?method?on?(i.e.?‘this‘)
?????*?@param?method?The?method?to?execute
?????*?@param?params?The?parameters?to?the?method?call
?????*?@param?chain?Allow?the?request?to?be?passed?on
?????*?@return?The?results?of?the?method?execution
?????*?@throws?IOException?When?some?I/O?error?occurs
?????*?@throws?Exception?When?some?processing?goes?wrong
?????*/
????public?object?doFilter(object?obj?Method?method?object[]?params?AjaxFilterChain?chain)?throws?Exception;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-10-15?10:02??第1章\
?????文件?????????218??2016-07-26?00:10??第1章\hello.jsp
?????文件?????????364??2016-07-26?00:10??第1章\test.jsp
?????目錄???????????0??2018-10-15?10:02??第3章\
?????文件???????11099??2016-08-04?00:52??第3章\3.3.jpg
?????目錄???????????0??2018-10-15?10:02??第3章\DWR演示源代碼\
?????目錄???????????0??2018-10-15?10:02??第3章\DWR演示源代碼\me
?????文件?????????106??2015-12-15?06:17??第3章\DWR演示源代碼\me
?????文件????????1181??2015-12-15?06:17??第3章\DWR演示源代碼\me
?????文件?????????106??2015-12-15?06:17??第3章\DWR演示源代碼\me
?????文件?????????453??2015-12-15?06:17??第3章\DWR演示源代碼\me
?????文件??????????59??2015-12-15?06:17??第3章\DWR演示源代碼\dwr-version.properties
?????目錄???????????0??2018-10-15?10:02??第3章\DWR演示源代碼\org\
?????目錄???????????0??2018-10-15?10:02??第3章\DWR演示源代碼\org\directwebremoting\
?????文件????????2392??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\AjaxFilter.java
?????文件????????1521??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\AjaxFilterChain.java
?????文件???????13761??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\Browser.java
?????文件????????2583??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\Container.java
?????文件????????2353??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\ConversionException.java
?????文件????????2418??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\Hub.java
?????文件????????2233??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\HubFactory.java
?????文件????????6024??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\sc
?????文件????????6055??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\sc
?????文件????????1128??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\sc
?????文件????????4185??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\sc
?????文件????????4314??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\Security.java
?????文件????????5058??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\ServerContext.java
?????文件????????2302??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\ServerContextFactory.java
?????文件????????1674??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\TestMethods.java
?????文件????????4945??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\WebContext.java
?????文件????????3242??2015-12-15?06:17??第3章\DWR演示源代碼\org\directwebremoting\WebContextFactory.java
............此處省略2038個文件信息
評論
共有 條評論