com.sun.enterprise.web
Interface AdHocServletInfo

All Known Implementing Classes:
EjbWebServiceServletInfo

public interface AdHocServletInfo

Specifies behavior that the requester of an ad hoc path must implement.

The web container will call back to these methods when it needs to create an instance of the servlet to support the path.

Author:
Tim Quinn

Method Summary
 java.lang.Class getServletClass()
          Returns the class type of the servlet that should be created to process requests.
 java.util.Map<java.lang.String,java.lang.String> getServletInitParams()
          Returns a Map containing name and value pairs to be used in preparing the init params in the servlet's ServletConfig object.
 java.lang.String getServletName()
          Returns the name of the servlet that the container should assign when it adds a servlet to a web module.
 

Method Detail

getServletClass

java.lang.Class getServletClass()
Returns the class type of the servlet that should be created to process requests. Note that the class must represent a subclass of HttpServlet.

Returns:
The servlet class

getServletName

java.lang.String getServletName()
Returns the name of the servlet that the container should assign when it adds a servlet to a web module.

Returns:
The servlet name

getServletInitParams

java.util.Map<java.lang.String,java.lang.String> getServletInitParams()
Returns a Map containing name and value pairs to be used in preparing the init params in the servlet's ServletConfig object.

Returns:
Map containing the servlet init parameters


Copyright © 2012 GlassFish Community. All Rights Reserved.