CN108628634A - Message configuration method, device, computer equipment and storage medium - Google Patents

Message configuration method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108628634A
CN108628634A CN201810436312.5A CN201810436312A CN108628634A CN 108628634 A CN108628634 A CN 108628634A CN 201810436312 A CN201810436312 A CN 201810436312A CN 108628634 A CN108628634 A CN 108628634A
Authority
CN
China
Prior art keywords
message
request
instruction
user
format
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.)
Pending
Application number
CN201810436312.5A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201810436312.5A priority Critical patent/CN108628634A/en
Publication of CN108628634A publication Critical patent/CN108628634A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Abstract

The embodiment of the invention discloses a kind of message configuration method, device, computer equipment and storage mediums, wherein the method includes:Obtain the primary message that user is inputted;If receiving the conversion instruction of user, the primary message is converted into the request message of specified format;If receiving the request instruction transmitted by external equipment, corresponding request message is sent to by the external equipment by preset interface according to the request instruction.The embodiment of the present invention can realize the conversion of message format, and simplify message converting operation, improve the usage experience of user.

Description

Message configuration method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of message configuration method, device, computer equipment and Storage medium.
Background technology
In the prior art, for by other message formats that are converted into of primary message, there are one complete conversion methods It goes to complete, if when manually carrying out primary message one by one parsing with assembly in the way of edit code, it usually needs A large amount of program code is edited, causes workload huge, operation can be very cumbersome, and transfer efficiency is relatively low, and with technology Constantly innovation, constantly increases the portfolio of the conversion of primary message, traditional conversion regime cannot meet need instantly It asks and develops.
Invention content
In view of this, a kind of message configuration method of offer of the embodiment of the present invention, device, computer equipment and storage are situated between Matter can realize the conversion of message format, and simplify message converting operation, improve the usage experience of user.
On the one hand, an embodiment of the present invention provides a kind of message configuration method, this method includes:
Obtain the primary message that user is inputted;
If receiving the conversion instruction of user, the primary message is converted into the request message of specified format;
If receiving the request instruction transmitted by external equipment, corresponding request message is passed through according to the request instruction Preset interface is sent to the external equipment.
On the other hand, an embodiment of the present invention provides a kind of message configuration device, described device includes:
Acquiring unit, the primary message inputted for obtaining user;
The primary message is converted into asking for specified format by converting unit if the conversion instruction for receiving user Seek message;
If transmission unit will correspond to for receiving the request instruction transmitted by external equipment according to the request instruction Request message the external equipment is sent to by preset interface.
Another aspect, the embodiment of the present invention additionally provide a kind of computer equipment, including memory, processor and are stored in On the memory and the computer program that can run on the processor, when the processor executes the computer program Realize message configuration method as described above.
It is described computer-readable to deposit in another aspect, the embodiment of the present invention additionally provides a kind of computer readable storage medium Storage media storage there are one either more than one program the one or more programs can by one or more than one Processor execute, to realize message configuration method as described above.
The embodiment of the present invention, can be with by being converted into primary message input by user to meet the request message of specified format The conversion for realizing message format is sent to outside by preset interface and sets when external equipment needs converted request message It is standby, the centralized management of request message may be implemented, the workload of message forwarding is reduced by the forwarding of preset interface, improve and use The usage experience at family.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of schematic flow diagram of message configuration method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram of message configuration method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow diagram of message configuration method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow diagram for message configuration method that another embodiment of the present invention provides;
Fig. 5 is a kind of schematic block diagram of message configuration device provided in an embodiment of the present invention;
Fig. 6 is a kind of another schematic block diagram of message configuration device provided in an embodiment of the present invention;
Fig. 7 is a kind of another schematic block diagram of message configuration device provided in an embodiment of the present invention;
Fig. 8 is a kind of another schematic block diagram of message configuration device provided in an embodiment of the present invention;
Fig. 9 is a kind of another schematic block diagram of message configuration device provided in an embodiment of the present invention;
Figure 10 is a kind of structure composition schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of message configuration method provided in an embodiment of the present invention.This method It may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet computer, laptop and smart machine etc. In terminal.Message configuration method described in the embodiment of the present invention can realize the conversion of message format, and simplify message conversion Operating process improves the usage experience of user.Fig. 1 is the schematic flow diagram of message configuration method provided in an embodiment of the present invention. The method comprising the steps of S101~S103.
S101 obtains the primary message that user is inputted.
In embodiments of the present invention, the primary message refers to the document object for being stored with business datum, the primary report Text can include but is not limited to RTP messages, XML message or JSON messages etc..Specifically, by terminal display page Message typing frame is pre-set, user can pass through a variety of different primary messages of message typing frame typing.
The primary message is converted into the request message of specified format by S102 if receiving the conversion instruction of user.
In embodiments of the present invention, message format choice box institute for selection by the user can be set in terminal display page The message format converted is needed, each message format choice box integrates corresponding message format transcode in advance, according to advance Primary message is converted to the message of specified format by the message format transcode of setting.For example, set message format choosing The message for being converted into XML format can be indicated by selecting frame, be can also indicate that the message for being converted into JSON formats, be also can indicate that conversion At the message of RTP formats, optionally, display text prompt, display text can be set on corresponding message format choice box Word prompt, for prompt the user with the message format choice box can by primary message convert why the request message of format, Such as display text prompt is " being converted to XML format ", " being converted to JSON formats " or " being converted to RTP formats ".
Further, as shown in Fig. 2, the step S102 includes step S201~S203.
S201 reads the message nodal information of primary message if receiving the conversion instruction of user.
In embodiments of the present invention, the message nodal information includes message node, message data and nodal community, described Conversion instruction is triggered the operation of message format choice box by user and is generated, which can be clicking operation, if receiving Message format choice box is clicked to user and generates conversion instruction, reads message node, message data and the node of primary message Attribute.Specifically, when the user clicks message format choice box when, by call the primary message of get () function access message in Portion's data structure, and read the message nodal information of primary message.
The message nodal information is written in the message object of preset format according to default class method by S202.
In embodiments of the present invention, which can be specially put () method, in message format integrated in advance In transcode, which is compiled in after get () function, specifically, message format choice box when the user clicks When, the message internal data structure for calling the primary message of get () function access is first passed through, and read the message section of primary message Point information, then read message nodal information is added in the message object of preset format by put () method, with profit The message of specified format is converted into the message object.
Primary message is converted into the request message of specified format according to the message object of preset format by S203.
In embodiments of the present invention, which can be the object of user's self-defining, and specific object is herein not Limitation, specifically defines the logic for the request message that primary message is converted into specified format in the message object, optionally, The conversion logic of the message object can be that the corresponding character string of message nodal information in primary message is modified, and will repair Message nodal information after changing is converted into the request message of specified format, for example, primary message is XML message, specified format Request message is JSON messages, and XML message is converted to JSON messages can be with specifically, the message node for obtaining XML message be believed Breath, modifies to corresponding character string in the message nodal information, using modified character string as the message of JSON messages Nodal information, and XML message is converted into JSON messages.In the present embodiment, XML lattice can be set in terminal display page Formula choice box, if user needs primary message being converted into XML format message, it is only necessary to by the corresponding conversion lattice of primary message Formula choice box is chosen to the message that XML format can be completed from primary message to XML format and converts, or in terminal display page Middle setting JSON format selection boxes, if user needs primary message being converted into JSON format messages, it is only necessary to by primary report The corresponding format transformation choice box of text is chosen to JSON formats and message conversion etc. can be completed.
S103 reports corresponding request according to the request instruction if receiving the request instruction transmitted by external equipment Text is sent to the external equipment by preset interface.
In embodiments of the present invention, the preset interface can be http interfaces, and the request instruction can be that user exists Produced by the request operation inputted on external equipment, which may include the condition code of requested request message;If User sends request instruction by the request that is inputted on external equipment operation and to terminal, terminal by http interfaces simultaneously The request instruction is parsed, to obtain the condition code of the requested request message of user, is determined by this feature code opposite in terminal The request message answered, and which message for uniquely corresponding to which kind of format finally determined, then call the handle of terminal handler () method goes to search the request message to be responded by handle () method, finally by calling processor The corresponding request message searched is sent to external equipment by response () method.
Further, as shown in figure 3, the step S103 includes step S301~S303.
S301 parses the request instruction received, and determines condition code corresponding with the request instruction.
In embodiments of the present invention, the request instruction includes the condition code of object message, is referred to by parsing the request Condition code included in order facilitates user to further determine that corresponding request message by the condition code parsed;Specifically , can by run it is automatic collect condition code script, scan the code of corresponding request instruction to parse the request instruction, Wherein, which can be one or more, and this is not restricted for the quantity of request instruction, further, the step Rapid S301 may comprise steps of:By request instruction described in default analytical tool automatically scanning, and obtain and the request Instruct corresponding keyword;Described document information is determined according to the keyword.For example, the preset analytical tool has CapAnalysis is (i.e.:Visible instructions analytical tool), first analytical tool can the automatically scanning request instruction, and obtaining should The keyword (such as major key) of request instruction can be determined corresponding with request instruction using acquired keyword (such as major key) Condition code.
It should be noted that required condition code is finally determined by the analysis result parsed, due in request instruction Condition code can uniquely determine which message which kind of format the request instruction corresponds to, therefore utilize identified condition code Corresponding request message in terminal can be uniquely determined.
S302 searches corresponding request message according to described document information.
In embodiments of the present invention, pre-stored condition code differs in the request message of different-format, compares and passes through Whether condition code and the condition code in the request message determined by parsing are identical, specifically, by the condition code parsed Identifier and the identifier in request message it is identical in naming rule, therefore can by judge parsed condition code with Whether condition code in the request message is identical, to uniquely determine it is corresponding be which kind of format which message, then adjust With handle () method of terminal handler, go to search the request message to be responded by handle () method, finally by Call response () method in processor that the corresponding request message searched is sent to external equipment.
The request message found is sent to external equipment by S303 by preset interface.
In embodiments of the present invention, the preset interface can be http interfaces, and the request instruction can be that user exists Produced by the request operation inputted on external equipment, which may include the condition code of requested request message;If User sends request instruction by the request that is inputted on external equipment operation and to terminal, terminal by http interfaces simultaneously The request instruction is parsed, to obtain the condition code of the requested request message of user, is determined by this feature code opposite in terminal The request message answered, and which message for uniquely corresponding to which kind of format finally determined, then call the handle of terminal handler () method goes to search the request message to be responded by handle () method, finally by calling processor The corresponding request message searched is sent to external equipment by response () method.
As seen from the above, the embodiment of the present invention is by being converted into primary message input by user to meet asking for specified format Message is sought, the conversion of message format may be implemented, when external equipment needs converted request message, is sent out by preset interface It send to external equipment, the centralized management of request message may be implemented, the work of message forwarding is reduced by the forwarding of preset interface It measures, improves the usage experience of user.
Referring to Fig. 4, Fig. 4 is a kind of schematic flow diagram of message configuration method provided in an embodiment of the present invention.This method It may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet computer, laptop and smart machine etc. In terminal.Message configuration method described in the embodiment of the present invention can realize the conversion of message format, and simplify message conversion Operating process improves the usage experience of user.Fig. 4 is the schematic flow diagram of message configuration method provided in an embodiment of the present invention. The method comprising the steps of S401~S404.
S401 obtains the primary message of user.
In embodiments of the present invention, the primary message refers to the document object for being stored with business datum, the primary report Text can include but is not limited to RTP messages, XML message or JSON messages etc..Specifically, by terminal display page Message typing frame is pre-set, user can pass through a variety of different primary messages of message typing frame typing.
The primary message is converted into the request message of specified format by S402 if receiving the conversion instruction of user.
In embodiments of the present invention, message format choice box institute for selection by the user can be set in terminal display page The message format converted is needed, each message format choice box integrates corresponding message format transcode in advance, according to advance Primary message is converted to the message of specified format by the message format transcode of setting.For example, set message format choosing The message for being converted into XML format can be indicated by selecting frame, be can also indicate that the message for being converted into JSON formats, be also can indicate that conversion At the message of RTP formats, optionally, display text prompt, display text can be set on corresponding message format choice box Word prompt, for prompt the user with the message format choice box can by primary message convert why the request message of format, Such as display text prompt is " being converted to XML format ", " being converted to JSON formats " or " being converted to RTP formats ".
S403 judges whether that receiving confirmation input by user refers to if receiving the request instruction transmitted by external equipment It enables.
In embodiments of the present invention, external equipment can send request instruction to terminal, and be interacted with terminal to obtain Request message, request instruction transmission have certain information, which may include the feature of requested request message Code;After confirmation instruction refers to the request instruction that terminal receives external equipment, user carries out in the corresponding position of terminal Operation is replied, reply operation can determine whether terminal by corresponding request message is sent to external equipment, such as mobile phone exists After receiving request instruction, which is shown in a manner of pushing page in the current display interface of terminal, and is waited for User, which keys in, confirms instruction, and user can be instructed by the determination control that click pushes below page with input validation.
S404 sends request message corresponding with the request instruction if receiving confirmation instruction by preset interface To the external equipment.
In embodiments of the present invention, if terminal receives the confirmation instruction of user, terminal sends out corresponding request message Give external equipment, wherein the determine instruction can be that user's operation is worked as in terminal produced by the virtual control in the display page , can also be caused by physical button that user's operation is arranged in the terminal;By realizing user and terminal, external equipment The information exchange of tripartite improves the usage experience of user.
Referring to Fig. 5, a kind of corresponding above-mentioned message configuration method, the embodiment of the present invention also proposes a kind of message configuration dress It sets, which includes:Acquiring unit 101, converting unit 102, transmission unit 103.
Wherein, the acquiring unit 101, the primary message inputted for obtaining user.In embodiments of the present invention, institute State primary message and refer to the document object for being stored with business datum, the primary message can include but is not limited to RTP messages, XML message or JSON messages etc..Specifically, by pre-setting message typing frame, Yong Huke in terminal display page To pass through a variety of different primary messages of message typing frame typing.
The primary message is converted into specified format by converting unit 102 if the conversion instruction for receiving user Request message.In embodiments of the present invention, message format choice box can be set for selection by the user in terminal display page The message format of required conversion, each message format choice box integrates corresponding message format transcode in advance, according to pre- Primary message is converted to the message of specified format by the message format transcode being first arranged.For example, set message format Choice box can indicate the message for being converted into XML format, can also indicate that the message for being converted into JSON formats, also can indicate that and turn It changes the message of RTP formats into, optionally, display text prompt, the display can be set on corresponding message format choice box Text prompt, for prompt the user with the message format choice box can by primary message convert why the request report of format Text, if the display text prompt is " being converted to XML format ", " being converted to JSON formats " or " being converted to RTP formats ".
Transmission unit 103, if for receiving the request instruction transmitted by external equipment, it will be right according to the request instruction The request message answered is sent to the external equipment by preset interface.In embodiments of the present invention, the preset interface can be with It is http interfaces, the request instruction can be the request instruction produced by the request operation that user inputs on external equipment It may include the condition code of requested request message;If user is by the request that is inputted on external equipment operation and to terminal Request instruction is sent, terminal is by http interfaces and parses the request instruction, to obtain the requested request message of user Condition code, corresponding request message in terminal is determined by this feature code, and finally which kind of format determination uniquely corresponds to Which message, then call terminal handler handle () method, by handle () method go search to be responded ask Message is sought, is sent to the corresponding request message searched outside finally by the response () method called in processor Portion's equipment.
As seen from the above, the embodiment of the present invention is by obtaining the primary message of user;According to default transformation rule by the original Raw message is converted into meeting the request message of specified format;It, will be corresponding according to the request instruction if receiving request instruction Request message is sent to external equipment by preset interface.The embodiment of the present invention can realize the conversion of message format, and letter Change message converting operation, improves the usage experience of user.
As shown in fig. 6, the converting unit 102, including:
Reading unit 1021 reads the message nodal information of primary message if the conversion instruction for receiving user. In the embodiment of the present invention, the message nodal information includes message node, message data and nodal community, the conversion instruction by User triggers the operation of message format choice box and generates, which can be clicking operation, if receiving user's click Message format choice box and generate conversion instruction, read message node, message data and the nodal community of primary message.Specifically Ground, when the user clicks when message format choice box, by the message internal data knot for calling the primary message of get () function access Structure, and read the message nodal information of primary message.
Writing unit 1022, the message pair for the message nodal information to be written to preset format according to default class method As in.In embodiments of the present invention, which can be specially put () method, turn in message format integrated in advance In replacement code, which is compiled in after get () function, specifically, when the user clicks when message format choice box, The message internal data structure for calling the primary message of get () function access is first passed through, and reads the message node letter of primary message Breath, then read message nodal information is added in the message object of preset format by put () method, it is somebody's turn to do with utilizing Message object is converted into the message of specified format.
Conversion subunit 1023, for primary message to be converted into asking for specified format according to the message object of preset format Seek message.In embodiments of the present invention, which can be the object of user's self-defining, and specific object is unlimited herein System, specifically defines the logic for the request message that primary message is converted into specified format in the message object, optionally, should The conversion logic of message object can be that the corresponding character string of message nodal information in primary message is modified, and will change Message nodal information afterwards is converted into the request message of specified format, for example, primary message is XML message, specified format is asked Ask message be JSON messages, by XML message be converted to JSON messages can with specifically, obtain XML message message nodal information, It modifies to corresponding character string in the message nodal information, using modified character string as the message node of JSON messages Information, and XML message is converted into JSON messages.In the present embodiment, XML format choosing can be set in terminal display page Frame is selected, if user needs primary message being converted into XML format message, it is only necessary to select the corresponding format transformation of primary message It selects frame and is chosen to XML format and message conversion from primary message to XML format can be completed, or set in terminal display page JSON format selection boxes are set, if user needs primary message being converted into JSON format messages, it is only necessary to by primary message pair The format transformation choice box answered is chosen to JSON formats and message conversion etc. can be completed.
As shown in fig. 7, the transmission unit 103, including:
First resolution unit 1031 for being parsed to the request instruction received, and determines and the request instruction Corresponding condition code.In embodiments of the present invention, the request instruction includes the condition code of object message, described in parsing Condition code included in request instruction facilitates user to further determine that corresponding request report by the condition code parsed Text;Specifically, the code of corresponding request instruction can be scanned to parse described ask by running automatic collection condition code script Ask instruction, wherein the request instruction can be one or more, and this is not restricted for the quantity of request instruction, further, As shown in figure 8, first resolution unit 1031 may include:Automatically scanning unit 1031a, for by presetting analytical tool Request instruction described in automatically scanning, and obtain keyword corresponding with the request instruction;Determination unit 1032b is used for root Described document information is determined according to the keyword.Optionally, the preset analytical tool has CapAnalysis (i.e.:Visualization refers to Enable analytical tool), first analytical tool can the automatically scanning request instruction, and the keyword for obtaining the request instruction is (such as main Key), it can determine condition code corresponding with request instruction using acquired keyword (such as major key).
It should be noted that required condition code is finally determined by the analysis result parsed, due in request instruction Condition code can uniquely determine which message which kind of format the request instruction corresponds to, therefore utilize identified condition code Corresponding request message in terminal can be uniquely determined.
First searching unit 1032, for searching corresponding request message according to described document information.Implement in the present invention Example in, pre-stored condition code differs in the request message of different-format, compare by condition code determined by parsing with Whether the condition code in the request message is identical, specifically, by the identifier and request message of the condition code parsed Identifier it is identical in naming rule, therefore can pass through and judge parsed condition code and the feature in the request message Code it is identical whether, to uniquely determine it is corresponding be which kind of format which message, then call terminal handler handle () method goes to search the request message to be responded by handle () method, finally by calling processor The corresponding request message searched is sent to external equipment by response () method.
Transmission sub-unit 1033, for the request message found to be sent to external equipment by preset interface. In the embodiment of the present invention, the preset interface can be http interfaces, and the request instruction can be user on external equipment Produced by the request operation of input, which may include the condition code of requested request message;If user by The request inputted on external equipment operates and sends request instruction to terminal, and terminal is by http interfaces and parses the request Instruction determines that corresponding request is reported in terminal to obtain the condition code of the requested request message of user by this feature code Text, and which message for uniquely corresponding to which kind of format finally determined, handle () method of terminal handler is then called, is led to It crosses handle () method to go to search the request message to be responded, finally by the response () method called in processor The corresponding request message searched is sent to external equipment.
Referring to Fig. 9, a kind of corresponding above-mentioned message configuration method, the embodiment of the present invention also proposes a kind of message configuration dress It sets, which includes:Acquiring unit 201, converting unit 202, judging unit 203, the second transmission sub-unit 204.
Wherein, the acquiring unit 201, the primary message inputted for obtaining user.In embodiments of the present invention, institute State primary message and refer to the document object for being stored with business datum, the primary message can include but is not limited to RTP messages, XML message or JSON messages etc..Specifically, by pre-setting message typing frame, Yong Huke in terminal display page To pass through a variety of different primary messages of message typing frame typing.
The primary message is converted into specified format by converting unit 202 if the conversion instruction for receiving user Request message.In embodiments of the present invention, message format choice box can be set for selection by the user in terminal display page The message format of required conversion, each message format choice box integrates corresponding message format transcode in advance, according to pre- Primary message is converted to the message of specified format by the message format transcode being first arranged.For example, set message format Choice box can indicate the message for being converted into XML format, can also indicate that the message for being converted into JSON formats, also can indicate that and turn It changes the message of RTP formats into, optionally, display text prompt, the display can be set on corresponding message format choice box Text prompt, for prompt the user with the message format choice box can by primary message convert why the request report of format Text, if the display text prompt is " being converted to XML format ", " being converted to JSON formats " or " being converted to RTP formats ".
If judging unit 203 judges whether to receive user defeated for receiving the request instruction transmitted by external equipment The confirmation instruction entered.In embodiments of the present invention, external equipment can send request instruction to terminal, and with terminal interact with Request message is obtained, request instruction transmission has certain information, which may include requested request message Condition code;After confirmation instruction refers to the request instruction that terminal receives external equipment, user the corresponding position of terminal into Capable reply operation, reply operation can determine whether terminal by corresponding request message is sent to external equipment, such as hand After receiving request instruction, which is shown in a manner of pushing page in the current display interface of terminal machine, and It waits for user to key in and confirms instruction, user can be instructed by the determination control that click pushes below page with input validation.
Second transmission sub-unit 204 is sent and the request instruction if confirming instruction for receiving by preset interface Corresponding request message is to the external equipment.If terminal receives the confirmation instruction of user, terminal is by corresponding request Message is sent to external equipment, wherein the determine instruction can be virtual control of the user's operation in terminal in showing the page It is generated, can also be caused by physical button that user's operation is arranged in the terminal;By realizing user and terminal, outer The information exchange of portion equipment tripartite, improves the usage experience of user.
In hardware realization, the above acquiring unit 101, converting unit 102, transmission unit 103 etc. can be in the form of hardware It is embedded in or independently of in the device of data processing, can also be stored in the memory of data processing equipment in a software form, The corresponding operation of above each unit is executed so that processor calls.The processor can be central processing unit (CPU), micro- place Manage device, microcontroller etc..
Above-mentioned message configuration device can be implemented as a kind of form of computer program, and computer program can be in such as Figure 10 Shown in run on computer equipment.
Figure 10 is a kind of structure composition schematic diagram of computer equipment of the present invention.The equipment can be terminal, can also be Server, wherein terminal can be smart mobile phone, tablet computer, laptop, desktop computer, personal digital assistant and wear Wearing formula device etc. has the electronic device of communication function.Server can be independent server, can also be multiple servers The server cluster of composition.Referring to Fig.1 0, the computer equipment 500 include the processor 502 connected by system bus 501, Non-volatile memory medium 503, built-in storage 504 and network interface 505.Wherein, the non-volatile of the computer equipment 500 is deposited Storage media 503 can storage program area 5031 and computer program 5032, which is performed, and may make place Reason device 502 executes a kind of message configuration method.The processor 502 of the computer equipment 500 is calculated for offer and control ability, Support the operation of entire computer equipment 500.The built-in storage 504 is the computer program in non-volatile memory medium 503 5032 operation provides environment, when which is executed by processor, processor 502 may make to execute a kind of message configuration Method.The network interface 505 of computer equipment 500 such as sends the task dispatching of distribution for carrying out network communication.Art technology Personnel are appreciated that structure shown in Figure 10, only with the block diagram of the relevant part-structure of application scheme, do not constitute Restriction to the computer equipment that application scheme is applied thereon, specific computer equipment may include than as shown in the figure More or fewer components either combine certain components or are arranged with different components.
Wherein, following operation is realized when the processor 502 executes the computer program:
Obtain the primary message that user is inputted;
If receiving the conversion instruction of user, the primary message is converted into the request message of specified format;
If receiving the request instruction transmitted by external equipment, corresponding request message is passed through according to the request instruction Preset interface is sent to the external equipment.
In one embodiment, if the conversion instruction for receiving user, the primary message is converted into specified lattice The request message of formula, including:
If receiving the conversion instruction of user, the message nodal information of primary message is read;
The message nodal information is written in the message object of preset format according to default class method;
Primary message is converted into the request message of specified format according to the message object of preset format.
In one embodiment, the message nodal information includes message node, message data and nodal community.
In one embodiment, if the request instruction received transmitted by external equipment, according to the request instruction Corresponding request message is sent to the external equipment by preset interface, including:
The request instruction received is parsed;
Condition code is searched in content after parsing;
Corresponding request message is searched according to described document information;
The request message found is sent to external equipment by preset interface.
In one embodiment, the described pair of request instruction received parses, including:
By request instruction described in default analytical tool automatically scanning, and obtain key corresponding with the request instruction Word;
Described document information is determined according to the keyword.
In one embodiment, the default analytical tool includes CapAnalysis tools.
In one embodiment, if the request instruction received transmitted by external equipment, according to the request instruction Corresponding request message is sent to the external equipment by preset interface, including:
If receiving the request instruction transmitted by external equipment, judge whether to receive confirmation instruction input by user;
If receiving confirmation instruction, corresponding with request instruction request message is sent to described by preset interface External equipment.
It will be understood by those skilled in the art that the embodiment of computer equipment shown in Figure 10 is not constituted to computer The restriction of equipment specific composition, in other embodiments, computer equipment may include components more more or fewer than diagram, or Person combines certain components or different components arrangement.For example, in some embodiments, computer equipment only includes memory And processor, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 10, herein It repeats no more.
The present invention provides a kind of computer readable storage medium, computer-readable recording medium storage there are one or one A procedure above, the one or more programs can be executed by one or more than one processor, with realize with Lower step:
Obtain the primary message that user is inputted;
If receiving the conversion instruction of user, the primary message is converted into the request message of specified format;
If receiving the request instruction transmitted by external equipment, corresponding request message is passed through according to the request instruction Preset interface is sent to the external equipment.
In one embodiment, if the conversion instruction for receiving user, the primary message is converted into specified lattice The request message of formula, including:
If receiving the conversion instruction of user, the message nodal information of primary message is read;
The message nodal information is written in the message object of preset format according to default class method;
Primary message is converted into the request message of specified format according to the message object of preset format.
In one embodiment, the message nodal information includes message node, message data and nodal community.
In one embodiment, described to be sent to corresponding request message by preset interface according to the request instruction The external equipment, including:
The request instruction received is parsed;
Condition code is searched in content after parsing;
Corresponding request message is searched according to described document information;
The request message found is sent to external equipment by preset interface.
In one embodiment, the described pair of request instruction received parses, including:
By request instruction described in default analytical tool automatically scanning, and obtain key corresponding with the request instruction Word;
Described document information is determined according to the keyword.
In one embodiment, the default analytical tool includes CapAnalysis tools.
In one embodiment, if the request instruction received transmitted by external equipment, according to the request instruction Corresponding request message is sent to the external equipment by preset interface, including:
If receiving the request instruction transmitted by external equipment, judge whether to receive confirmation instruction input by user;
If receiving confirmation instruction, corresponding with request instruction request message is sent to described by preset interface External equipment.
Present invention storage medium above-mentioned includes:Magnetic disc, CD, read-only memory (Read-Only Memory, The various media that can store program code such as ROM).
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application-specific integrated circuit) it realizes.
Step in message configuration method of the embodiment of the present invention can according to actual needs the adjustment of carry out sequence, merge and delete Subtract.
Unit in message configuration device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (10)

