00001
00027 package org.objectweb.jonas.web;
00028
00029
00030 import java.net.URL;
00031 import java.net.URLClassLoader;
00032 import java.rmi.RemoteException;
00033
00034 import javax.naming.Context;
00035
00036 import org.objectweb.jonas.service.Service;
00037
00038
00045 public interface JWebContainerService extends Service {
00046
00064 void deployWars(Context ctx) throws JWebContainerServiceException;
00065
00073 void unDeployWars(URL[] urls);
00074
00082 void removeCache(ClassLoader earClassLoader);
00083
00089 String getDefaultHost() throws JWebContainerServiceException;
00090
00097 String getDefaultHttpPort() throws JWebContainerServiceException;
00098
00105 String getDefaultHttpsPort() throws JWebContainerServiceException;
00106
00118 URLClassLoader getClassLoader(URL warURL, String earAppName, ClassLoader ejbClassLoader) throws JWebContainerServiceException;
00119
00124 ClassLoader getContextLinkedClassLoader(URL warURL);
00125
00131 War getWar(URL url);
00132
00137 public String getWebappsDirectory();
00138
00146 public void registerWarMBean(String fileName) throws RemoteException, JWebContainerServiceException;
00147
00148
00154 public boolean isWarLoaded(String fileName);
00155
00163 public void unRegisterWarMBean(String fileName) throws RemoteException, JWebContainerServiceException;
00164
00165 }