??xml version="1.0" encoding="utf-8" standalone="yes"?>
Please note that in the state classes, if a method is supported by stateA and not supported by stateB.
Example, in VesselPlanView.java, public boolean addStowage(...). This method is only meaningful to stowageView.
Just to share with you a better way to code.
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
Then, in stateB, the method body will throw an exception (IllegalArgumentException) to indicate that coder call the wrong method in the wrong state.
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.
]]>
rcashellster@gmail.com
]]>
ABC ABC货柜航运公司 A.B.C CONTAINTER LINE
ACBL 国商业驌航运公司 American Commercial Barge Line company
ACGR 冠航集团 Ace Group
ACL 大西z集装箱航运公司 Atlantic Contaier Line
ACT 联合集装p输公司(英) Associated Container Transportation
。。。。。。?nbsp; 阅读全文
]]>
澛_利亚国家航运有限公司-ANLQ澳大利亚)
ANL CONTAINER LINE PTY Ltd
http://www.anl.com.au/index.php3 阅读全文
]]>
关系数据库设计之时是要遵守一定的规则的。尤其是数据库设计范?现简单介l?NFQ第一范式Q,2NFQ第二范式)Q?NFQ第三范式)和BCNFQ另有第四范式和W五范式留到以后再介l?在你设计数据库之Ӟ若能W合q几个范式,你就是数据库设计的高手? 阅读全文
]]>
1. SESSION中的数据做了修改后一定要手动的SET到SESSION ?br /> 如果当前的MANAGED SERVER DOWN?ADMIN SERVER会自动failover到其他的MANAGED SERVER, q复制SESSION数据.当你对SESSION中的数据做了修改?必须SET回SESSION,否则修改后的数据不会被复制到另一个SERVER,数据丢失.
2. SESSION中的数据必须是可序列化的.
很容易理? 只有可以被序列化的数据才能被复制
3. 静态数据必L只读?br /> 同上, 当FAILOVER?静态数据是不会被复制的,如果静态数据被修改?白改!
例如l常会用静态属性去做记数器,q样需要考虑用其他方法了
其实qWEB APP目前没有准备使用集群,也应该注意这几点,以便以后可以方便的移植到集群.
Ƣ迎大家指正和补?
下面是SiteMInder文档中的一D?
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:
http://www.cert.org/ and read CERT advisory CA-2000-02.