1. a kind of message configuration method, which is characterized in that the method includes:
Obtain the primary message that user is inputted;
If receiving the conversion instruction of user, the primary message is converted into the request message of specified format;
If receiving the request instruction transmitted by external equipment, corresponding request message is passed through according to the request instruction and is preset Interface is sent to the external equipment.
2. the method as described in claim 1, which is characterized in that, will be described primary if the conversion instruction for receiving user Message is converted into the request message of specified format, including:
If receiving the conversion instruction of user, the message nodal information of primary message is read;
The message nodal information is written in the message object of preset format according to default class method;
Primary message is converted into the request message of specified format according to the message object of preset format.
3. method as claimed in claim 2, which is characterized in that the message nodal information includes message node, message data And nodal community.
4. the method as described in claim 1, which is characterized in that described to be led to corresponding request message according to the request instruction It crosses preset interface and is sent to the external equipment, including:
The request instruction received is parsed, and determines condition code corresponding with the request instruction;
Corresponding request message is searched according to described document information;
The request message found is sent to external equipment by preset interface.
5. method as claimed in claim 4, which is characterized in that the described pair of request instruction received parses, including:
By request instruction described in default analytical tool automatically scanning, and obtain keyword corresponding with the request instruction;
Described document information is determined according to the keyword.
6. method as claimed in claim 5, which is characterized in that the default analytical tool includes CapAnalysis tools.
7. the method as described in claim 1, which is characterized in that if the request instruction received transmitted by external equipment, Corresponding request message is sent to the external equipment by preset interface according to the request instruction, including:
If receiving the request instruction transmitted by external equipment, judge whether to receive confirmation instruction input by user;
If receiving confirmation instruction, request message corresponding with the request instruction is sent to the outside by preset interface Equipment.
8. a kind of message configuration device, which is characterized in that described device includes:
Acquiring unit, the primary message inputted for obtaining user;
The primary message is converted into the request report of specified format by converting unit if the conversion instruction for receiving user Text;
If transmission unit is asked according to the request instruction by corresponding for receiving the request instruction transmitted by external equipment Message is asked to be sent to the external equipment by preset interface.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes that claim 1-5 such as appoints when executing the computer program Message configuration method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or More than one program, the one or more programs can be executed by one or more than one processor, to realize Message configuration method as described in any one in claim 1-5.
CN201810436312.5A 2018-05-09 2018-05-09 Message configuration method, device, computer equipment and storage medium Pending CN108628634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810436312.5A CN108628634A (en) 2018-05-09 2018-05-09 Message configuration method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810436312.5A CN108628634A (en) 2018-05-09 2018-05-09 Message configuration method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108628634A true CN108628634A (en) 2018-10-09

