[go: up one dir, main page]

CN103023870B - The output intent of data, device and equipment in a kind of message - Google Patents

The output intent of data, device and equipment in a kind of message Download PDF

Info

Publication number
CN103023870B
CN103023870B CN201210458970.7A CN201210458970A CN103023870B CN 103023870 B CN103023870 B CN 103023870B CN 201210458970 A CN201210458970 A CN 201210458970A CN 103023870 B CN103023870 B CN 103023870B
Authority
CN
China
Prior art keywords
resource
message
review information
type
identifier
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
CN201210458970.7A
Other languages
Chinese (zh)
Other versions
CN103023870A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201210458970.7A priority Critical patent/CN103023870B/en
Publication of CN103023870A publication Critical patent/CN103023870A/en
Application granted granted Critical
Publication of CN103023870B publication Critical patent/CN103023870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

Embodiments provide the output intent of data, device and equipment in a kind of message, relate to networking technology area.Described method includes: identify the universal resource identifier in message;Obtain the resource type of resource pointed by described universal resource identifier;Determine the pre-review information of described resource according to described resource type, and export described pre-review information.The pre-review information that the embodiment of the present invention is corresponding by showing the resource pointed by universal resource identifier, such that it is able to identify the resource that URI points to intuitively.Further, user need not trigger external program again and carries out URI resolving acquisition resource, simplifies the operation of user.

Description

