1 23 24 package com.sun.enterprise.appclient.jws; 25 26 import java.net.URI ; 27 28 34 35 public class AppserverContentOrigin extends ContentOrigin { 36 37 private String category; 38 private String subcategory; 39 40 public AppserverContentOrigin(String category, String subcategory) { 41 super(); 42 this.category = category; 43 this.subcategory = subcategory; 44 } 45 46 52 public boolean isEnabled() { 53 return true; 54 } 55 56 public String getContentKeyPrefix() { 57 String result = NamingConventions.Appserver.contentKeyPrefix(this); 58 return result; 59 } 60 61 public String getSubcategory() { 62 return subcategory; 63 } 64 65 public String getCategory() { 66 return category; 67 } 68 69 public String toString() { 70 StringBuilder sb = new StringBuilder (super.toString()); 71 return sb.append(", category=").append(category).append(", subcategory=").append(subcategory).toString(); 72 } 73 } 74 | Popular Tags |