CN105577930B - Hyper text protocol processing system and method - Google Patents

Hyper text protocol processing system and method Download PDF

Info

Publication number
CN105577930B
CN105577930B CN201510988983.9A CN201510988983A CN105577930B CN 105577930 B CN105577930 B CN 105577930B CN 201510988983 A CN201510988983 A CN 201510988983A CN 105577930 B CN105577930 B CN 105577930B
Authority
CN
China
Prior art keywords
solicited message
processing
subelement
address information
common interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510988983.9A
Other languages
Chinese (zh)
Other versions
CN105577930A (en
Inventor
梁冬洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huaxun Ark Photoelectric Technology Co ltd
Original Assignee
Shenzhen Cct Software Information Co Ltd
Shenzhen Huaxun Ark Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Cct Software Information Co Ltd, Shenzhen Huaxun Ark Technology Co Ltd filed Critical Shenzhen Cct Software Information Co Ltd
Priority to CN201510988983.9A priority Critical patent/CN105577930B/en
Publication of CN105577930A publication Critical patent/CN105577930A/en
Application granted granted Critical
Publication of CN105577930B publication Critical patent/CN105577930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72445User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting Internet browser applications

Abstract

The invention discloses a kind of hypertext transfer protocol processing system and methods, which is characterized in that including common interface unit, common control unit, processing subelement and Transmit-Receive Unit;The common interface unit, for receiving solicited message, and judges network state;The common control unit, for generating and managing at least one corresponding processing subelement according to solicited message;The processing subelement, for handling solicited message and feedback information;The Transmit-Receive Unit, for sending solicited message and receiving feedback information;All solicited messages are received by unified common interface unit, subelement processing request is established by common control unit.It through the invention can be without updating common interface location contents for each request, request processing method can be managed collectively and unification is safeguarded, it can be with the multiple solicited messages of parallel processing, without individually establishing the technical effect of a whole processing request process for each request.

Description

Hyper text protocol processing system and method
Technical field
The present invention relates to a kind of hypertext transfer protocol processing system and methods.
Background technique
Now, smart phone already becomes a part of our lives, the application software (App) being mounted on smart phone Even more carry our food, clothing, housing and transportation.App will complete so complicated, intelligence need of work and use a large amount of network Request connection, network layer more commonly used in IOS system has a primary network layer of IOS at present, AFNetWorking network layer, still The two frames all only assume responsibility for the work of hypertext transfer protocol (Http) request, and there is no manage these requests Come, is easy to appear disorder when handling a large amount of requests;Such as: each service logic or each interface require to build A request from the beginning to the end is stood, the exception of request in this case and the specific aim of cancellation request and uniformity can all occur Problem, or even there is unexpected problem.
Summary of the invention
The object of the present invention is to provide a kind of hypertext transfer protocol processing system and methods, are patrolled with solving each business Volume or each interface, require the technical issues of establishing a full request.
To realize that the above goal of the invention, the present invention provide a kind of hypertext transfer protocol processing system, including common interface Unit, common control unit, processing subelement and Transmit-Receive Unit;
The common interface unit, for receiving solicited message, and judges network state;
The common control unit, for generating and managing at least one corresponding processing subelement according to solicited message;
The processing subelement, for handling solicited message and feedback information;
The Transmit-Receive Unit, for sending solicited message and receiving feedback information;
The common interface unit is connect with common control unit, and the common control unit is connect with processing subelement, The processing subelement is connect with Transmit-Receive Unit.
On the other hand, the present invention provides a kind of hypertext transfer protocol processing methods, the specific steps are as follows:
Step S1: common interface unit receives solicited message;
Step S2: common interface unit judges current network state;
If network is normal, S3 is thened follow the steps;
If when Network Abnormal, directly returning;
Step S3: solicited message is passed to common control unit by common interface unit;
Step S4: common control unit establishes corresponding processing subelement according to the solicited message;
Step S5: processing subelement generates request address information by the solicited message;
Step S6: request address information is carried out parameter integration processing by processing subelement;
Step S7: treated that request address information passes to Transmit-Receive Unit by the integration for processing subelement;
Step S8: treated that request address information is sent to server by the integration for Transmit-Receive Unit, and waits to be serviced Device feedback information;
Step S9: Transmit-Receive Unit receives the feedback information, and the feedback information is passed to processing subelement;
Step S10: processing subelement parses the feedback information, and returns to parsing result, completes request process.
Further, the method that common interface unit receives solicited message in the step S1 includes passing through barrage reception Method receive solicited message.
Further, the method packet that request address information is carried out parameter integration processing by subelement is handled in the step S6 It includes, parameter is spliced to request address information rear portion, the request address information after composition integration.
Compared with prior art, the beneficial effects of the present invention are:
1. receiving the technical solution of solicited message with unified common interface unit, obtain without for each request weight The technical effect of new edited common interface location contents;
2. obtaining can to request processing method with the technical solution of unified common control unit respective request information With the technical effect being managed collectively and unification is safeguarded;
3. receiving solicited message and common control unit with common interface unit to be established accordingly according to solicited message The technical solution for handling subelement, obtaining can be with the multiple solicited message of parallel processing, without individually establishing one for each request The technical effect of whole processing request process.
Detailed description of the invention
Fig. 1 is the block diagram of hypertext transfer protocol processing system of the invention;
Fig. 2 is the flow chart of hypertext transfer protocol processing method of the invention;
Fig. 3 is the specific embodiment flow chart of hypertext transfer protocol processing method of the invention.
In figure;
Common interface unit 1;Common control unit 2;Handle subelement 3;Transmit-Receive Unit 4.
Specific embodiment
The present invention will be further explained below with reference to the attached drawings and specific examples.
Embodiment 1:
As described in Figure 1, hypertext transfer protocol processing system of the invention, including common interface unit, common process list Member, processing subelement and Transmit-Receive Unit;
Common interface unit 1 for receiving solicited message, and judges network state;
Common control unit 2, for generating and managing at least one corresponding processing subelement according to solicited message;
Subelement 3 is handled, for handling solicited message and feedback information;
Transmit-Receive Unit 4, for sending solicited message and receiving feedback information;
Common interface unit 1 is connect with common control unit 2, and common control unit 2 is connect with processing subelement 3, is handled Subelement 3 is connect with Transmit-Receive Unit 4.
As shown in Fig. 2, hypertext transfer protocol processing method of the invention, the specific steps are as follows:
Step S1: common interface unit 1 receives solicited message;
Step S2: common interface unit 1 judges current network state;
If network is normal, S3 is thened follow the steps;
If when Network Abnormal, directly returning;
Step S3: solicited message is passed to common control unit 2 by common interface unit 1;
Step S4: common control unit 2 establishes corresponding processing subelement 3 according to the solicited message;
Step S5: processing subelement 3 generates request address information by the solicited message;
Step S6: request address information is carried out parameter integration processing by processing subelement 3;
Step S7: treated that request address information passes to Transmit-Receive Unit 4 by the integration for processing subelement 3;
Step S8: treated that request address information is sent to server by the integration for Transmit-Receive Unit 4, and waits to be serviced Device feedback information;
Step S9: Transmit-Receive Unit 4 receives the feedback information, and the feedback information is passed to processing subelement 3;
Step S10: processing subelement 3 parses the feedback information, and returns to parsing result, completes request process;
Specifically, when there is one or more solicited messages to be transmitted to common interface unit 1, common interface unit 1 is connect These solicited messages are received, and solicited message is passed into common control unit 2, common control unit 2 is established by solicited message The processing subelement 3 of corresponding processing solicited message, processing subelement 3 are first believed according to the address that solicited message generates solicited message Breath, then request address information is subjected to parameter integration processing, generate integration treated request address information, a Transmit-Receive Unit 4 will integration treated that request address information is sent to server, server is fed back according to solicited message, Transmit-Receive Unit 4 Receiving feedback information transfers to processing subelement 3 to carry out feedback information parsing, and parsing result is returned, completed whole by processing subelement 3 A request process.
Embodiment 2:
As shown in Fig. 2, hypertext transfer protocol processing method of the invention, the specific steps are as follows:
Step A1: common interface unit 1 receives solicited message by the method for barrage reception;
Step A2: common interface unit 1 judges current network state;
If network is normal, A3 is thened follow the steps;
If when Network Abnormal, directly returning;
Step A3: solicited message is passed to common control unit by common interface unit 2;
Step A4: common control unit 2 establishes corresponding processing subelement 3 according to the solicited message;
Step A5: processing subelement 3 generates request address information by the solicited message;
Step A6: parameter is spliced to request address information rear portion by processing subelement 3, the request address letter after composition integration Breath;
Step A7: treated that request address information passes to Transmit-Receive Unit by the integration for processing subelement 3;
Step A8: treated that request address information is sent to server by the integration for Transmit-Receive Unit 4, and waits to be serviced Device feedback information;
Step A9: Transmit-Receive Unit 4 receives the feedback information, and the feedback information is passed to processing subelement 3;
Step A10: processing subelement 3 parses the feedback information, and returns to parsing result, completes request process;
Specifically, step A1 is equivalent to the further materialization of step S1 in embodiment 1 in the embodiment 2, described Step A6 is equivalent to the further materialization of step S6 in embodiment 1 in embodiment 2.Other steps and tool in specific embodiment 2 Corresponding steps are roughly the same in body embodiment 1.
Common interface unit 1 receives solicited message in the method for barrage reception.Handle subelement 3 by request address information with Parameter carries out splicing, and parameter is spliced to the rear portion of request address information, the solicited message that forms that treated.
It is illustrated below:
Such as request is news acquisition request information, common reception unit receives news acquisition by way of barrage reception News acquisition request information after receiving the solicited message, is passed to common control unit, common control unit by solicited message It establishes processing subelement and request address information is generated according to solicited message for handling this solicited message, processing subelement;Example Such as: request address information is " http://SW.com ";It handles subelement and parameter is spliced to request address information rear portion, form Request address information after integration;Such as: there is following parameter to need to splice, obtains content type (getType), start page number at (startIndex), obtain item number (rows), after splicing result be " http://SW.com? getType=hot news & StartIndex=0&rows=10 ";This Meaning of Information are as follows: 10 articles of hot news are obtained since page 0 to request address.
Above- mentioned information are sent to server by Transmit-Receive Unit, server to this information response, if solicited message mistake or It can not handle, then feedback network error message, such as: error message 200, error message 401 etc., if solicited message is not wrong Accidentally, then it handles and sends back the corresponding information of feedback.Transmit-Receive Unit receives feedback information and transfers to processing subelement processing, and it is single to handle son Member parses feedback information, and returns the result, such as above-mentioned news acquisition request information, and returning the result is exactly 10 hot spots News.
In addition to the implementation, the present invention can also have other embodiments, all to use equivalent substitution or equivalent transformation shape At technical solution, fall within the scope of protection of the present invention.

Claims (4)

1. a kind of hypertext transfer protocol processing system, which is characterized in that including common interface unit, common control unit, place Manage subelement and Transmit-Receive Unit;
The common interface unit, for receiving solicited message, and judges network state;
The common control unit, for generating and managing at least one corresponding processing subelement according to solicited message;
The processing subelement, for handling solicited message and feedback information, wherein the processing solicited message includes passing through The solicited message generates request address information and request address information is carried out parameter integration processing;
The Transmit-Receive Unit, for sending solicited message and receiving feedback information;
The common interface unit is connect with common control unit, and the common control unit is connect with processing subelement, described Processing subelement is connect with Transmit-Receive Unit.
2. a kind of hypertext transfer protocol processing method, which is characterized in that the hypertext transfer protocol processing method is applied to Hypertext transfer protocol processing system as described in claim 1, the specific steps are as follows:
Step S1: common interface unit receives solicited message;
Step S2: common interface unit judges current network state;
If network is normal, S3 is thened follow the steps;
If when Network Abnormal, directly returning;
Step S3: solicited message is passed to common control unit by common interface unit;
Step S4: common control unit establishes corresponding processing subelement according to the solicited message;
Step S5: processing subelement generates request address information by the solicited message;
Step S 6: request address information is carried out parameter integration processing by processing subelement;
Step S7: treated that request address information passes to Transmit-Receive Unit by the integration for processing subelement;
Step S8: Transmit-Receive Unit is by the integration treated request address information is sent to server, and waiting for server is returned Feedforward information;
Step S9: Transmit-Receive Unit receives the feedback information, and the feedback information is passed to processing subelement;
Step S10: processing subelement parses the feedback information, and returns to parsing result, completes request process.
3. hypertext transfer protocol processing method as claimed in claim 2, which is characterized in that common interface in the step S1 The method that unit receives solicited message includes that common interface unit receives solicited message by the method for barrage reception.
4. the hypertext transfer protocol processing method as described in any in Claims 2 or 3, which is characterized in that the step S6 The method that request address information carries out parameter integration processing is included that parameter is spliced to by processing subelement by middle processing subelement asks Ask address information rear portion, the request address information after composition integration.
CN201510988983.9A 2015-12-24 2015-12-24 Hyper text protocol processing system and method Active CN105577930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510988983.9A CN105577930B (en) 2015-12-24 2015-12-24 Hyper text protocol processing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510988983.9A CN105577930B (en) 2015-12-24 2015-12-24 Hyper text protocol processing system and method

Publications (2)

Publication Number Publication Date
CN105577930A CN105577930A (en) 2016-05-11
CN105577930B true CN105577930B (en) 2019-08-06

Family

ID=55887562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510988983.9A Active CN105577930B (en) 2015-12-24 2015-12-24 Hyper text protocol processing system and method

Country Status (1)

Country Link
CN (1) CN105577930B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6006260A (en) * 1997-06-03 1999-12-21 Keynote Systems, Inc. Method and apparatus for evalutating service to a user over the internet
CN101867640A (en) * 2009-04-16 2010-10-20 北京闻言科技有限公司 Method for efficiently displaying multiple pieces of system notification at mobile phone client
CN102724327A (en) * 2012-06-29 2012-10-10 百度在线网络技术(北京)有限公司 System and method for providing real-time web browser service for browser
CN103916442A (en) * 2013-01-07 2014-07-09 阿里巴巴集团控股有限公司 Message pushing achieving method, mobile terminal and message pushing system
CN105069163A (en) * 2015-08-26 2015-11-18 广州神马移动信息科技有限公司 Network request processing method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6006260A (en) * 1997-06-03 1999-12-21 Keynote Systems, Inc. Method and apparatus for evalutating service to a user over the internet
CN101867640A (en) * 2009-04-16 2010-10-20 北京闻言科技有限公司 Method for efficiently displaying multiple pieces of system notification at mobile phone client
CN102724327A (en) * 2012-06-29 2012-10-10 百度在线网络技术(北京)有限公司 System and method for providing real-time web browser service for browser
CN103916442A (en) * 2013-01-07 2014-07-09 阿里巴巴集团控股有限公司 Message pushing achieving method, mobile terminal and message pushing system
CN105069163A (en) * 2015-08-26 2015-11-18 广州神马移动信息科技有限公司 Network request processing method and apparatus

Also Published As

Publication number Publication date
CN105577930A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
EP3223481A1 (en) Packet processing method and device
US20140215492A1 (en) Dynamic provisioning of message groups
CN104539510B (en) A kind of information transmission system and method based on multi-protocols
US20170163749A1 (en) Information exchange method and server
CN106790603A (en) The method of interacting message, apparatus and system
CN103036775A (en) Information exchange device, system and method
CN102685209B (en) A kind of method of assisting users equipment transmitting/receiving instance message, device and equipment
CN108875004A (en) resource access method and device
CN107888700A (en) A kind of shared cloud rendering system and its handling process
CN109561010A (en) Message processing method, electronic equipment and readable storage medium
CN104618364A (en) Information processing method, electronic device and server
CN102938782A (en) Message processing method, device and system
CN105577930B (en) Hyper text protocol processing system and method
CN107368523B (en) Data processing method and system
CN103327050A (en) Application content sharing method, system and device
CN105099738B (en) Data capture method, apparatus and system
CN108076110A (en) Electronic data interchange system and the device comprising electronic data interchange system
CN105721398A (en) Data access method and device
CN105553976B (en) A kind of data processing method, apparatus and system
CN105930339B (en) Improve the method and system of message transmission reliability
CN105978853B (en) Session scheduling method, scheduling server and terminal
CN103873564A (en) Method for realizing SignalR duplex communication under balanced load condition of multiple servers
CN105577733B (en) File uploading method and system based on Asynchronous Transfer Mode
CN103546513B (en) The method and device of communication between a kind of customer terminal webpage
CN102255895A (en) Method and system for data communication between client and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518000 Guangdong Province, Baoan District Xixiang street Xixiang city Shenzhen Tian Yi Lu Chen Tian Bao Industrial District thirty-seventh building 3 floor

Applicant after: CHINA COMMUNICATION SOFTWARE INFORMATION TECHNOLOGY Co.,Ltd.

Applicant after: CHINA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong Province, Baoan District Xixiang street Xixiang city Shenzhen Tian Yi Lu Chen Tian Bao Industrial District thirty-seventh building 3 floor

Applicant before: CHINA COMMUNICATION SOFTWARE INFORMATION TECHNOLOGY Co.,Ltd.

Applicant before: CHINA COMMUNICATION TECHNOLOGY Co.,Ltd.

COR Change of bibliographic data
C41 Transfer of patent application or patent right or utility model
CB02 Change of applicant information

Address after: 518102 Guangdong Province, Baoan District Xixiang street Xixiang city Shenzhen Tian Yi Lu Chen Tian Bao Industrial District thirty-seventh building 3 floor

Applicant after: HUAXUN ARK INTELLIGENCE INFORMATION TECHNOLOGY (SHENZHEN) CO.,LTD.

Applicant after: CHINA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong Province, Baoan District Xixiang street Xixiang city Shenzhen Tian Yi Lu Chen Tian Bao Industrial District thirty-seventh building 3 floor

Applicant before: CHINA COMMUNICATION SOFTWARE INFORMATION TECHNOLOGY Co.,Ltd.

Applicant before: CHINA COMMUNICATION TECHNOLOGY Co.,Ltd.

COR Change of bibliographic data
TA01 Transfer of patent application right

Effective date of registration: 20170105

Address after: 518102 Guangdong Province, Baoan District Xixiang street Shenzhen City Tian Yi Lu Chen Tian Bao Industrial District thirty-seventh building 3 floor

Applicant after: SHENZHEN CCT SOFTWARE INFORMATION Co.,Ltd.

Applicant after: CHINA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 518102 Guangdong Province, Baoan District Xixiang street Xixiang city Shenzhen Tian Yi Lu Chen Tian Bao Industrial District thirty-seventh building 3 floor

Applicant before: HUAXUN ARK INTELLIGENCE INFORMATION TECHNOLOGY (SHENZHEN) CO.,LTD.

Applicant before: CHINA COMMUNICATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20210630

Granted publication date: 20190806

PD01 Discharge of preservation of patent
PD01 Discharge of preservation of patent

Date of cancellation: 20230421

Granted publication date: 20190806

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230615

Address after: 518102 room 404, building 37, chentian Industrial Zone, chentian community, Xixiang street, Bao'an District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Huaxun ark Photoelectric Technology Co.,Ltd.

Address before: 518102 3rd floor, building 37, chentian Industrial Zone, Baotian 1st Road, Xixiang street, Bao'an District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN CCT SOFTWARE INFORMATION Co.,Ltd.

Patentee before: CHINA COMMUNICATION TECHNOLOGY Co.,Ltd.