1 23 24 package com.sun.enterprise.appclient.jws; 25 26 import com.sun.enterprise.web.AdHocServletInfo; 27 import java.util.HashMap ; 28 29 import javax.servlet.http.HttpServletRequest ; 30 import javax.servlet.http.HttpServletResponse ; 31 32 41 public class JWSAdHocServletInfo implements AdHocServletInfo { 42 43 44 private HashMap <String ,String > initParams; 45 46 47 private String servletName; 48 49 50 public JWSAdHocServletInfo(String virtualContextRoot, String category) { 51 setInitParams(virtualContextRoot, category); 52 servletName = virtualContextRoot; 53 } 54 55 59 public Class getServletClass() { 60 return JWSAdHocServlet.class; 61 } 62 63 67 public java.util.Map <String , String > getServletInitParams() { 68 return initParams; 69 } 70 71 75 public String getServletName() { 76 return servletName; 77 } 78 79 85 private void setInitParams(String virtualContextRoot, String category) { 86 initParams = new HashMap <String ,String >(); 87 initParams.put(JWSAdHocServlet.CONTEXT_ROOT_PARAMETER_NAME, virtualContextRoot); 88 initParams.put(JWSAdHocServlet.CATEGORY_PARAMETER_NAME, category); 89 } 90 } 91 | Popular Tags |