com.sas.services.webapp
Class BootstrapServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.sas.services.webapp.BootstrapServlet
All Implemented Interfaces:

public class BootstrapServlet
extends HttpServlet

This servlet uses Bootstrap to bootstrap the platform services.

See Also:
Serialized Form

Constructor Summary
BootstrapServlet()
           
 
Method Summary
 void destroy()
           
 void doGet(HttpServletRequest request, HttpServletResponse response)
          The doGet method is called when a client makes a request via an HTTP GET action.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          The doPost method is called when a client makes a request using the HTTP POST action.
protected  void handleException(Exception e)
           
 void init(ServletConfig initialConfig)
          This method instantiates a Bootstrap class which is responsible for starting up a Local Discovery Service DiscoveryService
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapServlet

public BootstrapServlet()
Method Detail

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
The doGet method is called when a client makes a request via an HTTP GET action. This method forces all GET requests to be treated as POSTs.
Overrides:
doGet in class HttpServlet
Parameters:
request - The client's HttpServletRequest.
response - An HttpServletResponse provided by the servlet engine.

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
The doPost method is called when a client makes a request using the HTTP POST action. Currently this method displays a message.
Overrides:
doPost in class HttpServlet

init

public void init(ServletConfig initialConfig)
          throws ServletException
This method instantiates a Bootstrap class which is responsible for starting up a Local Discovery Service DiscoveryService
Overrides:
init in class GenericServlet
Parameters:
initialConfig - Configuration info provided by the servlet engine from web.xml.
Initial parameters are metadata source properties file names.
These files point to metadata repostories.
  • param: localPropsFile
  • param: remotePropsFile
Throws:
ServletException - for startup failure.

handleException

protected void handleException(Exception e)

destroy

public void destroy()
Overrides:
destroy in class GenericServlet




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:05:13