The output intent of data, device and equipment in a kind of message
Technical field
The present invention relates to network technology, particularly relate to the output intent of data in a kind of message, device and Equipment.
Background technology
At present, user often adds universal resource identifier (Uniform in conversation class message Resource Identifier, is called for short URI), with to the other side's content recommendation.Such as, mobile phone is being used to receive Short message, or when using MSN to receive instant message, the most often with URI. Wherein URI can to and every kind of resource such as html document, image available on network, video segment, Program positions.Therefore, the URI in message can point to some resource in network.
If user wants to know what resource described URI has pointed to, or wants to check described resource, the most logical Often need to click on described URI, and then the application program outside triggering, by external application to described URI process processes, thus obtains and open described resource.
But, during URI in above-mentioned method message to be obtained, need the program that clicking trigger is corresponding, The resource pointed by URI, complex operation just can be checked by this program.
Summary of the invention
Embodiments provide the output intent of data, device and equipment in a kind of message, can solve The problem that certainly in message, the acquisition methods of the resource that URI points to is loaded down with trivial details.
In order to solve the problems referred to above, the embodiment of the invention discloses the output intent of data in a kind of message, Including:
Identify the universal resource identifier in message;
Obtain the resource type of resource pointed by described universal resource identifier;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
It is preferred that the universal resource identifier in described identification message, in the following way: identify message In meet the character string of preset format as universal resource identifier.
It is preferred that when described universal resource identifier is the universal resource identifier redirecting type, described Obtain the resource type of resource pointed by described universal resource identifier, in the following way: obtain institute State the universal resource identifier resource type in the resource eventually pointed to after redirecting.
It is preferred that the predetermined fraction of the predetermined fraction that described pre-review information is described resource, described resource The application that the resource type of preview graph, the icon indicating the resource type of described resource or described resource is corresponding The shortcut of program.
It is preferred that the described pre-review information determining described resource according to described resource type, use such as lower section Formula: the resource type determining described resource is webpage or picture;Show described webpage or picture in the buffer, And the predetermined fraction of described webpage or picture is carried out sectional drawing, using sectional drawing result as pre-review information.
It is preferred that the described pre-review information determining described resource according to described resource type, use such as lower section Formula: the resource type determining described resource is video or audio frequency, to indicate described resource as video or audio frequency Icon as pre-review information, and described pre-review information is linked to described resource.
It is preferred that described according to described resource and described resource type determine described resource pre-review information it Before, described method also includes: obtain described resource according to described universal resource identifier.
It is preferred that the described pre-review information of described output, use following form: by described message and described pre- Information of looking at exports with preset mode.
It is preferred that after universal resource identifier in identification message, also include: according to described general money Source indicator symbol obtains described resource.
The embodiment of the invention also discloses the output device of data in a kind of message, including:
Identification module, for identifying the universal resource identifier in message;
Acquisition module, for obtaining the resource type of the resource pointed by described universal resource identifier;
Output module, for determining the pre-review information of described resource according to described resource type, and exports institute State pre-review information.
It is preferred that described identification module, specifically for identifying that the character string meeting preset format in message is made For universal resource identifier.
It is preferred that described acquisition module, specifically for being to redirect type when described universal resource identifier During universal resource identifier, obtain described universal resource identifier in the resource eventually pointed to after redirecting Resource type.
It is preferred that the predetermined fraction of the predetermined fraction that described pre-review information is described resource, described resource The application that the resource type of preview graph, the icon indicating the resource type of described resource or described resource is corresponding The shortcut of program.
It is preferred that described output module, specifically for determining that the resource type of described resource is webpage or figure Sheet;Show described webpage or picture in the buffer, and carry out cutting to the predetermined fraction of described webpage or picture Figure, using sectional drawing result as pre-review information.
It is preferred that described output module, specifically for determining that the resource type of described resource is video or sound Frequently, to indicate described resource as video or the icon of audio frequency is as pre-review information, and described pre-review information chain Receive described resource.
It is preferred that described acquisition module, it is additionally operable to determining institute according to described resource and described resource type Before stating the pre-review information of resource, obtain described resource according to described universal resource identifier;Or identifying After universal resource identifier in message, obtain described resource according to described universal resource identifier.
It is preferred that described output module, specifically for by described message and described pre-review information with preset side Formula exports.
The embodiment of the invention also discloses a kind of equipment, described equipment includes:
One or more processors;
Memorizer;With
One or more modules, the one or more module stores is in described memorizer and is configured to Being performed by the one or more processor, wherein, the one or more module has a following function:
Identify the universal resource identifier in message;
Obtain the resource type of resource pointed by described universal resource identifier;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
The present invention includes advantages below:
First, in the embodiment of the present invention after obtaining message, from message, identify URI, and obtain The resource type of the resource pointed by URI.The pre-review information of this resource is determined further according to resource type, and Export described pre-review information.In the embodiment of the present invention, the resource type of resource is different, and it is pre-that it is used Information of looking at is the most different, and in the embodiment of the present invention, resource can carry out defeated with different pre-review informations in the message Going out, method is flexible, it is simple to embody the feature of resource, such that it is able to identify the money that URI points to intuitively Source.Further, user need not trigger external program again and carries out URI resolving acquisition resource, simplifies use The operation at family.
Secondly, in the embodiment of the present invention, can determine according to the resource type of the resource pointed by URI The pre-review information of resource, this pre-review information can be the predetermined fraction of resource, the preview graph of this predetermined fraction, Indicate the quick of application program corresponding to the resource type of the icon of the resource type of described resource or resource Mode, can represent the resource pointed by URI to use different forms, and the way of output of resource is various.
Again, when the embodiment of the present invention exports pre-review information, can be with preset mode output message with pre- Look at information, can export pre-review information, or output message and pre-review information respectively in the message, message and The mode of resource pointed by URI is various.
Accompanying drawing explanation
Fig. 1 is the output intent flow chart of data in a kind of message described in the embodiment of the present invention;
Fig. 2 is the first output intent flow chart of data in message described in the embodiment of the present invention;
Fig. 3 is the second output intent flow chart of data in message described in the embodiment of the present invention;
Fig. 4 is the output device structure chart of data in a kind of message described in the embodiment of the present invention.
Detailed description of the invention
Understandable, below in conjunction with the accompanying drawings for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from The present invention is further detailed explanation with detailed description of the invention.
User uses mobile phone to receive short message, or when using MSN to receive instant message, network In some resource may not have by being directly transferred to user in the message, but use the shape of URI Formula is transmitted, and described URI has pointed to described resource, can obtain described resource thereby through described URI.
For this situation, the embodiment of the present invention proposes the output intent of data in a kind of message, for URI in message can be carried out according to resource described in certain mode in the message by operations such as parsings Display.Concrete grammar is as follows:
With reference to Fig. 1, give the output intent flow chart of data in a kind of message described in the embodiment of the present invention.
Step 101, identifies the URI in message.
If the embodiment of the present invention exists in message URI, can determine according to the resource pointed by this URI How in this resource of message display.Therefore getting first after message, first having to this message is examined Survey, detect in this message whether there is URI.For there is the message of URI, if the most only showing This URI, user is not aware that what the resource that this URI points to is, in addition it is also necessary to triggering external program acquisition, Playing this resource, method is the most loaded down with trivial details.
In the embodiment of the present invention, detect after message exists URI, the URI in message can be identified. Wherein, described URI is typically made up of one group of character string, therefore can enter the character string in message Row identifies.Certainly, URI may possess certain form, or meets some rule, and then can also use The modes such as this form or employing regular expression are identified, thus the URI in other outbound message.
It is preferred that the resource in described URI sensing network, the such as multimedia resource such as video, picture, The and for example site resource such as webpage.
Step 102, the resource type of acquisition resource pointed by URI.
Above-mentioned identify URI after, this URI can be resolved, URI is generally configured with some form Or rule, then can identify this URI according to form or rule, it is also possible to right according to form or rule URI resolves, thus obtains the relevant information of the resource in the network pointed by URI, including this money The resource type in source.
In the embodiment of the present invention, resource type can be that picture, video, positional information are relative with website etc. The type that scope is bigger;Can also be jpg, bmp form of picture, avi, rmvb lattice of video The concrete classification under a certain type such as formula, this is not limited by the application.
Step 103, determines the pre-review information of resource, and exports this pre-review information according to resource type.
After getting the resource type of resource, this resource type can determine how this resource of output, i.e. Determine the pre-review information of message and this resource, then export this pre-review information.Wherein, described pre-review information It it is the content that resource can be carried out generality displaying.
Such as, resource is picture, can show described picture the most in the message.If resource is audio frequency, Then can show broadcasting icon in the message, just can play after click.If resource is a certain network address, Then can show site title or Net station logo (logo or trade mark) in the message.It is of course also possible to it is the most defeated Outbound message exports pre-review information again.
In sum, in the embodiment of the present invention after obtaining message, directly can identify URI from message, And obtain the resource type of resource pointed by URI.The preview of this resource is determined further according to this resource type Information, and export described pre-review information.In the embodiment of the present invention, the resource type of resource is different, its institute The pre-review information used is the most different, and in the embodiment of the present invention, resource in the message can be according to different previews Information exports, and method is flexible, it is simple to embody the feature of resource, such that it is able to identify intuitively The resource that URI points to.Further, user need not calling external program and resolves URI, obtains money Source, operational approach is simple.
In the embodiment of the present invention, identify that in message, the method for URI includes:
Identify in message and meet the character string of preset format as URI.
URI is a kind of primitive form of address in network, in certain unified (standardized) mode The simple characters string of mark resource.Thus the form that can be used according to URI, URI is known Not, parsing etc..
In actual treatment, message and may not only comprise the character string of composition URI, also comprise some its His character string, thus according to preset format, all kinds of character strings in message are detected, identify, from And identify the character string constituting URI, i.e. identify the URI in message.
In the embodiment of the present invention, a kind of preset format of URI can be ": //<complete path>".
Wherein,<complete path>represents the path of the resource pointed by URI, i.e. resource address.
Specifically,<complete path>can include<authority><path>, namely resource address includes: <authority>with<path>
Wherein,<authority>represents the top element in whole URI, for URI is managed, In URI, the part in addition to<authority>is all managed by<authority>.
<path>include the concrete data of the address of resource pointed by URI, and specifically the depositing of resource Storage address, in order on the basis of<authority>, carries out the most clearly to the address of resource, Referring specifically to 3.3 parts in RFC2396.
Such as, a string character in message is: //<complete path>, and can resolve it is URI, then After ": // " for resource address, the resource address of this URI is example.com.
In the embodiment of the present invention, the another kind of preset format of URI can be "<scheme>: //<complete path>?<query>”.
Wherein, "<scheme>" is protocol-identifier, can be used to indicate that the analysis mode of this URI, tool Body,<scheme>can be designated and resolve the required agreement used of current URI.I.e. by<scheme> May determine that the agreement that current URI is used, then according to this agreement relevant regulations, it is possible to currently URI resolves.
Wherein, the Internet numeral distributor gear (Internet Assigned Numbers Authority, IANA) Have been allocated for many scheme as standard.Wherein, the resource that the URI of some scheme points to is For people readable, audible, such as HTTP (HTTP-Hypertext transfer protocol, Http), file transfer protocol (FTP) (File Transfer Protocol, ftp) etc.;Some is cannot direct quilt People identifies, such as tel (making a telephone call to ...), mailto (mailing to ...), geo (the geographical position of display Put) etc..Therefore, the agreement identified according to<scheme>, it may be determined which kind of money what URI transmitted is Source.
“?" it is separator, it is used for distinguishing "<complete path>" and "<query>", as used "/" makes a distinction.
"<query>" is query string, for identifying the querying condition of the resource that current URI performs.
In actual treatment, in a URI, must be for comprising<complete path>, i.e. resource address, And<scheme>and<query>is non-essential, URI can comprise<scheme>and<query>, Can also comprise<scheme>and<query>one of them, even<scheme>and<query>do not wrap Contain.
Such as, character string " http://example.com/one.jpg " meets preset format, is carrying out it During identification,<scheme>part be http, i.e. use http agreement resolves, after ": // " and Was that<complete path>part, i.e. example.com are this URI indications before separator "/" To the path of resource, is<query>part after separator "/", i.e. one.jpg is this path The querying condition of lower resource, can filter out, by this querying condition, the resource that current URI points to.
In the embodiment of the present invention, if URI is: //example.com/one.jpg, do not comprise<scheme>portion Point, then to give tacit consent to and<scheme>part of URI is added to http, i.e. acquiescence uses http agreement to solve Analysis.
It is understood, therefore, that when the URI in message is http://example.com/one.jpg Or: during //example.com/one.jpg, sensing is unified resource.
In the embodiment of the present invention, when URI is the URI redirecting type, obtain pointed by this URI The resource type of resource, in the following way:
Obtain the URI resource type in the resource eventually pointed to after redirecting.
In the agreement that in the embodiment of the present invention,<scheme>part of URI is comprised, a part of agreement is Support redirects, and i.e. uses resource address in the URI of this agreement to be not likely to be this resource of storage finally Location, and be intended to by accessing this resource address, then carry out redirecting thus jump to by storing this resource On final address, get the resource type of the resource that URI points to further.
Said process is illustrated below in conjunction with embodiment.
After identifying URI from message, it is possible to get the resource ground of resource pointed by URI Location, then sends access request to described resource, to get the resource type of resource and resource.Specifically As follows:
It is assumed that the URI identified from message is http://omz.me/2l, according to the default lattice of URI Formula, protocol-identifier<scheme>is http, and resource address<complete path>is omz.me, query string <query>is 2l.
Then can get resource address omz.me, and send access request to this resource address.Generally Resource in network is all managed by a server, therefore after sending access request to resource address , the server belonging to this resource address will send return message, then correspondence can receive described money The return information of the server of source address.
In embodiments of the present invention, the agreement represented by protocol-identifier can be supported to redirect, for example with http Agreement, or https agreement.
Wherein, http and https agreement supports that permanent redirecting redirects with temporary.Concrete, permanent Redirecting the conditional code 301 of return, temporary redirecting returns conditional code 302.Wherein, 301 usual answering is redirected Being used in the change of website domain name, Website server redirects by 301 and the user accessing old domain name is transferred to On new domain name.Typical case's application that 302 redirect is short network address service.Additionally, some agreement is supported from return The type of resource is obtained, such as http (s) agreement in Tou.Http (s) refers to http or https.
If during identifying the resource that URI points to, server returns above conditional code, then need URI after redirecting is resolved, identified, the URI after this redirects is placed on the return information of http (s), Or claim in the location field of return head.Then resource address can be obtained from the URI after redirecting, Continue to access.
In the embodiment of the present invention, when needs redirect, obtain the resource address in URI, to resource address Send access request, receive return information, then judge whether that the process needing to redirect is the mistake of a circulation Journey, during until the final address getting resource i.e. need not redirect, or until reaches maximum time redirected After number, above-mentioned cyclic process terminates.
For above-mentioned URI:http: //omz.me/2l, when the resource address of this URI is conducted interviews, can As follows with the return information that obtains:
HTTP/1.1301Moved Permanently
Date:Thu,13Sep 201208:56:20GMT
Server:Apache
Set-Cookie:bb2_screener_=1347526580+216.131.120.218;Path=/
Location:http://ww2.sinaimg.cn/large/4d6b87b3jw1dwuzop7zfoj.jpg
Vary:Accept-Encoding
Content-Type:text/html
Then the conditional code in return information is 301, needs to redirect, further can be from Location Obtaining the URI carrying out redirecting in field is:
http://ww2.sinaimg.cn/large/4d6b87b3jw1dwuzop7zfoj.jpg。
Then according to this URI, this resource address is conducted interviews, gets return information as follows:
HTTP/1.1200OK
Expires:Wed,12Dec 201208:56:35GMT
Date:Thu,13Sep 201208:56:35GMT
Server:Apache
X-Powered-By:PHP/5.2.14
X-DEBUG-ICACHE:HIT(100806,4.08)
Pragma:public
Cache-Control:max-age=7776000
Last-Modified:Sat,24Dec 198308:00:00GMT
X-DEBUG-IDC:GZ
Content-Length:100806
Content-Type:image/jpeg
X-Via:1.1stsz86:8108(Cdn Cache Server V2.0),1.1dg10:8107(Cdn Cache Server V2.0)
Connection:keep-alive
Then conditional code is 200, it is not necessary to redirect.
In the embodiment of the present invention, the return information of above-mentioned http (s) agreement comprises Content-Type field, This field is used to show that the multifunctional network mail of the resource pointed by this URI expands service (Multipurpose Internet Mail Extensions is called for short MIME) type, i.e. resource type A kind of form.For this resource, only resolve its return head and i.e. may recognize that the resource type of resource.I.e. After the resource address of resource pointed by URI initiates to access, can be from the Content-Type of return information Field gets the resource type of resource pointed by this URI.As above in example, resource type is image/jpeg, It it is the reference format of picture.
Described MIME is a kind of multi purpose internet mail extensions.Http protocol uses and is attached to Mime type before document identifies data type, if the resource type of multimedia resource.
In the embodiment of the present invention, pre-review information is the preview of the predetermined fraction of the predetermined fraction of resource, resource Figure, indicate the fast of application program corresponding to the resource type of the icon of the resource type of described resource or resource Prompt mode.
Resource type is different, and the pre-review information exported in the message is also the most different, and some resource can be direct Exporting in the message, and some resource only exports partial content in the message, also some resource is only in message Middle display can represent the content of this resource.
Therefore, when configuring the pre-review information of resource, output can be determined according to the resource format of resource Which kind of content of this resource.The part content this resource exported is as the predetermined fraction of resource.Such as, For web page resources, predetermined fraction can be the title division of this webpage or this webpage.
Then pre-review information can be just the predetermined fraction of resource, can export predetermined fraction in the message and be wrapped The content contained.
Pre-review information can also be the preview graph of predetermined fraction, and preview graph is that the form using picture shows this Predetermined fraction, specifically may include that thumbnail and sectional drawing.
Such as, resource is picture, and predetermined fraction is exactly this picture, then preview graph can be the contracting of this picture Sketch map.In the embodiment of the present invention, can be with the size of the thumbnail of display in preset knowledge, with preview graph Mode when exporting this resource, in message, output can be just the thumbnail of preset size.
And for example, resource is webpage, and predetermined fraction is the title division of this webpage, and preview graph can be this net The sectional drawing of page head part, therefore just can export the part sectional drawing of webpage in message.
Pre-review information can also is that the shortcut of application program corresponding to the resource type of this resource.URI The application program outside triggering may be needed during some resource output pointed to, such as video or audio frequency, therefore, For the resource of this class, can determine, according to the resource type of this resource, the application program needing to trigger, Export the shortcut of this application program the most in the message, as triggering quickly entering of this application program Mouthful, such that it is able to quickly start this application program, quickly export this resource.
In the embodiment of the present invention, determine the pre-review information of resource according to resource type, in the following way:
The resource type determining resource is webpage or picture;Show this webpage or picture in the buffer, and right The predetermined fraction of webpage or picture carries out sectional drawing, using sectional drawing result as pre-review information.
After the above-mentioned resource type determining resource, if resource type is webpage or picture, then can obtain this Webpage or picture, then show this webpage or picture in the caching of terminal.The embodiment of the present invention is not for The predetermined fraction of output it is prefixed with the resource of resource type, therefore can be to webpage or the default portion of picture Divide and carry out sectional drawing, thus obtain the preview graph of this webpage or picture.
In the embodiment of the present invention, if resource is picture, then predetermined fraction can be just this picture, then to it Carry out sectional drawing and just can be regarded as the thumbnail of this picture.
In the embodiment of the present invention, preview graph can also be to represent the contents such as the picture of resource, icon, as When resource type is website, the Logo of this website can be obtained, export in the message as preview graph.
In the embodiment of the present invention, determine the pre-review information of resource according to resource type, in the following way:
The resource type determining resource is video or audio frequency, to indicate described resource as video or the figure of audio frequency It is denoted as pre-review information, and pre-review information is linked to this resource.
After the above-mentioned resource type determining resource, if resource type is video or audio frequency, it may be determined that broadcast Put this video or audio application, then obtain the shortcut of this application program, by this shortcut As pre-review information, and this pre-review information is linked in this resource, is i.e. triggering this pre-review information i.e. During shortcut, can be linked on this video or audio frequency, be rapidly performed by playing.
Such as, when the type of the resource that URI points to is video (or audio frequency), in order to reduce resource Waste, saves the resource such as flow of user, then temporarily can not obtain and change video (or audio frequency) resource. But in conversation message, show a player icon, when user wants to see this video (or audio frequency), Click on after playing, then obtain video (audio frequency) resource, and play out.
And for example, can get the first frame of video, display in the message, and shows a broadcasting simultaneously Key (concrete, this play button can emerge on the picture of video the first frame), when user wants to see this During video, click on after play button plays out, then obtain the surplus resources of video, and show.
In the embodiment of the present invention, determine the pre-review information of resource according to resource and resource type before, also wrap Include: obtain its pointed resource according to URI.
After getting the URI in message, the resource type of resource pointed by this URI can be obtained, Before the follow-up pre-review information determining resource according to resource and resource type, it is also possible to obtain in this URI Resource address, obtains the resource that URI points to from this resource address.
Such as, if resource is mime type, then when initiating to access to its resource address, Ke Yicong Return the resource type quickly obtaining resource in head, after getting resource type, obtain this resource.
In the embodiment of the present invention, after identifying the universal resource identifier in message, also include: according to URI obtains the resource that it is pointed.
After getting the URI in message, the resource address in this URI can be obtained, can first from Obtain the resource that URI points on this resource address, just can obtain after obtaining the resource that URI points to The resource type of this resource.Wherein, some resource is not mime type, carries out its resource address Resource type cannot be obtained during access from return information, then first can obtain this money from resource address Source, is then assured that the resource type of this resource.
It is geographic position data as got resource, it is possible to determine that resource type is geographical position, permissible Show the data such as location on map, this geographical position, or the longitude and latitude in this geographical position in the message. In actual treatment, in the URI of this resource,<scheme>part is geo.
In the embodiment of the present invention, export pre-review information, use following form: by message and pre-review information with Preset mode exports.
Wherein, preset mode is the form of output message and the pre-review information pre-set, as in the message Output pre-review information, the most respectively output pre-review information and message.
When message comprises URI, the resource type of the resource pointed by URI and this resource can be obtained, And then determine the pre-review information of this resource, thus according to preset mode output message and pre-review information.Such as, Export pre-review information after URI in the message, and for example, after first output message, export pre-review information again.
Discussion based on above-described embodiment, the display mode of data during message is discussed in citing below.
If URI being the resource of mime type, can process in the following way.
With reference to Fig. 2, give the first output intent flow process of data in message described in the embodiment of the present invention Figure.
Step 201, identifies the URI in message;
Step 202, the resource type of acquisition resource pointed by URI;
Step 203, obtains the resource pointed by URI;
Step 204, detects the resource type of this resource;
Step 205, determines that the resource type of described resource is webpage or picture, shows described in the buffer Webpage or picture, and the predetermined fraction of described webpage or picture is carried out sectional drawing, using sectional drawing result as in advance Look at information;
Step 206, determines that the resource type of described resource is video or audio frequency, to indicate described resource to be The icon of video or audio frequency is as pre-review information, and described pre-review information is linked to described resource;
As another preferred embodiment, when resource type is video or audio frequency, it is also possible to should The schematic diagram of video or audio frequency is as pre-review information, and this schematic diagram can be the image representing audio or video Picture, it is also possible to obtain a wherein frame for carrying out parsing for video.
Furthermore it is also possible to use following manner:
It is inserted into playing frame at message display box, in order to represent that described resource is audio or video, and links To described resource, when user clicks on, download and play described resource.
Step 207, exports described message and described pre-review information with preset mode.
If URI not being the resource of mime type, can process in the following way.
With reference to Fig. 3, give the second output intent flow process of data in message described in the embodiment of the present invention Figure.
Step 301, identifies the URI in message;
Step 302, obtains the resource pointed by URI;
Step 303, the resource type of acquisition resource pointed by URI;
Step 304, determines the pre-review information of resource according to resource type;
Step 305, exports message and pre-review information with preset mode.
In sum, in the embodiment of the present invention, can according to the resource type of the resource pointed by URI, Determine the pre-review information of resource, this pre-review information can be the predetermined fraction of resource, this predetermined fraction pre- The application program that the resource type of figure, the icon indicating the resource type of described resource or resource of looking at is corresponding Shortcut, can represent the resource pointed by URI to use different forms, the way of output of resource Various.
Secondly, when the embodiment of the present invention exports pre-review information, can be with preset mode output message with pre- Look at information, can export pre-review information, or output message and pre-review information respectively in the message, message and The mode of resource pointed by URI is various.
With reference to Fig. 4, give the output device structure chart of data in a kind of message described in the embodiment of the present invention.
Accordingly, the embodiment of the present invention additionally provides the output device of data in a kind of message, including: know Other module 11, acquisition module 12 and output module 13.Wherein:
Identification module 11, for identifying the universal resource identifier in message;
Acquisition module 12, for obtaining the resource type of the resource pointed by described universal resource identifier;
Output module 13, for determining the pre-review information of described resource according to described resource type, and exports Described pre-review information.
Described identification module, meets the character string of preset format as general money specifically for identifying in message Source indicator accords with.
In the embodiment of the present invention, described acquisition module 12, specifically for when described universal resource identifier being When redirecting the universal resource identifier of type, obtain described universal resource identifier final after redirecting The resource type of the resource pointed to.
In the embodiment of the present invention, described pre-review information be the predetermined fraction of described resource, described resource pre- If preview graph, the icon indicating the resource type of described resource or the resource type pair of described resource of part The shortcut of the application program answered.
In the embodiment of the present invention, described output module 13, specifically for determining the resource type of described resource For webpage or picture;Show described webpage or picture in the buffer, and described webpage or picture are preset Part carries out sectional drawing, using sectional drawing result as pre-review information.
In the embodiment of the present invention, described output module 13, specifically for determining the resource type of described resource For video or audio frequency, to indicate described resource as video or the icon of audio frequency is as pre-review information and described Pre-review information is linked to described resource.
In the embodiment of the present invention, described acquisition module 12, it is additionally operable to according to described resource and described resource Before type determines the pre-review information of described resource, obtain described money according to described universal resource identifier Source;Or after the universal resource identifier in identifying message, obtain according to described universal resource identifier Described resource.
In the embodiment of the present invention, described output module 13, specifically for believing described message and described preview Breath exports with preset mode.
The embodiment of the present invention additionally provides a kind of equipment, and described equipment includes:
One or more processors;
Memorizer;With
One or more modules, the one or more module stores is in described memorizer and is configured to Being performed by the one or more processor, wherein, the one or more module has a following function:
Identify the universal resource identifier in message;
Obtain the resource type of resource pointed by described universal resource identifier;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
Optionally, the universal resource identifier in described identification message, in the following way: identify message In meet the character string of preset format as universal resource identifier.
Optionally, when described universal resource identifier is the universal resource identifier redirecting type, described Obtain the resource type of resource pointed by described universal resource identifier, in the following way: obtain institute State the universal resource identifier resource type in the resource eventually pointed to after redirecting.
Optionally, described pre-review information is the predetermined fraction of the predetermined fraction of described resource, described resource The application that the resource type of preview graph, the icon indicating the resource type of described resource or described resource is corresponding The shortcut of program.
Optionally, the described pre-review information determining described resource according to described resource type, use such as lower section Formula: the resource type determining described resource is webpage or picture;Show described webpage or picture in the buffer, And the predetermined fraction of described webpage or picture is carried out sectional drawing, using sectional drawing result as pre-review information.
Optionally, the described pre-review information determining described resource according to described resource type, use such as lower section Formula: the resource type determining described resource is video or audio frequency, to indicate described resource as video or audio frequency Icon as pre-review information, and described pre-review information is linked to described resource.
Optionally, described according to described resource and described resource type determine described resource pre-review information it Before, described method also includes: obtain described resource according to described universal resource identifier.
Optionally, the described pre-review information of described output, use following form: by described message and described pre- Information of looking at exports with preset mode.
Optionally, after identifying the universal resource identifier in message, also include: according to described general money Source indicator symbol obtains described resource.
The present embodiment additionally provides a kind of non-volatile readable storage medium, and in this storage medium, storage has one Individual or multiple modules (programs), these one or more modules are used in has the equipment touching screen Time, so that the instruction (instructions) of this equipment execution following steps:
Identify the universal resource identifier in message;
Obtain the resource type of resource pointed by described universal resource identifier;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
Optionally, the universal resource identifier in described identification message, in the following way: identify message In meet the character string of preset format as universal resource identifier.
Optionally, when described universal resource identifier is the universal resource identifier redirecting type, described Obtain the resource type of resource pointed by described universal resource identifier, in the following way: obtain institute State the universal resource identifier resource type in the resource eventually pointed to after redirecting.
Optionally, described pre-review information is the predetermined fraction of the predetermined fraction of described resource, described resource The application that the resource type of preview graph, the icon indicating the resource type of described resource or described resource is corresponding The shortcut of program.
Optionally, the described pre-review information determining described resource according to described resource type, use such as lower section Formula: the resource type determining described resource is webpage or picture;Show described webpage or picture in the buffer, And the predetermined fraction of described webpage or picture is carried out sectional drawing, using sectional drawing result as pre-review information.
Optionally, the described pre-review information determining described resource according to described resource type, use such as lower section Formula: the resource type determining described resource is video or audio frequency, to indicate described resource as video or audio frequency Icon as pre-review information, and described pre-review information is linked to described resource.
Optionally, described according to described resource and described resource type determine described resource pre-review information it Before, described method also includes: obtain described resource according to described universal resource identifier.
Optionally, the described pre-review information of described output, use following form: by described message and described pre- Information of looking at exports with preset mode.
Optionally, after identifying the universal resource identifier in message, also include: according to described general money Source indicator symbol obtains described resource.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described Simply, relevant part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually ?.
The present invention can described in the general context of computer executable instructions, Such as program module.Usually, program module includes performing particular task or realizing specific abstract data class The routine of type, program, object, assembly, data structure etc..Can also be in a distributed computing environment Put into practice the present invention, in these distributed computing environment, by by communication network connected remotely Reason equipment performs task.In a distributed computing environment, program module may be located at and includes storage device In interior local and remote computer-readable storage medium.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like It is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires Or imply relation or the order that there is any this reality between these entities or operation.And, art Language " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that Must include that the process of a series of key element, method, commodity or equipment not only include those key elements, but also Including other key elements being not expressly set out, or also include for this process, method, commodity or The key element that equipment is intrinsic.In the case of there is no more restriction, statement " including ... " limit Fixed key element, it is not excluded that there is also in including the process of described key element, method, commodity or equipment Other identical element.
Above to the display packing of data in message provided by the present invention and device, carry out detailed Jie Continuing, principle and the embodiment of the present invention are set forth by specific case used herein, above reality The explanation executing example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for ability The those skilled in the art in territory, according to the thought of the present invention, the most all can Change part, and in sum, this specification content should not be construed as limitation of the present invention.