Family

ID=63692196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810436312.5A Pending CN108628634A (en) 2018-05-09 2018-05-09 Message configuration method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108628634A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783375A (en) * 2018-12-27 2019-05-21 四川驹马科技有限公司 A kind of parsing of data, analogy method
CN109787974B (en) * 2019-01-14 2021-06-22 浙江数链科技有限公司 Message data stream generation method and device, computer equipment and storage medium
CN114124918A (en) * 2021-11-25 2022-03-01 中国银行股份有限公司 Message parsing method and device
CN115292624A (en) * 2022-10-08 2022-11-04 成都同步新创科技股份有限公司 Universal message processing method and device based on HTTP (hyper text transport protocol)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185901A (en) * 2011-04-19 2011-09-14 北京神州数码思特奇信息技术股份有限公司 Client message conversion method
CN102546442A (en) * 2012-03-09 2012-07-04 北京神州数码思特奇信息技术股份有限公司 Communication protocol conversion technology
CN104410667A (en) * 2014-10-31 2015-03-11 北京思特奇信息技术股份有限公司 Method and system for conversion from XML message to JSON message
CN105049281A (en) * 2015-06-25 2015-11-11 浪潮(北京)电子信息产业有限公司 Message parsing method and equipment
CN105138613A (en) * 2015-08-07 2015-12-09 北京思特奇信息技术股份有限公司 Business object and xml message mutual conversion method and system
CN105227667A (en) * 2015-10-14 2016-01-06 深圳市金证科技股份有限公司 Message forwarding method and platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185901A (en) * 2011-04-19 2011-09-14 北京神州数码思特奇信息技术股份有限公司 Client message conversion method
CN102546442A (en) * 2012-03-09 2012-07-04 北京神州数码思特奇信息技术股份有限公司 Communication protocol conversion technology
CN104410667A (en) * 2014-10-31 2015-03-11 北京思特奇信息技术股份有限公司 Method and system for conversion from XML message to JSON message
CN105049281A (en) * 2015-06-25 2015-11-11 浪潮(北京)电子信息产业有限公司 Message parsing method and equipment
CN105138613A (en) * 2015-08-07 2015-12-09 北京思特奇信息技术股份有限公司 Business object and xml message mutual conversion method and system
CN105227667A (en) * 2015-10-14 2016-01-06 深圳市金证科技股份有限公司 Message forwarding method and platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
樊燕红等: "信息交换报文动态解析器的设计与实现", 《信息技术与信息化》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783375A (en) * 2018-12-27 2019-05-21 四川驹马科技有限公司 A kind of parsing of data, analogy method
CN109783375B (en) * 2018-12-27 2022-04-12 四川驹马科技有限公司 Data analysis and simulation method
CN109787974B (en) * 2019-01-14 2021-06-22 浙江数链科技有限公司 Message data stream generation method and device, computer equipment and storage medium
CN114124918A (en) * 2021-11-25 2022-03-01 中国银行股份有限公司 Message parsing method and device
CN115292624A (en) * 2022-10-08 2022-11-04 成都同步新创科技股份有限公司 Universal message processing method and device based on HTTP (hyper text transport protocol)
CN115292624B (en) * 2022-10-08 2023-08-04 成都同步新创科技股份有限公司 General message processing method and device based on HTTP protocol

