在本例中,我依靠服务器设置一个名为X - Ticket - Sequence - Number的特殊HTTP头部字段。这个字段中保存的是用户正在构造的故障单的唯一标识。
In this case, I rely on the server setting a special HTTP header named X-Ticket-Sequence-Number, which holds the unique identifier for the ticket the user is constructing.
此 servlet 设置命令 bean 中的用户标识,然后调用 execute() 方法,使命令 bean 获取差事列表(它为此调用一个 EJB)。
The servlet sets the user ID in the command bean then invokes the execute() method, causing the command bean to get the errand list (it invokes an EJB for this).
“Call”对象允许您为基本认证设置 HTTP 用户标识和密码,以及中间 HTTP 代理(如果它们存在的话)所需的类似方法。
The "Call" object allows you to set HTTP user ID and password for basic auth, and also similar methods to cater for intermediate HTTP proxies, if they exist.
应用推荐