Embodiment
The embodiment of the invention provides a kind of method that preserves web page bookmark, and has realized Web page bookmark is kept on the mobile phone card.
In order to make the purpose, technical solutions and advantages of the present invention clearer, with reference to the accompanying drawings method of the present invention is described in further detail.
See also shown in Figure 1, a kind of method flow diagram that preserves web page bookmark that Fig. 1 provides for the embodiment of the invention.Flow process is as follows:
Step 101: obtain the Web page bookmark data;
Be exactly that portable terminal cell phone software platform is at first by the browser access webpage for the embodiment of the invention, obtain URL(uniform resource locator) (the Uniform Resource Locator of Web page bookmark, the title (Name) that URL), also can comprise Web page bookmark.
Step 102: the data that the Web page bookmark data transaction become specific format;
Need to prove, for the embodiment of the invention, for Web page bookmark being kept on the mobile phone card, can mark off the data space of depositing Web page bookmark specially on the mobile phone card, the size of data space is decided according to the quantity that preserves web page bookmark.
(Element Files, EF) data instance of form describes to be converted to constituent instruments with the Web page bookmark data in the embodiment of the invention.
The Web page bookmark constituent instruments that in the embodiment of the invention Web page bookmark converted to (Bookmark EF) are shown in following table 1:
Table 1
In the embodiment of the invention, concrete parameter setting is described as follows in the table:
Identifier (sign): be the identify label of Bookmark EF,, for example can be set to 6F7C by the visit of this sign realization to Web page bookmark Bookmark.
Structure (structure): Transparent (transparent), promptly Bookmark EF is a transparent configuration, represents that promptly Bookmark EF is made up of monoblock data, rather than record one by one.
Optional (optionally), promptly Web page bookmark Bookmark EF is that mobile phone card SIM/UIM goes up an optional EF.Represent with O below.Optional is set to Mandatory (compulsory, be must have) on the contrary, represents with M in embodiments of the present invention.
File size (file size): be set to Variable (variable), be that file size is variable, the size of Web page bookmark Bookmark EF depends on the amount of capacity of mobile phone card SIM/UIM and the specification of operator, as support 10 Web page bookmark Bookmark and 100 Web page bookmark Bookmark, the size of Web page bookmark Bookmark EF file is different.
Update activity (renewal liveness): be set to High (height), promptly Bookmark EF file can upgrade, and the renewal activity is high.
Access conditions (connection state): READ CHV1, have only the mobile phone cartoon has been crossed the PIN1 code check, the user just can be to Bookmark EF read operation.UPDATE (renewal) CHV1, sign is as long as crossed the PIN1 code check to cartoon, and the user just can upgrade Bookmark EF and operate.For other operation, Invalidate (invalid) and Rehabilitate (reduction) need ADM (keeper, Administrators) authority could be operated.
Certainly above-mentioned can the setting carried out other setting according to actual needs, is not limited to the execution mode that the embodiment of the invention provides.
As can be seen from Table 1, be provided with n bar Web page bookmark type lengths values object (Bookmark TLV Object) among the Bookmark EF provided by the invention, composition links together before and after this n bar Bookmark TLV Object, the length of every Bookmark TLV Object is indefinite, supposes that the 1st Bookmark TLV Object takies X
1Byte, the 2nd Bookmark TLV Object takies X
2Byte, and the like, n bar Bookmark TLV Object takies X
nByte.The value of byte is decided according to the length L ength of each Bookmark TLV Object.It can also be seen that from table the 1st BookmarkTLV Object is that (be Mandatory, expression must have M, and the 2nd and later BookmarkTLV Object are O (be Optional, expression are optional).
Structure and the setting of the Bookmark TLV Object that above-mentioned steps 102 is provided describe in detail below.
See also shown in Figure 2, the webpage Bookmark TLV Object structural representation that Fig. 2 provides for the embodiment of the invention.The described Bookmark TLV of the invention process Object comprises: bookmark identification (BookmarkTag), length (Length), URL(uniform resource locator) type lengths values object (URL TLV Object) and name type length value object (Name TLV Object), wherein said URL TLV Object comprises: URL(uniform resource locator) sign (URL Tag), URL(uniform resource locator) length (URL Length), URL(uniform resource locator) information (URL Information).Described Name TLV Object comprises: name identification (Name Tag), title length (Name Length) and name information (Name Information).
Need to prove that described length (Length) is the length of the Value of described Bookmark TLV Object, being provided with according to ISO/IEC 8825 agreements of described Length decided.
Become the data of Web page bookmark constituent instruments (Bookmark EF) form to be specially the Web page bookmark data transaction in the step 102:
According to the uniform resource position mark URL in the Web page bookmark data, structure URL(uniform resource locator) type lengths values object (URL TLV Object) is specially: uniform resource position mark URL is URL(uniform resource locator) information (URL Information), with the numerical value (Value) of URL(uniform resource locator) information URL Information as URL TLV Object, fill in the URL(uniform resource locator) length (URL Length) of URL TLV Object according to the length of described Value, the primary system one of the URL(uniform resource locator) sign (URL Tag) of described URL TLV Object is set at a particular value, the Value that is used to refer to this URL TLV Object is a URL(uniform resource locator), above-mentioned URL TLV object is arranged among the Value of bookmark type lengths values object B ookmark TLV Object, described Bookmark TLV Object is arranged among the Bookmark EF.
Further, if also comprise the Name of Web page bookmark in the Web page bookmark data, then according to the Name of the Web page bookmark in the Web page bookmark data, obtain the name type length value object (Name TLVObject) of Web page bookmark, be specially: the Name in the Web page bookmark data is the name information (NameInformation) of Web page bookmark, with the numerical value (Value) of Name Information as Name TLV Object, length according to described Value, fill in the title length (Name Length) of Name TLV Object, the value of the bookmark name sign (Name Tag) of described Name TLV Object is set at a particular value, and the Value that is used to refer to this Name TLV Object is the title of bookmark.Described Name TLV Object is arranged among the webpage Bookmark EF.Above-mentioned Name TLV Object is arranged among the numerical value Value of bookmark type lengths values object B ookmark TLV Object, described Bookmark TLV Object is arranged among the webpage Bookmark EF.
The length (Length) of described Bookmark TLV Object is the length of the Value of described Bookmark TLV Object, also is the total length of described URL TLV Object and Name TLV Object.The byte number of described Length is decided according to ISO/IEC 8825 agreements.Unification is set at a particular value to the value of Bookmark Tag according to protocol specification, is used to refer to the content of the Value of Bookmark TLV Object.
In an embodiment of the present invention, the concrete parameter of Bookmark TLV Object is provided with as shown in table 2:
Table 2
Explanation |
Value |
M/O |
Length (bytes) |
Bookmark Tag |
AD |
M |
1 |
Length |
|
M |
|
URL Tag |
‘80’ |
M |
1 |
URL Length |
Y |
M |
1 |
URL Information |
|
M |
Y |
Name Tag |
‘81’ |
O |
1 |
Name Length |
Z |
O |
1 |
Name Information |
Binary |
O |
Z |
The value of the Tag of Bookmark described in the table 2 is particular value according to protocol specification with particular value hexadecimal number ' AD ', and for essential, length is 1 byte; The value of described URL Tag is example with particular value hexadecimal number ' 80 ', and is essential, and length is 1 byte; The value of URL Length is an example with ' Y ', and for essential, length is 1 byte; Described URL Information is essential, and length is the Y byte.
Further, the value of described Name Tag is an example with particular value hexadecimal number ' 81 ', and for optional, length is 1 byte; The value of described Name Length is example with Z, for optional, takies 1 byte, and the value of described Name information is for being example with Binary, and for optional, length is the Z byte.
In the embodiment of the invention, described URL adopts the UTF8 coding.
Step 103: the data of described specific format are sent to the preservation of mobile phone card.
In the embodiment of the invention, particularly, the data of Web page bookmark constituent instruments EF form are kept on the mobile phone card.
For the inventive method embodiment, after the data of webpage Bookmark EF form are received in the mobile phone clamping, the mobile phone Cali writes the data of Bookmark EF form among the Bookmark EF that stores on the mobile phone card with agreement specified standard visit order and form.
The method that preserves web page bookmark that the embodiment of the invention provides by Web page bookmark being converted to Web page bookmark EF form, is kept among the webpage Bookmark EF on the mobile phone card, has realized Web page bookmark is kept on the mobile phone card.
Simultaneously, the invention also discloses a kind of method that reads Web page bookmark.
Please as shown in Figure 3, a kind of method flow diagram that reads Web page bookmark of providing for the embodiment of the invention of Fig. 3.Method flow is:
Step 301: the Web page bookmark data of the specific format of preserving from the mobile phone card, obtain the URL(uniform resource locator) of Web page bookmark;
In the embodiment of the invention, the Web page bookmark data of described specific format are the data of Web page bookmark constituent instruments Bookmark EF form, the Web page bookmark data of the then described specific format of preserving from the mobile phone card, the URL(uniform resource locator) of obtaining Web page bookmark is embodied as:
From the Web page bookmark constituent instruments Bookmark EF formatted data that the mobile phone card is preserved, obtain the URL(uniform resource locator) of Web page bookmark, specific implementation is:
From the Web page bookmark constituent instruments Bookmark EF form that the mobile phone card is preserved, obtain the bookmark type lengths values object (Bookmark TLV Object) of webpage;
From described bookmark type lengths values object, obtain URL(uniform resource locator) type lengths values object (URL TLV Object);
Obtain Value value among the URL TLV Object as the URL(uniform resource locator) of Web page bookmark.
In the embodiment of the invention, the mobile phone card reads the content of the Value of this Bookmark TLV Object according to the value of the Bookmark Tag of Bookmark TLVObject from Web page bookmark constituent instruments EF, reading byte length is decided by the Length of this Bookmark TLV Object, include URL(uniform resource locator) type lengths values object URL TLV Object among the Value of Bookmark TLV Object, the mobile phone card is URL Information according to the content that the value of the URL Tag of URL TLV Object reads the Value of this URL TLV Object, thereby obtain the URL of Web page bookmark, read byte length and decide by the Length of this URL TLVObject.
Step 302: URL(uniform resource locator) is sent to web browser.
In the embodiment of the invention, the cell phone software platform sends to web browser with URL(uniform resource locator), and web browser can be realized browsing page according to URL(uniform resource locator).
Further, if also include name type length value object Name TLV Object among the Value of webpage Bookmark TLV Object, then further comprise:
The content that reads the Value of this Name TLV Object according to the value of the Name Tag of Name TLV Object is Name Information, thereby obtain the title of Web page bookmark, read byte length and decided by the Length of this Name TLV Object, the title with Web page bookmark sends to web browser then.
The method that reads Web page bookmark that the embodiment of the invention provides by Web page bookmark being converted to Web page bookmark EF form, is kept among the webpage Bookmark EF on the mobile phone card, has realized reading Web page bookmark from the mobile phone card.
Based on said method, the embodiment of the invention also discloses a kind of terminal.
See also shown in Figure 4, a kind of terminal structure schematic diagram that Fig. 4 provides for the embodiment of the invention, described terminal comprises:
Web browser 401 is used for browsing page;
Cell phone software platform 402, obtain the Web page bookmark data when being used for web browser 401 browsing pages and described Web page bookmark data transaction is become the Web page bookmark data of specific format, and send to mobile phone card 403 and the Web page bookmark data of specific format of storage on the mobile phone card 403 are sent to web browser 401;
Mobile phone card 403, the Web page bookmark data that are used to store described specific format.
In the embodiment of the invention, the Web page bookmark data of described specific format are Web page bookmark constituent instruments (Bookmark EF) formatted datas.
See also shown in Figure 5ly, then described cell phone software platform 402 comprises:
URL(uniform resource locator) reading unit 4021 is used for reading the webpage URL(uniform resource locator) from the Web page bookmark constituent instruments EF formatted data of mobile phone card 403 preservations;
First transmitting element 4022 is used for the URL(uniform resource locator) of Web page bookmark is sent to web browser 401.
In embodiments of the present invention, described Web page bookmark type lengths values object further comprises the name type length value object of Web page bookmark.
See also shown in Figure 6ly, described cell phone software platform 402 also comprises:
Title reading unit 4023 is used for reading the title of Web page bookmark from the Web page bookmark constituent instruments EF formatted data of mobile phone card 403 preservations;
Second transmitting element 4024 is used for the title of Web page bookmark is sent to web browser 401.
In embodiments of the present invention, described Web page bookmark constituent instruments EF formatted data comprises Web page bookmark type lengths values object, and described Web page bookmark type lengths values object comprises the URL(uniform resource locator) type lengths values object of Web page bookmark.
In embodiments of the present invention, the mobile phone card sends to web browser read the URL(uniform resource locator) and title of Web page bookmark from Web page bookmark EF after, and web browser is realized browsing of webpage according to URL(uniform resource locator) and title.
Based on said method, the embodiment of the invention also discloses a kind of terminal.
See also shown in Figure 7ly, Fig. 7 is a kind of terminal that the embodiment of the invention provides, and comprising:
Acquiring unit 701 is used to obtain the Web page bookmark data;
Converting unit 702 is used for described Web page bookmark data transaction is become the data of Web page bookmark EF form;
Transmitting element 703 is used for the data of described Web page bookmark EF form are sent to the mobile phone card.
See also shown in Figure 8ly, for the embodiment of the invention, described converting unit 702 specifically comprises:
URL(uniform resource locator) structural unit 7020 is used for the URL(uniform resource locator) of described Web page bookmark data is configured to URL(uniform resource locator) type lengths values object;
Bookmark type lengths values object structural unit 7023 is used for URL(uniform resource locator) type lengths values object is configured to bookmark type lengths values object.
Unit 7021 is set, is used for bookmark type lengths values object is arranged on Web page bookmark EF form.
Further, described converting unit 702 also comprises:
Title structural unit 7022 is used for the title of the webpage of Web page bookmark data is configured to name type length value object;
Then bookmark type lengths values object structural unit 7023, are used for URL(uniform resource locator) type lengths values object and name type length value object are configured to bookmark type lengths values object.
In embodiments of the present invention, described bookmark type length object is arranged in the data of described Web page bookmark EF form, and the data of described Web page bookmark EF form are kept on the mobile phone card.
Contents such as the information interaction between each unit in the above-mentioned portable terminal, implementation and since with the inventive method embodiment based on same design, particular content can repeat no more referring to the narration among the inventive method embodiment herein.
In sum, the technical scheme that the embodiment of the invention provides is kept among the webpage Bookmark EF by Web page bookmark being converted to webpage Bookmark EF form, has realized Web page bookmark is kept on the mobile phone card.
Simultaneously, the technical scheme that the embodiment of the invention provides by Web page bookmark being converted to Web page bookmark EF form, is saved among the Web page bookmark EF of mobile phone card, has realized reading Web page bookmark from the mobile phone card.
Because the mobility of card, the Web page bookmark of liking that the user preserves can change and snap on another mobile phone; Operator can be customized to the Web page bookmark of commercial paper etc. on the mobile phone card; And, owing to preserve web page bookmark with the EF form of standard, standard various browser bookmarks realization form disunities, uncurrent problem, to each market, each operator can both be suitable for.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement, but the former is better execution mode under a lot of situation by hardware.Based on such understanding, all or part of can the embodying that technical scheme of the present invention contributes to background technology with the form of software product, this software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The embodiment of the invention has been used specific embodiment the principle and the execution mode of the embodiment of the invention has been set forth, and the explanation of above embodiment just is used to help to understand the method and the core concept thereof of the embodiment of the invention; Simultaneously, for one of ordinary skill in the art, according to the thought of the embodiment of the invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the embodiment of the invention.