ariba.util.http
Class AribaServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by ariba.util.http.LoggingServlet
              extended by ariba.util.http.AribaServlet
All Implemented Interfaces:
RequestProcessor, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
AWDispatcherServlet

public abstract class AribaServlet
extends LoggingServlet
implements RequestProcessor

Helper servlet class that all servlets in the ariba space should extend. We may add additional functionality in the future. This was move to here, so it is available to AribaWeb. It also implements the MultiTab, so we don't need another class.

See Also:
Serialized Form

Constructor Summary
AribaServlet()
           
 
Method Summary
 void delegateTooManyTabsError(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          This method let us skip the processRequest method call and call directly rending phase.
 java.lang.String multiTabHandlerName()
          Identifies multiTab handler by name
 java.lang.String requestString(javax.servlet.http.HttpServletRequest servletRequest)
          Efficiently concatenates the query parameters onto the request URL.
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class ariba.util.http.LoggingServlet
logServletException, logServletServiceRequest
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ariba.util.http.multitab.RequestProcessor
processRequest
 

Constructor Detail

AribaServlet

public AribaServlet()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    java.io.IOException
Overrides:
service in class LoggingServlet
Throws:
javax.servlet.ServletException
java.io.IOException

multiTabHandlerName

public java.lang.String multiTabHandlerName()
Description copied from interface: RequestProcessor
Identifies multiTab handler by name

Specified by:
multiTabHandlerName in interface RequestProcessor

delegateTooManyTabsError

public void delegateTooManyTabsError(javax.servlet.http.HttpServletRequest servletRequest,
                                     javax.servlet.http.HttpServletResponse servletResponse)
                              throws java.io.IOException,
                                     javax.servlet.ServletException
Description copied from interface: RequestProcessor
This method let us skip the processRequest method call and call directly rending phase. Currently used when we want to throws an exception to the user.

Specified by:
delegateTooManyTabsError in interface RequestProcessor
Throws:
java.io.IOException
javax.servlet.ServletException

requestString

public java.lang.String requestString(javax.servlet.http.HttpServletRequest servletRequest)
Efficiently concatenates the query parameters onto the request URL.

Parameters:
servletRequest - The http servlet request.
Returns:
The concatenated string (or the request URL, when no parameters).


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.