Similar Documents

Publication Publication Date Title
CN108628634A (en) Message configuration method, device, computer equipment and storage medium
EP2943859B1 (en) System, method, and computer-readable medium for managing edge devices
JP5911262B2 (en) Information processing apparatus, information processing apparatus control method, and program
US8554805B2 (en) Methods and systems for importing source data
US7827553B2 (en) Registering processing flow in accordance with user parameter
US7325076B1 (en) System for dynamic information exchange
CN104115139A (en) Providing configurable workflow capabilities
CN102130843B (en) Intelligent-document-platform-based multi-channel information acquisition and exchange method
CN1973544A (en) Program selection support device
JP2011076550A (en) Application cooperation method and system
KR102016277B1 (en) Intellectual Property Support Systems, Intellectual Property Support Methods, and Intellectual Property Support Programs
KR100590904B1 (en) Apparatus and method for producing link indication information
US9710443B2 (en) Simplifying access to documents accessed recently in a remote system
JP2000298647A (en) System for remotely utilizing application and method for constructing user interface
CN104281754A (en) Computer-aided design multi-user design negotiation system and method thereof
JP4529766B2 (en) Information providing system, information providing method, server, and information providing program
US20110283180A1 (en) Communication method, information terminal apparatus, display apparatus, and communication system comprising these
KR20000059969A (en) Method for information service on demand through user menu editting
JP5932388B2 (en) Image processing apparatus, control method therefor, and program
JP5381437B2 (en) Image information transmitting apparatus and image information transmitting program
US8170982B2 (en) Computer readable medium and information processing apparatus
JP7359253B2 (en) Information processing equipment and programs
JP6390287B2 (en) Information processing system
JP2010211373A (en) Management device
JP2005234906A (en) Customer management system

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181009

WD01 Invention patent application deemed withdrawn after publication