Claims (14)

1. the output intent of data in a message, it is characterised in that including:
When detect there is universal resource identifier in conversation class message time, identify the generic resource in message Identifier;
Described universal resource identifier is resolved, obtains the money pointed by described universal resource identifier The resource type in source;
Determine the pre-review information of described resource according to described resource type, and disappear described in preset mode output Breath and pre-review information, described pre-review information is the predetermined fraction of described resource, the predetermined fraction of described resource The resource type of preview graph, the icon indicating the resource type of described resource or described resource corresponding should By the shortcut of program, described export described message with preset mode and pre-review information includes: in message Middle output preview message, or output pre-review information and message respectively.
Method the most according to claim 1, it is characterised in that general in described identification message Resource label accords with, in the following way:
Identify in message and meet the character string of preset format as universal resource identifier.
Method the most according to claim 1, it is characterised in that when described universal resource identifier During for redirecting the universal resource identifier of type, the money pointed by the described universal resource identifier of described acquisition The resource type in source, in the following way:
Obtain the described universal resource identifier resource type in the resource eventually pointed to after redirecting.
Method the most according to claim 1, it is characterised in that described according to described resource type Determine the pre-review information of described resource, in the following way:
The resource type determining described resource is webpage or picture;
Show described webpage or picture in the buffer, and carry out cutting to the predetermined fraction of described webpage or picture Figure, using sectional drawing result as pre-review information.
Method the most according to claim 1, it is characterised in that described according to described resource type Determine the pre-review information of described resource, in the following way:
The resource type determining described resource is video or audio frequency, to indicate described resource as video or audio frequency Icon as pre-review information, and described pre-review information is linked to described resource.
6. according to the method described in claim 4 or 5, it is characterised in that described according to described resource Before the pre-review information that described resource type determines described resource, described method also includes:
Described resource is obtained according to described universal resource identifier.
Method the most according to claim 1, it is characterised in that identify the generic resource in message After identifier, also include:
Described resource is obtained according to described universal resource identifier.
8. the output device of data in a message, it is characterised in that including:
Identification module, for when detect there is universal resource identifier in conversation class message time, identification disappears Universal resource identifier in breath;
Acquisition module, for resolving described universal resource identifier, obtains described generic resource mark The resource type of the resource pointed by will symbol;
Output module, for determining the pre-review information of described resource, and with preset according to described resource type Mode exports described message and pre-review information, and described pre-review information is the predetermined fraction of described resource, described The preview graph of the predetermined fraction of resource, the icon indicating the resource type of described resource or the money of described resource The shortcut of the application program that Source Type is corresponding, described with preset mode export described message and preview letter Breath includes: export preview message, or output pre-review information and message respectively in the message.
Device the most according to claim 8, it is characterised in that
Described identification module, meets the character string of preset format as general money specifically for identifying in message Source indicator accords with.
Device the most according to claim 8, it is characterised in that
Described acquisition module, specifically for being the generic resource redirecting type when described universal resource identifier During identifier, obtain resources-type in the resource eventually pointed to after redirecting of described universal resource identifier Type.
11. devices according to claim 8, it is characterised in that
Described output module, specifically for determining that the resource type of described resource is webpage or picture;Slow Deposit the described webpage of middle displaying or picture, and the predetermined fraction of described webpage or picture is carried out sectional drawing, will cut Figure result is as pre-review information.
12. devices according to claim 8, it is characterised in that
Described output module, specifically for determining that the resource type of described resource is video or audio frequency, to refer to Show icon that described resource is video or audio frequency as pre-review information, and described pre-review information is linked to described Resource.
13. according to Claim 8,11 or 12 arbitrary described devices, it is characterised in that
Described acquisition module, is additionally operable to determining described resource according to described resource and described resource type Before pre-review information, obtain described resource according to described universal resource identifier;Or in identifying message After universal resource identifier, obtain described resource according to described universal resource identifier.
The outut device of data in 14. 1 kinds of message, it is characterised in that described outut device includes:
One or more processors;
Memorizer;With
One or more modules, the one or more module stores is in described memorizer and is configured to Being performed by the one or more processor, wherein, the one or more module has a following function:
When detect there is universal resource identifier in conversation class message time, identify the generic resource in message Identifier;
Described universal resource identifier is resolved, obtains the money pointed by described universal resource identifier The resource type in source;
Determine the pre-review information of described resource according to described resource type, and disappear described in preset mode output Breath and pre-review information, described pre-review information is the predetermined fraction of described resource, the predetermined fraction of described resource The resource type of preview graph, the icon indicating the resource type of described resource or described resource corresponding should By the shortcut of program, described export described message with preset mode and pre-review information includes: in message Middle output preview message, or output pre-review information and message respectively.
CN201210458970.7A 2012-11-14 2012-11-14 The output intent of data, device and equipment in a kind of message Active CN103023870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210458970.7A CN103023870B (en) 2012-11-14 2012-11-14 The output intent of data, device and equipment in a kind of message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210458970.7A CN103023870B (en) 2012-11-14 2012-11-14 The output intent of data, device and equipment in a kind of message

