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 WebApp extends Serializable { 31 32 public static final String ZEUS_XML_NAME = "web-app"; 33 public static final String [] ZEUS_ATTRIBUTES = {"id"}; 34 public static final String [] ZEUS_ELEMENTS = {"icon", "display-name", "description", "distributable", "context-param", "filter", "filter-mapping", "listener", "servlet", "servlet-mapping", "session-config", "mime-mapping", "welcome-file-list", "error-page", "taglib", "resource-env-ref", "resource-ref", "security-constraint", "login-config", "security-role", "env-entry", "ejb-ref", "ejb-local-ref"}; 35 36 public Icon getIcon(); 37 38 public void setIcon(Icon icon); 39 40 public DisplayName getDisplayName(); 41 42 public void setDisplayName(DisplayName displayName); 43 44 public Description getDescription(); 45 46 public void setDescription(Description description); 47 48 public Distributable getDistributable(); 49 50 public void setDistributable(Distributable distributable); 51 52 public List getContextParamList(); 53 54 public void setContextParamList(List contextParamList); 55 56 public void addContextParam(ContextParam contextParam); 57 58 public void removeContextParam(ContextParam contextParam); 59 60 public List getFilterList(); 61 62 public void setFilterList(List filterList); 63 64 public void addFilter(Filter filter); 65 66 public void removeFilter(Filter filter); 67 68 public List getFilterMappingList(); 69 70 public void setFilterMappingList(List filterMappingList); 71 72 public void addFilterMapping(FilterMapping filterMapping); 73 74 public void removeFilterMapping(FilterMapping filterMapping); 75 76 public List getListenerList(); 77 78 public void setListenerList(List listenerList); 79 80 public void addListener(Listener listener); 81 82 public void removeListener(Listener listener); 83 84 public List getServletList(); 85 86 public void setServletList(List servletList); 87 88 public void addServlet(Servlet servlet); 89 90 public void removeServlet(Servlet servlet); 91 92 public List getServletMappingList(); 93 94 public void setServletMappingList(List servletMappingList); 95 96 public void addServletMapping(ServletMapping servletMapping); 97 98 public void removeServletMapping(ServletMapping servletMapping); 99 100 public SessionConfig getSessionConfig(); 101 102 public void setSessionConfig(SessionConfig sessionConfig); 103 104 public List getMimeMappingList(); 105 106 public void setMimeMappingList(List mimeMappingList); 107 108 public void addMimeMapping(MimeMapping mimeMapping); 109 110 public void removeMimeMapping(MimeMapping mimeMapping); 111 112 public WelcomeFileList getWelcomeFileList(); 113 114 public void setWelcomeFileList(WelcomeFileList welcomeFileList); 115 116 public List getErrorPageList(); 117 118 public void setErrorPageList(List errorPageList); 119 120 public void addErrorPage(ErrorPage errorPage); 121 122 public void removeErrorPage(ErrorPage errorPage); 123 124 public List getTaglibList(); 125 126 public void setTaglibList(List taglibList); 127 128 public void addTaglib(Taglib taglib); 129 130 public void removeTaglib(Taglib taglib); 131 132 public List getResourceEnvRefList(); 133 134 public void setResourceEnvRefList(List resourceEnvRefList); 135 136 public void addResourceEnvRef(ResourceEnvRef resourceEnvRef); 137 138 public void removeResourceEnvRef(ResourceEnvRef resourceEnvRef); 139 140 public List getResourceRefList(); 141 142 public void setResourceRefList(List resourceRefList); 143 144 public void addResourceRef(ResourceRef resourceRef); 145 146 public void removeResourceRef(ResourceRef resourceRef); 147 148 public List getSecurityConstraintList(); 149 150 public void setSecurityConstraintList(List securityConstraintList); 151 152 public void addSecurityConstraint(SecurityConstraint securityConstraint); 153 154 public void removeSecurityConstraint(SecurityConstraint securityConstraint); 155 156 public LoginConfig getLoginConfig(); 157 158 public void setLoginConfig(LoginConfig loginConfig); 159 160 public List getSecurityRoleList(); 161 162 public void setSecurityRoleList(List securityRoleList); 163 164 public void addSecurityRole(SecurityRole securityRole); 165 166 public void removeSecurityRole(SecurityRole securityRole); 167 168 public List getEnvEntryList(); 169 170 public void setEnvEntryList(List envEntryList); 171 172 public void addEnvEntry(EnvEntry envEntry); 173 174 public void removeEnvEntry(EnvEntry envEntry); 175 176 public List getEjbRefList(); 177 178 public void setEjbRefList(List ejbRefList); 179 180 public void addEjbRef(EjbRef ejbRef); 181 182 public void removeEjbRef(EjbRef ejbRef); 183 184 public List getEjbLocalRefList(); 185 186 public void setEjbLocalRefList(List ejbLocalRefList); 187 188 public void addEjbLocalRef(EjbLocalRef ejbLocalRef); 189 190 public void removeEjbLocalRef(EjbLocalRef ejbLocalRef); 191 192 public String getId(); 193 194 public void setId(String id); 195 196 public void marshal(File file) throws IOException ; 197 198 public void marshal(OutputStream outputStream) throws IOException ; 199 200 public void marshal(Writer writer) throws IOException ; 201 202 public void setDocType(String name, String publicID, String systemID); 203 204 public void setOutputEncoding(String outputEncoding); 205 206 } 207 | Popular Tags |