JWSAdHocServletInfopublic class JWSAdHocServletInfo extends Object implements com.sun.enterprise.web.AdHocServletInfoInfo describing the ad hoc servlet that is dynamically registered with the web
container to receive Java Web Start's requests for the JNLP document.
The web container uses this information in setting up the dynamic mapping
from URLs to our code. |
Fields Summary |
---|
private HashMap | initParamsholds init parameter names and values that will be available to the servlet | private String | servletNameholds the name that distinguishes ad hoc servlets within an app |
Constructors Summary |
---|
public JWSAdHocServletInfo(String virtualContextRoot, String category)Creates a new instance of JWSAdHocServletInfo
setInitParams(virtualContextRoot, category);
servletName = virtualContextRoot;
|
Methods Summary |
---|
public java.lang.Class | getServletClass()Reports which class implements the ad hoc servlet to be run.
return JWSAdHocServlet.class;
| public java.util.Map | getServletInitParams()Returns a map from servlet init param name to value.
return initParams;
| public java.lang.String | getServletName()Reports the servlet's name.
return servletName;
| private void | setInitParams(java.lang.String virtualContextRoot, java.lang.String category)Sets up the map of init param names to values that will be retrieved
by the web container.
initParams = new HashMap<String,String>();
initParams.put(JWSAdHocServlet.CONTEXT_ROOT_PARAMETER_NAME, virtualContextRoot);
initParams.put(JWSAdHocServlet.CATEGORY_PARAMETER_NAME, category);
|
|