1 9 package org.jboss.portlet; 10 11 import org.jboss.portal.server.PortalResponse; 12 import org.jboss.portal.server.ServerURL; 13 14 20 public class PortalObject 21 { 22 23 private final int type; 24 private final String name; 25 private final ServerURL url; 26 private final PortalResponse resp; 27 28 public PortalObject(int type, String name, ServerURL url, PortalResponse resp) 29 { 30 this.type = type; 31 this.name = name; 32 this.url = url; 33 this.resp = resp; 34 } 35 36 public int getType() 37 { 38 return type; 39 } 40 41 public String getName() 42 { 43 return name; 44 } 45 46 51 public String getURL() 52 { 53 return resp.createURL(url, true); 54 } 55 56 } 66 | Popular Tags |