tailieunhanh - Practical Apache Struts2 Web 2.0 Projects retail phần 9

Chuyển dữ liệu đối tượng (DTOs), như tên cho thấy, là các đối tượng dữ liệu đó chuyển giao, và lần đầu tiên được giới thiệu bởi Martin Fowler trong Một thuật ngữ khác, giá trị gia tăng đối tượng, cũng được sử dụng để mô tả các đối tượng thực hiện "Mô hình Kiến trúc ứng dụng doanh nghiệp." công việc. | 268 CHAPTER 9 SYNDICATION AND INTEGRATION String dropExtension String name Iterator it while String extension . String if extension return null return name public ActionMapping getMapping HttpServletRequest request ConfigurationManager configManager from DefaultActionMapper ActionMapping mapping new ActionMapping String uri getUri request uri dropExtension uri if uri null return null parseNameAndNamespace uri mapping configManager handleSpecialParameters request mapping if mapping null null return null from Restful2ActionMapper String actionName if actionName null 0 int lastSlashPos try to guess using REST-style patterns if null if lastSlashPos -1 Index . foo if isGet request index CHAPTER 9 SYNDICATION AND INTEGRATION 269 Creating a new entry on POST . foo else if isPost request create else if lastSlashPos -1 String id lastSlashPos 1 Viewing the form to create a new item . foo new if isGet request new .equals id editNew Viewing an item . foo 1 else if isGet request view Removing an item . foo 1 else if isDelete request remove Updating an item . foo 1 else if isPut request update if getIdParameterName null if null new HashMap .put getIdParameterName id if getIdParameterName null lastSlashPos -1 actionName 0 lastSlashPos Try to determine parameters from the URL before the action name int actionSlashPos lastSlashPos - 1 if actionSlashPos 0 actionSlashPos lastSlashPos String params 0 actionSlashPos HashMap String String parameters new HashMap String String 270 CHAPTER 9 SYNDICATION AND INTEGRATION try StringTokenizer st new StringTokenizer .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.