Publications (2)

Publication Number Publication Date
CN103023870A CN103023870A (en) 2013-04-03
CN103023870B true CN103023870B (en) 2016-08-31

Family

ID=47972001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210458970.7A Active CN103023870B (en) 2012-11-14 2012-11-14 The output intent of data, device and equipment in a kind of message

Country Status (1)

Country Link
CN (1) CN103023870B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353886B (en) 2013-06-28 2017-11-07 优视科技有限公司 The method and system of preview webpage
CN104954395B (en) * 2014-03-24 2019-04-16 腾讯科技(深圳)有限公司 Information-pushing method and device
CN104010224B (en) * 2014-06-17 2016-01-13 合一网络技术(北京)有限公司 Using the method and system of video playback final image as video icon
JP2018514827A (en) * 2015-01-29 2018-06-07 エイブル ワールド インターナショナル リミテッド Interactive operation method, transmitter, receiver and interactive operation system using the same
CN108628870A (en) * 2017-03-16 2018-10-09 北京搜狗科技发展有限公司 A kind of web preview method and apparatus
CN109660852B (en) * 2017-10-10 2021-06-15 武汉斗鱼网络科技有限公司 Video preview method, storage medium, device and system before release of recorded video
CN109391540A (en) * 2018-10-31 2019-02-26 珠海市小源科技有限公司 A kind of processing method and processing device of RCS message
KR102710369B1 (en) * 2019-02-15 2024-09-26 삼성전자주식회사 Electronic device and computer readable medium for dynamic layout message

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924860A (en) * 2006-10-08 2007-03-07 网之易信息技术(北京)有限公司 Search engine based search result fast pre-reading device
CN101025740A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Automatic play method of picture search result
CN101477535A (en) * 2008-12-30 2009-07-08 华为技术有限公司 Web page display method, request processing method, apparatus and system
CN102209044A (en) * 2010-03-29 2011-10-05 腾讯科技(深圳)有限公司 Method for displaying picture message, apparatus and system thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4297811B2 (en) * 2003-03-14 2009-07-15 株式会社リコー Information providing apparatus, information providing method, and program
CN101504649B (en) * 2008-11-14 2011-11-30 北京搜狗科技发展有限公司 Page resource processing method and apparatus
CN101504648A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Method and apparatus for showing web page resources
CN102117291B (en) * 2009-12-30 2013-03-06 北京搜狗科技发展有限公司 Method and system for displaying network resources

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025740A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Automatic play method of picture search result
CN1924860A (en) * 2006-10-08 2007-03-07 网之易信息技术(北京)有限公司 Search engine based search result fast pre-reading device
CN101477535A (en) * 2008-12-30 2009-07-08 华为技术有限公司 Web page display method, request processing method, apparatus and system
CN102209044A (en) * 2010-03-29 2011-10-05 腾讯科技(深圳)有限公司 Method for displaying picture message, apparatus and system thereof

