欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
Hoople: Attribute-oriented programming for URLs
 

Hoople

Hoople: Attribute-oriented programming for URLs

Traditionally, configuration gets spread poorly throughout the site.

  1. Information/Configuration for a particular URL gets split into many different configuration files.
  2. Configuration files that deal with many URLs get so large that they get difficult to read and manage--especially with multiple developers.

Examples of the problem include

  1. Web MVC frameworks such as Struts, Spring, JSF etc. define which controllers to run for each URL in a central config file or set of files. For large sites, this quickly becomes unwieldy.
  2. “URL Logic” such as
    • Listing/Configuration of links for “site maps"
    • Security logic beyond the scope of what web.xml covers
    • Documentation of what URLs are supposed to do
    • Pre/post conditions for URLs running to aid in development
    • Logging

    is stored in separate and unrelated areas.

How does Hoople solve the problem?

Hoople is like attribute-oriented programming for URLs. Rather than having the configuration information and “URL Logic” for a particular URL spread throughout the site, you create a single XML configuration file that contains all the “logic” for each URL on the filesystem. 

These XML files are stored where the file for the URL would normally go.  So, for example, if your site has a URL of “/news/index.html” you would create an XML configuration file and store it at $DOCUMENT_ROOT/news/index.html.  Note that since web frameworks like Struts, Spring, JSF, etc. all use a servlet that catch all *.html requests, you would normally not have that file at all. 

These files can then be accessed in various ways depending on how the configuration is needed:

  • For applications that require a central configuration file for all URLs at run time, an Ant task can be used to generate the required config file
  • A servlet or scheduled job can parse through all the config files at run time
  • A Servlet Filter can parse the configuration file at run time to apply security, logging, transactions, etc to the URL
  • Developers can simply read the configuration files to find out what URLs are supposed to do and not do

But wait, there’s more!

  • During development, possible URLs are easy to find because there is a file actually in the file system for each URL on the system. Compare that to having URLs specified in various XML configuration files.
  • “welcome-file-list" actually works for welcome URLS managed by struts/spring/jsf because application servers see there actually is a file there, and will not automatically return a 404 error before seeing if there is a servlet-mapping that matches the URL.

     

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
What book taught you most about being a good programmer?
SSH框架搭建遇到的問(wèn)題Unable to load configuration. bean jar:file:/D:/Tomcat%206.0/webapps/bar/WEBINF / 藍訊
Struts2中實(shí)現自定義分頁(yè)標簽
用JTAG模式配置Serial Flash芯片
toolbox.xilinx SelectMAP Configuration Mode
How to install and configure Python on a hosted server
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久