CN110582083B - SERVER SERVER system of mobile terminal - Google Patents

SERVER SERVER system of mobile terminal Download PDF

Info

Publication number
CN110582083B
CN110582083B CN201910746268.2A CN201910746268A CN110582083B CN 110582083 B CN110582083 B CN 110582083B CN 201910746268 A CN201910746268 A CN 201910746268A CN 110582083 B CN110582083 B CN 110582083B
Authority
CN
China
Prior art keywords
server
data
request
mobile phone
web
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
CN201910746268.2A
Other languages
Chinese (zh)
Other versions
CN110582083A (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.)
Hebei Shangtong Yuntian Network Technology Co ltd
Original Assignee
Hebei Shangtong Yuntian Network 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 Hebei Shangtong Yuntian Network Technology Co ltd filed Critical Hebei Shangtong Yuntian Network Technology Co ltd
Priority to CN201910746268.2A priority Critical patent/CN110582083B/en
Publication of CN110582083A publication Critical patent/CN110582083A/en
Application granted granted Critical
Publication of CN110582083B publication Critical patent/CN110582083B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a SERVER system, in particular to a SERVER system of a mobile terminal, which comprises the following steps: step one, a connection process is established, namely a connection established between a Web mobile server and a browser thereof is established, whether the connection process is realized or not is checked, a user can find and open a virtual file of a socket, and the establishment of the file means that the connection process is successfully established; step two, a request process is carried out, wherein the request process is that a Web browser uses a socket file to provide various requests for a mobile server; step three, a response process is carried out, and the request put forward in the request process is transmitted to a Web mobile server by using the HTTP protocol; the technical scheme provided by the invention can effectively overcome the defects that the server does not have the function of responding to the mobile phone terminal to process data, the function of saving flow for a user and the function of preventing the request from being intercepted and cracked in the prior art.

Description

SERVER SERVER system of mobile terminal
Technical Field
The present invention relates to a SERVER system, and in particular, to a SERVER system for a mobile terminal.
Background
The mobile server has the main function of providing Internet information browsing service, the WWW is a multimedia information inquiry tool of the Internet, and is a service which is developed in recent years on the Internet and is the fastest-developing and most widely-used service at present; the Internet has been rapidly developed in recent years only by the WWW tool, and the number of users has been rapidly increased; the mobile terminal SERVER is a special mobile terminal for providing a certain service for clients in a network environment, so that mobile terminals such as mobile phones or tablets become a movable SERVER.
In the patent of the invention having the grant publication number CN 109964471A and the grant publication date 2019.07.02, a method for accessing a service for delivering content from a user terminal is disclosed, the method comprising: a uniform resource locator, URL, is sent to a client module (MBMC) of the terminal, the URL comprising an identifier of a requested Content (CNT) and a command specifying a request or condition related to delivering the requested content to a user terminal (UM), the requested Content (CNT) is received from the client module if the requested content is available in the user terminal according to the specified condition, and the URL is sent to a service broadcast server (BMS) if the requested content is not available in the user terminal according to the specified condition.
However, this method for accessing a service delivering contents from a user terminal does not have a function of processing data by responding a server to a mobile phone terminal, does not have a function of saving traffic for a user, and does not have a function of preventing a request from being intercepted and cracked.
Disclosure of Invention
(one) solving the technical problems
Aiming at the defects existing in the prior art, the invention provides a SERVER system of a mobile terminal, which can effectively overcome the defects that the SERVER response is not provided with a function of processing data for a mobile phone terminal, the function of saving flow for a user and the function of preventing a request from being intercepted and cracked in the prior art.
(II) technical scheme
In order to achieve the above purpose, the present invention is realized by the following technical scheme:
a SERVER system for a mobile terminal, comprising the steps of:
step one, a connection process is established, namely a connection established between a Web mobile server and a browser thereof is established, whether the connection process is realized or not is checked, a user can find and open a virtual file of a socket, and the establishment of the file means that the connection process is successfully established;
step two, a request process is carried out, wherein the request process is that a Web browser uses a socket file to provide various requests for a mobile server;
step three, a response process is carried out, wherein the response process is to transmit the request submitted in the request process to a Web mobile server by using an HTTP protocol, further carry out task processing, then transmit the result of the task processing to a Web browser by using the HTTP protocol, and display the requested interface on the Web browser;
and step four, closing the connection, wherein the closing of the connection is the process of disconnecting the Web mobile server from the browser after the response process is completed.
Preferably, the first step includes establishing an entry, establishing a service type, and establishing a database, where a json compression coding request is performed between the entry and a user mobile phone terminal and encrypted, and a load tool is provided at the entry, where the load tool is a load of HaProxy or F5.
Preferably, the step two includes selecting a bearing type of the request entry, interacting data with the mobile phone, and interacting the mobile phone with the Web.
Preferably, the interaction between the mobile phone and the Web comprises that the mobile phone client sends request information to the Web application server, and the mobile phone terminal extracts response data of the server.
Preferably, the mobile phone client sends request information to the Web application server, wherein the request information comprises various APIs required by reference, URL for defining access to a website, android program interface class creation, httpPost object creation, data coding mode setting, httpPost object submitting and server HttpResponse response data acquisition.
Preferably, the third step includes receiving data by http Post method, and configuring server-side component integration file XML.
Preferably, the Post method using http receives data including referencing a required API, creating a Servlet class data port, accessing persistent layer retrieval data, and creating an output stream data stream object.
(III) beneficial effects
Compared with the prior art, the invention provides a SERVER system of a mobile terminal, which has the following beneficial effects: by establishing a mobile App server architecture, the system responds the server to the mobile phone terminal to process data, and by compressing and encrypting json, the first effect of saving traffic for a user is achieved, and the second effect of preventing the request from being intercepted and cracked is achieved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow diagram of a system according to the present invention;
fig. 2 is a schematic diagram of a basic flow of a server architecture according to the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
A SERVER system of a mobile terminal, as shown in fig. 1 to 2, includes the following steps:
step one, a connection process is established, namely a connection established between a Web mobile server and a browser thereof is established, whether the connection process is realized or not is checked, a user can find and open a virtual file of a socket, and the establishment of the file means that the connection process is successfully established;
step two, a request process is carried out, wherein the request process is that a Web browser uses a socket file to provide various requests for a mobile server;
step three, a response process is carried out, wherein the response process is to transmit the request submitted in the request process to a Web mobile server by using an HTTP protocol, further carry out task processing, then transmit the result of the task processing to a Web browser by using the HTTP protocol, and display the requested interface on the Web browser;
and step four, closing the connection, wherein the closing of the connection is the process of disconnecting the Web mobile server from the browser after the response process is completed.
Specifically, the first step comprises the steps of establishing an inlet, establishing a service type and establishing a database, performing json compression coding request between the inlet and a mobile phone end of a user, and encrypting, wherein a load tool is arranged at the inlet, and is a load of Haproxy or F5; the method comprises the steps of selecting a bearing type of a request entry, interacting data of a mobile phone, and interacting the mobile phone with Web; the interaction between the mobile phone and the Web comprises the steps that a mobile phone client sends request information to a Web application server, and a mobile phone terminal extracts response data of the server; the mobile phone client sends request information to the Web application server, wherein the request information comprises various APIs required by reference, URL for defining access websites, android program interface class creation, httpPost object creation, data coding mode setting, httpPost object submitting and server HttpResponse response data acquisition; the third step includes adopting the Post method of http to receive data and configuring the server side component integration file XML; the Post method adopting http receives data comprising referencing a required API, creating a Servlet class data port, accessing persistent layer retrieval data, and creating an output stream data stream object.
When the method is used, a mobile App server end architecture design is established, json is compressed and encrypted, firstly, flow is saved for a user, secondly, a request is prevented from being intercepted and cracked to obtain parameters, and at a program entrance, one (more) machines are used as loads, and a load tool can be a load of Haproxy (software) or F5 (hardware); when Json parameters are designed, the mac. Imsi and other data of the mobile phone are the standard for uniquely identifying one mobile phone user, and as for other data, the data required by operation can be added in the data; each time the parameters in context are updated, the owned user data is kept to be true and valid, and the rt field is the purpose of each request (request type) and is used for distinguishing which server service needs to be called for processing the request for each request;
when the service architecture and the data are ready, coding is carried out, the type of rt field can be obtained by using Linq to Json or Newton's on in reverse serialization, android uploads the file to a server, a method for constructing an http protocol is generally adopted to simulate a webpage POST method to transmit the file, a server side can adopt a JavaServelet or PHP to receive the file to be transmitted, the JavaServelet is used to receive the file, the size of the stream transmitted each time is set, and the mobile phone can be effectively prevented from crashing due to insufficient memory;
when the mobile phone interacts with the WEB, the data of the client can be submitted to the Web server through a mobile phone interface; when an Android mobile phone terminal develops an application program, the application program is required to be cited by various APIs, and firstly, necessary class packages (APIs) provided by Google and Sun company are required to be utilized, wherein the APIs comprise class org. Apache. Http under the Http communication protocol; the mobile phone terminal class org. The message class org. Data stream class java. The interactive interface class java. android.app.activity; the operation description class android. Key value processing class android.os.bundle; log class android.uteil.log; display component class android. Interface class android. Creating an Android program interface class, creating a mobile phone interface, inheriting an Activity class provided by Android, creating an Httppost object of data submitted to a Web server in the class, covering a method onCreate (Bundle b) of the Activity class, creating an event listener OnClickListener object, realizing a onClick (View v) method in the event listener, and registering the event listener on a corresponding event source loginButton; creating an HttpPost object, wherein the HttpPost object has the main function of submitting data of an Android mobile phone end to a Web application server, so that the Android provides a good API, and the Android and Sun companies provide the classes to store data (NameValuePair object) to be submitted to the server into a List object; setting a data coding mode, wherein the Android mobile phone needs to prescribe the coding of the data before sending the prepared data to the Web server, so that the server can process and display the data according to the past character coding after receiving the data; submitting the Httppost object and acquiring the HttpResponse response data of the server, completing the previous work, submitting the data to the Web application server, processing the data submitted by the Android mobile phone after the application service receives the data submitted by the Android mobile phone, packaging the data to be returned (responded) to the Android mobile phone into one HttpResponse object, and sending the data back to the mobile phone; the communication task of the Android platform is completed, namely the data corresponding to the Web server is submitted to the httpResponse object, and the rest work is to take out the data responded by the Web server from the httpResponse object;
when the mobile phone terminal extracts the response data of the server, the data of the response server is obtained, the data responded to the mobile phone terminal from the Web server is generally packaged in a byte array, and the key is that the byte array possibly contains various data types, therefore, various types of data are required to be extracted from the byte data by adopting a Java data stream and filtering stream method, the application utilizes the binding technology of the byte array stream and packaging, firstly, the data from the server is converted into the byte array, then a byte array input stream object is created, the byte stream and the data packaging stream are bound, the data in the byte array is restored into various original data types, and then the data are further delivered to the Android mobile phone terminal View component;
the server side receives and responds to the request of the Android mobile phone terminal, after the Android mobile phone terminal sends the request, the Web server side receiving the request carries out operation according to the data information of the request, and then the operation result is responded to the mobile phone client side; receiving data by adopting an http Post method, referring to a required API, and when an application program is developed at a Web end, firstly, utilizing a necessary class packet (API) provided by Sun company; creating Servlet class data port, wherein the Servlet object is the data receiving and transmitting port of Web application server and the client communication equipment used on the connection internet; accessing the data retrieved by the persistent layer, and obtaining the data of the persistent layer by applying the object method of the improved Spring management transaction; creating an output stream data stream object, wherein the created output stream object mainly transmits the response data to the mobile phone terminal, and the data of different types are returned to the mobile phone terminal by using the output filter stream object because the data of different types can be processed by using the DataOutputStream object;
the server side component integrated file (XML) is configured, the Web application server side uses an SSH architecture technology, the service logic of the server is mature, all things managed by Spring can be interacted with the Android mobile phone through the Servlet only by packaging the Spring service through the Servlet, and thus the server responds to the completion of data processing of the mobile phone terminal, and the interaction process is completed once.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (3)