Also Published As

Publication number Publication date
CN103023870A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103023870B (en) The output intent of data, device and equipment in a kind of message
US10027742B2 (en) Techniques for sharing application states
US8533283B2 (en) Redirection method for electronic content
US9792633B2 (en) Method and system for intelligent processing of electronic information with cloud computing
TWI416934B (en) Information delivery system and method for mobile appliances
JP6898452B2 (en) Data acquisition method and device
CN104102537B (en) A kind of application call method and user terminal
US10262341B2 (en) Resource downloading method and device
CN103944944B (en) Method, electronic equipment and the system of sharing web page link
US20140286333A1 (en) Method and system for local calling via webpage
JP6077231B2 (en) Information acquisition method and apparatus for user terminal in communication system
CN107818101A (en) Method and device for page jump
KR20160008552A (en) Web platform with select-to-call functionality
KR20110022030A (en) Current page automatic login program and its method
KR100725541B1 (en) Integrated portal service system and method, and user terminal device therefor
JP2014132443A (en) Collection server and collection method
KR20100060726A (en) User equipment and advertisement service server for providing bi-directional personalized advertisement
CN115600023A (en) Client page skipping method, device and equipment and storage medium
JP5595252B2 (en) Cooperation support apparatus, program, cooperation support method, cooperation support system, and communication apparatus
CN108932243B (en) Method and device for refreshing webpage
KR20200006716A (en) Apparatus and method for providing customized service packages
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium
CN106534238B (en) Method and device for providing offline application service for user
CN113867727A (en) A page generation method, page generation system, storage medium and terminal
JP2013238905A (en) Communication terminal device, site device, and information distribution system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant