CN105843881A - Picture processing url mapping method and apparatus - Google Patents
Picture processing url mapping method and apparatus Download PDFInfo
- Publication number
- CN105843881A CN105843881A CN201610161488.5A CN201610161488A CN105843881A CN 105843881 A CN105843881 A CN 105843881A CN 201610161488 A CN201610161488 A CN 201610161488A CN 105843881 A CN105843881 A CN 105843881A
- Authority
- CN
- China
- Prior art keywords
- url
- mapping
- access request
- space
- configuration file
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Embodiments of the present invention disclose a picture processing url mapping method and apparatus. According to the technical scheme provided by the present invention, a url mapping mechanism is added between a user-owned url access rule and a url access rule specified by a cloud service platform, and implementation of the url mapping mechanism mainly depends on a configuration file and a mapping script file, and adaptive mapping can be automatically performed on a url access request initiated by a user pointedly, so as to adapt to requirements of the cloud service platform. Compared with the manual modification manner in the prior art, the method and apparatus disclosed by the present invention are capable of avoiding omissions generated due to manual modification, thereby greatly simplifying service migration, and are capable of help users achieve rapid interfacing of services.
Description
Technical field
The present invention relates to computer realm, particularly relate to a kind of picture processing url mapping method and device.
Background technology
Along with rhythm of life is day by day accelerated, the time of user increasingly fragmentation, it is possible to directly stimulate use
The picture and text of family vision combine reading model and are increasingly becoming fashion trend, and picture function has become as numerous shifting
The important component part of dynamic application.But the network environment of complexity limits user uploads download pictures
Speed, reduces the application utilization rate of user, it has also become the research emphasis of developer indirectly.And cloud storage
The photo services function that the service of depositing is released, it is possible to solve this problem fast and effectively.
The photo services of cloud store-service is that comprehensive exploitation person is in the face of picture and text from developer's angle
The objective factors such as this kind of main business maintenance cost processed is high, it is provided that ensure high speed, powerful business
Function services, and safe and stable background service.
Therefore, increasing enterprise starts only to be absorbed in own service, and by background picture data by
Step moves to cloud service platform.Based on url (uniform resource locator, unified resource
Localizer, also referred to as network address) image processing method be cloud service provider provide picture be stored in
Access method conventional during service, the file access rule that user specifies only in cloud service provider,
Being operated collection of illustrative plates by url according to the actual requirements, cloud service backstage is specified not according in url
File is processed by same parameter, finally returns to the result of correspondence.
Owing to each enterprise is owned by corresponding with the url picture processing rule of a set of uniqueness, but typically
In the case of, these rules that each enterprise specifies are not consistent with the rule that cloud storage provider specifies,
Therefore, enterprise, in order to use cloud service platform, is necessary for by the way of manual amendment url repairing one by one
Change access stencil, by services migrating to cloud service platform, but this manual amendment's mode, take time and effort,
The problem that also can there is omission.
Therefore, current those skilled in the art compel highly necessary solve the technical problem that to be exactly how to provide one
The method of kind, reduces the labor workload of migration service, it is to avoid omit, and reduces services migrating duration simultaneously.
Summary of the invention
In order to solve in prior art, the present invention provides a kind of picture processing url mapping method and device,
Without manual amendment url, it is automatically obtained migration service, it is possible to avoid omitting, reduces service simultaneously and move
Move duration.
Providing a kind of picture processing url mapping method in first aspect present invention, described method includes:
Receive url access request;Described url access request includes: the source resource name of picture to be downloaded
With picture to be downloaded residing for the space identification in space;
Described space identification is obtained from described url access request;Described space refers to cloud service platform
The container for storing file object of definition;Described space identification is used for unique identifier space;
From configuration file, the corresponding relation with described space correlation is searched according to described space identification;Institute
State configuration file for recording space and the corresponding relation mapped between script file, and, map foot
The position of presents;
When searching the corresponding relation with described space correlation, according to the mapping foot corresponding with described space
The position of presents loads and performs to map the url access request after script file is mapped;Described
Map script file to specify for described url access request is mapped to described cloud service platform
The script file of url form.
Optionally, according to the configuration literary composition loaded in default time cycle, periodically judgement system
Part is the need of being updated, if it is, reload configuration file.
Optionally, judge that described configuration file is the need of being updated in the following manner:
Judge in data base that whether the final updating time of the configuration file of storage loaded with in system
The final updating time consistency of configuration file, if it is not, then the configuration file loaded in showing system
Needs are updated.
Optionally, described mapping script file is script file based on Groovy.
Optionally, described method also includes:
Url access request after described mapping is carried out model validation, after being verified, according to described
Url access request after mapping is treated the source resource of download pictures and is processed, and returns result.
Optionally, described url access request also includes: resource processes rule;Described resource processes rule
It it is then the rule making specific operation process for describing the source resource treating download pictures;Described Energy Resources Service
Reason rule includes specific operation type and operating parameter.
Optionally, described specific operation type includes: scales, rotate, watermark or a kind of behaviour of cutting
Make or multiple operative combination type.
Optionally, described method also includes:
Url access request after described mapping is carried out model validation, after being verified, according to described
Url access request after mapping, processes the regular source resource treating download pictures according to described resource and enters
Row specific operation processes, and returns result.
Second aspect present invention provides a kind of picture processing url mapping device, and described device includes:
Request reception unit, is used for receiving url access request;Described url access request includes: treat
The space identification in space residing for the source resource name of download pictures and picture to be downloaded;
Acquiring unit, for obtaining described space identification from described url access request;Described space
Refer to the container for storing file object that cloud service platform defines;Described space identification is for unique
Identifier space;
Search unit, for searching from configuration file and described space correlation according to described space identification
Corresponding relation;Described configuration file is used for the corresponding relation recording space and mapping between script file,
And, map the position of script file;
Map unit, for when searching with the corresponding relation of described space correlation, according to described sky
Between the corresponding position mapping script file loads and performs the url after mapping script file is mapped
Access request;Described mapping script file is for described url access request is mapped to described cloud clothes
The script file of the url form that business platform is specified.
Optionally, described device also includes:
Update loading unit, for adding according in default time cycle, periodically judgement system
The configuration file carried is the need of being updated, if it is, reload configuration file.
Optionally, described renewal loading unit, judge that described configuration file is especially by the following manner
No needs are updated:
Judge in data base that whether the final updating time of the configuration file of storage loaded with in system
The final updating time consistency of configuration file, if it is not, then the configuration file loaded in showing system
Needs are updated.
Optionally, described mapping script file is script file based on Groovy.
Optionally, described device also includes:
Cloud processing unit, for the url access request after described mapping is carried out model validation, checking
By rear, the source resource treating download pictures according to the url access request after described mapping processes,
And return result.
Optionally, described url access request also includes: resource processes rule;Described resource processes rule
It it is then the rule making specific operation process for describing the source resource treating download pictures;Described Energy Resources Service
Reason rule includes specific operation type and operating parameter.
Optionally, described specific operation type includes: scales, rotate, watermark or a kind of behaviour of cutting
Make or multiple operative combination type.
Optionally, described device also includes:
Second cloud processing unit, for the url access request after described mapping is carried out model validation,
After being verified, according to the url access request after described mapping, process rule according to described resource right
The source resource of picture to be downloaded carries out specific operation process, and returns result.
Relative to prior art, it is an advantage of the current invention that:
The technical scheme that the present invention provides, first, receives url access request;Described url accesses please
Ask and include: the space identification in space residing for the source resource name of picture to be downloaded and picture to be downloaded;From institute
State and url access request obtains described space identification;Described space refers to the use that cloud service platform defines
Container in storage file object;Described space identification is used for unique identifier space;Then, according to institute
State space identification from configuration file, search the configuration information corresponding with described space;Described configuration file
For recording space and the corresponding relation mapped between script file;Finally, when finding joining of correspondence
During confidence breath, the url after script file is mapped that maps loading and performing described space corresponding visits
Ask request;Described mapping script file is for described url access request is mapped to described cloud service
The script file of the url form that platform is supported.The technical scheme that the present invention provides, is existing user
Url access rule and the url that specifies of cloud service platform accesses and adds url between rule and map machine
System, this url mapping mechanism relies primarily on configuration file and mapping script file realizes, it is possible to for
Property ground Client-initiated url access request is carried out adaptability mapping automatically, with applicable cloud service platform
Requirement, it is possible to effectively preventing the issuable omission of manual amendment's mode of the prior art, this is just
Greatly simplify business migration, it is possible to help user to realize the rapid abutting joint of business.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below by right
In embodiment or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that,
Accompanying drawing in describing below is only some embodiments described in the application, skill common for this area
From the point of view of art personnel, on the premise of not paying creative work, it is also possible to obtain it according to these accompanying drawings
Its accompanying drawing.
Fig. 1 is the picture processing process example figure based on url of prior art;
The picture processing process schematic based on url that Fig. 2 provides for the present invention;
The flow chart of a kind of picture processing url mapping method embodiment that Fig. 3 provides for the present invention;
The structure chart of a kind of picture processing url mapping device embodiment that Fig. 4 provides for the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the present invention
Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is only a part of embodiment of the present invention rather than whole embodiments.
Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, broadly falls into the scope of protection of the invention.
The picture processing process based on url of prior art is as it is shown in figure 1, cloud service platform receives use
After the url access request that family is initiated, first url pattern is verified, check whether this url accesses
Meet the url process rule that cloud service platform is specified;Again legal request is sent to processing mould
Block, is processed and return picture according to the parameter set in concrete access request by processing module
Reason result;Finally, result is returned to user by service end by cloud service platform.
Prior art is all by user according to the regulation of cloud service platform url, the manually url to oneself
Modifying, the url specified to realize user-defined url rule and cloud service platform accesses rule
Good docking then.And the present invention is in order to realize the dynamic mapping of url, it is proposed that for different skies
Between specify corresponding configuration, utilize configuration file and conversion script file to realize automatic mapping to url.
Seeing Fig. 2, Fig. 2 is the picture processing process schematic based on url that the present invention provides.As
Shown in Fig. 2, after receiving Client-initiated url access request, first do not carry out testing of url pattern
Card, but from access request, first obtain the space identification at picture file place;Then from configuration file
The middle space configuration searching correspondence, if there is the configuration corresponding to this space, then loads this space
Conversion script file, utilizes this conversion script file to map Client-initiated url access request,
Then, then the url access request after mapping being carried out url model validation, checking that this url accesses is
No meet the url that cloud service platform specifies and process rule;Again legal request is sent to processing
Module, is processed picture by processing module according to the parameter set in concrete access request and returns
Result;Finally, result is returned to user by service end by cloud service platform.
The present invention is mainly during existing picture processing rul, adds url dynamic mapping link,
This link is utilized to realize turn regular with the url that cloud service platform is specified of user-defined url rule
Change, it is possible to pointedly Client-initiated url access request is carried out adaptability mapping automatically, with suitable
Close the requirement of cloud service platform, it is possible to effectively prevent manual amendment's mode of the prior art from may produce
Omission, this just greatly simplify business migration, it is possible to helps user to realize the rapid abutting joint of business.
The present invention provide technical scheme can efficiently url be changed, it is adaptable to all based on
Url rule carries out the service architecture of file access.
The technical scheme provided the present invention below by embodiment explains.
Embodiment of the method
Seeing Fig. 3, Fig. 3 is a kind of picture processing url mapping method embodiment that the present invention provides
Flow chart;As it is shown on figure 3, the method may comprise steps of 101-104:
Step 101: receive url access request;Described url access request includes: picture to be downloaded
Source resource name and picture to be downloaded residing for the space identification in space;
When realizing, if user only needs to access picture, then its url access request initiated only is wrapped
Include: the space identification in space residing for the source resource name of picture to be downloaded and picture to be downloaded;If user
Need picture is carried out particular procedure, then can initiate url access request and include: picture to be downloaded
The space identification in space residing for source resource name, picture to be downloaded and resource process rule;Described Energy Resources Service
Reason rule is to make the rule of specific operation process for describing the source resource treating download pictures;Described money
Source processes rule and includes specific operation type and operating parameter.
Wherein, described specific operation type includes: scales, rotate, watermark or a kind of operation of cutting
Or multiple operative combination type.
Can set up multiple space on cloud service platform, each user can have one or more space,
Picture file stores in space.Space refer to cloud service platform definition for storing file object
Container.There is a unique mark in each space, and this uniquely identifies and is referred to as space identification, space
Mark can be space name or space ID.
User is to during download pictures, initiate url according to self-defining url rule from cloud service platform
Access request.User-defined url rule may be identical with the url rule of Cloud Server platform,
It is likely to and differs.User is without manual modification in the present invention, only need to be defined according to oneself
Url rule is initiated to ask.
Step 102: obtain described space identification from described url access request;Described space refers to
The container for storing file object of cloud service platform definition;Described space identification is for unique mark
Space;
After cloud service platform receives url access request, resolve this url access request, therefrom obtain
Space identification.
Step 103: according to described space identification search with described space correlation from configuration file right
Should be related to;Described configuration file is used for the corresponding relation recording space and mapping between script file, with
And, map the position of script file;
Cloud service platform, after acquiring space identification, is searched and described space from configuration file
The configuration information of contrast.
Configuration file is that preliminary election is set up, the corresponding relation between record space and mapping script file
File.Generally, user-defined rule once it is determined that, seldom can change,
And the rule specified based on user-defined rule and cloud service platform, the mapping script established literary composition
Part the most also would not be changed, and therefore, the content of configuration file the most also will not change.But
In actual application, may also have some exceptional cases, become it is of course also possible to there will be business
Change, need to increase or cancel the situation of certain url rule.For these situations, it is necessary in time
Ground more new configuration file, in order to cloud service platform can utilize up-to-date configuration file to enter in the very first time
Row Business Processing.
Based on this, the invention allows for configuration file update mechanism, specific implementation is at Fig. 1
Shown on the basis of method, also increase following steps:
According to the default time cycle, whether the configuration file loaded in periodically judging system needs
To be updated, if it is, reload configuration file.
Concrete, can judge that described configuration file is the need of being updated in the following manner:
Judge in data base that whether the final updating time of the configuration file of storage loaded with in system
The final updating time consistency of configuration file, if it is not, then the configuration file loaded in showing system
Needs are updated.
When realizing, intervalometer can be provided with in the system of cloud service platform, utilize this intervalometer
According to the time cycle, such as at interval of the final updating time of configuration file of detection in 5 seconds, with this
Determine the need for reloading configuration file.With mapping script file between in configuration file, appointment is free
Between corresponding relation, the only corresponding conversion script file in space.When need not update,
Then maintain original configuration file constant.
The present invention uses this mode of configuration file, it is possible to make configuration file can need not weight
Load in the case of opening service, it is possible to dynamically increase, corresponding configuration file and mapping are deleted or modified
Script file, and ensure that configuration comes into force within a short period of time immediately.
This renewal loading method makes the amendment mapping configuration can need not the situation of the service of restarting
Immediately come into force down, add the motility of cloud service platform service, cloud service platform service can be helped
When user carries out services migrating, simplify transition process, reduce migration time and cost.
Wherein, mapping script file needs the actual demand according to the conversion of user-defined url rule to carry
Before write, and be stored in the allocation position specified, use for loading.When realizing, need root
According to user's request, configuring a set of mapping script file for each space, this mapping script file is used for
The url of user is mapped as cloud service platform can url, and reach user's Expected Results.
When realizing, Groovy can be used to write mapping script file.Groovy is for Java
The dynamic language of a kind of agility of virtual machine, it is the Object-Oriented Programming Language of a kind of maturation, both may be used
For OOP, can serve as again script purely.This kind of language is used to compile
Write too much code, there are again other characteristics in closure and dynamic language simultaneously.Groovy is JVM
One replacement language (replacement refers to carry out Java volume in Java platform with Groovy
Journey), occupation mode mode that is basic and that use Java code is identical, this language be particularly suitable for and
The dynamic language support of Spring is used together, and has taken into full account that Java is integrated during design, and this makes
Groovy is easy to the interoperability of Java code.This method takes full advantage of Groovy language energy
Reach and the characteristic of java code interactive operation, with Groovy realization on original Java service framework
Url mapping block, can make full use of Groovy as script process quick for character string
Characteristic, can effectively be implemented in combination with the quick load of configuration file with existing Java Web service again.
When realizing, a space can configure a corresponding Groovy script file, different skies
Between can configure identical Groovy script file.
Step 104: when searching with the corresponding relation of described space correlation, according to described space pair
The position mapping script file answered loads and performs to map the url after script file is mapped and accesses
Request;Described mapping script file is to put down for described url access request is mapped to described cloud service
The script file of the url form that platform is specified.
In view of when realizing, user needs to conduct interviews the picture in high in the clouds, then provide in the present invention
Method complete mapping process after, it is also possible to perform following steps:
Url access request after described mapping is carried out model validation, after being verified, according to described
Url access request after mapping is treated the source resource of download pictures and is processed, and returns result.
When realizing, if the url access request received includes: the source resource name of picture to be downloaded,
The space identification in space residing for picture to be downloaded and resource process rule;It is to use that described resource processes rule
The rule that specific operation processes is made in describing the source resource treating download pictures;Described resource processes rule
Including specific operation type and operating parameter.Then corresponding, it is also possible to perform following steps:
Url access request after described mapping is carried out model validation, after being verified, according to described
Url access request after mapping, processes the regular source resource treating download pictures according to described resource and enters
Row specific operation processes, and returns result.
Such as: for scaling type, the source resource treating download pictures zooms in and out according to zooming parameter
Process;The most such as, for rotation type, treat the source resource of download pictures according to direction of rotation parameter
Rotation processing etc. is carried out with rotation angle parameter.
So, just for be capable of quick, convenient, the cloud computing service of complete function, save for user
Go server end picture processing to work, also save service server resource, greatly improve exploitation
Efficiency.
Certainly, perform step 103 and also there will be, do not find and space correlation in configuration file
This situation of corresponding relation, in this case, whole handling process is unaffected, according to Fig. 1
Shown flow process, continues executing with tupe and verifies.
From above-described embodiment it can be seen that the technical scheme that the present invention provides is at the existing url of user
The url that access rule and cloud service platform are specified accesses and adds url mapping mechanism between rule, should
Url mapping mechanism relies primarily on configuration file and mapping script file realizes, and url is reflected by the present invention
Penetrate control and be fine to space level, it is possible to the most pointedly to Client-initiated url access request
Automatically adaptability mapping is carried out, with the requirement of applicable cloud service platform, it is possible to effectively prevent prior art
In the issuable omission of manual amendment's mode, this just greatly simplify business migration, it is possible to side
User is helped to realize the rapid abutting joint of business.
Utilize the technical scheme that the present invention provides, it is possible to after quickly realizing user's existing business pattern and cloud service
The smooth docking of platform, to realize business migration.For a user, no matter its self-defining url accesses rule
What is then, and user need not change its self-defining url, according to its self-defining url
Accessing rule to initiate to access, the present invention is by carrying out mapping process to url rule, so that after Ying Sheing
Url access request meets the rule of cloud service platform, reduces user and uses the migration time of cloud service platform
And cost.
A kind of picture processing url mapping method provided based on above example, the embodiment of the present invention is also
Provide a kind of picture processing url mapping device, describe its operation principle below in conjunction with the accompanying drawings in detail.
Device embodiment
See the structure chart that Fig. 4, Fig. 4 are a kind of picture processing url mapping devices that the present invention provides,
As shown in Figure 4, this device can include with lower unit:
Request reception unit 201, is used for receiving url access request;Described url access request includes:
The space identification in space residing for the source resource name of picture to be downloaded and picture to be downloaded;
Acquiring unit 202, for obtaining described space identification from described url access request;Described
Space refers to the container for storing file object that cloud service platform defines;Described space identification is used for
Unique identifier space;
Search unit 203, for searching from configuration file and described space according to described space identification
Relevant corresponding relation;Described configuration file is corresponding with map between script file for recording space
Relation, and, map the position of script file;
Map unit 204, for when searching with the corresponding relation of described space correlation, according to institute
State after the position mapping script file corresponding to space load and perform mapping script file mapped
Url access request;Described mapping script file is described for described url access request being mapped to
The script file of the url form that cloud service platform is specified.
Optionally, described device also includes:
Update loading unit, for adding according in default time cycle, periodically judgement system
The configuration file carried is the need of being updated, if it is, reload configuration file.
Optionally, described renewal loading unit, judge that described configuration file is especially by the following manner
No needs are updated:
Judge in data base that whether the final updating time of the configuration file of storage loaded with in system
The final updating time consistency of configuration file, if it is not, then the configuration file loaded in showing system
Needs are updated.
Optionally, described mapping script file is script file based on Groovy.
Optionally, described device also includes:
First cloud processing unit, for the url access request after described mapping is carried out model validation,
After being verified, process operation according to the cloud carried in the url access request after described mapping and treat down
The source resource carrying picture processes, and returns result.
Optionally, described url access request can also include: resource processes rule;Described Energy Resources Service
Reason rule is to make the rule of specific operation process for describing the source resource treating download pictures;Described money
Source processes rule and includes specific operation type and operating parameter.
Optionally, described specific operation type includes: scales, rotate, watermark or a kind of behaviour of cutting
Make or multiple operative combination type.
Optionally, described device can also include:
Second cloud processing unit, for the url access request after described mapping is carried out model validation,
After being verified, according to the url access request after described mapping, process rule according to described resource right
The source resource of picture to be downloaded carries out specific operation process, and returns result.
The technical scheme that the present invention provides, is to access rule and cloud service platform at the existing url of user
The url specified accesses and adds url mapping mechanism between rule, and this url mapping mechanism relies primarily on
Configuration file and mapping script file realize, it is possible to accessing Client-initiated url pointedly please
Ask and automatically carry out adaptability mapping, with the requirement of applicable cloud service platform, it is possible to effectively prevent existing skill
The issuable omission of manual amendment's mode in art, this just greatly simplify business migration, it is possible to
User is helped to realize the rapid abutting joint of business.
It should be noted that one of ordinary skill in the art will appreciate that and realize in said method embodiment
All or part of flow process, can be by computer program and complete to instruct relevant hardware, institute
The program stated can be stored in a computer read/write memory medium, and this program is upon execution, it may include
Flow process such as above-mentioned each method embodiment.Wherein, described storage medium can be magnetic disc, CD, read-only
Store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access
Memory, RAM) etc..
Each embodiment in this specification all uses the mode gone forward one by one to describe, phase between each embodiment
As homophase part see mutually, each embodiment stress with other embodiments
Difference.For device embodiment, owing to it is substantially similar to embodiment of the method,
So describing fairly simple, relevant part sees the part of embodiment of the method and illustrates.Above institute
The device embodiment described is only schematically, the wherein said unit illustrated as separating component and
Module can be or may not be physically separate.Furthermore it is also possible to according to the actual needs
Select some or all of unit therein and module to realize the purpose of the present embodiment scheme.This area
Those of ordinary skill, in the case of not paying creative work, is i.e. appreciated that and implements.
The above is only the detailed description of the invention of the present invention, it is noted that common for the art
For technical staff, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications,
These improvements and modifications also should be regarded as protection scope of the present invention.
Claims (16)
1. a picture processing url mapping method, it is characterised in that described method includes:
Receive url access request;Described url access request includes: the source resource name of picture to be downloaded
With picture to be downloaded residing for the space identification in space;
Described space identification is obtained from described url access request;Described space refers to cloud service platform
The container for storing file object of definition;Described space identification is used for unique identifier space;
From configuration file, the corresponding relation with described space correlation is searched according to described space identification;Institute
State configuration file for recording space and the corresponding relation mapped between script file, and, map foot
The position of presents;
When searching the corresponding relation with described space correlation, according to the mapping foot corresponding with described space
The position of presents loads and performs to map the url access request after script file is mapped;Described
Map script file to specify for described url access request is mapped to described cloud service platform
The script file of url form.
Method the most according to claim 1, it is characterised in that
According to the default time cycle, whether the configuration file loaded in periodically judging system needs
To be updated, if it is, reload configuration file.
Method the most according to claim 2, it is characterised in that judge described in the following manner
Configuration file is the need of being updated:
Judge in data base that whether the final updating time of the configuration file of storage loaded with in system
The final updating time consistency of configuration file, if it is not, then the configuration file loaded in showing system
Needs are updated.
Method the most according to claim 1, it is characterised in that
Described mapping script file is script file based on Groovy.
Method the most according to claim 1, it is characterised in that described method also includes:
Url access request after described mapping is carried out model validation, after being verified, according to described
Url access request after mapping is treated the source resource of download pictures and is processed, and returns result.
Method the most according to claim 1, it is characterised in that
Described url access request also includes: resource processes rule;Described resource process rule be for
Description is treated the source resource of download pictures and is made the rule that specific operation processes;Described resource processes rule bag
Include specific operation type and operating parameter.
Method the most according to claim 6, it is characterised in that described specific operation type includes:
Scaling, a kind of operation of rotation, watermark or cutting or multiple operative combination type.
Method the most according to claim 6, it is characterised in that described method also includes:
Url access request after described mapping is carried out model validation, after being verified, according to described
Url access request after mapping, processes the regular source resource treating download pictures according to described resource and enters
Row specific operation processes, and returns result.
9. a picture processing url mapping device, it is characterised in that described device includes:
Request reception unit, is used for receiving url access request;Described url access request includes: treat
The space identification in space residing for the source resource name of download pictures and picture to be downloaded;
Acquiring unit, for obtaining described space identification from described url access request;Described space
Refer to the container for storing file object that cloud service platform defines;Described space identification is for unique
Identifier space;
Search unit, for searching from configuration file and described space correlation according to described space identification
Corresponding relation;Described configuration file is used for the corresponding relation recording space and mapping between script file,
And, map the position of script file;
Map unit, for when searching with the corresponding relation of described space correlation, according to described sky
Between the corresponding position mapping script file loads and performs the url after mapping script file is mapped
Access request;Described mapping script file is for described url access request is mapped to described cloud clothes
The script file of the url form that business platform is specified.
Device the most according to claim 9, it is characterised in that described device also includes:
Update loading unit, for adding according in default time cycle, periodically judgement system
The configuration file carried is the need of being updated, if it is, reload configuration file.
11. devices according to claim 10, it is characterised in that described renewal loading unit,
Judge that described configuration file is the need of being updated especially by the following manner:
Judge in data base that whether the final updating time of the configuration file of storage loaded with in system
The final updating time consistency of configuration file, if it is not, then the configuration file loaded in showing system
Needs are updated.
12. devices according to claim 9, it is characterised in that
Described mapping script file is script file based on Groovy.
13. devices according to claim 9, it is characterised in that described device also includes:
First cloud processing unit, for the url access request after described mapping is carried out model validation,
After being verified, the source resource treating download pictures according to the url access request after described mapping is carried out
Process, and return result.
14. devices according to claim 9, it is characterised in that
Described url access request also includes: resource processes rule;Described resource process rule be for
Description is treated the source resource of download pictures and is made the rule that specific operation processes;Described resource processes rule bag
Include specific operation type and operating parameter.
15. devices according to claim 14, it is characterised in that described specific operation type bag
Include: scale, rotate, watermark or a kind of operation of cutting or multiple operative combination type.
16. devices according to claim 14, it is characterised in that described device also includes:
Second cloud processing unit, for the url access request after described mapping is carried out model validation,
After being verified, according to the url access request after described mapping, process rule according to described resource right
The source resource of picture to be downloaded carries out specific operation process, and returns result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610161488.5A CN105843881B (en) | 2016-03-21 | 2016-03-21 | A kind of picture processing url mapping method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610161488.5A CN105843881B (en) | 2016-03-21 | 2016-03-21 | A kind of picture processing url mapping method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105843881A true CN105843881A (en) | 2016-08-10 |
CN105843881B CN105843881B (en) | 2019-04-26 |
Family
ID=56587541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610161488.5A Active CN105843881B (en) | 2016-03-21 | 2016-03-21 | A kind of picture processing url mapping method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105843881B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108009439A (en) * | 2016-11-28 | 2018-05-08 | 北京车和家信息技术有限责任公司 | The method, apparatus and system of resource request |
CN111382379A (en) * | 2018-12-27 | 2020-07-07 | 福建天晴数码有限公司 | Method and terminal for importing configuration data with pictures |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102934104A (en) * | 2010-06-08 | 2013-02-13 | 微软公司 | Web site implementation by mapping expression evaluation |
CN103390012A (en) * | 2012-09-13 | 2013-11-13 | 爱乐活(北京)科技有限公司 | Display picture generating method and device based on access |
CN104793946A (en) * | 2015-04-27 | 2015-07-22 | 广州杰赛科技股份有限公司 | Application deployment method and system based on cloud computing platform |
CN104794117A (en) * | 2014-01-16 | 2015-07-22 | 腾讯科技(深圳)有限公司 | Picture data migration method and device |
CN104965877A (en) * | 2015-06-12 | 2015-10-07 | 郑州悉知信息技术有限公司 | Webpage picture acquisition method, picture cache server, coordination server and system |
-
2016
- 2016-03-21 CN CN201610161488.5A patent/CN105843881B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102934104A (en) * | 2010-06-08 | 2013-02-13 | 微软公司 | Web site implementation by mapping expression evaluation |
CN103390012A (en) * | 2012-09-13 | 2013-11-13 | 爱乐活(北京)科技有限公司 | Display picture generating method and device based on access |
CN104794117A (en) * | 2014-01-16 | 2015-07-22 | 腾讯科技(深圳)有限公司 | Picture data migration method and device |
CN104793946A (en) * | 2015-04-27 | 2015-07-22 | 广州杰赛科技股份有限公司 | Application deployment method and system based on cloud computing platform |
CN104965877A (en) * | 2015-06-12 | 2015-10-07 | 郑州悉知信息技术有限公司 | Webpage picture acquisition method, picture cache server, coordination server and system |
Non-Patent Citations (2)
Title |
---|
(美)KARL KOPPER著,沈金河等译: "《Linux企业集群-用商用硬件和免费软件构建高可用集群》", 30 March 2007, 中国水利水电出版社 * |
(美)波斯安耐克(BOSANAC,DEJAN)著;翟育明,等译: "《Java脚本编程语言、框架与模式》", 31 May 2008, 机械工业出版社 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108009439A (en) * | 2016-11-28 | 2018-05-08 | 北京车和家信息技术有限责任公司 | The method, apparatus and system of resource request |
CN108009439B (en) * | 2016-11-28 | 2021-06-08 | 北京车和家信息技术有限责任公司 | Resource request method, device and system |
CN111382379A (en) * | 2018-12-27 | 2020-07-07 | 福建天晴数码有限公司 | Method and terminal for importing configuration data with pictures |
CN111382379B (en) * | 2018-12-27 | 2022-12-13 | 福建天晴数码有限公司 | Method and terminal for importing configuration data with pictures |
Also Published As
Publication number | Publication date |
---|---|
CN105843881B (en) | 2019-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6813152B2 (en) | Methods, systems, and programs for determining the identification of software in a software container | |
US11240287B2 (en) | Method, server and system for converging desktop application and web application | |
CN104598257B (en) | The method and apparatus of remote application operation | |
US20210248487A1 (en) | Framework management method and apparatus | |
US11016785B2 (en) | Method and system for mirror image package preparation and application operation | |
CN102411506A (en) | Java-system business-unit plug-in type managing system and dynamic business-function changing method | |
CN111901294A (en) | Method for constructing online machine learning project and machine learning system | |
CN104137062B (en) | By code Dynamic injection to operating process | |
CN112395039B (en) | Method and device for managing Kubernetes cluster | |
CN101694625A (en) | Method and device for upgrading client software based on encryption sever management | |
CN109144493A (en) | Generation method, electronic device and the readable storage medium storing program for executing of business rule | |
CN110515628A (en) | Using dispositions method and device | |
CN107220074A (en) | To the access of supporting layer software function, upgrade method and device | |
CN110134496A (en) | Container monitors method, apparatus, equipment and computer readable storage medium | |
CN109951553B (en) | Data processing method, system, electronic device and computer readable storage medium | |
CN103077034B (en) | hybrid virtualization platform JAVA application migration method and system | |
CN116171425A (en) | Sharing cached category data in a containerized environment | |
CN111124430A (en) | Micro-service deployment method and device of hybrid architecture | |
CN107566518A (en) | The method and apparatus of management equipment information during installation file | |
CN105843881A (en) | Picture processing url mapping method and apparatus | |
CN112765123A (en) | MySQL database automatic creation method and device based on OpenStack and computer storage medium | |
WO2023056793A1 (en) | Optimizing a just-in-time compilation process | |
CN113791809B (en) | Application exception handling method and device and computer readable storage medium | |
CN115048187A (en) | Operator-based pvc file importing method, device and storage medium | |
CN114860203A (en) | Project creation method, project creation device, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |