1 4 package com.inversoft.verge.mvc.controller.actionflow.config; 5 6 7 import javax.servlet.http.HttpServletRequest ; 8 9 10 20 public class PresentationNode extends BaseNode implements Node, RenderableNode { 21 22 private String path; 23 private String fileName; 24 25 26 37 public PresentationNode(BaseNode.BaseValues values, Namespace namespace) { 38 super(values, namespace); 39 40 int index = values.name.lastIndexOf("/"); 41 if (index != -1) { 42 this.path = values.name.substring(0, index + 1); 43 this.fileName = values.name.substring(index + 1); 44 } else { 45 this.path = ""; 46 this.fileName = values.name; 47 } 48 } 49 50 51 56 public String getPath() { 57 return path; 58 } 59 60 65 public String getFileName() { 66 return fileName; 67 } 68 69 75 public String getURL() { 76 return values.name; 77 } 78 79 84 public boolean isForward() { 85 return true; 86 } 87 88 93 public String getCategory() { 94 return null; 95 } 96 97 101 public String getGeneratedURL(HttpServletRequest request) { 102 return getURL(); 103 } 104 } | Popular Tags |