1 18 package org.enhydra.convert.xml; 19 20 import java.io.File ; 22 import java.io.IOException ; 23 import java.io.OutputStream ; 24 import java.io.Writer ; 25 26 import java.util.List ; 28 import java.io.Serializable ; 29 30 public interface Servlet extends Serializable { 31 32 public static final String ZEUS_XML_NAME = "servlet"; 33 public static final String [] ZEUS_ATTRIBUTES = {"id"}; 34 public static final String [] ZEUS_ELEMENTS = {"icon", "servlet-name", "display-name", "description", "servlet-class", "jsp-file", "init-param", "load-on-startup", "run-as", "security-role-ref"}; 35 36 public Icon getIcon(); 37 38 public void setIcon(Icon icon); 39 40 public ServletName getServletName(); 41 42 public void setServletName(ServletName servletName); 43 44 public DisplayName getDisplayName(); 45 46 public void setDisplayName(DisplayName displayName); 47 48 public Description getDescription(); 49 50 public void setDescription(Description description); 51 52 public ServletClass getServletClass(); 53 54 public void setServletClass(ServletClass servletClass); 55 56 public JspFile getJspFile(); 57 58 public void setJspFile(JspFile jspFile); 59 60 public List getInitParamList(); 61 62 public void setInitParamList(List initParamList); 63 64 public void addInitParam(InitParam initParam); 65 66 public void removeInitParam(InitParam initParam); 67 68 public LoadOnStartup getLoadOnStartup(); 69 70 public void setLoadOnStartup(LoadOnStartup loadOnStartup); 71 72 public RunAs getRunAs(); 73 74 public void setRunAs(RunAs runAs); 75 76 public List getSecurityRoleRefList(); 77 78 public void setSecurityRoleRefList(List securityRoleRefList); 79 80 public void addSecurityRoleRef(SecurityRoleRef securityRoleRef); 81 82 public void removeSecurityRoleRef(SecurityRoleRef securityRoleRef); 83 84 public String getId(); 85 86 public void setId(String id); 87 88 public void marshal(File file) throws IOException ; 89 90 public void marshal(OutputStream outputStream) throws IOException ; 91 92 public void marshal(Writer writer) throws IOException ; 93 94 public void setDocType(String name, String publicID, String systemID); 95 96 public void setOutputEncoding(String outputEncoding); 97 98 } 99 | Popular Tags |