1. A SERVER system of a mobile terminal, characterized in that: the method comprises the following steps:
step one, a connection process is established, namely a connection established between a Web mobile server and a browser thereof is checked to see whether the connection process is realized, a user finds and opens a socket virtual file, and the establishment of the file means that the connection process is successfully established;
step two, a request process is carried out, wherein the request process is that a Web browser uses a socket file to provide various requests for a mobile server;
step three, a response process is carried out, wherein the response process is to transmit the request submitted in the request process to a Web mobile server by using an HTTP protocol, further carry out task processing, then transmit the result of the task processing to a Web browser by using the HTTP protocol, and display the interface of the request on the Web browser;
step four, closing the connection, namely disconnecting the Web mobile server from the browser after the response process is completed;
the first step comprises the steps of establishing an inlet, establishing a service type and establishing a database, wherein a json compression coding request is carried out between the inlet and a mobile phone end of a user and encrypted, and a load tool is arranged at the inlet and is a load of Haproxy or F5;
the method comprises the steps of selecting a bearing type of a request entry, interacting data by a mobile phone, and interacting the mobile phone with Web;
the interaction between the mobile phone and the Web comprises the steps that a mobile phone client sends request information to a Web application server, and a mobile phone terminal extracts response data of the server;
the mobile phone client sends request information to a Web application server, wherein the request information comprises various APIs required by reference, URL for defining access websites, creation of Android program interface classes, creation of HttpPost objects, setting of data coding modes, submission of the HttpPost objects and acquisition of server HttpResponse response data;
when json parameters are designed, mac.imsi data of the mobile phone is a standard for uniquely identifying a mobile phone user, and parameters in context are updated each time, so that owned user data is kept to be real and effective;
when the service architecture and the data are ready, coding is carried out, and Linq to Json or Newton of is used for deserializing, the Json obtains the type of the rt field and is used for distinguishing which server service needs to be called for processing the request for each request;
android uploads a file to a server, the server side receives the file to be transmitted by adopting a JavaServ or PHP, the JavaServ is used for receiving the file, and the stream size of each transmission is set so as to effectively prevent the mobile phone from crashing due to insufficient memory.
2. The mobile-side SERVER system according to claim 1, wherein: and step three, receiving data by adopting an http Post method, and configuring an XML (XML) of a server side assembly integration file.
3. The mobile-side SERVER system according to claim 2, wherein: the Post method adopting http receives data and comprises the steps of referencing required APIs, creating Servlet class data ports, accessing persistent layer retrieval data and creating output stream data stream objects.
CN201910746268.2A 2019-08-13 2019-08-13 SERVER SERVER system of mobile terminal Active CN110582083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910746268.2A CN110582083B (en) 2019-08-13 2019-08-13 SERVER SERVER system of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910746268.2A CN110582083B (en) 2019-08-13 2019-08-13 SERVER SERVER system of mobile terminal

