锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲欧美熟妇综合久久久久
,亚洲一区二区三区国产精品,亚洲资源在线视频http://www.tkk7.com/rednight/category/14445.html0x2B|~0x2B,That's not a question,Just do it.zh-cnTue, 26 Jun 2007 20:25:37 GMTTue, 26 Jun 2007 20:25:37 GMT60state patternhttp://www.tkk7.com/rednight/archive/2006/12/26/90105.htmlrednightrednightTue, 26 Dec 2006 06:46:00 GMThttp://www.tkk7.com/rednight/archive/2006/12/26/90105.htmlhttp://www.tkk7.com/rednight/comments/90105.htmlhttp://www.tkk7.com/rednight/archive/2006/12/26/90105.html#Feedback0http://www.tkk7.com/rednight/comments/commentRss/90105.htmlhttp://www.tkk7.com/rednight/services/trackbacks/90105.htmlThe logic to change state is only inside one method (initVesselView(鈥?) inside GrVessel.java.聽 if (viewType == VIEW_STOWAGE) { 聽聽聽聽聽聽聽聽聽聽聽 vslView_ = new VesselStowageView(leftPoint, bow2Left, leftCenter, 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 rightCenter, shipWidth_); 聽聽聽聽聽聽聽 } 聽聽聽聽聽聽聽 else if (viewType == VIEW_SIDE) { 聽聽聽聽聽聽聽聽聽聽聽 vslView_ = new VesselSideView(leftPoint, bow2Left, leftCenter, 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 rightCenter, shipWidth_); 聽聽聽聽聽聽聽 } 聽聽聽聽聽聽聽 else if (viewType == VIEW_PLAN) { 聽聽聽聽聽聽聽聽聽聽聽 vslView_ = new VesselPlanView(leftPoint, bow2Left, leftCenter, 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 rightCenter, shipWidth_); 聽聽聽聽聽聽聽 } 聽聽聽聽聽聽聽 else { 聽聽聽聽聽聽聽聽聽聽聽 throw new IllegalArgumentException( 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 "GrVessel::initVesselView-->Invalid view type!"); 聽聽聽聽聽聽聽 }
We do not need to repeat this logic of changing view in many other method. This is the benefit of State design pattern. The 3 state classes here are VesselPlanView.java, VesselSideView.java and VesselStowageView.java
Please note that in the state classes, if a method is supported by stateA and not supported by stateB.聽 Then, in stateB, the method body will throw an exception (IllegalArgumentException) to indicate that coder call the wrong method in the wrong state.
Example, in VesselPlanView.java, public boolean addStowage(...).聽 This method is only meaningful to stowageView.
public boolean addStowage(IlvManager manager, List transformList, IlvGraphic stowage, String stadBayN, 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 boolean isSelect) { 聽聽聽聽聽聽聽 throw new IllegalArgumentException( 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 "GrVessel::addStowage-->be sure the vessel at stowage view!"); 聽聽聽 }
Hence, in PlanView, the method body will throw exception.
]]>嫻瘋繍鍏徃鍚嶇Оhttp://www.tkk7.com/rednight/archive/2006/08/26/65906.htmlrednightrednightSat, 26 Aug 2006 02:36:00 GMThttp://www.tkk7.com/rednight/archive/2006/08/26/65906.htmlhttp://www.tkk7.com/rednight/comments/65906.htmlhttp://www.tkk7.com/rednight/archive/2006/08/26/65906.html#Feedback0http://www.tkk7.com/rednight/comments/commentRss/65906.htmlhttp://www.tkk7.com/rednight/services/trackbacks/65906.html ABC ABC璐ф煖鑸繍鍏徃 A.B.C CONTAINTER LINE
ACBL 緹庡浗鍟嗕笟椹寵埞鑸繍鍏徃 American Commercial Barge Line company
ACGR 鍐犺埅闆嗗洟 Ace Group
ACL 澶цタ媧嬮泦瑁呯鑸繍鍏徃 Atlantic Contaier Line
ACT 鑱斿悎闆嗚綆辮繍杈撳叕鍙革紙鑻憋級 Associated Container Transportation
銆傘傘傘傘傘傘?nbsp; 闃呰鍏ㄦ枃
]]>鍙栨秷SiteMinder涓殑璺ㄧ珯鑴氭湰媯楠?/title>http://www.tkk7.com/rednight/archive/2006/08/24/65633.htmlrednightrednightThu, 24 Aug 2006 13:37:00 GMThttp://www.tkk7.com/rednight/archive/2006/08/24/65633.htmlhttp://www.tkk7.com/rednight/comments/65633.htmlhttp://www.tkk7.com/rednight/archive/2006/08/24/65633.html#Feedback0http://www.tkk7.com/rednight/comments/commentRss/65633.htmlhttp://www.tkk7.com/rednight/services/trackbacks/65633.html涓涓」鐩腑鐨刄RL涓湁HTML鐗規畩絎﹀彿,琚玈iteMinder闃繪浜?鎯充簡璁稿鏂規硶鍘繪敼榪欎釜URL,娌℃垚鍔? 鍚庢潵鎵嶆兂鍒頒慨鏀筍iteMinder鐨勯厤緗?鍙嶆鏄唴閮ㄦ湁闄愮殑鍑犱釜浜轟嬌鐢?娌℃湁蹇呰鐣欑潃璺ㄧ珯鑴氭湰鐨勬楠?浜庢槸闂寰楀埌瑙e喅.
涓嬮潰鏄疭iteMInder鏂囨。涓殑涓孌?
Disabling Cross-Site Scrpting Checks
In most cases, the Web Agent should block against cross-site scripting, However, if you have URLs that include HTML characters or your site already has an application that checks for croos-site scripting, you may want to disable this feature.
To disable the cross-site cripting:
Add the following parameter to the WebAgent.conf file:
csschecking = "No"
The default is YES.
For detailed information about cross-site scripting, refer to the following site: