First, we check the request ID code; if it does not match the request code we were given earlier, the event must be a response to another plug-in's request, and so we ignore it.
首先,检查请求id码;如果与先前提供的请求代码不匹配,那么事件必然响应的是另一个插件的请求,因此要忽略它。
We will go through the code that runs with an initial request.
我们将分步说明与初始请求一起使用的代码。
Recall that during the flow creation, we added code to the request flow.
回忆一下在创建流的过程中,我们曾将代码添加到请求流。
Of course, we had to express this business request in appropriate data access code.
当然,我们必须以适当的数据访问代码来表达这种业务请求。
But in this simple example, you're always only passing in one ZIP code value per request.
但是,在这个简单的示例中,每个请求始终只能传入一个邮政区码值。
A particular code path is accessed frequently on each request but the data only needs to be fetched, applied, modified, or updated once.
对于每个请求,要经常访问某个特定的代码路径,但是数据却只需提取、应用、修改或更新一次。
It is very RESTfully designed, so you can use any code that can request data from a URL.
它是基于REST风格设计的,所以您可以使用任何用来从URL请求数据的代码。
You could simply put it in your J2EE application code and wait until an application client request first comes in for your application.
您可以简单地把它放在J2EE应用程序代码中,一直等到应用程序客户机向您的应用程序发出第一次请求。
After successfully processing this request, the service returns a response with the status code 201.
成功处理这个请求之后,服务将返回一个包含状态码201的响应。
After successfully processing this request, the service returns a response with the status code 200.
成功处理这个请求之后,该服务返回一个包含状态码200的响应。
While some browsers will call the function only when the request is complete, other browsers will call back continuously to tell the code that the request is still running.
有些浏览器可能只在请求完成时才调用这个函数,而也有些浏览器会不断回调该函数从而告诉代码请求依然在运行。
On the server side, code must unwrap the request to determine the call/parameters, then execute the call, receive the response, rewrap the response, and return it to the client.
在服务器端,代码必须打开请求以确定调用/参数,然后执行调用,接收响应,重新封装响应,并将其返回给客户机。
The example code in listing 4 shows the HTTP request to create a document with custom fields.
清单4中的示例代码显示了用于创建带有定制字段的文档的HTTP请求。
After successfully processing this request, the service returns a response with a status code 201.
在成功地处理这个请求之后,服务在响应中返回状态码201。
From the widget's perspective, the code issues a request and expects the return format as JSON.
从小部件的角度看,代码发出一个请求并期待返回的格式是JSON。
There are likely to be categories of service that require the same types of request handling so ideally, you want to impose request handling based on policies rather than code it into each request.
许多服务类别很可能需要相同类型的请求处理,因此理想情况下,您需要根据策略执行服务处理,而不是将其编码到每个请求中。
The browser sends a request to the server, and the event code executes.
浏览器向服务器发送请求,且执行事件代码。
The first request originates at the browser, where you would type in your zip code.
最初的请求源自浏览器,用户在浏览器中输入邮政编码。
After issuing the query, the code checks for a request parameter for a format element.
在发出查询之后,代码检查格式元素的请求参数。
Based on the condition, the code selects the appropriate type of object to handle the request.
根据条件,代码将选择相应类型的对象来处理请求。
Of particular interest here is when the request returns a valid response (the 200 code).
这里特别要注意的是当请求对象返回有效响应时(200代码)。
The handling code would process the request and prepare some response message that is posted to an output queue.
处理代码将处理请求,并准备要发送到输出队列的响应消息。
As I mentioned above, a status code of 1 will represent a successful request with new messages, 2 as successful without new messages.
就如我上面提到的,一个状态值为1则标示新信息请求成功,2则表示请求成功但是没有新信息。
The next line of the SPARQL code describes the query request.
SPARQL代码的下一行描述了查询请求。
Empty response with different status code: the response of the PUT request will not have any content, but will have a different status code.
空响应带有不同的状态码:PUT请求的响应没有任何内容,但是有不同的状态码。
The first part of the code creates the request message using AXIOM.
代码的第一部分使用AXIOM创建请求消息。
You need to escape the special characters of the request with the two lines of code in Listing 9.
您需要使用清单9中的两行代码转义请求中的特殊字符。
This means you can set up code to execute without an incoming request to your ASP.NET application, an ideal situation for background processing.
这就表示,您可以对代码进行设置,使其能够在没有对asp.net应用程序进行传入请求的情况下得以执行,这是后台处理的理想情况。
This is the code that actually forwards a URL request to the proper resource.
控制器是实际向正确资源发送url请求的代码。
A 201 status code (CREATED) is a perfect response to a successful POST request.
状态码201 (CREATED)是一个成功POST请求的完美响应。
应用推荐