Data processing method and apparatus

A data processing and method body technology, applied in the network field, can solve problems such as error-prone and reduce developer development efficiency, and achieve the effect of reducing error probability and improving development efficiency

Active Publication Date: 2016-09-21
GUANGZHOU HUADUO NETWORK TECH
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] When the user or client sends a large number of parameter values ​​to the server, if the above method of obtaining parameter values ​​is adopted, the developer needs to assemble these parameter values ​​into java objects, which is not only error-prone, but also greatly reduces the developer's development efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and apparatus
  • Data processing method and apparatus
  • Data processing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0040] figure 1 It is a flowchart of a data processing method provided by an embodiment of the present invention. see figure 1 , the method flow provided by the embodiment of the present invention includes:

[0041] 101. After receiving an HTTP request, determine a method body of a class matching the HTTP request and parameters corresponding to the method body, where the HTTP request includes a series of parameter values.

[0042] 102. Obtain annotation information of the method body, and assemble parameter values ​​required by the method body into parameters of the method body based on the annotation information and the HTTP request.

[0043] In the method provided by the embodiment of the present invention, by adding annotation in...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data processing method and apparatus, and belongs to the technical field of networks. The method comprises the steps of determining a method body of a class matched with an HTTP request and parameters corresponding to the method body after receiving the HTTP request, wherein the HTTP request comprises a series of parameter values; and obtaining annotation information of the method body, and assembling the parameter values required by the method body into the parameters of the method body based on the annotation information and the HTTP request. According to the method and apparatus, the parameter values in the HTTP request are matched by adding the annotation information in the method body, and the parameter values required by the method body are automatically copied in the parameters of the method body, so that a developer does not need to manually assemble the parameter values into java objects when a client sends a large amount of the parameter values to a server, the error probability is reduced, and the development efficiency is greatly improved.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a data processing method and device. Background technique [0002] In large-scale Internet-level applications, whenever a user or client initiates an HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol) request to the server, it is inevitable that a series of parameter values ​​will be attached to the HTTP request to the server, so that the server can based on These parameter values ​​are processed accordingly. [0003] In a normal processing scenario, the HTTP request adopts the name&value method when carrying parameter values. In this way, after the server receives the HTTP request, it obtains the corresponding parameter value passed through the name of each label or control, and then through the original getParameter() parameter. [0004] In the process of realizing the present invention, the inventor finds that there are at least the following problems in the pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445H04L29/08
CPCG06F8/54H04L67/02
Inventor 匡凌轩陈高昌
Owner GUANGZHOU HUADUO NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products