HttpClient clickstream design (4)

Source: Internet
Author: User

 

Click <br>

Focus on the following points <br>

1. Request server path --------- url <br>

2. Click the id. <br>

3. method used to send requests to the server: get, post, and file upload <br>

4. header information when sending a request to the server <br>

5. next click <br>

6. Click result <br> 6.1) Click status --------- Server Response Code <br> 6.2) response File Header <br> 6.3) sessionid <br> 6.4) response content <br> 6.5) response file body <br> 6.6) map (resparammap) of the parsed response file body <br>

7. Click starttime. <br>

8. Click the endtime. <br>

9. clickstreamcontext <br>

10. Click delay (lazy) <br>

The overall design oom is roughly as follows:

 

The above design is based on interfaces. Through our xml, It is parsed and encapsulated into the clickstream implementation class, click implementation class, and request header implementation class, in this way, if secondary development is required, whether it is an extension of the xml file model, a rewrite of the click stream processing behavior, a rewrite of the click processing behavior, or an extension of the response result, and the corresponding content re-resolution, you can easily carry out the bag amount.

 

1. If you have extended the click type (current category: Start click or not start click), you will re-define the click stream processing rules, you only need to click the stream processing behavior interface to configure the implementation in the xml file. You can set processing rules for the specified click stream.

 

2. If you want to customize a special click processing service based on your needs, you can also implement the "Click processing behavior" interface. When you configure the implementation to the corresponding xml file, changes the processing behavior of the node.

 

3. If you do not agree with the system's default method of parsing the corresponding file, you can also implement the response result parsing interface. However, no resolution solution is provided for each click, after the upgrade (or modify and implement this solution from now on)

 

In short, the current interface-oriented solution provides great convenience for your expansion and function formulation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.