Publications (2)

Publication Number Publication Date
CN110582083A CN110582083A (en) 2019-12-17
CN110582083B true CN110582083B (en) 2023-07-11

Family

ID=68811136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910746268.2A Active CN110582083B (en) 2019-08-13 2019-08-13 SERVER SERVER system of mobile terminal

Country Status (1)

Country Link
CN (1) CN110582083B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101199181B (en) * 2006-03-23 2012-03-28 喷流数据有限公司 A browser-plugin based method for advanced https data processing
CN102497452B (en) * 2011-12-28 2014-07-30 山东大学 Online streaming media service method based on embedded terminal
KR102112605B1 (en) * 2013-07-01 2020-05-19 삼성전자 주식회사 Mobile device and Method for controlling network transfer of the mobile device
CN103685300A (en) * 2013-12-23 2014-03-26 蓝盾信息安全技术股份有限公司 Embedded web server

Also Published As

Publication number Publication date
CN110582083A (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN105704091B (en) A kind of session analytic method and system based on SSH agreement
CN107251528B (en) Method and apparatus for providing data originating within a service provider network
US10958735B2 (en) Client connection method and system
US20140280859A1 (en) Sharing control system and method for network resources download information
CN112612629A (en) Method and system for realizing component type data interface
CN102377617A (en) Systems, methods, and apparatus to monitor and authenticate mobile internet activity
CN111917900B (en) Domain name agent request processing method and device
CN105282095A (en) Login verification method and device of virtual desktop
WO2014176991A1 (en) Multimedia service processing apparatus, method and system
CN112187903B (en) Message pushing method and device and message service system
CN112202744A (en) Multi-system data communication method and device
US10129320B2 (en) QoS improvement method, apparatus, and system
CN110582083B (en) SERVER SERVER system of mobile terminal
CN106412893A (en) Rapid Portal authentication method, system, and WIFI device
US20100296637A1 (en) Service Processing Method, Communication System and Related Device
CN113204449B (en) Session backup method, computer-readable storage medium and terminal device
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
CN111935316B (en) Method and device for acquiring front-end equipment catalog
CN114615315A (en) Communication method, device, equipment and storage medium for online conversation
CN102325187A (en) System and method for integrating multiple function services
CN110768855B (en) Method and device for testing linkmzation performance
CN113746851A (en) Agent system and method for supporting real-time analysis of GRPC request
CN104767667A (en) Method for sharing WEB page by multiple screens, terminal equipment and web server
CN115297066B (en) Resource dynamic cooperation method, device, server and medium
CN113347234B (en) Network information acquisition method, device, system, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant